Skip to content

Commit

Permalink
ldconfig triggers for other lib installs to /usr/glibc/usr/lib
Browse files Browse the repository at this point in the history
  • Loading branch information
andyshinn committed Apr 9, 2015
1 parent 03b2be0 commit 5e743ad
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
11 changes: 8 additions & 3 deletions APKBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ pkgdesc="GNU C Library compatibility layer"
arch="x86_64"
url="https://github.com/gliderlabs/alpine-glibc"
license="GPL"
source="http://mirrors.kernel.org/archlinux/core/os/x86_64/glibc-${pkgver}-${pkgrel}-${arch}.pkg.tar.xz"
source="http://mirrors.kernel.org/archlinux/core/os/x86_64/glibc-${pkgver}-${pkgrel}-${arch}.pkg.tar.xz
ld.so.conf"
subpackages="$pkgname-bin"
triggers="$pkgname-bin.trigger=/usr/glibc/usr/lib"

package() {
mkdir -p "$pkgdir"/usr/glibc
Expand All @@ -30,8 +32,11 @@ package() {
}

bin() {
mkdir -p "$subpkgdir"/usr/glibc/usr/bin
mkdir -p "$subpkgdir"/usr/glibc/usr/bin \
"$subpkgdir"/etc
cp -a "$srcdir"/usr/bin/* "$subpkgdir"/usr/glibc/usr/bin/
cp -La "$srcdir"/ld.so.conf "$subpkgdir"/etc/
}

md5sums="cd2bef93120db7401bd7a4451e97dab4 glibc-2.21-2-x86_64.pkg.tar.xz"
md5sums="cd2bef93120db7401bd7a4451e97dab4 glibc-2.21-2-x86_64.pkg.tar.xz
fda27293b95f89c7a61a0d379d1c3bde ld.so.conf"
2 changes: 2 additions & 0 deletions glibc-bin.trigger
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
/usr/glibc/usr/bin/ldconfig
1 change: 1 addition & 0 deletions ld.so.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/usr/glibc/usr/lib

0 comments on commit 5e743ad

Please sign in to comment.