![]() |
|
![]() |
![]() |
|
||
| · Hosting provided by Anduin.net / Øverby Consulting · | ||||||
| Anonymous | Login | Signup for a new account | 2013-05-25 08:40 CEST | ![]() |
| Main | My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0006010 | Scribus | Build System | public | 07-Jul-19 16:05 | 07-Sep-26 20:48 | ||||
| Reporter | fundawang | ||||||||
| Assigned To | cbradney | ||||||||
| Priority | normal | Severity | minor | Reproducibility | always | ||||
| Status | closed | Resolution | fixed | ||||||
| Platform | x86_64 | OS | Mandriva | OS Version | cooker | ||||
| Product Version | 1.3.3.9cvs | ||||||||
| Target Version | Fixed in Version | 1.3.5svn | |||||||
| Summary | 0006010: When building with cmake, scribus is always installed into /usr/lib rather than /usr/lib64 | ||||||||
| Description | As titled. Maybe following patch is needed. | ||||||||
| Additional Information | --- CMakeLists.txt~ 2007-07-19 21:34:32.000000000 +0800 +++ CMakeLists.txt 2007-07-19 21:34:36.000000000 +0800 @@ -79,9 +79,9 @@ ADD_DEFINITIONS("-DSCRIPTSDIR=\\\"${CMAKE_INSTALL_PREFIX}/${SCRIPTSDIR}\\\"") SET(TEMPLATEDIR "share/${MAIN_DIR_NAME}${TAG_VERSION}/templates/") ADD_DEFINITIONS("-DTEMPLATEDIR=\\\"${CMAKE_INSTALL_PREFIX}/${TEMPLATEDIR}\\\"") -SET(LIBDIR "lib/${MAIN_DIR_NAME}${TAG_VERSION}/") +SET(LIBDIR "lib${LIB_SUFFIX}/${MAIN_DIR_NAME}${TAG_VERSION}/") ADD_DEFINITIONS("-DLIBDIR=\\\"${CMAKE_INSTALL_PREFIX}/${LIBDIR}\\\"") -SET(PLUGINDIR "lib/${MAIN_DIR_NAME}${TAG_VERSION}/plugins/") +SET(PLUGINDIR "lib${LIB_SUFFIX}/${MAIN_DIR_NAME}${TAG_VERSION}/plugins/") ADD_DEFINITIONS("-DPLUGINDIR=\\\"${CMAKE_INSTALL_PREFIX}/${PLUGINDIR}\\\"") set(CMAKE_INSTALL_RPATH ${PLUGINDIR}) | ||||||||
| Tags | No tags attached. | ||||||||
| Attached Files | |||||||||
Notes |
|
|
(0016834) cbradney (administrator) 07-Jul-19 22:38 |
who is definining LIB_SUFFIX? |
|
(0016835) fundawang (reporter) 07-Jul-20 11:45 |
In my Mandriva box, there is following rpm macro $ cat /etc/rpm/macros.d/cmake.macros # # Macros for cmake # %_cmake_lib_suffix64 -DLIB_SUFFIX=64 %__cmake %{_bindir}/cmake %cmake \ CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \ CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \ FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \ mkdir build \ cd build \ %__cmake .. \\\ %if "%{_lib}" != "lib" \ -DLIB_SUFFIX=64 \\\ %endif \ -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \\\ -DBUILD_SHARED_LIBS:BOOL=ON \\\ -DBUILD_STATIC_LIBS:BOOL=OFF And, if you don't select LIB_SUFFIX defination, there must be some other ways to detect buildtarget. |
|
(0016838) plinnell (administrator) 07-Jul-21 00:20 edited on: 07-Jul-21 00:53 |
Easier fix: #LIB LOCATION - lib or lib64 normally #LIB IF(WANT_LIB64) SET(LIB_DIR_NAME "lib64" CACHE TYPE STRING) ELSE(WANT_LIB64) SET(LIB_DIR_NAME "lib" CACHE TYPE STRING) ENDIF(WANT_LIB64) SET(LIBDIR "${LIB_DIR_NAME}/${MAIN_DIR_NAME}${TAG_VERSION}/") ADD_DEFINITIONS("-DLIBDIR=\\\"${CMAKE_INSTALL_PREFIX}/${LIBDIR}\\\"") #PLUGINS SET(PLUGINDIR "${LIB_DIR_NAME}/${MAIN_DIR_NAME}${TAG_VERSION}/plugins/") ADD_DEFINITIONS("-DPLUGINDIR=\\\"${CMAKE_INSTALL_PREFIX}/${PLUGINDIR}\\\"") Then in the spec file: cmake -DCMAKE_INSTALL_PREFIX=%prefix ../ -DWANT_CAIRO=1 \ %ifarch x86_64 ppc64 s390x mips64 sparc64 cmake -DWANT_LIB64=1 DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} ../ -DWANT_CAIRO=1 %endif #%endif |
|
(0016842) fundawang (reporter) 07-Jul-21 04:33 |
But it seems that other KDE4/Qt4 applications just accpect LIB_SUFFIX. i.e, without any changes in spec file. |
|
(0016843) cbradney (administrator) 07-Jul-21 09:50 |
That would assume someone is using Mandriva though, and also RPM. |
|
(0016844) fundawang (reporter) 07-Jul-21 10:03 |
OK. No matter the patch will be accepted, there must be some automatic way to detect on build machine. See: http://kwave.svn.sourceforge.net/viewvc/kwave/trunk/CMakeLists.txt [^] |
|
(0016873) plinnell (administrator) 07-Jul-26 11:57 |
OK, some testing with Novell's build server on Suse and Fedora tells me auto detecting 64 bit arches is not reliable so, my original suggestion seems to be more reliable. |
|
(0016874) fundawang (reporter) 07-Jul-26 12:02 |
Then, LIB_SUFFIX is more preferred. It seems that KDE4 is using that variable too. There is no use introducing another variable for the same thing. |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 07-Jul-19 16:05 | fundawang | New Issue | |
| 07-Jul-19 22:38 | cbradney | Note Added: 0016834 | |
| 07-Jul-20 11:45 | fundawang | Note Added: 0016835 | |
| 07-Jul-21 00:20 | plinnell | Note Added: 0016838 | |
| 07-Jul-21 00:53 | plinnell | Note Edited: 0016838 | |
| 07-Jul-21 04:33 | fundawang | Note Added: 0016842 | |
| 07-Jul-21 09:50 | cbradney | Note Added: 0016843 | |
| 07-Jul-21 10:03 | fundawang | Note Added: 0016844 | |
| 07-Jul-21 10:46 | plinnell | Status | new => assigned |
| 07-Jul-21 10:46 | plinnell | Assigned To | => plinnell |
| 07-Jul-26 11:57 | plinnell | Note Added: 0016873 | |
| 07-Jul-26 12:02 | fundawang | Note Added: 0016874 | |
| 07-Jul-26 22:40 | cbradney | Assigned To | plinnell => cbradney |
| 07-Jul-29 22:19 | cbradney | Status | assigned => resolved |
| 07-Jul-29 22:19 | cbradney | Fixed in Version | => 1.3.5cvs |
| 07-Jul-29 22:19 | cbradney | Resolution | open => fixed |
| 07-Jul-29 22:39 | cbradney | Relationship added | related to 0006000 |
| 07-Sep-26 20:48 | cbradney | Status | resolved => closed |
| Main | My View | View Issues | Change Log | Roadmap |
| Copyright © 2000 - 2013 MantisBT Team |