summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-02-08 08:20:46 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2018-02-08 08:20:46 +0100
commit0488b164de85e2fe8dc0bd67c3a0c3dfe9343a10 (patch)
tree7a22a7bc66f92d76ecf1e202c796bf5287f2e9b4
parent1405eedff471bc3cea6ab29dea00bf3c4148bcd2 (diff)
downloadbootstrap32-0488b164de85e2fe8dc0bd67c3a0c3dfe9343a10.tar.xz
reverted naming of shims for gcc-lib, glibc and ca-certificates
-rw-r--r--BUGS4
-rw-r--r--README2
-rw-r--r--TODOS13
-rwxr-xr-xcreate_ca-certificates-utils_shim.sh6
-rwxr-xr-xcreate_gcc-lib_shim.sh6
-rwxr-xr-xcreate_glibc_shim.sh6
-rw-r--r--i486-stage1/binutils/DESCR3
7 files changed, 18 insertions, 22 deletions
diff --git a/BUGS b/BUGS
deleted file mode 100644
index 5d17d2d..0000000
--- a/BUGS
+++ /dev/null
@@ -1,4 +0,0 @@
-bsdtar: /home/cross/i486-root/packages/i486/linux-docs-4.15.1-2-i486.pkg.tar.xz: Not found in archive
-bsdtar: /home/cross/i486-root/packages/i486/linux-headers-4.15.1-2-i486.pkg.tar.xz: Not found in archive
-bsdtar: Error exit delayed from previous errors.
-Built package linux.
diff --git a/README b/README
index aaee4c2..6f7c323 100644
--- a/README
+++ b/README
@@ -166,8 +166,6 @@ su cross ./create_cdrom.sh
# basic packages
PACKAGES=" \
- fakeroot \
-make mpfr gawk libmpc binutils gcc \
glibc \
# TODO: iputils is for ping only, a little bit too many packages for
# that.
diff --git a/TODOS b/TODOS
index 5d4fb81..d978983 100644
--- a/TODOS
+++ b/TODOS
@@ -5,4 +5,15 @@
- makepkg with an 'alternate root' option (which doens't collide with
pacman's options), avoids patching -r and --config into makepkg for
stage1
-- shims and provides and depends don't work yet (binutils and glibc-shim)
+- shims and provides and depends don't work yet:
+ - binutils and glibc-shim
+ - same for gcc-libs: glibc and gcc-libs for gcc
+- bsdtar: /home/cross/i486-root/packages/i486/linux-docs-4.15.1-2-i486.pkg.tar.xz: Not found in archive
+ bsdtar: /home/cross/i486-root/packages/i486/linux-headers-4.15.1-2-i486.pkg.tar.xz: Not found in archive
+ bsdtar: Error exit delayed from previous errors.
+ Built package linux.
+- gcc PKGBUILD instead of diff
+- removing all pacman databases and recreating them with repo-add, also
+ removing all installed pacman packages seem a little bit paranoic. Find
+ out how to speed this up and do it properly.
+
diff --git a/create_ca-certificates-utils_shim.sh b/create_ca-certificates-utils_shim.sh
index 2f73102..dbaacbf 100755
--- a/create_ca-certificates-utils_shim.sh
+++ b/create_ca-certificates-utils_shim.sh
@@ -18,15 +18,13 @@ if test ! -f $STAGE1_CHROOT/packages/$TARGET_CPU/ca-certificates-utils-shim-2017
size=$(du -sk --apparent-size pkg/)
size="$(( ${size%%[^0-9]*} * 1024 ))"
cat > pkg/ca-certificates-utils-shim/.PKGINFO <<EOF
-pkgname = ca-certificates-utils-shim
+pkgname = ca-certificates-utils
pkgver = 20170307-1
pkgdesc = Common CA certificates (utilities, from host machine)
url = http://pkgs.fedoraproject.org/cgit/rpms/ca-certificates.git
builddate = $BUILDDATE
size = $size
arch = any
-provides = ca-certificates-utils
-conflict = ca-certificates-utils
EOF
cd pkg/ca-certificates-utils-shim || exit 1
@@ -38,7 +36,7 @@ EOF
rm -rf $STAGE1_CHROOT/packages/$TARGET_CPU/temp.db*
rm -rf $STAGE1_CHROOT/packages/$TARGET_CPU/temp.files*
repo-add $STAGE1_CHROOT/packages/$TARGET_CPU/temp.db.tar.gz $STAGE1_CHROOT/packages/$TARGET_CPU/*pkg.tar.xz
- sudo pacman --force --noconfirm --config $STAGE1_CHROOT/etc/pacman.conf -r $STAGE1_CHROOT -Syy ca-certificates-utils-shim
+ sudo pacman --force --noconfirm --config $STAGE1_CHROOT/etc/pacman.conf -r $STAGE1_CHROOT -Syy ca-certificates-utils
fi
diff --git a/create_gcc-lib_shim.sh b/create_gcc-lib_shim.sh
index 9b5edcc..8652a65 100755
--- a/create_gcc-lib_shim.sh
+++ b/create_gcc-lib_shim.sh
@@ -25,15 +25,13 @@ if test ! -f $STAGE1_CHROOT/packages/$TARGET_CPU/gcc-libs-shim-7.2.0-1-$TARGET_C
size=$(du -sk --apparent-size pkg/)
size="$(( ${size%%[^0-9]*} * 1024 ))"
cat > pkg/gcc-libs-shim/.PKGINFO <<EOF
-pkgname = gcc-libs-shim
+pkgname = gcc-libs
pkgver = 4.9.4-1
pkgdesc = Runtime libraries shipped by GCC (from crosstool-ng sysroot)
url = http://gcc.gnu.org
builddate = $BUILDDATE
size = $size
arch = $TARGET_CPU
-provides = gcc-libs
-conflict = gcc-libs
EOF
cd pkg/gcc-libs-shim || exit 1
@@ -45,7 +43,7 @@ EOF
rm -rf $STAGE1_CHROOT/packages/$TARGET_CPU/temp.db*
rm -rf $STAGE1_CHROOT/packages/$TARGET_CPU/temp.files*
repo-add -R $STAGE1_CHROOT/packages/$TARGET_CPU/temp.db.tar.gz $STAGE1_CHROOT/packages/$TARGET_CPU/*pkg.tar.xz
- sudo pacman --noconfirm --config $STAGE1_CHROOT/etc/pacman.conf -r $STAGE1_CHROOT -Syy gcc-libs-shim
+ sudo pacman --noconfirm --config $STAGE1_CHROOT/etc/pacman.conf -r $STAGE1_CHROOT -Syy gcc-libs
fi
echo "gcc-lib shim exists."
diff --git a/create_glibc_shim.sh b/create_glibc_shim.sh
index d79d41f..7d16b44 100755
--- a/create_glibc_shim.sh
+++ b/create_glibc_shim.sh
@@ -55,15 +55,13 @@ if test ! -f $STAGE1_CHROOT/packages/$TARGET_CPU/glibc-shim-2.26-1-$TARGET_CPU.p
size=`du -sk --apparent-size pkg/`
size="$(( ${size%%[^0-9]*} * 1024 ))"
cat > pkg/glibc-shim/.PKGINFO <<EOF
-pkgname = glibc-shim
+pkgname = glibc
pkgver = 2.26-1
pkgdesc = GNU C Library (from crosstool-ng sysroot)
url = http://www.gnu.org/software/libc
builddate = $BUILDDATE
size = $size
arch = $TARGET_CPU
-provides = glibc
-conflict = glibc
EOF
cd pkg/glibc-shim
@@ -75,7 +73,7 @@ EOF
rm -rf $STAGE1_CHROOT/packages/$TARGET_CPU/temp.db*
rm -rf $STAGE1_CHROOT/packages/$TARGET_CPU/temp.files*
repo-add $STAGE1_CHROOT/packages/$TARGET_CPU/temp.db.tar.gz $STAGE1_CHROOT/packages/$TARGET_CPU/*pkg.tar.xz
- sudo pacman --force --noconfirm --config $STAGE1_CHROOT/etc/pacman.conf -r $STAGE1_CHROOT -Syy glibc-shim
+ sudo pacman --force --noconfirm --config $STAGE1_CHROOT/etc/pacman.conf -r $STAGE1_CHROOT -Syy glibc
fi
diff --git a/i486-stage1/binutils/DESCR b/i486-stage1/binutils/DESCR
index cfb98d7..326add7 100644
--- a/i486-stage1/binutils/DESCR
+++ b/i486-stage1/binutils/DESCR
@@ -1,8 +1,5 @@
# prepare configure for cross-compilation
sed -i "/--prefix=\/usr/ a \ --host=$TARGET_ARCH --build=$BUILD_ARCH \\\\" PKGBUILD
-# TODO: this should work with glibc-shim providing glibc, but doesn't?
-sed -i "/depends=/s/glibc/glibc-shim/" PKGBUILD
-
# git is still there as build dependency, not needed
sed -i "/makedepends=/s/git//" PKGBUILD