Bug 176497 - print/utopia tries to install file in /usr/share
Summary: print/utopia tries to install file in /usr/share
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: Jason Helfman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-28 08:40 UTC by John Marino
Modified: 2013-03-05 06:50 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Marino 2013-02-28 08:40:01 UTC
In a package building environment, the majority of the world is mounted as read-only, which helps find ports that are misbehaving.  

When install print/utopia, the following error occurs:
/bin/mkdir -p /usr/local/share/utopia/devps/
/usr/bin/install -o root -g wheel -m444 -c UB UBI UI UR  putb.afm putb.pfa  putbi.afm putbi.pfa  putr.afm putr.pfa  putri.afm putri.pfa  DESC text.enc textmap LICENSE /usr/local/share/utopia/devps/
/usr/bin/install -o root -g wheel -m444 -c utopia_font.7.gz //usr/local/man/man7/
/bin/cp /usr/share/groff_font/devps//download /usr/local/share/utopia/devps//download.old
/bin/cat /usr/share/groff_font/devps//download ./download > tmp
/usr/bin/install -o root -g wheel -m444 -c ./tmp /usr/share/groff_font/devps//download
install: /usr/share/groff_font/devps//download: Read-only file system
*** Error code 71
Stop.
make: stopped in /wrkdirs/print/utopia/work/utopia-1.0

The "download" file is not on the plist and a port should not be trying to modify /usr/share.
The port needs patching.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-02-28 08:40:13 UTC
Maintainer of print/utopia,

Please note that PR ports/176497 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/176497

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2013-02-28 08:40:14 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 jimmy 2013-02-28 12:43:52 UTC
New release of port to correct problems. diff is below


diff -ruN /usr/ports/print/utopia/Makefile ./utopia/Makefile
--- /usr/ports/print/utopia/Makefile    2012-11-17 01:00:55.000000000 -0500
+++ ./utopia/Makefile   2013-02-28 07:20:32.000000000 -0500
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=  utopia
-PORTVERSION=  1.0
+PORTVERSION=  1.1
 CATEGORIES=   print
 MASTER_SITES= http://www.mammothcheese.ca/
 
diff -ruN /usr/ports/print/utopia/distinfo ./utopia/distinfo
--- /usr/ports/print/utopia/distinfo    2011-07-03 02:14:56.000000000 -0400
+++ ./utopia/distinfo   2013-02-28 07:18:00.000000000 -0500
@@ -1,2 +1,2 @@
-SHA256 (utopia-1.0.tar.gz) = f6d7db956c0463c66a15e2201fdc31ff5c1924343f943ff2fce9653fd50a9c3d
-SIZE (utopia-1.0.tar.gz) = 227476
+SHA256 (utopia-1.1.tar.gz) = cab435d6a67baa0c18141e52a1f50b38aeb6664376779b4bf80995955fd0fa13
+SIZE (utopia-1.1.tar.gz) = 227072
diff -ruN /usr/ports/print/utopia/pkg-plist ./utopia/pkg-plist
--- /usr/ports/print/utopia/pkg-plist   2011-06-22 23:03:22.000000000 -0400
+++ ./utopia/pkg-plist  2013-02-28 07:09:56.000000000 -0500
@@ -14,7 +14,6 @@
 %%DATADIR%%/devps/LICENSE
 %%DATADIR%%/devps/text.enc
 %%DATADIR%%/devps/textmap
-%%DATADIR%%/devps/download.old
-@unexec /usr/bin/sed -I backup -e "/Utopia Begin/,/Utopia End/d"
+%%DATADIR%%/devps/download
 @dirrm %%DATADIR%%/devps
 @dirrm %%DATADIR%%
Comment 4 Jason Helfman freebsd_committer freebsd_triage 2013-03-05 06:38:32 UTC
State Changed
From-To: feedback->open

maintainer has supplied patch 


Comment 5 Jason Helfman freebsd_committer freebsd_triage 2013-03-05 06:38:32 UTC
Responsible Changed
From-To: freebsd-ports-bugs->jgh

maintainer has supplied patch
Comment 6 dfilter service freebsd_committer freebsd_triage 2013-03-05 06:42:29 UTC
Author: jgh
Date: Tue Mar  5 06:42:20 2013
New Revision: 313437
URL: http://svnweb.freebsd.org/changeset/ports/313437

Log:
  - update to 1.1
  
  PR:		176497
  Submitted by:	maintainer, jimmy@mammothcheese.ca

Modified:
  head/print/utopia/Makefile
  head/print/utopia/distinfo
  head/print/utopia/pkg-plist

Modified: head/print/utopia/Makefile
==============================================================================
--- head/print/utopia/Makefile	Tue Mar  5 06:20:28 2013	(r313436)
+++ head/print/utopia/Makefile	Tue Mar  5 06:42:20 2013	(r313437)
@@ -1,22 +1,16 @@
-# New ports collection makefile for:  utopia
-# Date created:                       Fri, 26 Feb 2010 16:40:00 EST
-# Whom:                               James Bailie <jimmy@mammothcheese.ca>
-#
+# Created by: James Bailie <jimmy@mammothcheese.ca>
 # $FreeBSD$
-#
 
-PORTNAME=  utopia
-PORTVERSION=  1.0
-CATEGORIES=   print
-MASTER_SITES= http://www.mammothcheese.ca/
+PORTNAME=	utopia
+PORTVERSION=	1.1
+CATEGORIES=	print
+MASTER_SITES=	http://www.mammothcheese.ca/
 
-MAINTAINER=   jimmy@mammothcheese.ca
-COMMENT=   Adobe Utopia typeface for Groff
+MAINTAINER=	jimmy@mammothcheese.ca
+COMMENT=	Adobe Utopia typeface for Groff
 
-DATADIR= ${PREFIX}/share/utopia
+MAN7=	utopia_font.7
 
-MAN7=           utopia_font.7
-
-MANCOMPRESSED=   yes
+MANCOMPRESSED=	yes
 
 .include <bsd.port.mk>

Modified: head/print/utopia/distinfo
==============================================================================
--- head/print/utopia/distinfo	Tue Mar  5 06:20:28 2013	(r313436)
+++ head/print/utopia/distinfo	Tue Mar  5 06:42:20 2013	(r313437)
@@ -1,2 +1,2 @@
-SHA256 (utopia-1.0.tar.gz) = f6d7db956c0463c66a15e2201fdc31ff5c1924343f943ff2fce9653fd50a9c3d
-SIZE (utopia-1.0.tar.gz) = 227476
+SHA256 (utopia-1.1.tar.gz) = cab435d6a67baa0c18141e52a1f50b38aeb6664376779b4bf80995955fd0fa13
+SIZE (utopia-1.1.tar.gz) = 227072

Modified: head/print/utopia/pkg-plist
==============================================================================
--- head/print/utopia/pkg-plist	Tue Mar  5 06:20:28 2013	(r313436)
+++ head/print/utopia/pkg-plist	Tue Mar  5 06:42:20 2013	(r313437)
@@ -14,7 +14,6 @@
 %%DATADIR%%/devps/LICENSE
 %%DATADIR%%/devps/text.enc
 %%DATADIR%%/devps/textmap
-%%DATADIR%%/devps/download.old
-@unexec /usr/bin/sed -I backup -e "/Utopia Begin/,/Utopia End/d"
+%%DATADIR%%/devps/download
 @dirrm %%DATADIR%%/devps
 @dirrm %%DATADIR%%
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 7 Jason Helfman freebsd_committer freebsd_triage 2013-03-05 06:42:59 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!