Bug 231802 - lang/ocaml-camlidl: Port build fails because of chown in post-install-DOCS-on target
Summary: lang/ocaml-camlidl: Port build fails because of chown in post-install-DOCS-on...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-29 15:54 UTC by kennedy.greg
Modified: 2018-09-29 21:23 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kennedy.greg 2018-09-29 15:54:50 UTC
Got an email from pkg-fallout today that this failed to build in stage.

There is a line in Makefile for the post-install-DOCS-on: target that has a chown -R to change ownership of all docs.  And another for "find" that attempts to chmod on the docs dir.

These both need to be removed, because they cause problems trying to build in stagedir as non-root user.  The gz file from upstream has correct owner and permissions already.

FIX:

Lines 53 and 54 of Makefile need to be removed.
Comment 1 commit-hook freebsd_committer freebsd_triage 2018-09-29 20:51:10 UTC
A commit references this bug:

Author: danfe
Date: Sat Sep 29 20:50:43 UTC 2018
New revision: 480926
URL: https://svnweb.freebsd.org/changeset/ports/480926

Log:
  - Unbreak packaging as non-root user by removing needless call to chmod(1)
  - While here, do not force ${SHAREMODE} (444) on docfiles as well: default
    permissions (644) are perfectly fine

  Reported by:	pkg-fallout
  PR:		231802
  Submitted by:	maintainer

Changes:
  head/lang/ocaml-camlidl/Makefile
Comment 2 Alexey Dokuchaev freebsd_committer freebsd_triage 2018-09-29 21:23:22 UTC
Committed as ports r480926, thanks.