Difference between revisions of "DeveloperWiki:PKGBUILD.com"

From ArchWiki
Jump to: navigation, search
(Genereting rebuilding list when soname is bumped)
m (x86_64)
 
(13 intermediate revisions by 8 users not shown)
Line 1: Line 1:
 +
[[Category:Arch development]]
 
==Directories that must be used==
 
==Directories that must be used==
  
All users should use '''only''' ~/chroots for storing his chroots and ~/packages for storing packages builds. This directories are excluded from backups and all other directories are automatically backed up.
+
All users should use '''only''' ~/packages for storing packages builds and ~/svn-packages. These directories are excluded from backups and all other directories are automatically backed up.
  
 
==Creating chroots and building packages==
 
==Creating chroots and building packages==
Line 15: Line 16:
 
  /usr/bin/testing-x86_64-build
 
  /usr/bin/testing-x86_64-build
  
This can be used to _create_ and build packages. Chroots are created by default in ~/chroots.
+
This can be used to _create_ and build packages. Chroots are created by default in /var/tmp/archbuild.
To build packages that depends on each other should be use makechrootpkg directly.
+
To build packages that depend on each other you should use makechrootpkg directly.
  
  $ extra-i686-build
+
  $ sudo extra-i686-build
  $ testing-x86_64-build
+
  $ sudo testing-x86_64-build
  
 
==i686==
 
==i686==
 
   
 
   
  $ linux32 sudo makechrootpkg -cr ~/chroots/extra-i686 -- -i
+
  $ setarch i686 sudo makechrootpkg -cr /var/lib/archbuild/extra-i686 -- -i
  
 
next package
 
next package
  
  $ linux32 sudo makechrootpkg -r ~/chroot/extra-i686
+
  $ setarch i686 sudo makechrootpkg -r /var/lib/archbuild/extra-i686
  
 
==x86_64==
 
==x86_64==
  
  $ sudo makechrootpkg -cr ~/chroots/extra-x86_64 -- -i
+
  $ sudo makechrootpkg -cr /var/lib/archbuild/extra-x86_64 -- -i
  
 
next package
 
next package
  
  $ sudo makechrootpkg -r ~/chroot/extra-x86_64
+
  $ sudo makechrootpkg -r /var/lib/archbuild/extra-x86_64
 
+
==Updating chroots==
+
 
+
$ sudo chrootupdate
+
  
 
==Packager && Makeflags==
 
==Packager && Makeflags==
Line 48: Line 45:
 
  MAKEFLAGS="-j5"
 
  MAKEFLAGS="-j5"
  
==Connecting to sigurd or gerolde from alderaan==
+
==Connecting to sigurd or gerolde from brynhild==
  
 
On your local system add this:
 
On your local system add this:
Line 57: Line 54:
 
     ForwardAgent yes
 
     ForwardAgent yes
  
==Genereting rebuilding list when soname is bumped==
+
==Generating rebuilding list when soname is bumped==
 +
 
 +
Available in repo-tools.git (https://projects.archlinux.de/repo-tools.git/) and available on brynhild:
  
  $ greplib soname
+
  $ sogrep <repo> <soname>
  $ greplib x264.so.107
+
  $ sogrep extra x264.so.107

Latest revision as of 18:08, 16 June 2012

Directories that must be used

All users should use only ~/packages for storing packages builds and ~/svn-packages. These directories are excluded from backups and all other directories are automatically backed up.

Creating chroots and building packages

Devtools 0.9.10 has build helpers that can be used.

/usr/bin/extra-i686-build
/usr/bin/extra-x86_64-build
/usr/bin/multilib-build
/usr/bin/staging-i686-build
/usr/bin/staging-x86_64-build
/usr/bin/testing-i686-build
/usr/bin/testing-x86_64-build

This can be used to _create_ and build packages. Chroots are created by default in /var/tmp/archbuild. To build packages that depend on each other you should use makechrootpkg directly.

$ sudo extra-i686-build
$ sudo testing-x86_64-build

i686

$ setarch i686 sudo makechrootpkg -cr /var/lib/archbuild/extra-i686 -- -i

next package

$ setarch i686 sudo makechrootpkg -r /var/lib/archbuild/extra-i686

x86_64

$ sudo makechrootpkg -cr /var/lib/archbuild/extra-x86_64 -- -i

next package

$ sudo makechrootpkg -r /var/lib/archbuild/extra-x86_64

Packager && Makeflags

Add ~/.makepkg.conf with PACKAGER information
PACKAGER="Name <email>"
MAKEFLAGS="-j5"

Connecting to sigurd or gerolde from brynhild

On your local system add this:

$ cat .ssh/config
  Host pkgbuild.com
    Hostname pkgbuild.com
    User youruser
    ForwardAgent yes

Generating rebuilding list when soname is bumped

Available in repo-tools.git (https://projects.archlinux.de/repo-tools.git/) and available on brynhild:

$ sogrep <repo> <soname>
$ sogrep extra x264.so.107