Author Topic: dependecies issue  (Read 494 times)

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
dependecies issue
« on: April 01, 2012, 12:53:23 PM »
Hi,

would need a clarification, just made a big mess updating plymouth package:
http://www.pclinuxos.com/forum/index.php/topic,104006.0.html

I have used the following notation (which lately appeared out was wrong):

%files <--------

Code: [Select]
%ifarch x86_64
/lib64/libply-splash-core.so
%else
/lib/libply-splash-core.so
%endif

the above lead to pull in several not needed packages, notably calibre.

The fix, and of course, more appropriate syntax, fixed the problem.
Code: [Select]
/%{_lib}/libply-splash-core.so
I was thinking that the two were equivalent and interchangeable, obviously they aren't.
Thanks

AS
« Last Edit: April 01, 2012, 02:19:10 PM by AS »

Offline pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2841
    • other projects...
Re: dependecies issue
« Reply #1 on: April 01, 2012, 02:11:14 PM »
me too, I would like to know why they are different or what is the difference between the two.

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3731
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: dependecies issue
« Reply #2 on: April 01, 2012, 02:51:31 PM »
and why not use

%{_libdir}/libply-splash-core.so

?

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: dependecies issue
« Reply #3 on: April 01, 2012, 03:28:11 PM »
and why not use

%{_libdir}/libply-splash-core.so

?

Doesn't %{_libdir} expand to /usr/lib ?

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3731
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: dependecies issue
« Reply #4 on: April 01, 2012, 03:36:32 PM »
it's will expand to /usr/lib or under 64 bit to /usr/lib64...

BuildRequires:   %{_lib}dvdread-devel >= 0.9.4
Will search libdvdread-devel under /usr/lib or under /usr/lib64


%{_libdir}/lib*.so.%{major}*
will store Libs under /usr/lib or under /usr/lib64

This is magic...  ;)

But i think other users can explain it better as i...  :)
« Last Edit: April 01, 2012, 03:38:13 PM by Leiche »

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: dependecies issue
« Reply #5 on: April 01, 2012, 03:39:09 PM »
it's will expand to /usr/lib or under 64 bit to /usr/lib64...

BuildRequires:   %{_lib}dvdread-devel >= 0.9.4
Will search libdvdread-devel under /usr/lib or under /usr/lib64


%{_libdir}/lib*.so.%{major}*
will store Libs under /usr/lib or under /usr/lib64

This is magic...  ;)

Yes, but those files must go in /lib or /lib64, not /usr/lib or /usr/lib64   ;)

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3731
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: dependecies issue
« Reply #6 on: April 01, 2012, 03:40:54 PM »
ahhhh, okay my bad read...
 ;D