perl5162-core build/install problem on case-sensitive FS

Derek Homeier <[email protected]> Mon, 18 Nov 2013 18:11:50 +0100
Newsgroups gmane.os.apple.fink.devel,gmane.os.apple.fink.core
Message-ID <DF4BD9E9-10E5-4656-979E-0B86FA9D0E65@astro.physik.uni-goettingen.de>
It seems I am running into troubles with my fink installation on a case-sensitive volume again,
but I don't quite understand the issue. perl5162-core builds ok so far, but the package fails to
install with 

Validating package file /sw/fink/dists/stable/main/finkinfo/languages/perl5162.info...
Package looks good!
The package 'perl5162-core' will be installed.
Reading dependency for perl5162-core-5.16.2-102...
Reading runtime dependency for perl5162-core-5.16.2-102...
The following package will be installed or updated:
 perl5162-core
Reading buildlock packages...
	All buildlocks accounted for.
/sw/bin/dpkg-lockwait -i /sw/fink/dists/stable/main/binary-darwin-x86_64/languages/perl5162-core_5.16.2-102_darwin-x86_64.deb
(Reading database ... 438260 files and directories currently installed.)
Unpacking perl5162-core (from .../perl5162-core_5.16.2-102_darwin-x86_64.deb) ...
/sw/bin/dpkg: error processing /sw/fink/dists/stable/main/binary-darwin-x86_64/languages/perl5162-core_5.16.2-102_darwin-x86_64.deb (--install):
 unable to create `./sw/lib/perl5-core/5.16.2/version/Internals.pod': No such file or directory
Errors were encountered while processing:
 /sw/fink/dists/stable/main/binary-darwin-x86_64/languages/perl5162-core_5.16.2-102_darwin-x86_64.deb
### execution of /sw/bin/dpkg-lockwait failed, exit code 1
Updating the list of locally available binary packages.
Scanning dists/stable/main/binary-darwin-x86_64
New package: dists/stable/main/binary-darwin-x86_64/libs/perlmods/package-generator-pm_1.105-1_darwin-x86_64.deb
Failed: can't install package perl5162-core-5.16.2-102

> dpkg-deb -c /sw/fink/dists/stable/main/binary-darwin-x86_64/languages/perl5162-core_5.16.2-102_darwin-x86_64.deb|grep -i version/                                                                                         
drwxr-xr-x root/admin        0 2013-11-12 16:02 ./sw/lib/perl5-core/5.16.2/Version/
-r--r--r-- root/admin    14605 2013-11-12 16:02 ./sw/lib/perl5-core/5.16.2/Version/Requirements.pm
drwxr-xr-x root/admin        0 2013-11-12 16:02 ./sw/lib/perl5-core/5.16.2/version/
-r--r--r-- root/admin    25001 2013-11-12 16:02 ./sw/lib/perl5-core/5.16.2/version/Internals.pod

Building the package in maintainer mode however results in an error in the validation phase:

Validating .deb dir /Volumes/Oberon/scratch.noindex/fink.build/root-perl5162-5.16.2-102...
Package looks good!
env LANG=C LC_ALL=C dpkg-deb -b root-perl5162-5.16.2-102 /sw/fink/10.8/stable/main/binary-darwin-x86_64/languages
dpkg-deb: building package `perl5162' in `/sw/fink/10.8/stable/main/binary-darwin-x86_64/languages/perl5162_5.16.2-102_darwin-x86_64.deb'.
Reverting ownership of install dir to root
- Depends line is: darwin (>= 12-1)
Writing control file...
Writing md5sums file...
Validating .deb dir /Volumes/Oberon/scratch.noindex/fink.build/root-perl5162-core-5.16.2-102...
Error: Pathname collision on case-insensitive filesystems
	Offending file: /sw/lib/perl5-core/5.16.2/version/
Removing runtime build-lock...
Removing build-lock package...
/sw/bin/dpkg-lockwait -r fink-buildlock-perl5162-5.16.2-102
(Reading database ... 438261 files and directories currently installed.)
Removing fink-buildlock-perl5162-5.16.2-102 ...
Failed: phase .deb validation: perl5162-core-5.16.2-102 failed

It would seem, since the .deb contains both the lower- and uppercase version dirs with their content,
it should install just fine on a case-sensitive filesystem, but apparently dpkg-deb is still refusing to
install it (even in non-maintainer mode), because the package would be broken on a case-insensitive fs.

I suppose the proper fix would be to manually rename either "version" or "Version" before/during/after
the build process to have Requirements.pm and Internals.pod coexist in the same subdir?

Cheers,
				Derek


------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
Fink-devel mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel