Koji 1.7.0 release
by Mike McLean
I've just tagged and posted the 1.7.0 release of Koji. The most
significant change is the move from mod_python to mod_wsgi, but there
are a number of other changes also (it's been a while since 1.6.0).
I've written a document for migrating from 1.6.0 to 1.7.0. Look under:
docs/Migrating_to_1.7.txt
Here is the changelog entry:
* Thu May 31 2012 Mike McLean <mikem at redhat.com> - 1.7.0-1
- mod_wsgi support
- mod_python support deprecated
- kojiweb configuration file (web.conf)
- split storage support (build volumes)
- configurable resource limits (hub, web, and kojid)
- drop pkgurl in favor of topurl
- better approach to web themes
- more helpful policy errors
- clearer errors when rpc args do not match function signature
- avoid retry errors on some common builder calls
- don't rely on pgdb._quoteparams
- avoid hosts taking special arch tasks they cannot handle
- kojid: configure yum proxy
- kojid: configure failed buildroot lifetime
- kojid: literal_task_arches option
- support for arm hardware floating point arches
- maven build options: goals, envs, extra packages
- store Maven build output under the standard build directory
- make the list of files ignored in the local Maven repo configurable
- add Maven information to taginfo
- make kojira more efficient using multicalls and caching
- speed up kojira startup
- kojira: configurable sleep time
- kojira: count untracked newRepo tasks towards limits
- kojira: limit non-waiting newRepo tasks
- gssapi support in the messagebus plugin
- grant-permission --new
- improved argument display for list-api command
- moshimoshi
- download task output directly from KojiFilesURL, rather than going
through getfile
- option to show buildroot data in rpminfo command
- show search help on blank search command
- wait-repo: wait for the build(s) to be the latest rather than just present
11 years, 2 months
bash: /dev/null: Permission denied
by Allen Wayne Best_ esq
Hello;
Oops! Please forgive the fumble fingered prior post!
I am having trouble building atlas and atlas; other's (ie, gcc-4.7) finish with
created rpms.
I am getting a *lot* of "bash: /dev/null: Permission denied" messages. Here
are the results of invoking mock --shell and checking permissions for
/dev/null, as well as a copy of the mock cfg file being used.
$ mock --shell
INFO: mock.py version 1.1.18 starting...
State Changed: init plugins
INFO: selinux disabled
State Changed: start
State Changed: lock buildroot
State Changed: shell
bash: /dev/null: Permission denied
bash: /dev/null: Permission denied
bash: /dev/null: Permission denied
bash: /dev/null: Permission denied
bash: /dev/null: Permission denied
bash: /dev/null: Permission denied
bash: /dev/null: Permission denied
bash: /dev/null: Permission denied
bash: /dev/null: Permission denied
<mock-chroot>$ ls -al /dev/null
crw-rw-rw- 1 root root 1, 3 Jun 11 21:09 /dev/null
<mock-chroot>$ exit
$ cat /etc/mock/fedora-14-x86_64.cfg
config_opts['root'] = 'fedora-14-x86_64'
config_opts['target_arch'] = 'x86_64'
config_opts['legal_host_arches'] = ('x86_64')
config_opts['chroot_setup_cmd'] = 'groupinstall buildsys-build'
config_opts['dist'] = 'fc14' # only useful for --resultdir variable subst
config_opts['resultdir'] = '/home/best/songs/pub/gnu-tools/log/'
# config_opts['basedir'] = '/dev/shm/'
config_opts['basedir']='/home/best/songs/pub/gnu-tools/mock'
config_opts['chrootuser'] = 'mockbuild'
config_opts['chrootgroup'] = 'mockbuild'
config_opts['chrootuid'] = os.geteuid()
config_opts['chrootgid'] = os.getegid()
config_opts['cleanup_on_success'] = True
config_opts['cleanup_on_failure'] = False
config_opts['yum.conf'] = """
[main]
cachedir=/var/cache/yum
debuglevel=1
reposdir=/dev/null
logfile=/home/best/songs/pub/log
retries=20
obsoletes=1
gpgcheck=0
assumeyes=1
syslog_ident=mock
syslog_device=
[Additional Packages Arches]
kernel = i686
# repos
[fedora]
name=fedora
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-14&arc...
failovermethod=priority
[updates-released]
name=updates
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-relea...
f14&arch=x86_64
failovermethod=priority
[local]
name=local
baseurl=http://kojipkgs.fedoraproject.org/repos/dist-f14-build/latest/x86...
cost=2000
enabled=0
[fedora-debug]
name=fedora-debug
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-
debug-14&arch=x86_64
failovermethod=priority
enabled=0
[updates-debug]
name=updates-debug
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-relea...
debug-f14&arch=x86_64
failovermethod=priority
enabled=0
"""
# config_opts['macros'] = """
# %_topdir /builddir/build
# %_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm
# %vendor Fedora
# %distribution Fedora-14
# please change this to reflect the Distro Tree and Repo hosting packages!
# %redhat 14
# %rhel 6
# %_smp_mflags -j1
# """
$ mock --verbose --installdeps --resultdir=/home/best/songs/pub/tool-rpms -r
fedora-14-x86_64 --rebuild atlascpp-0.6.2-3.fc17.src.rpm
# the final lines output from the above mock command are:
DEBUG: + export FFLAGS
DEBUG: + ./configure --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-
linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-
prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --
datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --
libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --
mandir=/usr/share/man --infodir=/usr/share/info
DEBUG: ./configure: line 25: /dev/null: Permission denied
DEBUG: ./configure: line 72: /dev/null: Permission denied
DEBUG: ./configure: line 53: /dev/null: Permission denied
DEBUG: ./configure: line 81: /dev/null: Permission denied
DEBUG: ./configure: line 88: /dev/null: Permission denied
DEBUG: ./configure: line 123: /dev/null: Permission denied
DEBUG: ./configure: line 123: /dev/null: Permission denied
DEBUG: ./configure: line 123: /dev/null: Permission denied
DEBUG: ./configure: line 137: /dev/null: Permission denied
DEBUG: ./configure: line 148: /dev/null: Permission denied
DEBUG: ./configure: line 170: /dev/null: Permission denied
DEBUG: ./configure: line 383: /dev/null: Permission denied
DEBUG: ./configure: line 257: /dev/null: Permission denied
DEBUG: ./configure: line 257: /dev/null: Permission denied
DEBUG: ./configure: line 257: /dev/null: Permission denied
DEBUG: ./configure: line 257: /dev/null: Permission denied
DEBUG: ./configure: line 257: /dev/null: Permission denied
DEBUG: This script requires a shell more modern than all the
DEBUG: shells that I found on your system. Please install a
DEBUG: modern shell, or manually run the script under such a
DEBUG: shell if you do have one.
DEBUG: RPM build errors:
DEBUG: error: Bad exit status from /var/tmp/rpm-tmp.VAQDQL (%build)
DEBUG: Bad exit status from /var/tmp/rpm-tmp.VAQDQL (%build)
DEBUG: Child returncode was: 1
INFO: EXCEPTION: Command failed. See logs for output.
# ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps
builddir/build/SPECS/atlascpp.spec']
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line
70, in trace
result = func(*args, **kw)
File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 352, in do
raise mockbuild.exception.Error, ("Command failed. See logs for output.\n
# %s" % (command,), child.returncode)
Error: Command failed. See logs for output.
# ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps
builddir/build/SPECS/atlascpp.spec']
INFO: LEAVE do --> EXCEPTION RAISED
DEBUG: Executing command: umount -n -l /home/best/songs/pub/gnu-
tools/mock/fedora-14-x86_64/root/dev/shm
DEBUG: Child returncode was: 0
DEBUG: Executing command: umount -n -l /home/best/songs/pub/gnu-
tools/mock/fedora-14-x86_64/root/dev/pts
DEBUG: Child returncode was: 0
DEBUG: Executing command: umount -n /home/best/songs/pub/gnu-
tools/mock/fedora-14-x86_64/root/tmp/ccache
DEBUG: Child returncode was: 0
DEBUG: Executing command: umount -n /home/best/songs/pub/gnu-
tools/mock/fedora-14-x86_64/root/var/cache/yum
DEBUG: Child returncode was: 0
DEBUG: Executing command: umount -n -l /home/best/songs/pub/gnu-
tools/mock/fedora-14-x86_64/root/sys
DEBUG: Child returncode was: 0
DEBUG: Executing command: umount -n -l /home/best/songs/pub/gnu-
tools/mock/fedora-14-x86_64/root/proc
DEBUG: Child returncode was: 0
ERROR: Exception(atlascpp-0.6.2-3.fc17.src.rpm) Config(fedora-14-x86_64) 0
minutes 57 seconds
INFO: Results and/or logs in: /home/best/songs/pub/tool-rpms
ERROR: Command failed. See logs for output.
# ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps
builddir/build/SPECS/atlascpp.spec']
DEBUG: kill orphans
Any ideas?
Regards,
Allen Wayne Best
11 years, 3 months
how to speed up mock
by Farkas Levente
hi,
i've to ask it again what i already asked a few times. is there any way
to speed up mock build?
here is a simple example when i build gstreamer-plugins-bad-free on
rhel-6.2:
-----------------------
2012-05-30 00:45:24,367 - Mock Version: 1.1.22
2012-05-30 00:45:24,377 - State Changed: unpacking root cache
2012-05-30 00:45:27,610 - State Changed: cleaning yum metadata
2012-05-30 00:45:27,639 - State Changed: running yum
2012-05-30 00:45:30,914 - State Changed: unlock buildroot
2012-05-30 00:45:31,026 - State Changed: setup
2012-05-30 00:50:09,980 - State Changed: build
2012-05-30 00:52:34,094 - State Changed: end
-----------------------
as you can see it takes about 5 minutes to setup the buildroot
environment, while it takes 2.5 minutes to build it. so it's still 2
times more the extra stuff compared to the build. even in a case of a
'long' build package (some other package build less then a minutes).
disk space and cache size is not a problem.
any kind of tipp would be welcome.
thanks in advance.
regards.
--
Levente "Si vis pacem para bellum!"
11 years, 3 months
initrd.img
by Moray Henderson
In the old days I used to be able to modify the initrd.img file on my CentOS
5 install CD to add drivers, rescue mode utilities etc.
I come to do that on CentOS 6 and find it is now in an unrecognisable
format:
# file initrd.img
initrd.img: data
# lsinitrd initrd.img
initrd.img:
============================================================
gzip: initrd.img: not in gzip format
============================================================
gzip: initrd.img: not in gzip format
cpio: premature end of archive
============================================================
I can fiddle with the /boot/initramfs files on the installed system, but how
do you do it now on the install/rescue CD?
Moray.
"To err is human; to purr, feline."
11 years, 3 months