Bug 84243

Summary: Fix of pkg-plist for palm/prc-tools port
Product: Ports & Packages Reporter: John Cochran <jdc>
Component: Individual Port(s)Assignee: Sergey Matveychuk <sem>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff
none
prc-tools.diff
none
prc-tools-2.3_3.diff none

Description John Cochran 2005-07-28 18:40:17 UTC
	Fix of the BROKEN indicator for palm/prc-tools file
	The palm/prc-tools port is marked as BROKEN and DEPRECATED due to
	an incorrect pkg-plist file. Attached is a unified diff correcting
	this problem. If the package is to remain deprecated, then I would
	like a reference to the tools for development of palmOS applications
	on a FreeBSD box.

Fix: Attached is a diff file to correct the pkg-plist file.

--- Diff of Makefile and pkg-plist begins here ---
How-To-Repeat: 	Just install the package
Comment 1 Sergey Matveychuk freebsd_committer freebsd_triage 2005-07-31 13:20:08 UTC
===>   Deinstalling prc-tools-2.3_2
pkg_delete: file '/usr/local/pilot/man/man1/cpp.1.gz' doesn't exist
pkg_delete: file '/usr/local/pilot/man/man1/m68k-palmos-ar.1.gz' doesn't 
exist
pkg_delete: file '/usr/local/pilot/man/man1/m68k-palmos-as.1.gz' doesn't 
exist
pkg_delete: file '/usr/local/pilot/man/man1/m68k-palmos-readelf.1.gz' 
doesn't exist
pkg_delete: file '/usr/local/pilot/man/man1/m68k-palmos-nm.1.gz' doesn't 
exist
pkg_delete: file '/usr/local/pilot/man/man1/m68k-palmos-objdump.1.gz' 
doesn't exist
pkg_delete: file '/usr/local/pilot/man/man1/m68k-palmos-ranlib.1.gz' 
doesn't exist
pkg_delete: file '/usr/local/pilot/man/man1/m68k-palmos-size.1.gz' 
doesn't exist
pkg_delete: file '/usr/local/pilot/man/man1/m68k-palmos-windres.1.gz' 
doesn't exist
pkg_delete: file '/usr/local/pilot/man/man1/build-prc.1.gz' doesn't exist
pkg_delete: file '/usr/local/pilot/man/man1/m68k-palmos-strip.1.gz' 
doesn't exist
pkg_delete: file '/usr/local/pilot/man/man1/m68k-palmos-dlltool.1.gz' 
doesn't exist
pkg_delete: file '/usr/local/pilot/man/man1/m68k-palmos-gdb.1.gz' 
doesn't exist
pkg_delete: file '/usr/local/pilot/man/man1/gcov.1.gz' doesn't exist
pkg_delete: file '/usr/local/pilot/man/man1/m68k-palmos-ld.1.gz' doesn't 
exist
pkg_delete: file '/usr/local/pilot/man/man1/m68k-palmos-nlmconv.1.gz' 
doesn't exist
pkg_delete: file '/usr/local/pilot/man/man1/palmdev-prep.1.gz' doesn't exist
pkg_delete: file '/usr/local/pilot/man/man1/m68k-palmos-addr2line.1.gz' 
doesn't exist
pkg_delete: file '/usr/local/pilot/man/man1/m68k-palmos-c++filt.1.gz' 
doesn't exist
pkg_delete: file '/usr/local/pilot/man/man1/arm-palmos-ar.1.gz' doesn't 
exist
pkg_delete: file '/usr/local/pilot/man/man1/arm-palmos-as.1.gz' doesn't 
exist
pkg_delete: file '/usr/local/pilot/man/man1/arm-palmos-g++.1.gz' doesn't 
exist
pkg_delete: file '/usr/local/pilot/man/man1/arm-palmos-gcc.1.gz' doesn't 
exist
pkg_delete: file '/usr/local/pilot/man/man1/arm-palmos-nm.1.gz' doesn't 
exist
pkg_delete: file '/usr/local/pilot/man/man1/arm-palmos-objcopy.1.gz' 
doesn't exist
pkg_delete: file '/usr/local/pilot/man/man1/arm-palmos-objdump.1.gz' 
doesn't exist
pkg_delete: file '/usr/local/pilot/man/man1/arm-palmos-ranlib.1.gz' 
doesn't exist
pkg_delete: file '/usr/local/pilot/man/man1/arm-palmos-size.1.gz' 
doesn't exist
pkg_delete: file '/usr/local/pilot/man/man1/arm-palmos-strings.1.gz' 
doesn't exist
pkg_delete: file '/usr/local/pilot/man/man1/arm-palmos-strip.1.gz' 
doesn't exist
pkg_delete: file '/usr/local/pilot/man/man1/arm-palmos-windres.1.gz' 
doesn't exist
pkg_delete: file '/usr/local/pilot/man/man1/arm-palmos-ld.1.gz' doesn't 
exist
pkg_delete: file '/usr/local/pilot/man/man1/arm-palmos-dlltool.1.gz' 
doesn't exist
pkg_delete: file '/usr/local/pilot/man/man1/arm-palmos-nlmconv.1.gz' 
doesn't exist
pkg_delete: file '/usr/local/pilot/man/man1/arm-palmos-readelf.1.gz' 
doesn't exist
pkg_delete: file '/usr/local/pilot/man/man1/cccp.1.gz' doesn't exist
pkg_delete: file '/usr/local/pilot/man/man1/m68k-palmos-g++.1.gz' 
doesn't exist
pkg_delete: file '/usr/local/pilot/man/man1/m68k-palmos-gcc.1.gz' 
doesn't exist
pkg_delete: file '/usr/local/pilot/man/man1/m68k-palmos-objcopy.1.gz' 
doesn't exist
pkg_delete: file '/usr/local/pilot/man/man1/m68k-palmos-strings.1.gz' 
doesn't exist
pkg_delete: file '/usr/local/pilot/man/man1/arm-palmos-addr2line.1.gz' 
doesn't exist
pkg_delete: file '/usr/local/pilot/man/man1/arm-palmos-c++filt.1.gz' 
doesn't exist
pkg_delete: file '/usr/local/pilot/man/man7/gfdl.7.gz' doesn't exist
pkg_delete: file '/usr/local/pilot/man/man7/gpl.7.gz' doesn't exist
pkg_delete: file '/usr/local/pilot/man/man7/fsf-funding.7.gz' doesn't exist
pkg_delete: couldn't entirely delete package (perhaps the packing list is
incorrectly specified?)

--
Sem.
Comment 2 Sergey Matveychuk freebsd_committer freebsd_triage 2005-07-31 13:20:13 UTC
State Changed
From-To: open->feedback

Wait for a submitter feedback.
Comment 3 Johny Mattsson 2005-07-31 14:15:16 UTC
Hi there,

I'm afraid that the submitted patch isn't correct. The real problem why 
this port is marked as broken is that it ends up installing a different 
set of files the second time you do a "make (re)install", which means 
that the packing list is not correct the second time around.

It would appear that it's the binutils installation that mucks things up 
somehow. I didn't have the time to fully understand why some files 
aren't included in subsequent install runs, but I found a workaround 
that is unlikely to have any adverse side-effects.
Basically, the offending files (bfd info documentation) are removed in 
the post-configure step. The previous maintainer already did this for 
the gdb build, so I only added it for the binutils. It's also worth 
noting that the files that were installed were a mixture of binutils' 
bfd's and multi-bfd's files. With the attached patch, only multi-bfd's 
files are installed, which makes more sense to start with (even if I've 
never had to refer to said documentation while developing Palm 
applications).

I've verified the port with the patch applied thouroughly, and it 
installs, packages, deinstalls, reinstalls, pkg_adds and pkg_deletes 
cleanly without leaving any traces behind (on 5.4-REL with updated ports 
tree).

Also, the pkg-plist file has now been restructured to be ordered, which 
should make it easier to maintain in the future.

As the man pages are already listed in the Makefile (MAN? variables), 
and are therefore not needed to be listed in the pkg-plist. See
http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/porting-autoplist.html
for details.

I hope the attached patch will bring back this port to non-deprecated 
status.

Thanks,
/Johny
Comment 4 Sergey Matveychuk freebsd_committer freebsd_triage 2005-08-04 06:57:12 UTC
Responsible Changed
From-To: freebsd-ports-bugs->sem

I'll care
Comment 5 Sergey Matveychuk freebsd_committer freebsd_triage 2005-08-18 17:22:29 UTC
Looks like the port installs some files before install stage:

=== Checking filesystem state
list of files present before this port was installed but missing after 
it was deinstalled)
./usr/local/pilot missing
./usr/local/pilot/arm-palmos missing
./usr/local/pilot/arm-palmos/sys-include missing
./usr/local/pilot/arm-palmos/sys-include/COPIED missing
./usr/local/pilot/lib missing
./usr/local/pilot/lib/gcc-lib missing
./usr/local/pilot/lib/gcc-lib/m68k-palmos missing
./usr/local/pilot/lib/gcc-lib/m68k-palmos/2.95.3-kgpd missing
./usr/local/pilot/m68k-palmos missing
./usr/local/pilot/m68k-palmos/sys-include missing
./usr/local/pilot/m68k-palmos/sys-include/COPIED missing
================================================================

This makes pointyhat mad :)
--
Sem.
Comment 6 Johny Mattsson 2005-08-19 12:17:08 UTC
Sergey Matveychuk wrote:
> Looks like the port installs some files before install stage:
<snip>

Argh. What a nuisance. I'll have a look at this as soon as I can, but my 
main FreeBSD workstation just had a system disk crash overnight, so I'll 
need to get it to PXE boot first.

Please don't kill this port until I've had a chance to look at this once 
again! I should be able to check it and submit a new patch within a week 
I think (unless setting up a diskless environment takes far longer than 
expected)  :)


> This makes pointyhat mad :)

Me puts the pointy hat on the port instead ;-)

Cheers,
/Johny
-- 
Johny Mattsson - Making IT work  ,-.   ,-.   ,-.  When all else fails,
http://www.earthmagic.org     _.'  `-'   `-'   Murphy's Law still works!
Comment 7 Sergey Matveychuk freebsd_committer freebsd_triage 2005-09-04 18:58:15 UTC
Hello!

Do you plan any progress on the PR?

--
Sem.
Comment 8 Sergey Matveychuk freebsd_committer freebsd_triage 2005-09-27 07:19:44 UTC
It's time to decide a fate of the port.

-- 
Sem.
Comment 9 Johny Mattsson 2005-10-11 11:05:50 UTC
Hello again,

Sorry I've gone all quiet. With business trips, conferences, and a bad 
bout of the flu, this got pushed down on the priority list for a while.

I'll be spending the evening trying to repair this port...

If I don't get it done by tomorrow evening, then I can fully understand 
if you axe it (I'll be gone for another 2 weeks after that). Worse comes 
to worst, I can always submit the fixed port as a brand new one once 
I've got it all working I suppose.

Best regards,
/Johny
-- 
Johny Mattsson - Making IT work  ,-.   ,-.   ,-.  When all else fails,
http://www.earthmagic.org     _.'  `-'   `-'   Murphy's Law still works!
Comment 10 Johny Mattsson 2005-10-11 14:00:57 UTC
Okay, I think I've managed to convince this silly port not to spew 
detritus all over the PREFIX during the build phase (whoever thought it 
was a good idea to install-sh things from the configure script?!).

I'm just running a build (takes a long time on my slow system), and will 
be doing the install/deinstall/reinstall checks of the plist tomorrow 
morning or during the day. Expect an updated patch within 24h :)

Oh, and is it possible for you to edit this PR so that I get cc'd on any 
updates to it? Pretty please? :)

Thanks,
/Johny
Comment 11 Johny Mattsson 2005-10-12 13:54:17 UTC
Alright, attached is a new, re-tested diff. I've built it with a 
read-only PREFIX, and it seems to be behaving appropriately now.

With this diff there are four added files:
files/post-patch-binutils:configure
files/post-patch-gcc2:configure.in
files/post-patch-gcc3:configure.in
files/post-patch-gdb:configure.in

I've stepped the portrevision since I'm not installing as much as 
previously (removed some of the info files). If you disagree with the 
stepping of the portrevision, you may of course ignore it.


Should pointyhat find any problems that I haven't caught in my testing, 
please cc me on this email address (or even better, get me added to the 
PR so it happens automagically). I'll endeavour to fix it quickly, but 
as mentioned, I'll be out of town for a week and a half now.

Kind regards,
/Johny
-- 
Johny Mattsson - Making IT work  ,-.   ,-.   ,-.  When all else fails,
http://www.earthmagic.org     _.'  `-'   `-'   Murphy's Law still works!
Comment 12 Sergey Matveychuk freebsd_committer freebsd_triage 2005-10-12 17:15:28 UTC
State Changed
From-To: feedback->closed

Fix committed, thanks!