Bug 65304

Summary: Fix deinstall INFO in bsd.port.mk
Product: Ports & Packages Reporter: dirk.meyer <dirk.meyer>
Component: Individual Port(s)Assignee: Port Management Team <portmgr>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description dirk.meyer 2004-04-07 21:30:15 UTC
	if a port uses INFO, deinstallation will leave stale files
	the test for an empty info/dir file is executed before
	the info file is unregistered

----------------
@unexec if [ -f %D/info/dir ]; then if sed -e '1,/Menu:/d' %D/info/dir | grep -q '^[*] '; then true; else rm %D/info/dir; fi; fi
@unexec install-info --delete %D/info/gperf.info %D/info/dir
info/gperf.info
@comment MD5:c24d0f79fc49548783ca03386c58828a
@exec install-info %D/info/gperf.info %D/info/dir
----------------

How-To-Repeat: 
	/usr/local/info/ must be empty.
	on an almost clean "/usr/local" do:

	$ cd /usr/ports/devel/gperf && make clean install deinstall
Comment 1 Dirk Meyer freebsd_committer freebsd_triage 2004-04-07 21:36:13 UTC
Responsible Changed
From-To: freebsd-ports-bugs->portmgr

bsd.port.mk issue
Comment 2 Oliver Eikemeier 2004-05-12 15:03:35 UTC
It would be nice to conditionalize this on INFO, so that
this step is only performed if the port actually deinstalls
INFO files.

-Oliver
Comment 3 Kris Kennaway freebsd_committer freebsd_triage 2004-06-06 05:32:18 UTC
State Changed
From-To: open->analyzed

Testing on bento for subsequent commit
Comment 4 Kris Kennaway freebsd_committer freebsd_triage 2004-06-10 08:41:19 UTC
State Changed
From-To: analyzed->closed

Patch committed, thanks!
Comment 5 Kris Kennaway freebsd_committer freebsd_triage 2004-06-12 02:58:43 UTC
State Changed
From-To: closed->open

Reopen this as a reminder to test eik's suggestion
Comment 6 Kirill Ponomarev freebsd_committer freebsd_triage 2005-03-02 18:15:50 UTC
State Changed
From-To: open->closed

The problem was fixed in bsd.port.mk revision 1.508