Re: mock build failing sometimes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Paul Howarth wrote:
Just started getting this myself. It was a self-inflicted problem. I originally had the following in /etc/mock/defaults.cfg:

config_opts['macros'] = """
%%_topdir    %s/build
%%_rpmfilename    %%%%{NAME}-%%%%{VERSION}-%%%%{RELEASE}.%%%%{ARCH}.rpm
%%packager    Paul Howarth <paul@xxxxxxxxxxxx>
%%vendor    city-fan.org repo http://www.city-fan.org/ftp/contrib/
""" % config_opts['chroothome']

I recently changed this to:

config_opts['macros'] = config_opts['macros'] + """
%%packager    Paul Howarth <paul@xxxxxxxxxxxx>
%%vendor    city-fan.org repo http://www.city-fan.org/ftp/contrib/
"""

Which should of course have been:

config_opts['macros'] = config_opts['macros'] + """
%packager    Paul Howarth <paul@xxxxxxxxxxxx>
%vendor        city-fan.org repo http://www.city-fan.org/ftp/contrib/
"""

(no need to escape % characters any more)
Thanks for the idea, Paul, but I've tested with no additional macros at all, and build failed :(


This only manifested itself as a problem that broke builds when a combination of two things happened:

1. My autocache file for devel was regenerated, resulting in broken /var/lib/mock/fedora-devel*/root/builddir/.rpmmacros files with too many % characters, and 2. A version of rpmbuild appeared in devel that refused to build packages in the presence of the broken rpmmacros file.

Builds for older releases still worked but didn't pick up the packager and vendor tags due to the macro file error.

Paul.

Unfortunately this does not help in my case. I've erased the cache file and then: [wolfy@wolfy64 ~]$ mock -r fedora-devel-i386 /home/wolfy/rpm/SRPMS/xorg-x11-avivo-1.0-2.fc7.src.rpm
init
clean
prep
This may take a while
create cache
setup
error: cannot write to %sourcedir /usr/src/redhat/SOURCES

Error installing srpm: xorg-x11-avivo-1.0-2.fc7.src.rpm
ending
done
[wolfy@wolfy64 ~]$ cat /var/lib/mock/fedora-development-i386/root/builddir/.rpmmacros

%_smp_mflags -j3

%_rpmlock_path  /var/lib/mock/fedora-development-i386/var/lib/rpm/__db.000

--
    Manuel Wolfshant       linux registered user #131416
       IT manager    NoBug Consulting SRL
   http://www.brainbench.com/transcript.jsp?pid=40317


--
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux