From a498278ac2ecbe741a3c1b9bcdf705da91d2f533 Mon Sep 17 00:00:00 2001 From: marcus Date: Sun, 7 Mar 2010 20:12:26 +0000 Subject: Adjust the environment passed to brasero plugins so that programs like growisofs can spawn other programs found in ${LOCALBASE}. This should help DVD burning, but there still seems to be some kind of problem with the arguments passed to growisofs. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@13763 df743ca5-7f9a-e211-a948-0013205c9059 --- sysutils/brasero/Makefile | 7 ++++++- sysutils/brasero/files/patch-libbrasero-burn_burn-process.c | 10 ++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 sysutils/brasero/files/patch-libbrasero-burn_burn-process.c (limited to 'sysutils/brasero') diff --git a/sysutils/brasero/Makefile b/sysutils/brasero/Makefile index b855673a8..1a64e7199 100644 --- a/sysutils/brasero/Makefile +++ b/sysutils/brasero/Makefile @@ -3,10 +3,11 @@ # Whom: Michael Johnson # # $FreeBSD$ -# $MCom: ports/sysutils/brasero/Makefile,v 1.66 2010/02/10 21:18:37 kwm Exp $ +# $MCom: ports/sysutils/brasero/Makefile,v 1.67 2010/02/25 11:53:46 avl Exp $ PORTNAME= brasero PORTVERSION= 2.29.91 +PORTREVISION= 1 CATEGORIES= sysutils audio multimedia gnome MASTER_SITES= GNOME DIST_SUBDIR= gnome2 @@ -61,4 +62,8 @@ PLIST_SUB+= LIBBURNIA="" PLIST_SUB+= LIBBURNIA="@comment " .endif +post-patch: + @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ + ${WRKSRC}/libbrasero-burn/burn-process.c + .include diff --git a/sysutils/brasero/files/patch-libbrasero-burn_burn-process.c b/sysutils/brasero/files/patch-libbrasero-burn_burn-process.c new file mode 100644 index 000000000..b2b342271 --- /dev/null +++ b/sysutils/brasero/files/patch-libbrasero-burn_burn-process.c @@ -0,0 +1,10 @@ +--- libbrasero-burn/burn-process.c.orig 2010-03-07 15:07:48.000000000 -0500 ++++ libbrasero-burn/burn-process.c 2010-03-07 15:08:41.000000000 -0500 +@@ -609,6 +609,7 @@ brasero_process_start (BraseroJob *job, + gchar *envp [] = { "LANG=C", + "LANGUAGE=C", + "LC_ALL=C", ++ "PATH=/bin:/sbin:/usr/bin:/usr/sbin:%%LOCALBASE%%/bin:%%LOCALBASE%%/sbin", + NULL}; + + if (priv->pid) -- cgit v1.2.3