Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Jan 2006 12:01:12 -0500
From:      Frank Laszlo <laszlof@vonostingroup.com>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        freebsd-emulation@FreeBSD.org
Subject:   [PATCH]: x11-toolkits/linux-gtk2: distfile unfetchable
Message-ID:  <E1EyuCm-0000su-32@ritamari.vonostingroup.com>

next in thread | raw e-mail | index | archive | help

>Submitter-Id:	current-users
>Originator:	Frank Laszlo
>Organization:	
>Confidential:	no 
>Synopsis:	[PATCH]: x11-toolkits/linux-gtk2: distfile unfetchable
>Severity:	
>Priority:	
>Category:	ports
>Class:		
>Release:	FreeBSD 6.0-STABLE i386
>Environment:
System: FreeBSD ritamari.vonostingroup.com 6.0-STABLE FreeBSD 6.0-STABLE #0: Mon Nov 7 12:06:15 EST 2005 laszlof@ritamari.vonostingroup.com:/usr/obj/usr/src/sys/RITAMARI i386


	
>Description:
	The distfile for this port is unfetchable if ARCH=amd64. The reason for this is that the rpm packager decided to
	ARCH=x86_64 instead of amd64 in their naming convention. This patch will fix the issue.

>How-To-Repeat:
	cd ${PORTSDIR}/x11-toolkits/linux-gtk2 && make ARCH=amd64 fetch
>Fix:

	



--- linux-gtk2-amd64.diff begins here ---
diff -NrU3 linux-gtk2.orig/Makefile linux-gtk2/Makefile
--- linux-gtk2.orig/Makefile	Tue Jan 17 11:53:16 2006
+++ linux-gtk2/Makefile	Tue Jan 17 11:58:10 2006
@@ -30,8 +30,16 @@
 PLIST=		${PKGDIR}/pkg-plist
 USE_XLIB=	yes
 RESTRICTED=	"binaries under GNU LGPL without accompanying source"
-RPM_SET=	gtk2-${PORTVERSION}-4.fc3.3.${ARCH}.rpm
+RPM_SET=	gtk2-${PORTVERSION}-4.fc3.3.${ARCH_SUB}.rpm
 PLIST_SUB=	LIBVERSION="400.14" PORTVERSION="${PORTVERSION}"
+
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "amd64"
+ARCH_SUB=x86_64
+.else
+ARCH_SUB=${ARCH}
+.endif
 
 post-install:
 .for ii in gdk-pixbuf-query-loaders-32 gtk-demo gtk-query-immodules-2.0-32
--- linux-gtk2-amd64.diff ends here ---




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1EyuCm-0000su-32>