pkgsrc-Changes archive

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

CVS commit: pkgsrc/www/ap2-python



Module Name:    pkgsrc
Committed By:   leot
Date:           Thu Nov 21 11:40:37 UTC 2019

Modified Files:
        pkgsrc/www/ap2-python: Makefile

Log Message:
ap2-python: Adjust optimization to be consistent with other Python packages

setup.py is invoked internally hardcoding `--optimize 2' that leads to PLIST
mismatches when Python 3 is used.  Substitute it to `--optimize 1' to be
consistent with other Python packages.

Thanks to <martin> for spotting this problem and testing this patch!


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 pkgsrc/www/ap2-python/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/www/ap2-python/Makefile
diff -u pkgsrc/www/ap2-python/Makefile:1.35 pkgsrc/www/ap2-python/Makefile:1.36
--- pkgsrc/www/ap2-python/Makefile:1.35 Mon Jan  1 10:23:07 2018
+++ pkgsrc/www/ap2-python/Makefile      Thu Nov 21 11:40:37 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.35 2018/01/01 10:23:07 wiz Exp $
+# $NetBSD: Makefile,v 1.36 2019/11/21 11:40:37 leot Exp $
 
 DISTNAME=      mod_python-3.5.0
 PKGNAME=       ${APACHE_PKG_PREFIX}-${PYPKGPREFIX}-${DISTNAME:S/mod_//}
@@ -20,6 +20,12 @@ GNU_CONFIGURE=               yes
 CONFIGURE_ARGS+=       --with-apxs=${APXS:Q}
 CONFIGURE_ARGS+=       --with-python=${PYTHONBIN:Q}
 
+SUBST_CLASSES+=                        optimization
+SUBST_STAGE.optimization=      pre-configure
+SUBST_MESSAGE.optimization=    Adjust optimization
+SUBST_FILES.optimization=      dist/Makefile.in
+SUBST_SED.optimization=                -e 's,--optimize 2,--optimize 1,g'
+
 INSTALLATION_DIRS+=    bin
 PY_PATCHPLIST=         yes
 



Home | Main Index | Thread Index | Old Index