diff options
author | crees <crees@FreeBSD.org> | 2011-09-18 16:33:15 +0800 |
---|---|---|
committer | crees <crees@FreeBSD.org> | 2011-09-18 16:33:15 +0800 |
commit | d26edbc5b934891782654396677b9cc282a7c5aa (patch) | |
tree | 0d19346291a6994fcd7ce3895010ca45ae228ce7 /lang/python26 | |
parent | a2b4ee9a241fac4f72fca3eee0ae788ab9577a54 (diff) | |
download | freebsd-ports-gnome-d26edbc5b934891782654396677b9cc282a7c5aa.tar.gz freebsd-ports-gnome-d26edbc5b934891782654396677b9cc282a7c5aa.tar.zst freebsd-ports-gnome-d26edbc5b934891782654396677b9cc282a7c5aa.zip |
Handle built world without NIS more gracefully; detect missing ypcat and
disable NIS module.
PR: ports/115940
Submitted by: Alex Deiter <tiamat@komi.mts.ru>
Reviewed by: bf
Diffstat (limited to 'lang/python26')
-rw-r--r-- | lang/python26/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lang/python26/Makefile b/lang/python26/Makefile index 8f1e32eb9c96..8f742fcc5e9b 100644 --- a/lang/python26/Makefile +++ b/lang/python26/Makefile @@ -131,8 +131,10 @@ PLIST_SUB+= 32BIT_ONLY="" CFLAGS+= -DPYTHON_DEFAULT_RECURSION_LIMIT=900 .endif -.if !exists(/usr/bin/ypcat) # the world with NO_NIS +# See http://bugs.freebsd.org/115940 +.if !exists(/usr/bin/ypcat) || defined(WITHOUT_NIS) # the world with NO_NIS PLIST_SUB+= NO_NIS="@comment " +WITHOUT_NIS?= detected .else PLIST_SUB+= NO_NIS="" .endif @@ -188,6 +190,11 @@ post-patch: @cd ${WRKSRC} && ${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/extra-patch-setup.py .endif .endif +.if defined(WITHOUT_NIS) + ${REINPLACE_CMD} -e \ + 's/disabled_module_list =[^]]*/&, "nis"/' \ + ${PATCH_WRKSRC}/setup.py +.endif post-configure: ${TAR} -C ${WRKSRC} -cf - . | ${TAR} -C ${SHARED_WRKSRC} -xf - |