Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Apr 2006 11:37:02 +0200
From:      Jean-Baptiste Quenot <jbq@caraldi.com>
To:        gnome@FreeBSD.org
Subject:   Wrong Bash dependency in devel/dbus
Message-ID:  <20060404093702.GG28452@vision.anyware>

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

--AqsLC8rIMeq19msA
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Dear dbus maintainer,

It seems like there is a wrong dependency on bash in devel/dbus:

BUILD_DEPENDS?= bash:${PORTSDIR}/shells/bash

That means bash anywhere in the PATH is OK, but it must be found
under /usr/local/bin.  On my system /bin/bash is a link to
/bin/sh.

But the best would be to remove the dependency completely, please
find the patch attached.
-- 
     Jean-Baptiste Quenot
aka  John Banana Qwerty
http://caraldi.com/jbq/

--AqsLC8rIMeq19msA
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=20060404-freebsd-dbus-kill-bash

diff -ru dbus.orig/Makefile dbus/Makefile
--- dbus.orig/Makefile	Thu Mar 16 00:14:27 2006
+++ dbus/Makefile	Tue Apr  4 11:36:03 2006
@@ -14,7 +14,6 @@
 MAINTAINER?=	gnome@FreeBSD.org
 COMMENT?=	A message bus system for inter-application communication
 
-BUILD_DEPENDS?=	bash:${PORTSDIR}/shells/bash
 LIB_DEPENDS?=	expat.6:${PORTSDIR}/textproc/expat2
 
 USE_GNOME?=	gnomehack glib20 libxml2
diff -ru dbus.orig/files/patch-tools_run-with-tmp-session-bus.sh dbus/files/patch-tools_run-with-tmp-session-bus.sh
--- dbus.orig/files/patch-tools_run-with-tmp-session-bus.sh	Tue Apr  4 11:27:56 2006
+++ dbus/files/patch-tools_run-with-tmp-session-bus.sh	Tue Apr  4 11:30:27 2006
@@ -1,8 +1,15 @@
---- tools/run-with-tmp-session-bus.sh.orig	Sat Apr  2 14:52:51 2005
-+++ tools/run-with-tmp-session-bus.sh	Sat Apr  2 14:53:05 2005
-@@ -1,4 +1,4 @@
+--- tools/run-with-tmp-session-bus.sh.orig	Thu Mar 17 18:48:29 2005
++++ tools/run-with-tmp-session-bus.sh	Tue Apr  4 11:29:40 2006
+@@ -1,10 +1,10 @@
 -#! /bin/bash
 +#! /bin/sh
  
  SCRIPTNAME=$0
  WRAPPED_SCRIPT=$1
+ shift
+ 
+-function die() 
++die() 
+ {
+     if ! test -z "$DBUS_SESSION_BUS_PID" ; then
+         echo "killing message bus "$DBUS_SESSION_BUS_PID >&2

--AqsLC8rIMeq19msA--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060404093702.GG28452>