Skip to content

Commit ccbda7a

Browse files
committed
Stage packages that provides the depending libraries
Snapcraft will soonly drop the feature to automatic staging the depending libraries into the snap, specify it manually to avoid breakage in the future. This deals with the following warning message in the build: ``` Priming leptonica Files from the build host were migrated into the snap to satisfy dependencies that would otherwise not be met. This feature will be removed in a future release. If these libraries are needed in the final snap, ensure that the following are either satisfied by a stage-packages entry or through a part: usr/lib/x86_64-linux-gnu/libjbig.so.0 usr/lib/x86_64-linux-gnu/libjpeg.so.8 usr/lib/x86_64-linux-gnu/libopenjp2.so.7 usr/lib/x86_64-linux-gnu/libtiff.so.5 Priming tesseract Files from the build host were migrated into the snap to satisfy dependencies that would otherwise not be met. This feature will be removed in a future release. If these libraries are needed in the final snap, ensure that the following are either satisfied by a stage-packages entry or through a part: usr/lib/x86_64-linux-gnu/libgomp.so.1 ``` Signed-off-by: 林博仁(Buo-ren, Lin) <[email protected]>
1 parent 9c8a585 commit ccbda7a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

snap/snapcraft.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,14 @@ parts:
3737
- libicu-dev
3838
- libpango1.0-dev
3939
- libcairo2-dev
40+
stage-packages:
41+
- libgomp1
4042
after: [leptonica]
4143
leptonica:
4244
source: https://github.com/DanBloomberg/leptonica/archive/1.74.2.tar.gz
4345
plugin: autotools
46+
stage-packages:
47+
- libjbig0
48+
- libjpeg-turbo8
49+
- libopenjp2-7
50+
- libtiff5

0 commit comments

Comments
 (0)