Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Jul 2010 14:17:52 -0400 (EDT)
From:      Greg Larkin <glarkin@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        duchateau.olivier@gmail.com
Subject:   ports/149122: [PATCH] audio/py-shout: restrict Python dependency to 2.5+
Message-ID:  <201007301817.o6UIHqrJ067188@fbsd70.entropy.prv>
Resent-Message-ID: <201007301820.o6UIK6r2056285@freefall.freebsd.org>

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

>Number:         149122
>Category:       ports
>Synopsis:       [PATCH] audio/py-shout: restrict Python dependency to 2.5+
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 30 18:20:05 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Greg Larkin
>Release:        FreeBSD 7.0-RELEASE i386
>Organization:
The FreeBSD Project
>Environment:
System: FreeBSD fbsd70.entropy.prv 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008
>Description:
The audio/py-shout build fails with the following compiler error when
Python 2.4 is forced as the default Python version:

# make PYTHON_VERSION=python2.4 PYTHON_DEFAULT_VERSION=python2.4
===>  WARNING: Vulnerability database out of date, checking anyway
===>  License check disabled, port has not defined LICENSE
===>  Extracting for py24-shout-0.2.1
=> MD5 Checksum OK for shout-python-0.2.1.tar.gz.
=> SHA256 Checksum OK for shout-python-0.2.1.tar.gz.
===>  Patching for py24-shout-0.2.1
===>   py24-shout-0.2.1 depends on file: /usr/local/bin/python2.4 - found
===>   py24-shout-0.2.1 depends on shared library: shout.5 - found
===>  Configuring for py24-shout-0.2.1
running config
===>  Building for py24-shout-0.2.1
running build
running build_ext
building 'shout' extension
creating build
creating build/temp.freebsd-7.0-RELEASE-i386-2.4
cc -fno-strict-aliasing -DNDEBUG -O2 -fno-strict-aliasing -pipe -D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x20000 -O2 -fno-strict-aliasing -pipe -fPIC -I/usr/local/include -I/usr/local/include/speex -I/usr/local/include/python2.4 -c shout.c -o build/temp.freebsd-7.0-RELEASE-i386-2.4/shout.o -D_THREAD_SAFE
shout.c: In function 'pshoutobj_set_metadata':
shout.c:442: error: 'Py_ssize_t' undeclared (first use in this function)
shout.c:442: error: (Each undeclared identifier is reported only once
shout.c:442: error: for each function it appears in.)
shout.c:442: error: expected ';' before 'i'
shout.c:453: error: 'i' undeclared (first use in this function)
shout.c: In function 'pshoutobj_set_audio_info':
shout.c:580: error: 'Py_ssize_t' undeclared (first use in this function)
shout.c:580: error: expected ';' before 'i'
shout.c:588: error: 'i' undeclared (first use in this function)
error: command 'cc' failed with exit status 1
*** Error code 1

Stop in /usr/home/glarkin/FreeBSD/ports/audio/py-shout.

The Py_ssize_t type is not supported in Python 2.4, so change the
USE_PYTHON line in the port Makefile to only allow 2.5+.

Port maintainer (duchateau.olivier@gmail.com) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- py-shout-0.2.1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/audio/py-shout/Makefile,v
retrieving revision 1.1
diff -u -u -r1.1 Makefile
--- Makefile	17 Oct 2009 07:10:22 -0000	1.1
+++ Makefile	30 Jul 2010 18:14:45 -0000
@@ -19,7 +19,7 @@
 
 EXAMPLESDIR=	${PREFIX}/share/examples/py-${PORTNAME}
 
-USE_PYTHON=		yes
+USE_PYTHON=		2.5+
 USE_PYDISTUTILS=	yes
 PYDISTUTILS_PKGNAME=	${PORTNAME}-python
 
--- py-shout-0.2.1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



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