Bug 186143 - stage problem with graphics/freeimage
Summary: stage problem with graphics/freeimage
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Pietro Cerutti
Depends on:
Reported: 2014-01-26 22:30 UTC by Stephen Montgomery-Smith
Modified: 2014-01-31 23:24 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Montgomery-Smith 2014-01-26 22:30:00 UTC
make stage dies with the messages:
install -m 644 -o root -g wheel Source/FreeImage.h /usr/ports/graphics/freeimage/work/stage/usr/local/include
install: /usr/ports/graphics/freeimage/work/stage/usr/local/include/FreeImage.h: chown/chgrp: Operation not permitted
gmake[1]: *** [install] Error 71
gmake[1]: Leaving directory `/usr/ports/graphics/freeimage/work/FreeImage'
gmake: *** [install] Error 2
*** Error code 2

Make sure you are not root.

cd /usr/ports/graphics/freeimage/
make stage
Comment 1 Edwin Groothuis freebsd_committer 2014-01-26 22:30:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gahr

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer 2014-01-27 09:13:18 UTC
Author: gahr
Date: Mon Jan 27 09:13:02 2014
New Revision: 341353
URL: http://svnweb.freebsd.org/changeset/ports/341353
QAT: https://qat.redports.org/buildarchive/r341353/

  - Fix staging as non-root
  PR:		186143
  Submitted by:	Stephen Montgomery-Smith <stephen@missouri.edu>


Modified: head/graphics/freeimage/Makefile
--- head/graphics/freeimage/Makefile	Mon Jan 27 09:07:25 2014	(r341352)
+++ head/graphics/freeimage/Makefile	Mon Jan 27 09:13:02 2014	(r341353)
@@ -38,7 +38,7 @@ CFLAGS+=	-fPIC
-	@${REINPLACE_CMD} -e 's|/usr|${PREFIX}| ; s|-g root|-g wheel|' \
+	@${REINPLACE_CMD} -e 's|/usr|${PREFIX}| ; s|-o root -g root ||' \
 		${WRKSRC}/Makefile.gnu ${WRKSRC}/Makefile.fip
svn-ports-all@freebsd.org mailing list
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Pietro Cerutti freebsd_committer 2014-01-27 09:13:20 UTC
State Changed
From-To: open->closed

Fixed, thanks!