From nobody@FreeBSD.org  Sat Nov 30 01:09:45 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 9DD75EA3
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 30 Nov 2013 01:09:45 +0000 (UTC)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 805DF1AD6
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 30 Nov 2013 01:09:45 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id rAU19jsZ068370
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 30 Nov 2013 01:09:45 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id rAU19jeW068362;
	Sat, 30 Nov 2013 01:09:45 GMT
	(envelope-from nobody)
Message-Id: <201311300109.rAU19jeW068362@oldred.freebsd.org>
Date: Sat, 30 Nov 2013 01:09:45 GMT
From: Craig Butler <craig001@lerwick.hopto.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] misc/compat9x enable sparc64
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         184379
>Category:       ports
>Synopsis:       [patch] misc/compat9x enable sparc64
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    garga
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 30 01:10:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Sat Nov 30 01:10:09 UTC 2013
>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@blueeye.lerwick.hopto.org:/usr/obj/usr/src/sys/GENERIC sparc64
>Description:
sparc64 support was dropped from misc/compat9x, when trying to build currently it errors out with "...only for i386 amd64, while you are running sparc64"

9.2-RELEASE files where taken from ftp://ftp.freebsd.org/pub/FreeBSD/releases/sparc64/9.2-RELEASE and installed into a chroot. The libs where then lifted from there using compat9x-i386-9.2.902000.201310.tar.xz as a reference.

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/compat9x-sparc64-9.2.902000.201310.tar.xz
>How-To-Repeat:
try to build misc/compat9x from ports on a sparc64 machine
>Fix:
see attached patch


Patch attached with submission follows:

diff -ruN misc/compat9x.orig/Makefile misc/compat9x/Makefile
--- misc/compat9x.orig/Makefile	2013-10-31 23:38:29.000000000 +0000
+++ misc/compat9x/Makefile	2013-11-30 00:25:05.584206420 +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/compat9x.orig/distinfo misc/compat9x/distinfo
--- misc/compat9x.orig/distinfo	2013-10-15 12:40:32.000000000 +0100
+++ misc/compat9x/distinfo	2013-11-30 00:32:47.573224106 +0000
@@ -2,3 +2,5 @@
 SIZE (compat9x-amd64-9.2.902000.201310.tar.xz) = 2925776
 SHA256 (compat9x-i386-9.2.902000.201310.tar.xz) = 72dde64e860996b2a8415bdaa8d42388491d3e4afff522ee79eb332c25d6984e
 SIZE (compat9x-i386-9.2.902000.201310.tar.xz) = 1539320
+SHA256 (compat9x-sparc64-9.2.902000.201310.tar.xz) = 83a7688992efe327f81e505144a1026d39bd25d23bd74fa10c8a0e40ef101661
+SIZE (compat9x-sparc64-9.2.902000.201310.tar.xz) = 1354076
diff -ruN misc/compat9x.orig/pkg-plist.sparc64 misc/compat9x/pkg-plist.sparc64
--- misc/compat9x.orig/pkg-plist.sparc64	1970-01-01 01:00:00.000000000 +0100
+++ misc/compat9x/pkg-plist.sparc64	2013-11-30 00:28:13.289219121 +0000
@@ -0,0 +1,22 @@
+lib/compat/libarchive.so.5
+lib/compat/libsupc++.so.1
+lib/compat/liblwres.so.80
+lib/compat/libdialog.so.7
+lib/compat/libroken.so.10
+lib/compat/libstdc++.so.6
+lib/compat/libasn1.so.10
+lib/compat/libcrypto.so.6
+lib/compat/libmd.so.5
+lib/compat/libssl.so.6
+lib/compat/libkadm5clnt.so.10
+lib/compat/libodialog.so.7
+lib/compat/libhx509.so.10
+lib/compat/libusb.so.2
+lib/compat/libheimntlm.so.10
+lib/compat/libkvm.so.5
+lib/compat/libkafs5.so.10
+lib/compat/libkrb5.so.10
+lib/compat/libftpio.so.8
+lib/compat/libhdb.so.10
+lib/compat/libkadm5srv.so.10
+@dirrmtry lib/compat


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->garga 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sat Nov 30 01:10:08 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=184379 
>Unformatted:
