${INSTALL_DATA} problems

Aristedes Maniatis amaniatis at apache.org
Thu Sep 8 22:29:18 UTC 2016


Thanks Mathieu

On 8/09/2016 10:47pm, Mathieu Arnold wrote:
> Like Matthew said, INSTALL_DATA is for installing one file, not a
> directory hierarchy, this is done using COPYTREE_SHARE. As a side not,
> we never use CP -R to install files.

I'm trying to do my best to follow the rules, but the rules are very hard to find. For example if the docs mentioned the one file thing for INSTALL_DATA that would be helpful. Or if the error message was clear... I also don't understand the need for a recursive COPYTREE_SHARE which I believe requires a "cd" first, and a non-recursive INSTALL_*. Maybe the Makefile language will become clearer to me one day, but I've been using FreeBSD since 4.0 and it hasn't clicked yet.

 
> Now, I'm seeing something else that is a bad idea, it is using the -o
> flag.  Ports must build as a regular user.  A regular user will not be
> able to change the owner of the files.

Then why does INSTALL_DATA have an -o flag at all? I copied this idea from another port I found.

>  This must be done in the
> pkg-plist file, using @owner/@group as described in the Porter's
> Handbook:
> https://www.freebsd.org/doc/en/books/porters-handbook/plist-keywords.html

OK, thanks. I appreciate your help and I'll try your suggestions.


Ari



-- 
-------------------------->
Aristedes Maniatis
GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A


More information about the freebsd-ports mailing list