diff options
author | Andreas Grapentin <andreas@grapentin.org> | 2018-06-03 10:14:32 +0200 |
---|---|---|
committer | Andreas Grapentin <andreas@grapentin.org> | 2018-06-03 10:14:32 +0200 |
commit | 4ae9aef5d32cbd2b93f1037570c37bb26dcb5416 (patch) | |
tree | 59882b164b0761d61a82aa02a42c73e10a09996c | |
parent | ea5bd0fadb112ac1aadb213c59e5ed422cddd7d8 (diff) |
made it past stage3 glibc
-rw-r--r-- | config/config.powerpc64le.sh | 5 | ||||
-rw-r--r-- | src/stage2/patches/powerpc64le/pacman.patch | 24 | ||||
-rw-r--r-- | src/stage3/patches/generic/glibc.patch | 23 |
3 files changed, 35 insertions, 17 deletions
diff --git a/config/config.powerpc64le.sh b/config/config.powerpc64le.sh index 35a6a48..01af547 100644 --- a/config/config.powerpc64le.sh +++ b/config/config.powerpc64le.sh @@ -29,12 +29,11 @@ export CHOST="$CARCH-unknown-linux-gnu" export LINUX_ARCH=powerpc # flags added to the default CFLAGS in makepkg.conf -export PLATFORM_CFLAGS=( - "-mcpu=powerpc64le") +export PLATFORM_CFLAGS=() # flags added to the gcc PKGBUILD configure call export GCC_CONFIG_FLAGS=( - "--with-cpu=powerpc64le" + "--with-cpu=power8" "--with-long-double-128") # multilib configuration, uncomment if applicable diff --git a/src/stage2/patches/powerpc64le/pacman.patch b/src/stage2/patches/powerpc64le/pacman.patch index f09abc0..9eada0a 100644 --- a/src/stage2/patches/powerpc64le/pacman.patch +++ b/src/stage2/patches/powerpc64le/pacman.patch @@ -1,6 +1,6 @@ diff -rupN a/pacman.conf.powerpc64le b/pacman.conf.powerpc64le --- a/pacman.conf.powerpc64le 1970-01-01 01:00:00.000000000 +0100 -+++ b/pacman.conf.powerpc64le 2018-05-19 07:43:10.426953548 +0200 ++++ b/pacman.conf.powerpc64le 2018-06-01 15:36:14.341777257 +0200 @@ -0,0 +1,120 @@ +# +# /etc/pacman.conf @@ -123,17 +123,23 @@ diff -rupN a/pacman.conf.powerpc64le b/pacman.conf.powerpc64le +#SigLevel = Optional TrustAll +#Server = file:///home/custompkgs diff -rupN a/PKGBUILD b/PKGBUILD ---- a/PKGBUILD 2018-05-19 07:39:33.266951381 +0200 -+++ b/PKGBUILD 2018-05-19 07:43:10.416953547 +0200 -@@ -51,6 +51,7 @@ sha256sums=('dfd36086ad68564bcd977f4a1fa - '78129351e96d19e14b05bda30480df3e834a96153b7cfe72ca5c91f5cc5cae40' - '19853ea9a2138157bbb334eb7f3a9b3098b88e513678b54b7b4f19d2ffd6ecad' +--- a/PKGBUILD 2018-06-01 15:35:41.401776928 +0200 ++++ b/PKGBUILD 2018-06-01 15:36:02.071777134 +0200 +@@ -43,10 +43,11 @@ source=(https://sources.archlinux.org/ot + 0001-makepkg-treat-pkgrel-more-similarly-to-pkgver.patch) + sha256sums=('9f5993fc8923530713742f15df284677f297b3eca15ed7a24758c98ac7399bd3' + 'SKIP' +- '19853ea9a2138157bbb334eb7f3a9b3098b88e513678b54b7b4f19d2ffd6ecad' '1b2c8f4ec84d0dc496516880a54b5e4deb78798618c9cf5e284a45303f156e58' + '19853ea9a2138157bbb334eb7f3a9b3098b88e513678b54b7b4f19d2ffd6ecad' ++ '19853ea9a2138157bbb334eb7f3a9b3098b88e513678b54b7b4f19d2ffd6ecad' 'b2cb3ba229edba338c0af7d7f5bb1a6ef6143bcd453c693bfee0c02fa1cfa18a' - '117892e340cc502b8659f21b209886c51a375e52f4af39f173ff7fe12762d40b' +- '31565aae027a26bb0e9074aca89a012483dc078e0239dc225c3c15fced526607' ++ 'ecef1e98eaaf207f4f2c3d07cfe13533866e1e774240eb833e8b3bd691ada95f' '220f1b25a64727041dc6fa3fd486b0a043f735a3f6cecedc4e2f7c47ec6ce66d' -@@ -80,7 +81,8 @@ build() { + '2a857061f032ff5485f5c75ab74e6f6532621e08963ef48640a792cca16cacd6' + '635ef682073878b6273e3376b00a89a572c4f5f39b118f7b0b4c7497a265a16c' +@@ -72,7 +73,8 @@ build() { cd "$pkgname-$pkgver" ./configure --prefix=/usr --sysconfdir=/etc \ @@ -143,7 +149,7 @@ diff -rupN a/PKGBUILD b/PKGBUILD --with-scriptlet-shell=/usr/bin/bash \ --with-ldconfig=/usr/bin/ldconfig make V=1 -@@ -105,6 +107,11 @@ build() { +@@ -96,6 +98,11 @@ build() { mychost="armv7l-unknown-linux-gnueabihf" myflags="-march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -O2 -pipe -fstack-protector-strong -fno-plt" ;; diff --git a/src/stage3/patches/generic/glibc.patch b/src/stage3/patches/generic/glibc.patch index a20f3b3..2fe287d 100644 --- a/src/stage3/patches/generic/glibc.patch +++ b/src/stage3/patches/generic/glibc.patch @@ -1,6 +1,6 @@ diff -rupN a/PKGBUILD b/PKGBUILD ---- a/PKGBUILD 2018-05-24 12:07:38.664755661 +0200 -+++ b/PKGBUILD 2018-05-24 12:11:10.631424442 +0200 +--- a/PKGBUILD 2018-06-02 23:14:43.099580493 +0200 ++++ b/PKGBUILD 2018-06-03 08:56:01.259928500 +0200 @@ -6,13 +6,13 @@ # NOTE: valgrind requires rebuilt with each major glibc version @@ -17,7 +17,7 @@ diff -rupN a/PKGBUILD b/PKGBUILD options=(!strip staticlibs) _commit=23158b08a0908f381459f273a984c6fd328363cb #source=(git+https://sourceware.org/git/glibc.git#commit=$_commit -@@ -53,7 +53,7 @@ build() { +@@ -53,10 +53,10 @@ build() { --enable-add-ons --enable-bind-now --enable-lock-elision @@ -25,8 +25,21 @@ diff -rupN a/PKGBUILD b/PKGBUILD + --@MULTILIB@-multi-arch --enable-stack-protector=strong --enable-stackguard-randomization - --enable-static-pie -@@ -87,6 +87,8 @@ build() { +- --enable-static-pie ++ --disable-static-pie + --disable-profile + --disable-werror + ) +@@ -70,6 +70,8 @@ build() { + + # remove fortify for building libraries + CPPFLAGS=${CPPFLAGS/-D_FORTIFY_SOURCE=2/} ++ CFLAGS="$CFLAGS -no-pie -fno-PIE" ++ CXXFLAGS="$CXXFLAGS -no-pie -fno-PIE" + + "$srcdir/glibc/configure" \ + --libdir=/usr/lib \ +@@ -87,6 +89,8 @@ build() { echo "CXX += -D_FORTIFY_SOURCE=2" >> configparms make |