Results 1 to 7 of 7

Thread: redirecting installation to /usr/lib64

  1. #1
    Join Date
    Jun 2008
    Location
    Düsseldorf/Germany
    Posts
    265

    Default redirecting installation to /usr/lib64

    Hi,
    getting forward with the fingerprint-gui port...it compiles but does not install correctly: It want to install into /usr/lib, but OBS looks for it in /usr/lib64
    Code:
    %build
    %qmake5 QMAKE_CXXFLAGS="-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include" PREFIX=/usr LIB=%{_libdir} 
    make
    %{_libdir} is architecture-dependent, in this case it points to /usr/lib64
    The idea was to add LIBEXEC=%{_libdir}, but this then installs into /usr/usr/lib64, which is not a good idea either.
    Is there a (standard) trick how to point the installation path to the right direction?
    Package in problem is https://build.opensuse.org/package/s...ingerprint-gui

  2. #2
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    4,873

    Default AW: redirecting installation to /usr/lib64

    /lib is for 32 bit
    /lib64 is for 64 bit

    You can link to the libs....

  3. #3
    Join Date
    Jun 2008
    Location
    Düsseldorf/Germany
    Posts
    265

    Default Re: AW: redirecting installation to /usr/lib64

    Quote Originally Posted by Sauerland View Post
    /lib is for 32 bit
    /lib64 is for 64 bit

    You can link to the libs....
    That could be an option, but is there no way to directly install to lib64?

  4. #4
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    4,873

    Default AW: redirecting installation to /usr/lib64

    You have another source..... 1.09 vs 1.07

  5. #5
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    4,873

    Default AW: redirecting installation to /usr/lib64

    Setting up your build directory:
    As User:
    Code:
    $ mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
    Code:
    $ echo '%_topdir %(echo $HOME)/rpmbuild' > ~/.rpmmacros
    All files have to move to the SOURCES directory, only the spec file have to move to the SPECS directory.

    In the SPECS directory you have to:
    Code:
    rpmbuild -ba --noclean xxxxx.spec
    and you can see in the BUILDROOT which files were build on which location.....

    BUILD= for the extracted and patched sources
    BUILDROOT= the directory where the the libs/programms are stored after installing in your tree
    Last edited by Sauerland; 08-May-2020 at 03:02.

  6. #6
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    4,873

    Default AW: redirecting installation to /usr/lib64

    I have build it from Fedora:
    https://github.com/rpmsphere/source/...09-3.1.src.rpm

    But you have to modify the spec-file:
    Code:
    --- /fingerprint-gui-1.09-3.1.src/fingerprint-gui.spec	2018-11-22 02:58:57.000000000 +0100
    +++ /SPECS/fingerprint-gui.spec	2020-05-08 11:30:31.958213846 +0200
    @@ -9,7 +9,7 @@
     Source1:        fingerprint-gui.svg
     BuildRequires:  cmake
     BuildRequires:  gcc-c++
    -BuildRequires:  qt4-devel
    +BuildRequires:  qt-devel
     BuildRequires:  pam-devel
     BuildRequires:  pkgconfig(libfakekey)
     BuildRequires:  pkgconfig(libfprint)
    @@ -35,7 +35,7 @@
     
     %build
     export QTDIR=%{_libexecdir}/
    -qmake-qt4 QMAKE_CFLAGS="%{optflags}" QMAKE_CXXFLAGS="%{optflags}" PREFIX=%{_prefix} LIB=%{_lib} LIBEXEC=%{_lib}
    +qmake QMAKE_CFLAGS="%{optflags}" QMAKE_CXXFLAGS="%{optflags}" PREFIX=%{_prefix} LIB=%{_lib} LIBEXEC=%{_lib}
     make %{?_smp_mflags}
     
     %install
    https://www.krauttranslate.de/~sauer...print-gui.diff

  7. #7
    Join Date
    Jun 2008
    Location
    Düsseldorf/Germany
    Posts
    265

    Default Re: AW: redirecting installation to /usr/lib64

    Quote Originally Posted by Sauerland View Post
    Thank you, that was not the solution, but pointed into the right direction!
    LIBEXEC=%{_lib}
    instead of
    LIBEXEC=%{_libdir}
    did the trick!
    Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •