Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Jan 2007 10:24:15 GMT
From:      "R.Mahmatkhanov"<R.Mahmatkhanov@REMOVE_THIS.SKYLINK.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/107423: [PATCH] audio/py-xmms2 is broken. 
Message-ID:  <200701021024.l02AOFE1053504@www.freebsd.org>
Resent-Message-ID: <200701021030.l02AULfh090583@freefall.freebsd.org>

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

>Number:         107423
>Category:       ports
>Synopsis:       [PATCH] audio/py-xmms2 is broken.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 02 10:30:16 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     R.Mahmatkhanov
>Release:        6.2
>Organization:
SkyLink
>Environment:
FreeBSD 6.2-PRERELEASE i386
>Description:
audio/py-xmms2 is not build. I think that it is some mdns/avahi conflict. scons script trying to install xmms2-mdns-launcher.sh from different locations. I've attached patch, that fix this, but i dont yet know how to modify port Makefile for this patch :)

===>  Building for py24-xmms2-0.2.d.8_1
scons: Reading SConscript files ...
git-rev-parse: not found
Checking for working C compiler... yes
Checking for C header file CoreFoundation/CoreFoundation.h... no
Checking for glib-2.0  ... yes
Checking for glib-2.0 >= 2.6.0  ... yes
Checking for avahi-client  ... yes
Checking for avahi-glib  ... yes
Checking for C header file dns_sd.h... yes
Checking for DNSServiceRegister() in C library dns_sd... yes

scons: warning: Two different environments were specified for target //usr/local/share/xmms2/scripts/startup.d/xmms2-mdns-launcher.sh,
        but they appear to have the same action: installFunc(target, source, env)
File "/usr/ports/audio/py-xmms2/work/xmms2-0.2DrHouse/xmmsenv.py", line 185, in Install

scons: *** Multiple ways to build the same target were specified for: //usr/local/share/xmms2/scripts/startup.d/xmms2-mdns-launcher.sh  (from ['src/clients/mdns/avahi/xmms2-mdns-launcher.sh'] and from ['src/clients/mdns/dns_sd/xmms2-mdns-launcher.sh'])
File "/usr/ports/audio/py-xmms2/work/xmms2-0.2DrHouse/xmmsenv.py", line 185, in Install
*** Error code 2

Stop in /usr/ports/audio/py-xmms2.

>How-To-Repeat:
Try to build audio/py-xmms2
>Fix:
# cd /usr/ports/audio/py-xmms2
# make extract
# cd work/xmms2-0.2DrHouse/
# patch < mypatch.diff
# make build


Patch attached with submission follows:

*** /usr/ports/audio/py-xmms2/work/xmms2-0.2DrHouse/xmmsenv.py	Sat Dec  2 23:01:08 2006
--- xmmsenv.py	Tue Jan  2 13:01:48 2007
***************
*** 182,187 ****
--- 182,191 ----
  
  	def Install(self, target, source):
  		target = os.path.normpath(self.installdir + target)
+                 # There is could be some way to choose single option: mdns or avahi, 
+                 # but i dont really know how to do it. So, this dirty hack enables
+                 # build with avahi and fix port building. 
+ 		if source == 'src/clients/mdns/dns_sd/xmms2-mdns-launcher.sh': return
  		SCons.Environment.Environment.Install(self, target, source)
  		self.install_targets.append(target)
  

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



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