Skip to content

Commit 221ea15

Browse files
committed
Fix ppc builds for PPA, COPR
©! I, Hugo Landau <hlandau@devever.net>, hereby licence these changes under the ©! licence with SHA256 hash ©! fd80a26fbb3f644af1fa994134446702932968519797227e07a1368dea80f0bc.
1 parent 142a638 commit 221ea15

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.travis/make_debian_env

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ REVISION="1${DISTRO}1"
2525
DATE_R="$(date -R)"
2626
# The non-cgo builds here are used by the RPM builds, which also reply on the
2727
# .orig.tar.gz file built here.
28-
ARCHS="386_cgo amd64_cgo 386 amd64 arm arm64"
28+
ARCHS="386_cgo amd64_cgo 386 amd64 arm arm64 ppc64 ppc64le"
2929

3030
mkdir -p "$ARCHIVEDIR"
3131
for ARCH in $ARCHS; do
@@ -72,7 +72,7 @@ Standards-Version: 3.9.6
7272
Build-Depends: debhelper (>= 9), wget, ca-certificates, curl, libcap-dev
7373
7474
Package: acmetool
75-
Architecture: amd64 i386 armhf arm64
75+
Architecture: amd64 i386 armhf arm64 ppc64el
7676
Depends: ${misc:Depends}, ${shlibs:Depends}
7777
Description: command line tool for automatically acquiring certificates
7878
acmetool is an easy-to-use command line tool for automatically acquiring
@@ -238,6 +238,7 @@ case "$DEB_BUILD_ARCH" in
238238
i386) echo 386_cgo;;
239239
amd64) echo amd64_cgo;;
240240
armhf|armel) echo arm;;
241+
ppc64el) echo ppc64le;;
241242
*) echo "$DEB_BUILD_ARCH";;
242243
esac
243244
END

.travis/make_rpm_spec

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,13 @@ Conflicts: %{aname}$NOTNOCGO_SUFFIX
3333
%ifarch x86_64
3434
%define goarch amd64$CGO_SUFFIX
3535
%else
36+
%ifarch ppc64le
37+
%define goarch ppc64le$CGO_SUFFIX
38+
%else
3639
%define goarch ERROR
3740
%endif
3841
%endif
42+
%endif
3943
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
4044
Source: %{aname}_%{version}.orig.tar.gz
4145

0 commit comments

Comments
 (0)