D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
thread-self
/
root
/
usr
/
share
/
doc
/
rpm
/
Filename :
multiplebuilds
back
Copy
/*! \page multiplebuilds Multiple build areas It is possible to run several RPM builds on the same machine using separate RPM databases. On my build machine I have several build areas which all run builds at the same time. The builds do not interfere with each other. Each build behaves as if it was running on its own machine and no build area knows about the RPM database which actually configures the machine. First, setup a "topdir" in a prefix other then where RPM is installed. You will need to make the directories. They need to be writable by the account which will do the building, typically they are owned by the buildmaster account and set to permissions 755. \verbatim BUILD RPMS SOURCES SPECS SRPMS \endverbatim Next, you will need to decide where the database files live. I suggest putting them in a separate directory under "topdir". I call my directory DB and it has the same owner and permissions as the other directories. Each separate build area needs a rpmrc and macro configuration file. This will need to specify the new topdir and dbpath. If you will be building the same packages in different work areas you will also need to specify a tmppath into the topdir. I suggest either making tmppath be the same as the BUILD directory or adding another directory called BUILDROOT for it in the topdir. Keeping track of the correct rpmrc for each build area can be difficult. To make my life easier I make a small shell script with the topdir hard coded inside: \verbatim #!/bin/sh /bin/rpm --rcfile /topdir/rpmrc "$@" exit $? \endverbatim I call the shell script rpm and it lives in the topdir. Each time I wish to use a particular build area I just ensure that the build area is first in my path so that when I run "rpm" I get the regular rpm binary but I am using the local build areas rpmrc. */
Name
Size
Last Modified
Owner
Permissions
Actions
CREDITS
2.609
KB
April 28 2020 12:50:11
root
0644
builddependencies
6.344
KB
January 08 2020 5:17:27
root
0644
buildroot
3.666
KB
January 08 2020 5:17:27
root
0644
conditionalbuilds
3.955
KB
January 08 2020 5:17:27
root
0644
dependencies
13.343
KB
April 28 2020 12:50:11
root
0644
format
10.18
KB
January 08 2020 5:17:27
root
0644
hregions
2.898
KB
August 09 2017 3:23:43
root
0644
macros
9.333
KB
April 28 2020 12:50:11
root
0644
multiplebuilds
1.822
KB
August 09 2017 3:23:43
root
0644
queryformat
6.177
KB
April 28 2020 12:50:11
root
0644
relocatable
1.981
KB
January 08 2020 5:17:27
root
0644
signatures
2.574
KB
January 08 2020 5:17:27
root
0644
spec
7.711
KB
April 28 2020 12:50:11
root
0644
triggers
5.541
KB
April 28 2020 12:50:11
root
0644
tsort
5.332
KB
January 08 2020 5:17:27
root
0644
2017 © D7net | D704T team