building rpms

Place to discuss Fedora and/or Red Hat

building rpms

Postby fedorajim » Sat Apr 09, 2005 7:32 am

I would like to build rpms for a friend of mine But he has a 64 bit os Can I build for his System ? IF not, Anyone interested in building Engage rpms for 64 Bit OS ?


Kernel > 2.6.10-1.770_FC3
fedorajim
n00b
n00b
 
Posts: 3
Joined: Sat Apr 09, 2005 7:28 am
Location: Rochester NY

Postby Void Main » Sat Apr 09, 2005 8:32 am

I would be happy to build the RPMS for him. Can you send me an x86_64 machine? :) Actually you "should" be able to do this provided you have the appropriate cross-compiling environment set up. That is, your compiler needs to be set up to be able to compile binaries for your desired target system (x86_64 in this case). I have never cross compiled anything for the x86_64 but I have for MIPS and I have to say it wasn't the easiest experience I have ever had, and this didn't include building RPMS. Things may be easier now. It may be as simple as:

$ rpmbuild -ba engage.spec --target x86_64

I think the spec file has to be set up to know how to compile for that target, and of course your compiler has to be capable of compiling for that target. Sorry for not knowing "exactly" what you need to do off the top of my head but I do believe it is possible. The question is, how much work will it be for that particular package. This also assumes that the package can already be built on a x86_64 and if it is it begs the question why there already isn't an RPM for it out there? I guess another question would be why can't your buddy just build it on his x86_64 machine?
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby fedorajim » Sat Apr 09, 2005 9:09 am

He's a rookie and wouldn't even begin to understand whats going on. The source can be built on x86_64 others have done it that way. The only logical solutions is that rpms can be built i looked at the SPEC file and nothing looks out of place so to speak, but then again i have built very few rpms and only for 32 bit Arch

I was running into a issue having him install via yum asking for libxine.so.1 which o n a 32 bit Arch is in /usr/lib/ where as 64 bit os it is /ust/lin64/

i'll give it a whirl and let him try What other tools would be necessary to build for x86_64
other than the rpmbuild tools and gcc ?

if yopu would like to see a spec for one of the rpms



# Authority: Didier F.B. Casse

%define _prefix /usr/local

Name: engage
Summary: Engage is a cool docker that resembles OSX in some ways.
Version: 0.0.9
Release: 1.%(date '+%Y%m%d').e17.fc3
License: BSD
Group: Applications/Multimedia
URL: http://www.enlightenment.org/
Source0: %{name}-%{version}.tar.gz
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: libjpeg-devel
Requires: esmart, imlib2, imlib2-devel, edje, ecore, evas, ewl

%description
Engage Can be configured to use many different themes and behaviours and can include any app on the launch bar. It shows what is running as well as what is minimised. It can be configured to use application icons instead of theme icons if preferred.

Themes available include:
Gant
Winter
gentoo

%prep
%setup -q

%build
./autogen.sh
%{__make} %{?_smp_mflags} %{?mflags}

%install
rm -fr %{buildroot}
%{__make} %{?mflags_install} DESTDIR=%{buildroot} install

%clean
rm -fr %{buildroot}
%undefine __check_files

%post
/sbin/ldconfig

%postun
/sbin/ldconfig

%files
%defattr(-,root,root)
%{_libdir}/engage*
%{_bindir}/engage
%{_datadir}/engage*
%doc AUTHORS ChangeLog COPYING README

%changelog

fedorajim
n00b
n00b
 
Posts: 3
Joined: Sat Apr 09, 2005 7:28 am
Location: Rochester NY

Postby Void Main » Sat Apr 09, 2005 9:45 am

Even at rookie it should be trivial to give him instructions to build and install the source RPM:

1) Download source RPM to /tmp
2) Open terminal
3) become root and build binary RPMs:
Code: Select all
$ su -
(enter root's password)
# rpmbuild --rebuild /tmp/engage*src.rpm


If the RPM builds successfully then the last few lines of output should have one or more lines that start with:

Wrote: /usr/src/redhat/RPMS/x86_64/engage...


4) Install those RPMs with "rpm -Uvh rpmnamefromabove".

Of course like you said he would have to have all dependencies installed. I prefer to use apt to install any dependencies.

Not wanting to do any of that and knowing that others have built RPMS for the x86_64 can't you get the RPMs from them?
Last edited by Void Main on Sat Apr 09, 2005 2:15 pm, edited 2 times in total.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby fedorajim » Sat Apr 09, 2005 10:21 am

others have installed from source sorry if i wasn't clear before.
I'll ahve him try it and let ya know
fedorajim
n00b
n00b
 
Posts: 3
Joined: Sat Apr 09, 2005 7:28 am
Location: Rochester NY


Return to Fedora/Red Hat

Who is online

Users browsing this forum: No registered users and 3 guests

cron