Results 1 to 4 of 4

Thread: Trying to package qdldl: mv: cannot move ... Permission denied

  1. #1
    Join Date
    Oct 2018
    Location
    Atlantis
    Posts
    179

    Default Trying to package qdldl: mv: cannot move ... Permission denied

    Hello,
    I am trying to package qdldl.
    https://build.opensuse.org/package/s...he_great/qdldl

    qdldl tried to install /usr/lib/cmake/qdldl.
    So I think the correct way should be /usr/lib64/cmake/qdldl.

    So I use,

    Code:
    %if "%{_libdir}" != "%{_prefix}/lib"
    mv %{buildroot}%{_prefix}/lib/cmake/qdldl/ %{_libdir} 
    %endif
    just under %cmake_install.

    However, I got mv: cannot move '/home/abuild/rpmbuild/BUILDROOT/qdldl-0.1.5-0.x86_64/usr/lib/cmake/qdldl/' to '/usr/lib64/qdldl': Permission denied

    How to fix this?
    Thank you.

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    29,680
    Blog Entries
    15

    Default Re: Trying to package qdldl: mv: cannot move ... Permission denied

    Hi
    When I'm not sure I always look in the local system to see what's present and then look on OBS as to how it was done

    For example I see /usr/lib64/cmake/openblas;

    https://build.opensuse.org/package/v....spec?expand=1

    Looks like they use defines to get it into the correct location....
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #3
    Join Date
    Oct 2018
    Location
    Atlantis
    Posts
    179

    Default Re: Trying to package qdldl: mv: cannot move ... Permission denied

    Quote Originally Posted by malcolmlewis View Post
    Hi
    When I'm not sure I always look in the local system to see what's present and then look on OBS as to how it was done

    For example I see /usr/lib64/cmake/openblas;

    https://build.opensuse.org/package/v....spec?expand=1

    Looks like they use defines to get it into the correct location....
    I have look into the openblas that you link, from what I understand, it seems that they hide the full directory under %define is that right?
    So I tried it as well, but same error.

    I ended up with this, but same error.

    Code:
    %define p_name   qdldl
    %define p_libdir /lib
    %define p_cmakedir %{buildroot}%{_prefix}%{p_libdir}/cmake/%{p_name}
    
    ...
    
    %if "%{_libdir}" != "%{_prefix}/lib"
    mv %{p_cmakedir} %{_libdir} 
    %endif

  4. #4
    Join Date
    Oct 2018
    Location
    Atlantis
    Posts
    179

    Default Re: Trying to package qdldl: mv: cannot move ... Permission denied

    SOLVED

    I patch the cmake file instead

Posting Permissions

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