Re: scriplet issues installing deps in f23 mock

2015-10-07 Thread Cole Robinson
On 10/05/2015 08:42 PM, Cole Robinson wrote:
> On 10/05/2015 04:46 AM, Miroslav Suchý wrote:
>> Dne 30.9.2015 v 00:17 Cole Robinson napsal(a):
>>> I'm hitting scriplet errors when trying to build f23 qemu in mock on an up 
>>> to
>>> date f23 host. Example:
>>>
>>> $ mock --root fedora-23-x86_64 --init
>>> ...
>>> $ mock --root fedora-23-x86_64 --rebuild qemu-2.4.0-4.fc23.src.rpm
>>> ...
>>>
>>> Transaction Summary
>>> 
>>> Install  48 Packages (+596 Dependent packages)
>>>
>>> Total size: 396 M
>>> Installed size: 1.1 G
>>> Downloading packages:
>>> Running transaction check
>>> Running transaction test
>>> Transaction test succeeded
>>> Running transaction (shutdown inhibited)
>>> error: %prein(texlive-base-4:2014-13.20140525_r34255.fc23.noarch) scriptlet
>>> failed, exit status 126
>>> Error in PREIN scriptlet in rpm package
>>> 4:texlive-base-2014-13.20140525_r34255.fc23.noarch
>>>   Installing : 2:libpng-1.6.17-2.fc23.x86_64  
>>> 2/644
>>> error: texlive-base-4:2014-13.20140525_r34255.fc23.noarch: install failed
>>> warning: %post(libpng-2:1.6.17-2.fc23.x86_64) scriptlet failed, exit status 
>>> 126
>>> Non-fatal POSTIN scriptlet failure in rpm package 
>>> 2:libpng-1.6.17-2.fc23.x86_64
>>>   Installing : freetype-2.6.0-3.fc23.x86_64   
>>> 3/644
>>> warning: %post(freetype-2.6.0-3.fc23.x86_64) scriptlet failed, exit status 
>>> 126
>>> Non-fatal POSTIN scriptlet failure in rpm package 
>>> freetype-2.6.0-3.fc23.x86_64
>>>   Installing : xorg-x11-proto-devel-7.7-16.fc23.noarch
>>
>>
>> libpng just call ldconfig
>> texlive-base just remove one directory and return true
>> There is hardly something to fail.
>>
>> I strongly suspect SELinux. It does not happen on my workstation (with 
>> SELinux disabled) and it does not happen on
>> freshly installed F22 machine with SELinux on.
>>
>> Do you have something in audit.log?
>>
>>
> 
> My machine has had selinux=permissive the entire time. No AVCs in audit.log
> anyways.
> 
> Also another data point: qemu 'fedpkg mockbuild' reproduces this issue in a
> fresh f23 VM install as well.
> 

Experimented some more. If I edit /etc/mock/site-defaults.cfg and add

config_opts['yum_command'] = '/usr/bin/yum-deprecated'

My builds start working again. So I filed a bug:
https://bugzilla.redhat.com/show_bug.cgi?id=1269675

- Cole
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Re: scriplet issues installing deps in f23 mock

2015-10-05 Thread Miroslav Suchý
Dne 30.9.2015 v 00:17 Cole Robinson napsal(a):
> I'm hitting scriplet errors when trying to build f23 qemu in mock on an up to
> date f23 host. Example:
> 
> $ mock --root fedora-23-x86_64 --init
> ...
> $ mock --root fedora-23-x86_64 --rebuild qemu-2.4.0-4.fc23.src.rpm
> ...
> 
> Transaction Summary
> 
> Install  48 Packages (+596 Dependent packages)
> 
> Total size: 396 M
> Installed size: 1.1 G
> Downloading packages:
> Running transaction check
> Running transaction test
> Transaction test succeeded
> Running transaction (shutdown inhibited)
> error: %prein(texlive-base-4:2014-13.20140525_r34255.fc23.noarch) scriptlet
> failed, exit status 126
> Error in PREIN scriptlet in rpm package
> 4:texlive-base-2014-13.20140525_r34255.fc23.noarch
>   Installing : 2:libpng-1.6.17-2.fc23.x86_64  
> 2/644
> error: texlive-base-4:2014-13.20140525_r34255.fc23.noarch: install failed
> warning: %post(libpng-2:1.6.17-2.fc23.x86_64) scriptlet failed, exit status 
> 126
> Non-fatal POSTIN scriptlet failure in rpm package 
> 2:libpng-1.6.17-2.fc23.x86_64
>   Installing : freetype-2.6.0-3.fc23.x86_64   
> 3/644
> warning: %post(freetype-2.6.0-3.fc23.x86_64) scriptlet failed, exit status 126
> Non-fatal POSTIN scriptlet failure in rpm package freetype-2.6.0-3.fc23.x86_64
>   Installing : xorg-x11-proto-devel-7.7-16.fc23.noarch


libpng just call ldconfig
texlive-base just remove one directory and return true
There is hardly something to fail.

I strongly suspect SELinux. It does not happen on my workstation (with SELinux 
disabled) and it does not happen on
freshly installed F22 machine with SELinux on.

Do you have something in audit.log?


-- 
Miroslav Suchy, RHCA
Red Hat, Senior Software Engineer, #brno, #devexp, #fedora-buildsys
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Re: scriplet issues installing deps in f23 mock

2015-10-05 Thread Cole Robinson
On 10/05/2015 04:46 AM, Miroslav Suchý wrote:
> Dne 30.9.2015 v 00:17 Cole Robinson napsal(a):
>> I'm hitting scriplet errors when trying to build f23 qemu in mock on an up to
>> date f23 host. Example:
>>
>> $ mock --root fedora-23-x86_64 --init
>> ...
>> $ mock --root fedora-23-x86_64 --rebuild qemu-2.4.0-4.fc23.src.rpm
>> ...
>>
>> Transaction Summary
>> 
>> Install  48 Packages (+596 Dependent packages)
>>
>> Total size: 396 M
>> Installed size: 1.1 G
>> Downloading packages:
>> Running transaction check
>> Running transaction test
>> Transaction test succeeded
>> Running transaction (shutdown inhibited)
>> error: %prein(texlive-base-4:2014-13.20140525_r34255.fc23.noarch) scriptlet
>> failed, exit status 126
>> Error in PREIN scriptlet in rpm package
>> 4:texlive-base-2014-13.20140525_r34255.fc23.noarch
>>   Installing : 2:libpng-1.6.17-2.fc23.x86_64  
>> 2/644
>> error: texlive-base-4:2014-13.20140525_r34255.fc23.noarch: install failed
>> warning: %post(libpng-2:1.6.17-2.fc23.x86_64) scriptlet failed, exit status 
>> 126
>> Non-fatal POSTIN scriptlet failure in rpm package 
>> 2:libpng-1.6.17-2.fc23.x86_64
>>   Installing : freetype-2.6.0-3.fc23.x86_64   
>> 3/644
>> warning: %post(freetype-2.6.0-3.fc23.x86_64) scriptlet failed, exit status 
>> 126
>> Non-fatal POSTIN scriptlet failure in rpm package 
>> freetype-2.6.0-3.fc23.x86_64
>>   Installing : xorg-x11-proto-devel-7.7-16.fc23.noarch
> 
> 
> libpng just call ldconfig
> texlive-base just remove one directory and return true
> There is hardly something to fail.
> 
> I strongly suspect SELinux. It does not happen on my workstation (with 
> SELinux disabled) and it does not happen on
> freshly installed F22 machine with SELinux on.
> 
> Do you have something in audit.log?
> 
> 

My machine has had selinux=permissive the entire time. No AVCs in audit.log
anyways.

Also another data point: qemu 'fedpkg mockbuild' reproduces this issue in a
fresh f23 VM install as well.

- Cole
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Re: scriplet issues installing deps in f23 mock

2015-10-05 Thread Miroslav Suchý
Tracked under:
https://bugzilla.redhat.com/show_bug.cgi?id=1268883

What we know so far is:
 * it happen under F23
 * it works in F22
 * it works with dnf
 * it does not work with yum.

So "mock --dnf" can be used as temporary workaround for those who are blocked 
by this.

-- 
Miroslav Suchy, RHCA
Red Hat, Senior Software Engineer, #brno, #devexp, #fedora-buildsys
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Re: scriplet issues installing deps in f23 mock

2015-10-02 Thread Robin Lee
I met the exact same problem.


-robin

On Wed, Sep 30, 2015 at 6:17 AM, Cole Robinson  wrote:

> I'm hitting scriplet errors when trying to build f23 qemu in mock on an up
> to
> date f23 host. Example:
>
> $ mock --root fedora-23-x86_64 --init
> ...
> $ mock --root fedora-23-x86_64 --rebuild qemu-2.4.0-4.fc23.src.rpm
> ...
>
> Transaction Summary
>
> 
> Install  48 Packages (+596 Dependent packages)
>
> Total size: 396 M
> Installed size: 1.1 G
> Downloading packages:
> Running transaction check
> Running transaction test
> Transaction test succeeded
> Running transaction (shutdown inhibited)
> error: %prein(texlive-base-4:2014-13.20140525_r34255.fc23.noarch) scriptlet
> failed, exit status 126
> Error in PREIN scriptlet in rpm package
> 4:texlive-base-2014-13.20140525_r34255.fc23.noarch
>   Installing : 2:libpng-1.6.17-2.fc23.x86_64
> 2/644
> error: texlive-base-4:2014-13.20140525_r34255.fc23.noarch: install failed
> warning: %post(libpng-2:1.6.17-2.fc23.x86_64) scriptlet failed, exit
> status 126
> Non-fatal POSTIN scriptlet failure in rpm package
> 2:libpng-1.6.17-2.fc23.x86_64
>   Installing : freetype-2.6.0-3.fc23.x86_64
>  3/644
> warning: %post(freetype-2.6.0-3.fc23.x86_64) scriptlet failed, exit status
> 126
> Non-fatal POSTIN scriptlet failure in rpm package
> freetype-2.6.0-3.fc23.x86_64
>   Installing : xorg-x11-proto-devel-7.7-16.fc23.noarch
> ...
>
>
> With many cascading failures after that.
>
> However if I invoke mock and request installing all the deps manually,
> everything works:
>
> $ mock --root fedora-23-x86_64 --init
> ...
> $ mock --root fedora-23-x86_64 --install SDL2-devel zlib-devel which
> chrpath
> gnutls-devel cyrus-sasl-devel libtool libaio-devel rsync pciutils-devel
> pulseaudio-libs-devel libiscsi-devel ncurses-devel libattr-devel
> usbredir-devel gperftools-devel texinfo perl-podlators spice-protocol
> spice-server-devel libseccomp-devel libcurl-devel ceph-devel systemtap
> systemtap-sdt-devel nss-devel xfsprogs-devel libjpeg-devel libpng-devel
> libuuid-devel bluez-libs-devel brlapi-devel libfdt-devel libcap-devel
> pixman-devel glusterfs-devel glusterfs-api-devel libusbx-devel
> libssh2-devel
> gtk3-devel vte3-devel gettext librdmacm-devel qemu-sanity-check-nodeps
> kernel
> iasl xen-devel numactl-devel bzip2-devel texi2html
> ...
>
> Transaction Summary
>
> 
> Install  48 Packages (+596 Dependent packages)
>
> Total size: 396 M
> Installed size: 1.1 G
> Downloading packages:
> Running transaction check
> Running transaction test
> Transaction test succeeded
> Running transaction (shutdown inhibited)
>   Installing : 4:texlive-base-2014-13.20140525_r34255.fc23.noarch
>  1/644
>   Installing : 2:libpng-1.6.17-2.fc23.x86_64
> 2/644
>   Installing : freetype-2.6.0-3.fc23.x86_64
>  3/644
>   Installing : xorg-x11-proto-devel-7.7-16.fc23.noarch
> 4/644
>   Installing : 4:texlive-kpathsea-lib-2014-13.20140525_r34255.fc23.x8
>  5/644
> ...
>
>
> Complete output of the working command:
> https://paste.fedoraproject.org/272899/14435647/
> Complete output of the failing command:
> http://paste.fedoraproject.org/272900/44356490
>
> Anyone know what the issue is, or where to go from here?
>
> Thanks,
> Cole
> --
> devel mailing list
> devel@lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/devel
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

scriplet issues installing deps in f23 mock

2015-09-29 Thread Cole Robinson
I'm hitting scriplet errors when trying to build f23 qemu in mock on an up to
date f23 host. Example:

$ mock --root fedora-23-x86_64 --init
...
$ mock --root fedora-23-x86_64 --rebuild qemu-2.4.0-4.fc23.src.rpm
...

Transaction Summary

Install  48 Packages (+596 Dependent packages)

Total size: 396 M
Installed size: 1.1 G
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction (shutdown inhibited)
error: %prein(texlive-base-4:2014-13.20140525_r34255.fc23.noarch) scriptlet
failed, exit status 126
Error in PREIN scriptlet in rpm package
4:texlive-base-2014-13.20140525_r34255.fc23.noarch
  Installing : 2:libpng-1.6.17-2.fc23.x86_64  2/644
error: texlive-base-4:2014-13.20140525_r34255.fc23.noarch: install failed
warning: %post(libpng-2:1.6.17-2.fc23.x86_64) scriptlet failed, exit status 126
Non-fatal POSTIN scriptlet failure in rpm package 2:libpng-1.6.17-2.fc23.x86_64
  Installing : freetype-2.6.0-3.fc23.x86_64   3/644
warning: %post(freetype-2.6.0-3.fc23.x86_64) scriptlet failed, exit status 126
Non-fatal POSTIN scriptlet failure in rpm package freetype-2.6.0-3.fc23.x86_64
  Installing : xorg-x11-proto-devel-7.7-16.fc23.noarch
...


With many cascading failures after that.

However if I invoke mock and request installing all the deps manually,
everything works:

$ mock --root fedora-23-x86_64 --init
...
$ mock --root fedora-23-x86_64 --install SDL2-devel zlib-devel which chrpath
gnutls-devel cyrus-sasl-devel libtool libaio-devel rsync pciutils-devel
pulseaudio-libs-devel libiscsi-devel ncurses-devel libattr-devel
usbredir-devel gperftools-devel texinfo perl-podlators spice-protocol
spice-server-devel libseccomp-devel libcurl-devel ceph-devel systemtap
systemtap-sdt-devel nss-devel xfsprogs-devel libjpeg-devel libpng-devel
libuuid-devel bluez-libs-devel brlapi-devel libfdt-devel libcap-devel
pixman-devel glusterfs-devel glusterfs-api-devel libusbx-devel libssh2-devel
gtk3-devel vte3-devel gettext librdmacm-devel qemu-sanity-check-nodeps kernel
iasl xen-devel numactl-devel bzip2-devel texi2html
...

Transaction Summary

Install  48 Packages (+596 Dependent packages)

Total size: 396 M
Installed size: 1.1 G
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction (shutdown inhibited)
  Installing : 4:texlive-base-2014-13.20140525_r34255.fc23.noarch 1/644
  Installing : 2:libpng-1.6.17-2.fc23.x86_64  2/644
  Installing : freetype-2.6.0-3.fc23.x86_64   3/644
  Installing : xorg-x11-proto-devel-7.7-16.fc23.noarch4/644
  Installing : 4:texlive-kpathsea-lib-2014-13.20140525_r34255.fc23.x8 5/644
...


Complete output of the working command:
https://paste.fedoraproject.org/272899/14435647/
Complete output of the failing command:
http://paste.fedoraproject.org/272900/44356490

Anyone know what the issue is, or where to go from here?

Thanks,
Cole
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct