Possible bug in PkgVersion.pm - app builds fail

Jonas Steverud <[email protected]>
Newsgroups gmane.os.apple.fink.core
Message-ID <[email protected]>
Hello, I'm a long time fink user that thinks that he might have found an error in the PkgVersion.pm code.

Short story: on line 3914 the trailing newline is not removed from the output of xcode-select, so the resulting path strings contain this newline and the resulting scripts fails.

Longer story:

I ran fink selfupdate last weekend and when I tried to install emacs23-app (which I have not had installed previously) it fails (please see attached log). When I started to find out what went wrong I found that the generated script (attached as well) contained one newline too many. To cut a long story short I found out where this script where generated: In PkgVersion.pm when handling AppBundles on lines 3907 to 3917.

The offending line is 
		my $developer_dir=`xcode-select -print-path 2>/dev/null`;
where the trailing new line is not removed from the output of xcode-select. I replaced that line with 
		my $developer_dir="/Developer";
(which is the output of xcode-select) and tried to install emacs again, this time with complete success.

As far as I can tell this is a bug, and Google could not find any related discussions or bug reports. Neither could I find a better way of reporting this bug then email this address, which I hope is the correct receiver of this bug report.

Please see the attached log for Xcode version etc.

I know that I have an old Xcode and OS installation, but that shouldn't impact this line in the code. It is always a bad idea to depend on the output of another script and not wash it for unwanted output, I think this needs to be fixed regardless of my installation.




Kind regards,
Jonas

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

_______________________________________________
fink-core mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.apple.fink.core
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-core
emacs-app.log.gz (application/x-gzip, 38.4 KB) - not displayed
fink.FObL4 (application/octet-stream, 769 B) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.