Skip to content

Commit 7120b48

Browse files
Markus Rothemarcomagdy
authored andcommitted
packager: include 64-bit glibc on RPM based hosts
`rpm --query --list glibc` may list files from glibc.i686 and glibc.x86_64 if both are installed. Make sure that only the 64-bit libraries are included. This fixes #83.
1 parent 3d25be0 commit 7120b48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packaging/packager

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ function package_libc_via_dpkg() {
7373

7474
function package_libc_via_rpm() {
7575
if type rpm > /dev/null 2>&1; then
76-
if [[ $(rpm --query --list glibc | wc -l) -gt 1 ]]; then
77-
rpm --query --list glibc | sed -E '/\.so$|\.so\.[0-9]+$/!d'
76+
if [[ $(rpm --query --list glibc.x86_64 | wc -l) -gt 1 ]]; then
77+
rpm --query --list glibc.x86_64 | sed -E '/\.so$|\.so\.[0-9]+$/!d'
7878
fi
7979
fi
8080
}

0 commit comments

Comments
 (0)