Bug 342899 - kpackage framework has install problems on case-insenstive filesystem
Summary: kpackage framework has install problems on case-insenstive filesystem
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kpackage
Classification: Frameworks and Libraries
Component: default (show other bugs)
Version: unspecified
Platform: Fink Packages macOS
: NOR normal
Target Milestone: ---
Assignee: Marco Martin
URL: https://git.reviewboard.kde.org/r/122...
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-16 05:03 UTC by Hanspeter Niederstrasser
Modified: 2015-01-19 11:32 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.7.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hanspeter Niederstrasser 2015-01-16 05:03:01 UTC
On OS X, the default file system is case insensitive (but case preserving). kpackage installs headers into $PREFIX/include/KF5/kpackage and $PREFIX/include/KPackage:

-- Installing: /sw/build.build/root-libkf5package5-shlibs-5.6.0-1/sw/lib/qt5-mac/include/KF5/kpackage/package.h
-- Installing: /sw/build.build/root-libkf5package5-shlibs-5.6.0-1/sw/lib/qt5-mac/include/KF5/kpackage/packagestructure.h
-- Installing: /sw/build.build/root-libkf5package5-shlibs-5.6.0-1/sw/lib/qt5-mac/include/KF5/kpackage/packageloader.h
-- Installing: /sw/build.build/root-libkf5package5-shlibs-5.6.0-1/sw/lib/qt5-mac/include/KF5/kpackage/package_export.h
-- Installing: /sw/build.build/root-libkf5package5-shlibs-5.6.0-1/sw/lib/qt5-mac/include/KF5/kpackage/version.h
-- Up-to-date: /sw/build.build/root-libkf5package5-shlibs-5.6.0-1/sw/lib/qt5-mac/include/KF5/KPackage
-- Installing: /sw/build.build/root-libkf5package5-shlibs-5.6.0-1/sw/lib/qt5-mac/include/KF5/KPackage/Package
-- Installing: /sw/build.build/root-libkf5package5-shlibs-5.6.0-1/sw/lib/qt5-mac/include/KF5/KPackage/package.h
-- Up-to-date: /sw/build.build/root-libkf5package5-shlibs-5.6.0-1/sw/lib/qt5-mac/include/KF5/KPackage/package_export.h
-- Installing: /sw/build.build/root-libkf5package5-shlibs-5.6.0-1/sw/lib/qt5-mac/include/KF5/KPackage/PackageLoader
-- Installing: /sw/build.build/root-libkf5package5-shlibs-5.6.0-1/sw/lib/qt5-mac/include/KF5/KPackage/packageloader.h
-- Installing: /sw/build.build/root-libkf5package5-shlibs-5.6.0-1/sw/lib/qt5-mac/include/KF5/KPackage/PackageStructure
-- Installing: /sw/build.build/root-libkf5package5-shlibs-5.6.0-1/sw/lib/qt5-mac/include/KF5/KPackage/packagestructure.h


Reproducible: Always


Actual Results:  
The headers from KPackage overwrite the headers from kpackage, but preserve the lowercase folder name.

Also, and perhaps related, the installed .h headers are broken:

$ cat /sw/lib/qt5-mac/include/KF5/KPackage/packageloader.h 
#include "/sw/build.build/libkf5package5-shlibs-5.6.0-1/kpackage-5.6.0/src/kpackage/packageloader.h"

"/sw/build.build/libkf5package5-shlibs-5.6.0-1/" is the sandboxed build directory for the package and is deleted after a successful build and package creation.  package.h, packageloader.h and packagestructure.h are all broken like that. package_export.h and version.h are correct.
Comment 1 Hanspeter Niederstrasser 2015-01-17 15:35:32 UTC
Bug 342967 shows a similar problem in the plasma-framework.
Comment 2 Hrvoje Senjan 2015-01-19 11:32:14 UTC
Git commit 43ebfeba55316485284d6ce504f6782f09362a08 by Hrvoje Senjan.
Committed on 19/01/2015 at 11:31.
Pushed by hrvojes into branch 'master'.

Install lower- and camelcase headers to different subdirs

Otherwise they get overwriten on case insensitive filesystems

REVIEW: 122093
FIXED-IN: 5.7.0

M  +4    -7    src/kpackage/CMakeLists.txt

http://commits.kde.org/kpackage/43ebfeba55316485284d6ce504f6782f09362a08