ports/151761: [maintainer] x11-themes/lxappearance fix build for ${OSVERSION} < 800000

Pawel Pekala c0rn at o2.pl
Tue Oct 26 19:20:08 UTC 2010


>Number:         151761
>Category:       ports
>Synopsis:       [maintainer] x11-themes/lxappearance fix build for ${OSVERSION} < 800000
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 26 19:20:07 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Pawel Pekala
>Release:        FreeBSD 8.1-RELEASE i386
>Organization:
>Environment:


System: FreeBSD 8.1-RELEASE #2: Sat Aug 21 18:46:54 CEST 2010
    corn at caprica.slowicza.org:/usr/obj/usr/src/sys/GENERIC



>Description:


- fix build for ${OSVERSION} < 800000


>How-To-Repeat:





>Fix:


--- lxappearance-0.5.0.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/x11-themes/lxappearance/Makefile /home/corn/devel/lxappearance/Makefile
--- /usr/ports/x11-themes/lxappearance/Makefile	2010-10-20 20:09:22.000000000 +0200
+++ /home/corn/devel/lxappearance/Makefile	2010-10-26 21:04:21.000000000 +0200
@@ -13,12 +13,19 @@
 MAINTAINER=	c0rn at o2.pl
 COMMENT=	A desktop-independent theme switcher for GTK+
 
+LICENSE=	GPLv2
+
 USE_GNOME=	gnomehack gtk20 intlhack
 USE_GETTEXT=	yes
 USE_GMAKE=	yes
 GNU_CONFIGURE=	yes
 MAKE_JOBS_SAFE=	yes
 
-LICENSE=	GPLv2
+.include <bsd.port.pre.mk>
+
+# earlier versions don't have mkdtemp(3) in stdlib.h
+.if ${OSVERSION} < 800000
+EXTRA_PATCHES+=	${FILESDIR}/extra-src-utils.c
+.endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff -ruN --exclude=CVS /usr/ports/x11-themes/lxappearance/files/extra-src-utils.c /home/corn/devel/lxappearance/files/extra-src-utils.c
--- /usr/ports/x11-themes/lxappearance/files/extra-src-utils.c	1970-01-01 01:00:00.000000000 +0100
+++ /home/corn/devel/lxappearance/files/extra-src-utils.c	2010-10-26 20:55:48.000000000 +0200
@@ -0,0 +1,11 @@
+--- src/utils.c.orig	2010-10-26 20:54:31.000000000 +0200
++++ src/utils.c	2010-10-26 20:55:09.000000000 +0200
+@@ -27,7 +27,7 @@
+ #include <sys/wait.h>
+ #include <stdlib.h>
+ #include <glib/gstdio.h>
+-
++#include <unistd.h>
+ #include "icon-theme.h"
+ 
+ static void on_pid_exit(GPid pid, gint status, gpointer user_data)
--- lxappearance-0.5.0.patch ends here ---



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



More information about the freebsd-ports-bugs mailing list