[pacman-dev] [PATCH] makepkg: ignore the architecture for --printsrcinfo

Alastair Hughes hobbitalastair at gmail.com
Sun Apr 3 04:19:49 UTC 2016

Signed-off-by: Alastair Hughes <hobbitalastair at gmail.com>


It appears that SRCINFO files should be independent of architecture, however
makepkg will currently fail if the SRCINFO file is being generated on a machine
with a different architecture.
This is in the same vein as c72ca3d5; I believe that creating source tarballs
would be the only other candidate, but IGNOREARCH gets set later in that case.

 scripts/makepkg.sh.in | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index f80e37a..5487884 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1707,7 +1707,8 @@ while true; do
 		-o|--nobuild)     NOBUILD=1 ;;
 		-p)               shift; BUILDFILE=$1 ;;
 		--packagelist)    PACKAGELIST=1 IGNOREARCH=1;;
-		--printsrcinfo)   PRINTSRCINFO=1 ;;
+		# generating a srcinfo does not depend on architecture
+		--printsrcinfo)   PRINTSRCINFO=1 IGNOREARCH=1;;
 		-r|--rmdeps)      RMDEPS=1 ;;
 		-R|--repackage)   REPKG=1 ;;
 		--sign)           SIGNPKG='y' ;;

More information about the pacman-dev mailing list