Author Topic: [ SOLVED ] x86_64 buildrequires  (Read 1044 times)

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
[ SOLVED ] x86_64 buildrequires
« on: December 20, 2011, 03:50:35 PM »
Hi,

I'm trying to learn about packaging, Archie has been so kind to introduce to the argument, many thanks Archie!
I have already setup 2 build environments in vbox, for 32bit and 64bit, and have already re-packaged a couple of libraries in both environments.

Now I have a question, one specfile list:
Quote
BuildRequires:  libldap2.4_2-devel
once I installed libldap2.4_2-devel in the 32 bit environment all is fine, the package does build correctly.

The same package, while trying to build it in 64 bit environment, complain about the missing library (libldap2.4_2-devel), even if the library is correctly installed.

I was able to build the package modifying the library name to:
Quote
BuildRequires:  lib64ldap2.4_2-devel

Of course, this change will not be portable across the 32 and 64 bit environments.

What is needed to do here ? Is it an error in ldap2.4_2-devel library ?

Could be worked out with a conditional like this one:
Quote
%ifarch x86_64
BuildRequires:  lib64ldap2.4_2-devel
%else
BuildRequires:  libldap2.4_2-devel
%endif

Suggestions will be greatly appreciated. Thanks!

AS





« Last Edit: December 20, 2011, 05:41:13 PM by as »

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: x86_64 buildrequires
« Reply #1 on: December 20, 2011, 05:04:39 PM »
Archie is tutoring you? Woohoo!    
Use ---        
Quote
BuildRequires:  %{_lib}ldap2.4_2-devel
   

You can use this %{_lib} in most of your specs for "lib" packages. Using this, the library will be 'looked for' as 32bit in your 32bit environment and 64bit in your 64bit.    

Hey, Archie! I'm proud of you, man!    
« Last Edit: December 20, 2011, 05:06:38 PM by Texstar »

Offline sammy2fish

  • Hero Member
  • *****
  • Posts: 3288
  • from the Prairies... Canadian MLU
Re: x86_64 buildrequires
« Reply #2 on: December 20, 2011, 05:19:21 PM »
as, it sounds great how you're catching on.....!

Much as I wouldn't mind helping, it would never work.  Being dyslexic & add.  I don't even have the patience to play a klondike card game, or a checkers board game.

Too many variables to consider in making software stuff, or games to win.  Let me get my hands on wood & power-tools, and I feel at home.
One of the few things I've learnt as growing older.  Is to choose your battles.. but never loose sight of the war..!

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: x86_64 buildrequires
« Reply #3 on: December 20, 2011, 05:40:50 PM »
Archie is tutoring you? Woohoo!   

Yes, considering how much annoying could be ... he answered a lot of my newbie questions.  :)

Quote

Use ---       
Quote
BuildRequires:  %{_lib}ldap2.4_2-devel
     

You can use this %{_lib} in all your specs for "lib" packages. Using this, the library will be 'looked for' as 32bit in your 32bit environment and 64bit in your 64bit.

Many thanks Neal and Texstar!

as, it sounds great how you're catching on.....!

Thanks, I'm trying. Right now I'm only catching issues  :D ;D hopefully in the near future ...  ;)
Of course, each one of us has it's own skills and experience, and each one contribute it's own knowledge, don't underestimate your contribution on this forum, we appreciate it!   :)


Another question: discussing 64bit issue on forum is not allowed, testers-mailing list is only for testing.
Where should be discussed things like the "supposed" lack of a 64bit ".la" file ?  (file that is present in the 32bit version of the same library)



Offline Texstar

  • Administrator
  • Super Villain
  • *****
  • Posts: 12490
Re: [ SOLVED ] x86_64 buildrequires
« Reply #4 on: December 20, 2011, 05:44:33 PM »
We are dropping *.la files. If you run into linking errors simply type rm -rf /usr/lib64/*.la then start your build again.

Thanks to everyone who donates. You keep the servers running.

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: [ SOLVED ] x86_64 buildrequires
« Reply #5 on: December 20, 2011, 05:58:13 PM »
We are dropping *.la files. If you run into linking errors simply type rm -rf /usr/lib64/*.la then start your build again.

Great! Thanks again!

AS

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: x86_64 buildrequires
« Reply #6 on: December 20, 2011, 05:59:01 PM »
Another question: discussing 64bit issue on forum is not allowed, testers-mailing list is only for testing.
Where should be discussed things like the "supposed" lack of a 64bit ".la" file ?  (file that is present in the 32bit version of the same library)
     
An exception: Packaging questions may be brought here to Packagers section. :)     

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: x86_64 buildrequires
« Reply #7 on: December 20, 2011, 06:01:48 PM »
Another question: discussing 64bit issue on forum is not allowed, testers-mailing list is only for testing.
Where should be discussed things like the "supposed" lack of a 64bit ".la" file ?  (file that is present in the 32bit version of the same library)
     
An exception: Packaging questions may be brought here to Packagers section. :)     

OK  ;)

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8583
  • Aurum nostrum non est aurum vulgi.
Re: x86_64 buildrequires
« Reply #8 on: December 20, 2011, 07:10:32 PM »
Archie is tutoring you? Woohoo!    
Use ---        
Quote
BuildRequires:  %{_lib}ldap2.4_2-devel
   

You can use this %{_lib} in most of your specs for "lib" packages. Using this, the library will be 'looked for' as 32bit in your 32bit environment and 64bit in your 64bit.    

Hey, Archie! I'm proud of you, man!    

I am learning just as much from AS.  :P

My "tutor" is just the skeleton format of our SPEC and how AS can implement his manual builds and install onto it.

I can't really take any credit for anything ... AS is one excellent troubleshooter, and I reckon would be a valuable addition to the team.
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8583
  • Aurum nostrum non est aurum vulgi.
Re: [ SOLVED ] x86_64 buildrequires
« Reply #9 on: December 20, 2011, 07:18:58 PM »
We are dropping *.la files. If you run into linking errors simply type rm -rf /usr/lib64/*.la then start your build again.

A little more elaborate would help me better understand.

A build looks for .la and exits. So we have the dev libs and/or libs with nos. Will simply running rm -rf /usr/lib64/*.la skip to linking with these instead?
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: [ SOLVED ] x86_64 buildrequires
« Reply #10 on: December 20, 2011, 07:24:41 PM »
I agree, AS is a great addition to the team, but don't sell yourself short. Remember that I have known you for years and know how tirelessly you have worked 'behind the scenes.' :)    

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8583
  • Aurum nostrum non est aurum vulgi.
Re: [ SOLVED ] x86_64 buildrequires
« Reply #11 on: December 20, 2011, 07:29:34 PM »
I agree, AS is a great addition to the team, but don't sell yourself short. Remember that I have known you for years and know how tirelessly you have worked 'behind the scenes.' :)     

Thank you for your valuable encouragement, Neal. And FWIW, I will always place a high value on many of the lessons I've learned from you. You are a GOOD ... GREAT teacher.

I owe it to you, to Tex and to the PCLOS community.
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: [ SOLVED ] x86_64 buildrequires
« Reply #12 on: December 20, 2011, 07:35:15 PM »
 :-[ :-[ :-[ Thanks, Archie. That means a lot to me. :) :)     
(a bit embarrassed by the praise)