Skip to content

Commit

Permalink
* change CHOST to powerpc64le-linux-gnu
Browse files Browse the repository at this point in the history
  • Loading branch information
kth5 committed Apr 9, 2019
1 parent baa5c9e commit 41862de
Show file tree
Hide file tree
Showing 11 changed files with 47 additions and 19 deletions.
10 changes: 6 additions & 4 deletions binutils/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

pkgname=binutils
pkgver=2.32
pkgrel=1
pkgrel=3
pkgdesc='A set of programs to assemble and manipulate binary and object files'
arch=(x86_64 powerpc64le)
url='http://www.gnu.org/software/binutils/'
Expand All @@ -18,9 +18,10 @@ checkdepends=(dejagnu bc)
conflicts=(binutils-multilib)
replaces=(binutils-multilib)
options=(staticlibs !distcc !ccache)
source=(https://ftp.gnu.org/gnu/binutils/binutils-$pkgver.tar.xz)
source=(https://ftp.gnu.org/gnu/binutils/binutils-$pkgver.tar.xz{,.sig})
validpgpkeys=(3A24BC1E8FB409FA9F14371813FCEF89DD9E3C4F)
sha256sums=('0ab6c55dd86a92ed561972ba15b9b70a8b9f75557f896446c82e8b36e473ee04')
sha256sums=('0ab6c55dd86a92ed561972ba15b9b70a8b9f75557f896446c82e8b36e473ee04'
'SKIP')

prepare() {
mkdir -p binutils-build
Expand Down Expand Up @@ -50,7 +51,8 @@ build() {
--disable-gdb \
--disable-werror \
--with-pic \
--with-system-zlib
--with-system-zlib \
--host=${CHOST}

make configure-host
make tooldir=/usr
Expand Down
2 changes: 1 addition & 1 deletion ccache/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

pkgname=ccache
pkgver=3.6
pkgrel=1
pkgrel=2
pkgdesc='Compiler cache that speeds up recompilation by caching previous compilations'
url='https://ccache.samba.org/'
arch=('x86_64' 'powerpc64le')
Expand Down
14 changes: 8 additions & 6 deletions distcc/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@

pkgname=distcc
pkgver=3.3.2
pkgrel=1
pkgrel=2
pkgdesc='Distributed C, C++ and Objective-C compiler'
arch=('x86_64' 'powerpc64le')
arch=(x86_64 powerpc64le)
url='http://distcc.org'
license=('GPL')
depends=('popt')
makedepends=('python')
depends=('avahi' 'popt')
makedepends=('git' 'gtk2' 'python' 'setconf')
optdepends=('gtk2: for distccmon-gnome' 'python')
backup=('etc/conf.d/distccd'
'etc/distcc/hosts')
source=("git+https://github.com/distcc/distcc#tag=v$pkgver"
Expand All @@ -25,6 +26,7 @@ prepare() {
cd "$pkgname"

./autogen.sh
setconf gnome/distccmon-gnome.desktop Name 'DistCC Monitor'
sed -i 's/ install-gnome-data//g' Makefile.in
}

Expand All @@ -37,7 +39,7 @@ build() {
--mandir=/usr/share/man \
--sbindir=/usr/bin \
--sysconfdir=/etc \
--without-gtk
--with-gtk

make WERROR_CFLAGS= INCLUDESERVER_PYTHON=/usr/bin/python
}
Expand All @@ -61,7 +63,7 @@ package() {

# Symlinks
install -d "$pkgdir/usr/lib/$pkgname/bin"
for bin in c++ cc cpp g++ gcc; do
for bin in c++ cc cpp g++ gcc ${CHOST}-c++ ${CHOST}-cc ${CHOST}-cpp ${CHOST}-g++ ${CHOST}-gcc; do
ln -sf "/usr/bin/$pkgname" "$pkgdir/usr/lib/$pkgname/bin/$bin"
# Additional symlinks are needed, see FS#57978
ln -sf "/usr/bin/$pkgname" "$pkgdir/usr/lib/$pkgname/$bin"
Expand Down
9 changes: 9 additions & 0 deletions distcc/distccd.conf.d
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#
# Parameters to be passed to distccd
#
# You must explicitly add IPs (or subnets) that are allowed to connect,
# using the --allow switch. See the distccd manpage for more info.
#

DISTCC_ARGS="--allow 127.0.0.1"
#DISTCC_ARGS="--allow 192.168.0.0/24 --log-level error --log-file /tmp/distccd.log"
12 changes: 12 additions & 0 deletions distcc/distccd.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Unit]
Description=Distributed C, C++ and Objective-C compiler
Documentation=man:distccd(1)
After=network.target

[Service]
User=nobody
EnvironmentFile=/etc/conf.d/distccd
ExecStart=/usr/bin/distccd --no-detach --daemon $DISTCC_ARGS

[Install]
WantedBy=multi-user.target
7 changes: 5 additions & 2 deletions gcc/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pkgname=(gcc-libs gcc gcc-fortran gcc-objc gcc-go gcc-ada)
pkgver=8.3.0
_majorver=${pkgver:0:1}
_islver=0.20
pkgrel=2
pkgrel=4
pkgdesc='The GNU Compiler Collection'
arch=(x86_64 powerpc64le)
license=(GPL LGPL FDL custom)
Expand Down Expand Up @@ -83,6 +83,7 @@ build() {
--libexecdir=/usr/lib \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--with-pkgversion="Archlinux POWER ${pkgver}-${pkgrel}" \
--with-bugurl=https://github.com/kth5/archpower \
--enable-languages=c,c++,fortran,go,lto,objc,obj-c++,ada \
--enable-shared \
Expand All @@ -107,7 +108,9 @@ build() {
--enable-checking=release \
--enable-default-pie \
--enable-default-ssp \
--disable-libquadmath-support
--disable-libquadmath-support \
--with-multilib-list=powerpc-linux-gnu \
--host=${CHOST}

make

Expand Down
2 changes: 1 addition & 1 deletion glibc/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

pkgname=glibc
pkgver=2.29
pkgrel=3
pkgrel=4
arch=(powerpc64le)
groups=(base)
url='http://www.gnu.org/software/libc'
Expand Down
4 changes: 2 additions & 2 deletions pacman/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

pkgname=pacman
pkgver=5.1.3
pkgrel=1
pkgrel=2
pkgdesc="A library-based package manager with dependency support"
arch=('powerpc64le')
url="http://www.archlinux.org/pacman/"
Expand All @@ -26,7 +26,7 @@ source=(https://sources.archlinux.org/other/pacman/$pkgname-$pkgver.tar.gz
makepkg.conf)
sha256sums=('10db61a0928d619871340c3f93a677d1541d6c52353c516aec4f8d96e830d4eb'
'63f374736f657bbce61da2e857d66acfde2c14135e8864b524ab9cb08ba3fb56'
'57f9d0604a37ac3edbcd56e1e9911408a19fa0032c86cccc5d27b984b957d93c')
'6e7fc981b1bbd3d71b4f793660ca215258b1eed0d4031af7ba4290d2db2fdcd4')

build() {
cd "$pkgname-$pkgver"
Expand Down
2 changes: 1 addition & 1 deletion pacman/makepkg.conf
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ VCSCLIENTS=('bzr::bzr'
#########################################################################
#
CARCH="powerpc64le"
CHOST="powerpc64le-unknown-linux-gnu"
CHOST="powerpc64le-linux-gnu"

CC="${CHOST}-gcc"
CXX="${CHOST}-g++"
Expand Down
2 changes: 1 addition & 1 deletion python/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

pkgname=python
pkgver=3.7.2
pkgrel=6
pkgrel=7
_pybasever=${pkgver%.*}
pkgdesc="Next generation of the python high-level scripting language"
arch=('x86_64' 'powerpc64le')
Expand Down
2 changes: 1 addition & 1 deletion python2/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

pkgname=python2
pkgver=2.7.16
pkgrel=1
pkgrel=8
_pybasever=2.7
pkgdesc="A high-level scripting language"
arch=(x86_64 powerpc64le)
Expand Down

0 comments on commit 41862de

Please sign in to comment.