Add separate locking for tasks with prio (-1000,0) and no locking at all for tasks with prio < -1000. Use -1000 only if really needed like some negative priority job stuck.
Jan Rękorajski [Fri, 25 Oct 2013 06:15:00 +0000 (08:15 +0200)]
- define _pld_builder macro when building rpms
This macro will allow us to adjust building process for
our builder/ftp infrastructe. An example use will be separating
creation of userspace and kernel module packages from the same spec.
By forcing to either build userspace OR kernel packages from spec
we no longer have to rebuild entire package when kernel version changes.
Jacek Konieczny [Thu, 17 Oct 2013 09:18:25 +0000 (11:18 +0200)]
make-request.sh: allow requester override
--requester option added to make-request.sh so users with
appropriate privileges (change_requester in acl.conf) can
send requests on behalf of other users.
Jan Rękorajski [Thu, 6 Jun 2013 10:32:22 +0000 (12:32 +0200)]
- split package list for head and longterm builds
- allow building packages from specified branc
- set linuxrdac, lirc, madwifi-ng and xorg-driver-video-fglrx-legacy as longterm-only
- added kernel-net-wl and xorg-driver-video-nvidia-legacy3
- build xtables-addons for longterm kernel from compatible branch
config.builder_user can be different from 'builer', so build.run_command
shouldn't use 'builder' as hard coded version for user. Instead use the
functionality that chroot.command uses the correct value if called with
user = None.
Fix change_request option for multiple subsequent requests
In previous version on every request from user with change_request=True,
its login was potentially prefixed with the real requester. It could
produced undesirable result on subsequent requests as the user database
is not reinitialized between requests. This commit fixes it by earlier
setting r.requester{,_email} and using the second one as the address to
which send emails about errors with privs.
If the user has an change_requester option enabled the actual user and
its email are read from request. If the user is not present in acl.conf
its privs are the same as the ones of original user.
Kacper Kornet [Wed, 5 Dec 2012 07:35:29 +0000 (07:35 +0000)]
Fix premature removal of tmpdir in install_br
When tmpdir is removed in install_br called from build_rpm, subsequent
rpmbuild -bb in build_rpm can fail due to not existent TMPDIR directory
for %patchset macro. For example building of vim.spec fails prints
errors:
rpm: sh: can't create /home/users/builder/rpm/BUILD/vim/tmp/__ps1:
No such file or directory
rpm: sh: can't create /home/users/builder/rpm/BUILD/vim/tmp/__ps2:
No such file or directory
paste: /home/users/builder/rpm/BUILD/vim/tmp/__ps1: No such file or
directory
Setting tmpdir based on $HOME moake no sense because it gets ~ of user
on host which may be different than ~builder in chroot, thus setting
$TMPDIR practically nowhere.
Kacper Kornet [Sat, 25 Aug 2012 11:27:30 +0000 (12:27 +0100)]
make-request.sh: don't print dirname in autotag requests
Previously autotag printed request package/package.spec. It works as
builder infrastructure strips the dirname. But let's try to be
consistency in sent requests. This also fixes breakage in autotag
introduced by previous commit.
Kacper Kornet [Sat, 11 Aug 2012 02:37:56 +0000 (03:37 +0100)]
srpm_builder: fix check for specfile name
As b.spec contains .spec it should be longer then length of '.spec'
to be a valid package name. The old version resulted with removed
rpm/packages directory when presented with request for .spec package.
Kacper Kornet [Tue, 7 Aug 2012 14:40:18 +0000 (15:40 +0100)]
Fix behaviour for packagename/ with trailing '/' in argument list
In some shells autocompletion easily results in sending packagedir with
trailing '/' in argument list. Previously such arguments has been
treated correctly, however it has been broken by e4d71c863233848f975695cf52a4b35a9b0f5731 "Rewrite parser of spec:branch
syntax".