pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/ap2-python ap2-python: Adjust optimization to be c...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/781dca901cf3
branches:  trunk
changeset: 418159:781dca901cf3
user:      leot <leot%pkgsrc.org@localhost>
date:      Thu Nov 21 11:40:37 2019 +0000

description:
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!

diffstat:

 www/ap2-python/Makefile |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r a6e41395dda7 -r 781dca901cf3 www/ap2-python/Makefile
--- a/www/ap2-python/Makefile   Thu Nov 21 06:48:38 2019 +0000
+++ b/www/ap2-python/Makefile   Thu Nov 21 11:40:37 2019 +0000
@@ -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 @@
 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