if libdir does not equal lib
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unity-2d |
Fix Released
|
Medium
|
Olivier Tilloy | ||
unity-2d (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
It is common for libdir on x86_64 machines to not be /usr/lib. So there is not reason to hardcode libdir as $prefix/lib
This is part of the current workaround employed.
%if %{_lib} != "lib"
sed -i 's|lib/|%{_lib}/|g' \
panel/
libunity-
libunity-
config.h.in
%endif
This is the patch for libunity-
--- unity-2d-
+++ unity-2d-
@@ -151,7 +151,7 @@
#
set (PREFIXDIR "${CMAKE_
set (EXEC_PREFIX "${CMAKE_
-set (LIBDIR "${CMAKE_
+set (LIBDIR "${CMAKE_
set (INCLUDEDIR "${CMAKE_
install(DIRECTORY .
@@ -162,5 +162,5 @@
configure_file (${LIB_
install (FILES ${CMAKE_
- ${CMAKE_
+ ${CMAKE_
Related branches
- unity-2d-team: Pending requested
-
Diff: 491 lines (+91/-75)31 files modified.bzrignore (+4/-0)
CMakeLists.txt (+14/-1)
config.h.in (+5/-3)
debian/libunity-2d-private-dev.install.in (+3/-3)
debian/libunity-2d-private0.install.in (+3/-3)
debian/rules (+0/-1)
debian/unity-2d-launcher.install.in (+5/-5)
debian/unity-2d-panel.install.in (+3/-3)
debian/unity-2d-places.install.in (+6/-6)
debian/unity-2d-spread.install.in (+4/-4)
debian/unity-2d.install.in (+7/-7)
debian/unity-2d.postinst.in (+6/-6)
debian/unity-2d.postrm.in (+3/-3)
debian/unity-2d.triggers.in (+2/-2)
launcher/app/CMakeLists.txt (+3/-3)
launcher/app/unity-2d-launcher.service.in (+1/-1)
libunity-2d-private/Unity2d/CMakeLists.txt (+1/-1)
libunity-2d-private/src/CMakeLists.txt (+3/-5)
libunity-2d-private/src/unity-2d-private.pc.cmake (+2/-2)
panel/app/CMakeLists.txt (+2/-2)
panel/applets/appindicator/CMakeLists.txt (+1/-1)
panel/applets/appname/CMakeLists.txt (+1/-1)
panel/applets/homebutton/CMakeLists.txt (+1/-1)
panel/applets/indicator/CMakeLists.txt (+1/-1)
panel/applets/legacytray/CMakeLists.txt (+1/-1)
panel/applets/separator/CMakeLists.txt (+1/-1)
places/app/CMakeLists.txt (+3/-3)
places/app/unity-2d-places.service.in (+1/-1)
po/CMakeLists.txt (+1/-1)
spread/app/CMakeLists.txt (+2/-2)
spread/app/unity-2d-spread.service.in (+1/-1)
- Albert Astals Cid (community): Approve
- Gerry Boland: Pending requested
- Michał Sawicz: Pending requested
-
Diff: 341 lines (+92/-64)9 files modifiedlibunity-2d-private/src/lens.cpp (+15/-3)
libunity-2d-private/src/lenses.cpp (+8/-5)
libunity-2d-private/src/lenses.h (+2/-0)
shell/app/shelldeclarativeview.cpp (+7/-0)
shell/app/shelldeclarativeview.h (+2/-0)
shell/dash/Dash.qml (+25/-17)
shell/dash/LensBar.qml (+20/-19)
shell/dash/LensView.qml (+7/-6)
shell/dash/RendererGrid.qml (+6/-14)
- Albert Astals Cid (community): Approve (fun)
- Gerry Boland (community): Needs Fixing
- Michał Sawicz: Abstain
-
Diff: 341 lines (+92/-64)9 files modifiedlibunity-2d-private/src/lens.cpp (+15/-3)
libunity-2d-private/src/lenses.cpp (+8/-5)
libunity-2d-private/src/lenses.h (+2/-0)
shell/app/shelldeclarativeview.cpp (+7/-0)
shell/app/shelldeclarativeview.h (+2/-0)
shell/dash/Dash.qml (+25/-17)
shell/dash/LensBar.qml (+20/-19)
shell/dash/LensView.qml (+7/-6)
shell/dash/RendererGrid.qml (+6/-14)
Changed in unity-2d: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in unity-2d: | |
assignee: | nobody → Olivier Tilloy (osomon) |
Changed in unity-2d: | |
status: | Confirmed → In Progress |
Changed in unity-2d: | |
milestone: | 4.14 → 5.2 |
Changed in unity-2d: | |
status: | Fix Committed → Fix Released |
Fixed at revision 777 of the trunk. I also un-hardcoded a number of paths, including data and include directories.
@Matthew, could you please test and confirm that this works as expected now?