Bug 149122 - [PATCH] audio/py-shout: restrict Python dependency to 2.5+
Summary: [PATCH] audio/py-shout: restrict Python dependency to 2.5+
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-python (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-30 19:20 UTC by Greg Larkin
Modified: 2010-08-18 15:10 UTC (History)
1 user (show)

See Also:


Attachments
py-shout-0.2.1.patch (446 bytes, patch)
2010-07-30 19:20 UTC, Greg Larkin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Larkin freebsd_committer freebsd_triage 2010-07-30 19:20:05 UTC
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
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2010-07-30 19:20:15 UTC
Responsible Changed
From-To: freebsd-ports-bugs->freebsd-python

freebsd-python@ wants this port PRs (via the GNATS Auto Assign Tool)
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2010-07-30 19:20:19 UTC
Maintainer of audio/py-shout,

Please note that PR ports/149122 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/149122

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 3 Edwin Groothuis freebsd_committer freebsd_triage 2010-07-30 19:20:22 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 4 Greg Larkin freebsd_committer freebsd_triage 2010-08-18 15:06:42 UTC
State Changed
From-To: feedback->closed

Committed after maintainer timeout.
Comment 5 dfilter service freebsd_committer freebsd_triage 2010-08-18 15:06:43 UTC
glarkin     2010-08-18 14:06:34 UTC

  FreeBSD ports repository

  Modified files:
    audio/py-shout       Makefile 
  Log:
  - Restrict Python version to 2.5+ to avoid compilation errors
  
  PR:             ports/149122
  Submitted by:   glarkin
  Approved by:    duchateau.olivier@gmail.com (maintainer; timeout - 20 days)
  
  Revision  Changes    Path
  1.2       +1 -1      ports/audio/py-shout/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"