FS#52563 - glm package bug

Attached to Project: Arch Linux
Opened by Steven Noonan (neunon) - Monday, 16 January 2017, 00:40 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Monday, 16 January 2017, 08:39 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 6
Private No

Details

Attempting pacman upgrade to community/glm 0.9.8.3-3, and getting this:

error: failed to commit transaction (conflicting files)
glm: /usr/lib64 exists in filesystem
glm: /usr/lib64/cmake/glm/glmConfig.cmake exists in filesystem
glm: /usr/lib64/cmake/glm/glmConfigVersion.cmake exists in filesystem
glm: /usr/lib64/cmake/glm/glmTargets.cmake exists in filesystem
glm: /usr/lib64/pkgconfig/glm.pc exists in filesystem
Errors occurred, no packages were upgraded.

I've removed the package for now because it was a dependency of something I didn't really need installed.

This should fix it:

diff --git a/glm/trunk/PKGBUILD b/glm/trunk/PKGBUILD
index add78290da7..a5d51948f8d 100644
--- a/glm/trunk/PKGBUILD
+++ b/glm/trunk/PKGBUILD
@@ -17,7 +17,7 @@ package() {
mkdir build
cd build

- cmake -DCMAKE_INSTALL_PREFIX=/usr ..
+ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib ..
make DESTDIR=$pkgdir install

cd ..
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Monday, 16 January 2017, 08:39 GMT
Reason for closing:  Fixed
Comment by Boyan Ding (jdbrown) - Monday, 16 January 2017, 02:07 GMT
I can confirm the bug and the working solution above.

Loading...