Page MenuHomeFreeBSD

Make Perl behave and install files with u+w.
AbandonedPublic

Authored by mat on Jun 19 2015, 12:25 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Mar 9, 2:09 AM
Unknown Object (File)
Sat, Mar 8, 6:31 AM
Unknown Object (File)
Thu, Mar 6, 8:11 PM
Unknown Object (File)
Mon, Mar 3, 11:02 AM
Unknown Object (File)
Mon, Mar 3, 3:52 AM
Unknown Object (File)
Mon, Mar 3, 3:19 AM
Unknown Object (File)
Wed, Feb 26, 11:16 PM
Unknown Object (File)
Feb 21 2025, 3:56 AM

Details

Reviewers
None
Group Reviewers
Perl

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

mat retitled this revision from to Make Perl behave and install files with u+w..
mat updated this object.
mat edited the test plan for this revision. (Show Details)
mat added a reviewer: Perl.
mat set the repository for this revision to rP FreeBSD ports repository.

+1 to the spirit. Though what user would actually want to edit these installed files? Only developers likely. Though it does match everything else.

+1 to the spirit. Though what user would actually want to edit these installed files? Only developers likely. Though it does match everything else.

Well, the various INSTALL_* macros use 644/755 modes, Perl ignores those, and then, we have to do stupid stuff to go around it, like:

post-install:
        ${CHMOD} u+w ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Set/Object/Object.so
        ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Set/Object/Object.so
        ${CHMOD} u-w ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Set/Object/Object.so