LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-08-2013, 03:00 AM   #1
bsnote
LQ Newbie
 
Registered: Jan 2013
Posts: 6

Rep: Reputation: Disabled
cannot build mipsel rpm


I copied all files that I need in the package, to BUILDROOT/zlib-1.2.7-1.mipsel. Then I created SPECS/zlib-1.2.7.mipsel.spec with the following content:

Name: zlib
Version: 1.2.7
Release: 1
Summary: zlib 1.2.7 dev package for mipsel
License: Public

%description

%files
/include
/lib
/share


When I run rpmbuild:

rpmbuild -bb --target=mipsel zlib-1.2.7.mipsel.spec

it shows this:

Building for target mipsel
Processing files: zlib-1.2.7-1.mipsel
error: File not found: /home/makerpm/rpmbuild/BUILDROOT/zlib-1.2.7-1.%{_arch}/include
error: File not found: /home/makerpm/rpmbuild/BUILDROOT/zlib-1.2.7-1.%{_arch}/lib
error: File not found: /home/makerpm/rpmbuild/BUILDROOT/zlib-1.2.7-1.%{_arch}/share


RPM build errors:
File not found: /home/makerpm/rpmbuild/BUILDROOT/zlib-1.2.7-1.%{_arch}/include
File not found: /home/makerpm/rpmbuild/BUILDROOT/zlib-1.2.7-1.%{_arch}/lib
File not found: /home/makerpm/rpmbuild/BUILDROOT/zlib-1.2.7-1.%{_arch}/share


How can I package files for mipsel?
 
Old 03-09-2013, 03:08 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
I guess that the line / argument "BuildArchitectures" is missing.
Code:
Summary:   None
Name:      
Version:   
Release:   
License:   
Group:     None          
Packager:  
BuildArchitectures: mipsel
BuildRoot: 

%description
No description

%files
.
.
.
EDIT : See http://www.linuxquestions.org/questi...-4175454037/#2

Last edited by knudfl; 03-14-2013 at 07:07 AM.
 
  


Reply

Tags
rpm, rpmbuild



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
self build rpm fails with missing dependencies on build host zhjim Linux - Software 1 09-24-2009 08:47 AM
How can I generate / build and RPM from *.src.rpm file sreekumartg Red Hat 3 02-23-2007 05:23 PM
mipsel-linux gcc khairilthegreat Linux - Networking 0 01-17-2007 08:21 AM
How can I get the rpm command and rpm build command on my Debian box? abefroman Debian 6 11-28-2005 12:38 PM
cannot build source rpm/ rpm questions kpachopoulos Fedora 3 07-24-2005 09:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:54 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration