Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/packages-i486-stage1
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-02-02 15:13:46 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2018-02-02 15:13:46 +0100
commit4300e81ff831f88e78e1a9b4a9f0b9c7c3cd461d (patch)
treec5ce417d4310977ae946bc8149320faf0ada4de6 /packages-i486-stage1
parentd717823cde98d4c534ccbb52329ff98f8719ab36 (diff)
building up to libnfnetlink
Diffstat (limited to 'packages-i486-stage1')
-rw-r--r--packages-i486-stage1/elfutils8
-rw-r--r--packages-i486-stage1/libmnl5
-rw-r--r--packages-i486-stage1/libnfnetlink5
-rw-r--r--packages-i486-stage1/net-tools6
4 files changed, 19 insertions, 5 deletions
diff --git a/packages-i486-stage1/elfutils b/packages-i486-stage1/elfutils
new file mode 100644
index 0000000..e747c06
--- /dev/null
+++ b/packages-i486-stage1/elfutils
@@ -0,0 +1,8 @@
+# libelf is needed by iproute2
+SYSROOT_INSTALL=1
+
+# we actually need the libelf subpackage to link to
+ADDITIONAL_INSTALL_PACKAGE=libelf
+
+# prepare configure for cross-compilation
+sed -i "s@./configure@./configure --host=$TARGET_ARCH --build=$BUILD_ARCH@g" PKGBUILD
diff --git a/packages-i486-stage1/libmnl b/packages-i486-stage1/libmnl
new file mode 100644
index 0000000..e613146
--- /dev/null
+++ b/packages-i486-stage1/libmnl
@@ -0,0 +1,5 @@
+# libmnl is needed by iproute2
+SYSROOT_INSTALL=1
+
+# prepare configure for cross-compilation
+sed -i "s@./configure@./configure --host=$TARGET_ARCH --build=$BUILD_ARCH@g" PKGBUILD
diff --git a/packages-i486-stage1/libnfnetlink b/packages-i486-stage1/libnfnetlink
new file mode 100644
index 0000000..8aa6d2d
--- /dev/null
+++ b/packages-i486-stage1/libnfnetlink
@@ -0,0 +1,5 @@
+# libnfnetlink is needed by iproute2
+SYSROOT_INSTALL=1
+
+# prepare configure for cross-compilation
+sed -i "s@./configure@./configure --host=$TARGET_ARCH --build=$BUILD_ARCH@g" PKGBUILD
diff --git a/packages-i486-stage1/net-tools b/packages-i486-stage1/net-tools
index 821bb63..e0227f8 100644
--- a/packages-i486-stage1/net-tools
+++ b/packages-i486-stage1/net-tools
@@ -1,5 +1,5 @@
# prepare configure for cross-compilation
-sed -i "s@make @make CC=$TARGET_ARCH-cc LD=$TARGET_ARCH-ld@g" PKGBUILD
+sed -i "s@make @make CC=$TARGET_ARCH-cc LD=$TARGET_ARCH-ld @g" PKGBUILD
sed -i "s@make\$@make CC=$TARGET_ARCH-cc LD=$TARGET_ARCH-ld @g" PKGBUILD
# git for release checkouts, using the one from host
@@ -9,7 +9,3 @@ sed -i "/makedepends/s/git//g" PKGBUILD
sed -i 's@source=(@source=(net-tools-1.60-if_tunnel.patch @' PKGBUILD
sed -i "s@sha1sums=(@sha1sums=('SKIP' @" PKGBUILD
sed -i '2!N; /prepare() {/ a \ pushd ${srcdir}/${pkgname}; patch -Np1 < ${srcdir}/net-tools-1.60-if_tunnel.patch; popd' PKGBUILD
-
-# TODO: wrong installation pathes, should be /usr/bin
-# install: cannot create regular file '/bin/ifconfig': Permission denied
-# make: *** [Makefile:216: installbin] Error 1