BLAG

BLAG Forums
It is currently Sat Dec 20, 2014 11:33 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed Sep 29, 2010 8:01 pm 
Offline

Joined: Sat Aug 07, 2010 8:59 am
Posts: 74
I'm using mock to build RPMs with this command line :

$ mock -r "version-of-fedora" rebuild file.src.rpm

but in /etc/mock, there's no file with BLAG version, so I use the F12 file.
But when the package is build, it is labelized with the F12 label.
(when, I built it with only rpmbuild, his name is XXXX-blag.rpm, but this building way is not clean)
So I copy the /etc/mock/fedora-12-x86_64.cfg --> blag-119K-x86_64.cfg and edit it as
Code:
config_opts['root'] = 'blag-119K-x86_64'
config_opts['target_arch'] = 'x86_64'
config_opts['chroot_setup_cmd'] = 'groupinstall buildsys-build'
config_opts['dist'] = 'fc12'  # only useful for --resultdir variable subst

config_opts['yum.conf'] = """
[main]
cachedir=/var/cache/yum
debuglevel=1
reposdir=/dev/null
logfile=/var/log/yum.log
retries=20
obsoletes=1
gpgcheck=0
assumeyes=1
# grub/syslinux on x86_64 need glibc-devel.i386 which pulls in glibc.i386, need to exclude all
# .i?86 packages except these.
#exclude=[0-9A-Za-fh-z]*.i?86 g[0-9A-Za-km-z]*.i?86 gl[0-9A-Za-hj-z]*.i?86 gli[0-9A-Zac-z]*.i?86 glib[0-9A-Za-bd-z]*.i?86
# The above is not needed anymore with yum multilib policy of "best" which is the default in Fedora.

# repos

[fedora]
name=fedora
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-12&arch=x86_64
failovermethod=priority

[updates-released]
name=updates
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f12&arch=x86_64
failovermethod=priority

[local]
name=local
baseurl=http://kojipkgs.fedoraproject.org/repos/dist-f12-build/latest/x86_64/
cost=2000
enabled=0
"""


Is it a good way to build RPM with mock labelized BLAG ?

thx
Cyrille


Top
 Profile  
 
 Post subject: [solved]
PostPosted: Thu Mar 03, 2011 4:29 pm 
Offline

Joined: Sat Aug 07, 2010 8:59 am
Posts: 74
with the BLAG 140K, the best way is to use mock build FOR blag
ftp://blag.fsf.org/140000/en/os/x86_64/ ... noarch.rpm


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group