Bug 117192 - bsd.port.mk - make readmes broken
Summary: bsd.port.mk - make readmes broken
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: Port Management Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-14 21:10 UTC by Jörgen Blomberg
Modified: 2008-03-12 00:20 UTC (History)
0 users

See Also:


Attachments
file.diff (431 bytes, patch)
2007-10-14 21:10 UTC, Jörgen Blomberg
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jörgen Blomberg 2007-10-14 21:10:00 UTC
make readmes ends with this output:
..
===> x11-wm
===>  Creating README.html
===>   Creating README.html for all ports
/usr/ports/Tools/make_readmes: Permission denied
*** Error code 126

Stop in /usr/ports.


It broke sometimes around Aug 5 2007.

PERL variable seems to be undefined as indicated by this patch

--- bsd.port.subdir.mk.orig     Thu Aug  9 03:21:34 2007
+++ bsd.port.subdir.mk  Sun Oct 14 14:12:45 2007
@@ -254,6 +254,8 @@
 .if !target(readmes)
 .if defined(PORTSTOP)
 readmes: readme ${SUBDIR:S/^/_/:S/$/.readmes/}
+       @${ECHO_CMD} "Variable PERL:"
+       @${ECHO_CMD} ${PERL}
        @${ECHO_MSG} "===>   Creating README.html for all ports"
        @${PERL} ${PORTSDIR}/Tools/make_readmes < ${INDEXDIR}/${INDEXFILE}
 .else

that gives this result:

..
===> x11-wm
===>  Creating README.html
Variable PERL:

===>   Creating README.html for all ports
/usr/ports/Tools/make_readmes: Permission denied
*** Error code 126

Stop in /usr/ports.

Fix: make readmes works with the attached patch. This fix is probably not usable in general, but it indicates what the problem is.


Patch attached with submission follows:
How-To-Repeat: $ pwd
/usr/ports
$ make readmes
===>  Creating README.html
===> accessibility
===>  Creating README.html
===> arabic
===>  Creating README.html
..
===>  Creating README.html
===> x11-toolkits
===>  Creating README.html
===> x11-wm
===>  Creating README.html
===>   Creating README.html for all ports
/usr/ports/Tools/make_readmes: Permission denied
*** Error code 126

Stop in /usr/ports.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-10-15 11:33:07 UTC
Responsible Changed
From-To: freebsd-ports-bugs->portmgr

bsd.port.mk is portmgr territory (via the GNATS Auto Assign Tool)
Comment 2 Pav Lucistnik freebsd_committer freebsd_triage 2008-03-11 23:58:32 UTC
State Changed
From-To: open->closed

This should be fixed now.
Comment 3 dfilter service freebsd_committer freebsd_triage 2008-03-12 00:13:12 UTC
pav         2008-03-12 00:13:06 UTC

  FreeBSD ports repository

  Modified files:
    Mk                   bsd.port.subdir.mk 
  Log:
  - Backout part of 1.71: ${PERL} is not available in bsd.port.subdir.mk, only in
    bsd.port.mk. Fixes `make readmes'
  
  PR:             ports/117192
  Submitted by:   Joergen Blomberg <jnbg@blomberg.tk>
  Pointy hat to:  gabor
  
  Revision  Changes    Path
  1.74      +2 -2      ports/Mk/bsd.port.subdir.mk
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"