Skip to content

Commit

Permalink
fix: use default search path
Browse files Browse the repository at this point in the history
In previous versions of the toolchain we had a misconfigured linker that
did not have /usr/lib in its search path. This brings in a version of
the toolchain that does, and removes all the hacks we did to work around
this.

Signed-off-by: Andrew Rynhard <[email protected]>
  • Loading branch information
andrewrynhard committed Oct 29, 2019
1 parent 13f49f2 commit febbf49
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Pkgfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
format: v1alpha2

vars:
TOOLS_IMAGE: docker.io/autonomy/tools:8fdb32d
TOOLS_IMAGE: docker.io/autonomy/tools:d048c99
2 changes: 0 additions & 2 deletions containerd/pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ steps:
- |
export PKG_CONFIG_PATH=/usr/lib/pkgconfig
export CC=/toolchain/bin/cc
export CGO_CFLAGS="-L/usr/lib -I/usr/include"
export CGO_LDFLAGS="-L/usr/lib -I/usr/include"
# This is required due to "loadinternal: cannot find runtime/cgo".
export CGO_ENABLED=1
export GOPATH=/go
Expand Down
2 changes: 1 addition & 1 deletion dosfstools/pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ steps:
cd build
../configure \
--prefix=/ \
--prefix=/usr \
--enable-compat-symlinks
build:
- |
Expand Down
2 changes: 1 addition & 1 deletion eudev/pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ variant: scratch
shell: /toolchain/bin/bash
dependencies:
- stage: base
- stage: util-linux
steps:
- sources:
- url: https://dev.gentoo.org/~blueness/eudev/eudev-3.2.8.tar.gz
Expand All @@ -19,7 +20,6 @@ steps:
cat > config.cache << "EOF"
HAVE_BLKID=1
BLKID_LIBS="-lblkid"
BLKID_CFLAGS="-I${TOOLCHAIN}/include"
EOF
mkdir build
Expand Down
4 changes: 2 additions & 2 deletions kmod/pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ steps:
mkdir build
cd build
../configure \
--prefix=/
--prefix=/usr
build:
- |
cd build
Expand All @@ -25,7 +25,7 @@ steps:
- |
cd build
make DESTDIR=/rootfs install
for target in depmod insmod modinfo modprobe rmmod; do ln -s ../bin/kmod /rootfs/bin/$target; done
for target in depmod insmod modinfo modprobe rmmod; do ln -s ../usr/bin/kmod /rootfs/usr/bin/$target; done
finalize:
- from: /rootfs
to: /
7 changes: 5 additions & 2 deletions musl/pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@ steps:
mkdir build
cd build
# From https://www.musl-libc.org/doc/1.0.0/manual.html:
# $(syslibdir), $(includedir), and $(libdir) refer to the paths
# chosen at build time (by default, /lib, $(prefix)/include, and
# $(prefix)/lib, respectively)
../configure \
--prefix=/ \
--syslibdir=/lib \
--prefix=/usr
build:
- |
cd build
Expand Down
2 changes: 0 additions & 2 deletions runc/pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ steps:
export PATH=${PATH}:/${TOOLCHAIN}/go/bin
export PKG_CONFIG_PATH=/usr/lib/pkgconfig
export CC=/toolchain/bin/cc
export CGO_CFLAGS="-L/usr/lib -I/usr/include"
export CGO_LDFLAGS="-L/usr/lib -I/usr/include"
# This is required due to "loadinternal: cannot find runtime/cgo".
export CGO_ENABLED=1
make EXTRA_LDFLAGS="-w -s" BUILDTAGS="seccomp" COMMIT=d736ef14f0288d6993a1845745d6756cfc9ddd5a runc
Expand Down
3 changes: 1 addition & 2 deletions socat/pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ steps:
tar -xzf socat.tar.gz --strip-components=1
./configure \
--prefix=/usr \
LIBS="-L/usr/lib"
--prefix=/usr
build:
- |
make -j $(nproc)
Expand Down
2 changes: 1 addition & 1 deletion util-linux/pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ steps:
mkdir build
cd build
../configure \
--prefix=/ \
--prefix=/usr \
--without-python \
--disable-makeinstall-chown \
--without-systemdsystemunitdir \
Expand Down
2 changes: 1 addition & 1 deletion xfsprogs/pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ steps:
tar -xJf xfsprogs.tar.xz --strip-components=1
./configure \
--prefix=/ \
--prefix=/usr \
--enable-gettext=no
build:
- |
Expand Down

0 comments on commit febbf49

Please sign in to comment.