ports/184331: [patch] misc/compat7x enable sparc64

Craig Butler craig001 at lerwick.hopto.org
Wed Nov 27 16:10:02 UTC 2013


>Number:         184331
>Category:       ports
>Synopsis:       [patch] misc/compat7x enable sparc64
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 27 16:10:02 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Craig Butler
>Release:        9.2-RELEASE sparc64
>Organization:
>Environment:
FreeBSD blueeye.lerwick.hopto.org 9.2-RELEASE FreeBSD 9.2-RELEASE #0: Tue Oct  8 16:09:50 BST 2013     root at blueeye.lerwick.hopto.org:/usr/obj/usr/src/sys/GENERIC  sparc64
>Description:
sparc64 support was dropped from misc/compat7x, when trying to build currently it errors out with "...only for i386 amd64, while you are running sparc64"

After discussions with Renato(garga@) he has walked me through how to make distfile for sparc64.

7.4-RELEASE base files where taken from ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/sparc64/7.4-RELEASE/base and installed into a chroot.  The libs where then lifted from there using compat7x-sparc64-7.3.703000.201008.tar.bz2 as a template.  

111 files in total.

I have updated the port Makefile, distinfo, and created a pkg-plist.sparc64 to enable build on sparc64.

I have done serveral test builds, installs and uninstalls.

The sparc64 distfile is available from http://bsdtec.com/freebsd/distfiles/compat7x-sparc64-7.4.704000.201310.1.tar.xz
>How-To-Repeat:
Try to build misc/compat7x from ports.
>Fix:
diff -ruN misc/compat7x.orig/Makefile misc/compat7x/Makefile
--- misc/compat7x.orig/Makefile 2013-10-31 23:38:29.000000000 +0000
+++ misc/compat7x/Makefile      2013-11-27 14:50:27.821789350 +0000
@@ -15,7 +15,7 @@

 USE_XZ=                yes
 NO_BUILD=      yes
-ONLY_FOR_ARCHS=        i386 amd64
+ONLY_FOR_ARCHS=        i386 amd64 sparc64
 PLIST=         ${PKGDIR}/pkg-plist.${ARCH}
 TARGET_DIR=    ${PREFIX}/lib/compat
 TARGET32_DIR=  ${PREFIX}/lib32/compat
diff -ruN misc/compat7x.orig/distinfo misc/compat7x/distinfo
--- misc/compat7x.orig/distinfo 2013-10-16 11:47:01.000000000 +0100
+++ misc/compat7x/distinfo      2013-11-27 15:19:10.510785336 +0000
@@ -2,3 +2,5 @@
 SIZE (compat7x-amd64-7.4.704000.201310.1.tar.xz) = 5140472
 SHA256 (compat7x-i386-7.4.704000.201310.1.tar.xz) = 753ae8186357dc78762a323ef446202dd6f4cd0003fd5a09f18cda492fd7233e
 SIZE (compat7x-i386-7.4.704000.201310.1.tar.xz) = 2601240
+SHA256 (compat7x-sparc64-7.4.704000.201310.1.tar.xz) = 072fd03d8bf02736d965205fe0c8c0884090ea9cdf017bc542f66408d562788a
+SIZE (compat7x-sparc64-7.4.704000.201310.1.tar.xz) = 2322836
diff -ruN misc/compat7x.orig/pkg-plist.sparc64 misc/compat7x/pkg-plist.sparc64
--- misc/compat7x.orig/pkg-plist.sparc64        1970-01-01 01:00:00.000000000 +0100
+++ misc/compat7x/pkg-plist.sparc64     2013-11-27 15:15:18.303778597 +0000
@@ -0,0 +1,112 @@
+lib/compat/libalias.so.6
+lib/compat/libarchive.so.4
+lib/compat/libasn1.so.9
+lib/compat/libavl.so.1
+lib/compat/libbegemot.so.3
+lib/compat/libbluetooth.so.3
+lib/compat/libbsdxml.so.3
+lib/compat/libbsm.so.2
+lib/compat/libbsnmp.so.4
+lib/compat/libbz2.so.3
+lib/compat/libcalendar.so.4
+lib/compat/libcam.so.4
+lib/compat/libcom_err.so.4
+lib/compat/libcrypt.so.4
+lib/compat/libcrypto.so.5
+lib/compat/libctf.so.1
+lib/compat/libdevinfo.so.4
+lib/compat/libdevstat.so.6
+lib/compat/libdialog.so.6
+lib/compat/libdtrace.so.1
+lib/compat/libdwarf.so.1
+lib/compat/libedit.so.6
+lib/compat/libfetch.so.5
+lib/compat/libform.so.4
+lib/compat/libformw.so.4
+lib/compat/libftpio.so.7
+lib/compat/libgeom.so.4
+lib/compat/libgnuregex.so.4
+lib/compat/libgpib.so.2
+lib/compat/libgssapi.so.9
+lib/compat/libgssapi_krb5.so.9
+lib/compat/libhdb.so.9
+lib/compat/libhistory.so.7
+lib/compat/libipsec.so.3
+lib/compat/libipx.so.4
+lib/compat/libkadm5clnt.so.9
+lib/compat/libkadm5srv.so.9
+lib/compat/libkafs5.so.9
+lib/compat/libkiconv.so.3
+lib/compat/libkrb5.so.9
+lib/compat/libkvm.so.4
+lib/compat/libmagic.so.3
+lib/compat/libmd.so.4
+lib/compat/libmemstat.so.2
+lib/compat/libmenu.so.4
+lib/compat/libmenuw.so.4
+lib/compat/libmilter.so.4
+lib/compat/libmp.so.6
+lib/compat/libncurses.so.7
+lib/compat/libncursesw.so.7
+lib/compat/libnetgraph.so.3
+lib/compat/libngatm.so.3
+lib/compat/libnvpair.so.1
+lib/compat/libobjc.so.3
+lib/compat/libopie.so.5
+lib/compat/libpam.so.4
+lib/compat/libpanel.so.4
+lib/compat/libpanelw.so.4
+lib/compat/libpcap.so.5
+lib/compat/libpmc.so.4
+lib/compat/libproc.so.1
+lib/compat/libradius.so.3
+lib/compat/libreadline.so.7
+lib/compat/libroken.so.9
+lib/compat/librpcsvc.so.4
+lib/compat/libsbuf.so.4
+lib/compat/libsdp.so.3
+lib/compat/libssh.so.4
+lib/compat/libssl.so.5
+lib/compat/libtacplus.so.3
+lib/compat/libufs.so.4
+lib/compat/libugidfw.so.3
+lib/compat/libumem.so.1
+lib/compat/libusbhid.so.3
+lib/compat/libutil.so.7
+lib/compat/libuutil.so.1
+lib/compat/libwrap.so.5
+lib/compat/libypclnt.so.3
+lib/compat/libz.so.4
+lib/compat/libzfs.so.1
+lib/compat/libzpool.so.1
+lib/compat/pam_chroot.so.4
+lib/compat/pam_deny.so.4
+lib/compat/pam_echo.so.4
+lib/compat/pam_exec.so.4
+lib/compat/pam_ftpusers.so.4
+lib/compat/pam_group.so.4
+lib/compat/pam_guest.so.4
+lib/compat/pam_krb5.so.4
+lib/compat/pam_ksu.so.4
+lib/compat/pam_lastlog.so.4
+lib/compat/pam_login_access.so.4
+lib/compat/pam_nologin.so.4
+lib/compat/pam_opie.so.4
+lib/compat/pam_opieaccess.so.4
+lib/compat/pam_passwdqc.so.4
+lib/compat/pam_permit.so.4
+lib/compat/pam_radius.so.4
+lib/compat/pam_rhosts.so.4
+lib/compat/pam_rootok.so.4
+lib/compat/pam_securetty.so.4
+lib/compat/pam_self.so.4
+lib/compat/pam_ssh.so.4
+lib/compat/pam_tacplus.so.4
+lib/compat/pam_unix.so.4
+lib/compat/snmp_atm.so.5
+lib/compat/snmp_bridge.so.5
+lib/compat/snmp_hostres.so.5
+lib/compat/snmp_mibII.so.5
+lib/compat/snmp_netgraph.so.5
+lib/compat/snmp_pf.so.5
+ at dirrmtry lib/compat


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list