User:DanielDrake/Notes: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
No edit summary
Line 8: Line 8:
* install build-dependencies: <tt>sudo yum-builddep foo.src.rpm</tt>
* install build-dependencies: <tt>sudo yum-builddep foo.src.rpm</tt>
* unpack the sources: <tt>rpm -Uvh foo.src.rpm</tt>
* unpack the sources: <tt>rpm -Uvh foo.src.rpm</tt>

== unpacking sources ==
* only if you want to generate new patches or whatever: <tt>cd ~/SPECS; rpmbuild -bp --target=`uname -m` foo.spec</tt>

== building ==
* <tt>cd ~/SPECS; rpmbuild -bb --target=`uname -m` foo.spec</tt>
* output is in ~/RPMS/<arch>

== installing ==
* sudo rpm -ivh --force ../RPMS/foo.rpm


= links =
= links =
Line 22: Line 32:
= additional notes for XO devel =
= additional notes for XO devel =
* other packages needed: git
* other packages needed: git
* other development utils I use: quilt

= questions =
* `uname -m` gives i686, but fedora is i386, when installing gives errors like:
file /usr/bin/sudo from install of sudo-1.6.9p13-4.fc9.i686 conflicts with file from package sudo-1.6.9p13-4.fc9.i386

Revision as of 13:44, 13 June 2008

RPM dev

initial setup

  • install packages: fedora-rpmdevtools yum-utils
  • run rpmdev-setuptree to create ~/rpmbuild hierarchy and .rpmmacros settings

obtaining/unpacking source and preparing build env

  • Find the source RPM either in the fedora archives or run yumdownloader --source <package>
  • install build-dependencies: sudo yum-builddep foo.src.rpm
  • unpack the sources: rpm -Uvh foo.src.rpm

unpacking sources

  • only if you want to generate new patches or whatever: cd ~/SPECS; rpmbuild -bp --target=`uname -m` foo.spec

building

  • cd ~/SPECS; rpmbuild -bb --target=`uname -m` foo.spec
  • output is in ~/RPMS/<arch>

installing

  • sudo rpm -ivh --force ../RPMS/foo.rpm

links

misc

  • query installed sofware version: rpm -q <package>

additional notes for XO devel

  • other packages needed: git
  • other development utils I use: quilt

questions

  • `uname -m` gives i686, but fedora is i386, when installing gives errors like:
file /usr/bin/sudo from install of sudo-1.6.9p13-4.fc9.i686 conflicts with file from package sudo-1.6.9p13-4.fc9.i386