pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/58961: 'make print-PLIST' emits 'No such file or directory' when directories contain spaces
Can you please try the attached patch and see if it helps?
diff --git a/mk/plist/print-plist.mk b/mk/plist/print-plist.mk
index a41caa2ededa..1ff5af440f4b 100644
--- a/mk/plist/print-plist.mk
+++ b/mk/plist/print-plist.mk
@@ -138,6 +138,7 @@ print-PLIST:
/^man\// { sub("\\.gz$$", ""); } \
{ print $$0; }'
${RUN}\
+ saveIFS=$$IFS; IFS=$$(printf '\n'); \
for i in `${_PRINT_PLIST_DIRS_CMD} \
| ${AWK} ' \
${EARLY_PRINT_PLIST_AWK} \
@@ -154,8 +155,9 @@ print-PLIST:
/^${PKGINFODIR:S|/|\\/|g}$$/ { next; } \
{ print $$0; }'` ; \
do \
- if [ `${LS} -la ${DESTDIR}${PREFIX}/$$i | ${WC} -l` = 3 ]; then \
- ${ECHO} @pkgdir $$i | ${AWK} ' \
+ IFS=$$saveIFS; \
+ if [ `${LS} -la ${DESTDIR}${PREFIX}/"$$i" | ${WC} -l` = 3 ]; then \
+ ${ECHO} @pkgdir "$$i" | ${AWK} ' \
${PRINT_PLIST_AWK} \
{ print $$0; }' ; \
fi ; \
Home |
Main Index |
Thread Index |
Old Index