pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Consider adding www/py-autoban/ALTERNATIVES



Hi,

www/py-autoban installs $PREFIX/bin/wamp which makes it conflicting with itself built against different version of python.

Please consider adding ALTERNATIVES file. The following patch works for me:

diff -N -ur a/www/py-autobahn/ALTERNATIVES b/www/py-autobahn/ALTERNATIVES
--- a/www/py-autobahn/ALTERNATIVES      1970-01-01 01:00:00.000000000 +0100
+++ b/www/py-autobahn/ALTERNATIVES      2020-07-31 13:47:06.728828000 +0200
@@ -0,0 +1 @@
+bin/wamp @PREFIX@/bin/wamp-@PYVERSSUFFIX@
diff -N -ur a/www/py-autobahn/Makefile b/www/py-autobahn/Makefile
--- a/www/py-autobahn/Makefile  2020-07-31 13:47:28.979029000 +0200
+++ b/www/py-autobahn/Makefile  2020-07-31 13:47:06.728828000 +0200
@@ -22,5 +22,8 @@
 
 PYTHON_VERSIONS_INCOMPATIBLE=  27
 
+post-install:
+       cd ${DESTDIR}${PREFIX}/bin && ${MV} wamp wamp-${PYVERSSUFFIX}
+
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -N -ur a/www/py-autobahn/PLIST b/www/py-autobahn/PLIST
--- a/www/py-autobahn/PLIST     2020-07-31 13:47:28.979029000 +0200
+++ b/www/py-autobahn/PLIST     2020-07-31 13:47:06.728828000 +0200
@@ -1,5 +1,5 @@
 @comment $NetBSD: PLIST,v 1.16 2020/01/23 14:33:18 adam Exp $
-bin/wamp
+bin/wamp-${PYVERSSUFFIX}
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt


Thank you.

--
Aleksej Lebedev


Home | Main Index | Thread Index | Old Index