#1 Enable build on aarch64, ppc64le
Merged a year ago by yselkowitz. Opened 2 years ago by yselkowitz.
rpms/ yselkowitz/xar rawhide  into  rawhide

@@ -0,0 +1,36 @@ 

+ --- a/config.guess	2006-04-19 16:46:22.000000000 -0400

+ +++ b/config.guess	2021-07-04 19:33:12.857566034 -0400

+ @@ -882,6 +882,15 @@

+      ppc64:Linux:*:*)

+  	echo powerpc64-unknown-linux-gnu

+  	exit ;;

+ +    ppc64le:Linux:*:*)

+ +	echo powerpc64le-unknown-linux-gnu

+ +	exit ;;

+ +    aarch64:Linux:*:*)

+ +	echo aarch64-unknown-linux-gnu

+ +	exit ;;

+ +    aarch64_be:Linux:*:*)

+ +	echo aarch64_be-unknown-linux-gnu

+ +	exit ;;

+      alpha:Linux:*:*)

+  	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in

+  	  EV5)   UNAME_MACHINE=alphaev5 ;;

+ --- a/config.sub	2006-04-19 16:46:22.000000000 -0400

+ +++ b/config.sub	2021-07-04 19:34:44.072681790 -0400

+ @@ -228,6 +228,7 @@

+  	# Some are omitted here because they have special meanings below.

+  	1750a | 580 \

+  	| a29k \

+ +	| aarch64 | aarch64_be \

+  	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \

+  	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \

+  	| am33_2.0 \

+ @@ -301,6 +302,7 @@

+  	# Recognize the basic CPU types with company name.

+  	580-* \

+  	| a29k-* \

+ +	| aarch64-* | aarch64_be-* \

+  	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \

+  	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \

+  	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \

file modified
+6 -3
@@ -2,7 +2,7 @@ 

  

  Name:           xar

  Version:        1.8.0.%{subversion}

- Release:        8%{?dist}

+ Release:        9%{?dist}

  Summary:        The eXtensible ARchiver

  License:        BSD

  URL:            https://opensource.apple.com/source/xar
@@ -15,8 +15,6 @@ 

  BuildRequires:  bzip2-devel

  BuildRequires:  gawk

  BuildRequires:  autoconf

- ExcludeArch:    aarch64

- ExcludeArch:    ppc64le

  

  

  #First 4 patches taken from Gentoo Xar package. To make Xar more suitable for Linux systems
@@ -27,6 +25,7 @@ 

  Patch3:         xar-1.8-openssl-1.1.patch

  

  Patch4:         xar-1.8-Add-OpenSSL-To-Configuration.patch

+ Patch5:         xar-1.8-gnuconfig.patch

  

  

  %description
@@ -56,6 +55,7 @@ 

  %patch2 -p1

  %patch3 -p1

  %patch4 -p1

+ %patch5 -p1

  sed 's:-Wl,-rpath,::g' -i configure.ac #No rpath

  sed 's:filetree.h:../lib/filetree.h:g' -i src/xar.c #Fix path

  sed 's:util.h:../lib/util.h:g' -i src/xar.c #Fix path
@@ -91,6 +91,9 @@ 

  

  

  %changelog

+ * Mon Jan 16 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 1.8.0.417.1-9

+ - Enable build on aarch64, ppc64le

+ 

  * Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0.417.1-8

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

  

Because this package uses only autoconf without automake or libtool, config.guess and config.sub aren't updated automatically. Because the bundled version is very old, it doesn't know about these new architectures.

Scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=71313404

rebased onto a441a3e

a year ago

Pull-Request has been merged by yselkowitz

a year ago
Metadata