Bug 187628 - audio/py-eyed3 fails to build because of hard-coded reference to py-setuptools
Summary: audio/py-eyed3 fails to build because of hard-coded reference to py-setuptools
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: Ruslan Makhmatkhanov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-16 05:30 UTC by bruce
Modified: 2014-04-05 16:50 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bruce 2014-03-16 05:30:00 UTC
py-eyed3 has a hardcoded reference to py-setuptools which causes it to try to install py-setuptools instead of using py-setuptools27

make
===>  License GPLv2 accepted by the user
===>  Found saved configuration for py27-eyed3-0.6.18_1
===>   py27-eyed3-0.6.18_1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by py27-eyed3-0.6.18_1 for building
===>  Extracting for py27-eyed3-0.6.18_1
=> SHA256 Checksum OK for eyeD3-0.6.18.tar.gz.
===>  Patching for py27-eyed3-0.6.18_1
/usr/bin/sed -i.bak -e 's,PYTHON="",,g' -e 's,/usr/local,/usr/local,g'  -e 's,2\\\.\[23456789\]\\\.,2.[23456789],g'  /usr/ports/audio/py-eyed3/work/eyeD3-0.6.18/configure
/usr/bin/sed -i.bak -e 's,\(setup.py build\),${SETUP_COMMAND} build ${SETUP_ARGS_BUILD},g'  -e 's,\(setup.py install\),${SETUP_COMMAND} install ${SETUP_ARGS_INSTALL} ,g'  -e 's,^docdir:=.*,docdir:=/usr/ports/audio/py-eyed3/work/stage/usr/local/share/doc/py27-eyed3,g'  /usr/ports/audio/py-eyed3/work/eyeD3-0.6.18/Makefile.in
===>   py27-eyed3-0.6.18_1 depends on package: py27-setuptools>0 - not found
pkg-static: No package(s) matching py27-setuptools
===>    Verifying install for py27-setuptools>0 in /usr/ports/devel/py-setuptools
===>  License PSFL accepted by the user
===>   py27-setuptools-2.0.1 depends on file: /usr/local/sbin/pkg - found
..
===>  Installing for py27-setuptools-2.0.1
===>  Checking if devel/py-setuptools already installed
===>   Registering installation for py27-setuptools-2.0.1 as automatic
Installing py27-setuptools-2.0.1...pkg-static: py27-setuptools-2.0.1 conflicts with py27-setuptools27-2.0.1 (installs files into the same place).  Problematic file: /usr/local/lib/python2.7/site-packages/easy-install.pth.dist
*** [fake-pkg] Error code 70

Stop in /usr/ports/devel/py-setuptools.
*** [build-depends] Error code 1

Stop in /usr/ports/audio/py-eyed3.
*** [build] Error code 1

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

How-To-Repeat: Install python27 and devel/py-setuptools27 and then attempt to build audio/py-eyed3
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-03-16 05:30:05 UTC
Responsible Changed
From-To: freebsd-ports-bugs->rm

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2014-04-05 16:40:38 UTC
Author: rm
Date: Sat Apr  5 15:40:34 2014
New Revision: 350240
URL: http://svnweb.freebsd.org/changeset/ports/350240
QAT: https://qat.redports.org/buildarchive/r350240/

Log:
  audio/py-eyed3: unbreak, simplify this port a bit
  
  PR:		187628
  Reported by:	Bruce Albrecht <bruce@freebsd.zuhause.org>

Deleted:
  head/audio/py-eyed3/pkg-plist
Modified:
  head/audio/py-eyed3/Makefile

Modified: head/audio/py-eyed3/Makefile
==============================================================================
--- head/audio/py-eyed3/Makefile	Sat Apr  5 15:28:06 2014	(r350239)
+++ head/audio/py-eyed3/Makefile	Sat Apr  5 15:40:34 2014	(r350240)
@@ -14,37 +14,20 @@ COMMENT=	Python module for processing ID
 
 LICENSE=	GPLv2
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>0:${PORTSDIR}/devel/py-setuptools
-
-USE_PYTHON=	2
-USES=		gmake
-GNU_CONFIGURE=	yes
-CONFIGURE_ENV=	PYTHON="${PYTHON_CMD}"
-MAKE_ENV=	SETUP_ARGS_BUILD="${PYDISTUTILS_BUILDARGS}" \
-		SETUP_ARGS_INSTALL="${PYDISTUTILS_INSTALLARGS}" \
-		SETUP_COMMAND="${PYDISTUTILS_SETUP:S,",\",g}"
+USE_PYTHON=		2
+USE_PYDISTUTILS=	yes
+PYDISTUTILS_AUTOPLIST=	yes
+USES=			gmake
+GNU_CONFIGURE=		yes
 
 DOCSDIR=	${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
-PORTDOCS=	AUTHORS COPYING.gz ChangeLog.gz README
-
-INSTALLS_EGGINFO=	yes
-PYDISTUTILS_PKGNAME=	eyeD3
-
-OPTIONS_DEFINE=	DOCS
-
-.include <bsd.port.options.mk>
+PORTDOCS=	AUTHORS ChangeLog README
+PLIST_FILES+=	bin/eyeD3 man/man1/eyeD3.1.gz
 
-post-patch:
-	${REINPLACE_CMD} -e 's,PYTHON="",,g' -e 's,/usr/local,${LOCALBASE},g' \
-		-e 's,2\\\.\[23456789\]\\\.,2.[23456789],g' \
-		${WRKSRC}/configure
-	${REINPLACE_CMD} -e 's,\(setup.py build\),$${SETUP_COMMAND} build $${SETUP_ARGS_BUILD},g' \
-		-e 's,\(setup.py install\),$${SETUP_COMMAND} install $${SETUP_ARGS_INSTALL} ,g' \
-		-e 's,^docdir:=.*,docdir:=${STAGEDIR}${DOCSDIR},g' \
-		${WRKSRC}/Makefile.in
-.if ! ${PORT_OPTIONS:MDOCS}
-	${REINPLACE_CMD} -e 's,.*docdir.*,#,g' \
-		${WRKSRC}/Makefile.in
-.endif
+post-install:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_MAN} ${WRKSRC}/doc/eyeD3.1 ${STAGEDIR}${MANPREFIX}/man/man1
+	${INSTALL_SCRIPT} ${WRKSRC}/bin/eyeD3 ${STAGEDIR}/${PREFIX}/bin
 
 .include <bsd.port.mk>
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2014-04-05 16:43:18 UTC
State Changed
From-To: open->closed

Fixed, thanks for reporting!