LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-08-2010, 10:00 AM   #1
dimasfs
LQ Newbie
 
Registered: Dec 2008
Posts: 1

Rep: Reputation: 0
Question How to force required 32bit library on spec file


Hi All,

is there a way to specify that I need a 32bit version of a certain library on the "Requires" line of a SPEC file?

Since my software contain (a lot of) binaries from other sources (not always RPM compatible) I had to do "AutoReqProv: No" so I can do it manually.

Is there a way to explicid say that I need the 32bit version of some library?

Code:
Prefix: /usr/local/%{name}-%{version}
BuildArch: noarch
Source: %{name}-%{version}-linux.zip
AutoReqProv: No 
Requires: ld-linux.so.2 libstdc++.so.5 libX11.so.6 libXpm.so.4 libstdc++.so.6(CXXABI_1.3.1)
BuildRequires: which findutils dos2unix
Buildroot: %{_tmppath}/%{name}-%{version}-build
Thanks,
Dms
 
Old 04-08-2010, 06:54 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,564
Blog Entries: 54

Rep: Reputation: 2927Reputation: 2927Reputation: 2927Reputation: 2927Reputation: 2927Reputation: 2927Reputation: 2927Reputation: 2927Reputation: 2927Reputation: 2927Reputation: 2927
Quote:
Originally Posted by dimasfs View Post
is there a way to specify that I need a 32bit version of a certain library on the "Requires" line of a SPEC file?
AFAIK no, but using 'gcc' with the "-m32" flag and 'rpmbuild' with the "--target=i586" flag might do the trick?


Quote:
Originally Posted by dimasfs View Post
Since my software contain (a lot of) binaries from other sources (not always RPM compatible) I had to do "AutoReqProv: No" so I can do it manually.
If that's your way of saying you're polluting RPM-based packages with non-RPM dependencies then that looks like a road to ruin to me.
 
  


Reply

Tags
32bit, library, rpmbuild, spec


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
nvidia runs fine, now what about 32bit library? mlai023 Slackware 5 09-12-2009 06:35 AM
Can you force repetitive library search using g++ v3.2 on Linux 3.9? rewurzb Programming 1 09-02-2009 01:32 PM
required help in libipq library route Linux - Networking 1 04-20-2009 06:47 AM
Rhct/rhce guys:: what r d spec. topics of RH033 required for RHCT sifatb Linux - Certification 2 09-09-2006 05:43 PM
Using a 32bit library on a 64bit computer sniff Programming 1 07-04-2006 04:47 AM


All times are GMT -5. The time now is 02:33 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration