User:DanielDrake/Notes

From OLPC

Jump to: navigation, search

Contents

[edit] RPM dev

[edit] initial setup

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

[edit] 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

[edit] unpacking sources

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

[edit] building

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

[edit] installing

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

[edit] links

[edit] misc

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

[edit] additional notes for XO devel

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

[edit] easy flashing from USB

  • download osXYZ.img and osXYZ.crc to usb drive
  • plug usb drive into XO
  • press esc during boot to reach openfirmware prompt
  • run copy-nand u:\osXYZ.img?
  • this wipes everything
  • run boot

[edit] reverse dependencies

  • what requires libgnome?
    • rpm -q --provides libgnome
    • for each line of output: rpm -q --whatrequires FOO
  • what does libgnome require?
    • rpm -q -R libgnome
Personal tools
  • Log in / create account
About OLPC
About the XO
Projects
OLPC wiki
Toolbox