Bug 53386

Summary: [patch] Fix url.cgi problem with deleted pkg-descr files
Product: Documentation Reporter: simon <simon>
Component: Books & ArticlesAssignee: Simon L. B. Nielsen <simon>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
www-urlcgi-attic.patch none

Description simon 2003-06-16 23:30:15 UTC
When a port's is pkg-descr file is deleted (cvs rm'ed), e.g. if the
port is changed into a slave port, it can occour that the description
link in ports.cgi does not work.  This is due to url.cgi not looking
for the description file in Attic/.

The next time INDEX is regenerated the problem should go away, since
the INDEX generation should correct the path to the real pkg-desc
file.

This has been reported for different ports a few times on the www
mailing list, last time by Jacob Atzen <jacob@aub.dk> with regards to
the mod_php4 port, which has been changed into a slave port.

The attach patch fixes this by making url.cgi look for pkg-descr in
Attic/ if it can't find the file in the expected directory.

This has been tested on 5.1-BETA with perl v5.6.1 and 4.8-STABLE with
perl v5.005_03.

How-To-Repeat: Go to
http://www.freebsd.org/cgi/ports.cgi?query=mod_php4&stype=all
and click the Description link.
Comment 1 Simon L. B. Nielsen freebsd_committer freebsd_triage 2003-07-20 23:50:38 UTC
Responsible Changed
From-To: freebsd-www->simon

I will handle my own PR's.
Comment 2 Simon L. B. Nielsen freebsd_committer freebsd_triage 2003-07-24 15:45:55 UTC
State Changed
From-To: open->closed

Committed.