Skip to content

Commit

Permalink
Fix ppc builds for PPA, COPR
Browse files Browse the repository at this point in the history
©! I, Hugo Landau <hlandau@devever.net>, hereby licence these changes under the
©! licence with SHA256 hash
©! fd80a26fbb3f644af1fa994134446702932968519797227e07a1368dea80f0bc.
  • Loading branch information
hlandau committed Feb 12, 2018
1 parent 142a638 commit 221ea15
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .travis/make_debian_env
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ REVISION="1${DISTRO}1"
DATE_R="$(date -R)"
# The non-cgo builds here are used by the RPM builds, which also reply on the
# .orig.tar.gz file built here.
ARCHS="386_cgo amd64_cgo 386 amd64 arm arm64"
ARCHS="386_cgo amd64_cgo 386 amd64 arm arm64 ppc64 ppc64le"

mkdir -p "$ARCHIVEDIR"
for ARCH in $ARCHS; do
Expand Down Expand Up @@ -72,7 +72,7 @@ Standards-Version: 3.9.6
Build-Depends: debhelper (>= 9), wget, ca-certificates, curl, libcap-dev
Package: acmetool
Architecture: amd64 i386 armhf arm64
Architecture: amd64 i386 armhf arm64 ppc64el
Depends: ${misc:Depends}, ${shlibs:Depends}
Description: command line tool for automatically acquiring certificates
acmetool is an easy-to-use command line tool for automatically acquiring
Expand Down Expand Up @@ -238,6 +238,7 @@ case "$DEB_BUILD_ARCH" in
i386) echo 386_cgo;;
amd64) echo amd64_cgo;;
armhf|armel) echo arm;;
ppc64el) echo ppc64le;;
*) echo "$DEB_BUILD_ARCH";;
esac
END
Expand Down
4 changes: 4 additions & 0 deletions .travis/make_rpm_spec
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,13 @@ Conflicts: %{aname}$NOTNOCGO_SUFFIX
%ifarch x86_64
%define goarch amd64$CGO_SUFFIX
%else
%ifarch ppc64le
%define goarch ppc64le$CGO_SUFFIX
%else
%define goarch ERROR
%endif
%endif
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
Source: %{aname}_%{version}.orig.tar.gz
Expand Down

0 comments on commit 221ea15

Please sign in to comment.