Skip to content

Commit 39d0ee1

Browse files
committed
script/release.sh: fix for opensuse
openSUSE comes with site-config package, which makes configure select ${prefix}/lib64 as libdir on x86_64, unless explicitly specified. Since release.sh relies on a particular libdir path (for pkgconfig), it breaks things: > + make -C /home/kir/git/runc PKG_CONFIG_PATH=/tmp/tmp.QgIJ1sR5c9/lib/pkgconfig COMMIT_NO= EXTRA_FLAGS=-a 'EXTRA_LDFLAGS=-w -s -buildid=' static > make[1]: Entering directory '/home/kir/git/runc' > CGO_ENABLED=1 go build -trimpath -a -tags "seccomp netgo osusergo" -ldflags "-extldflags -static -X main.gitCommit=v1.0.0-204-g963e0146 -X main.version=1.0.0+dev -w -s -buildid=" -o runc . > Package libseccomp was not found in the pkg-config search path. > Perhaps you should add the directory containing `libseccomp.pc' To fix, we have to explicitly specify libdir. Signed-off-by: Kir Kolyshkin <[email protected]>
1 parent 963e014 commit 39d0ee1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

script/release.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ function build_project() {
3838
tar xf "$tarball"
3939
(
4040
cd "libseccomp-${libseccomp_ver}"
41-
./configure --prefix="$prefix" --enable-static --disable-shared
41+
./configure --prefix="$prefix" --libdir="$prefix/lib" \
42+
--enable-static --disable-shared
4243
make install
4344
)
4445
mv "$tarball"{,.asc} "$builddir"

0 commit comments

Comments
 (0)