Skip to content

[1.0] script/release.sh: fix for opensuse#3298

Merged
kolyshkin merged 1 commit intoopencontainers:release-1.0from
kolyshkin:1.0-backport-3200
Dec 1, 2021
Merged

[1.0] script/release.sh: fix for opensuse#3298
kolyshkin merged 1 commit intoopencontainers:release-1.0from
kolyshkin:1.0-backport-3200

Conversation

@kolyshkin
Copy link
Copy Markdown
Contributor

backport of #3200 to release-1.0 branch

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 kolyshkin@gmail.com
(cherry picked from commit 39d0ee1)
Signed-off-by: Kir Kolyshkin kolyshkin@gmail.com

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 <kolyshkin@gmail.com>
(cherry picked from commit 39d0ee1)
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@kolyshkin kolyshkin added the backport/1.0-pr A backport PR to release-1.0 label Nov 29, 2021
@kolyshkin kolyshkin added this to the 1.0.3 milestone Nov 29, 2021
This was referenced Nov 29, 2021
Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thaJeztah
Copy link
Copy Markdown
Member

I see you also requested a review from @cyphar, but feel free to merge if that was just "one of you both" 😅

@kolyshkin
Copy link
Copy Markdown
Contributor Author

It's a trivial fix, let's merge.

@kolyshkin kolyshkin merged commit c0d6bdf into opencontainers:release-1.0 Dec 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/1.0-pr A backport PR to release-1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants