bug-gawk
[Top][All Lists]
Advanced

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

[bug-gawk] Upgrading to gawk 4.1.1 fails when write access to prefix is


From: Ryan Schmidt
Subject: [bug-gawk] Upgrading to gawk 4.1.1 fails when write access to prefix is denied
Date: Fri, 18 Apr 2014 20:36:12 -0500

Greetings,

Upgrading gawk 4.1.0 to 4.1.1 fails during the "make install" part when using 
the DESTDIR variable to specify an alternate destination directory and denying 
access to other directories including PREFIX (which is what the MacPorts 
package management system does, to prevent rogue software from writing files 
where it shouldn’t):


/usr/bin/make  install-data-hook
make[4]: Entering directory 
`/opt/local/var/macports/build/_Users_rschmidt_macports_dports_lang_gawk/gawk/work/gawk-4.1.1/extension'
for i in filefuncs.la fnmatch.la fork.la inplace.la ordchr.la readdir.la 
readfile.la revoutput.la revtwoway.la rwarray.la testext.la time.la ; do \
                rm -f /opt/local/lib/gawk/$i ; \
        done
rm: /opt/local/lib/gawk/filefuncs.la: Permission denied
rm: /opt/local/lib/gawk/fnmatch.la: Permission denied
rm: /opt/local/lib/gawk/fork.la: Permission denied
rm: /opt/local/lib/gawk/inplace.la: Permission denied
rm: /opt/local/lib/gawk/ordchr.la: Permission denied
rm: /opt/local/lib/gawk/readdir.la: Permission denied
rm: /opt/local/lib/gawk/readfile.la: Permission denied
rm: /opt/local/lib/gawk/revoutput.la: Permission denied
rm: /opt/local/lib/gawk/revtwoway.la: Permission denied
rm: /opt/local/lib/gawk/rwarray.la: Permission denied
rm: /opt/local/lib/gawk/testext.la: Permission denied
rm: /opt/local/lib/gawk/time.la: Permission denied
make[4]: *** [install-data-hook] Error 1


Here’s my MacPorts bug report about this:

https://trac.macports.org/ticket/43406

Here’s the fix I committed, which I think is correct and should be applied to 
your upstream sources:

https://trac.macports.org/browser/trunk/dports/lang/gawk/files/patch-extensions-Makefile.in.diff?rev=119180

That patch is for extensions/Makefile.in; you’ll want to patch 
extensions/Makefile.am instead; see attachment.

Attachment: patch-extensions-Makefile.am.diff
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]