Chicken & Egg Problem with FC4 "Minimal" Buildroot

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

 



This afternoon I was packaging a new Python module for potential
inclusion in Extras.  The package builds correctly in a "standard" mock
FC4 buildroot.  When I tried to build the package in a "minimal" FC4
buildroot it fails in the setup stage.  This is because the Fedora
Python specfile template uses Python dynamically to determine a number
of parameters.

For example, the Python specfile template contains the following:

Requires: python-abi = %(%{__python} -c "import sys ; print sys.version[:3]")

When built using a "minimal" FC4 buildroot, you get the following error
during the setup phase:

Executing /usr/sbin/mock-helper chroot /var/lib/mock/fedora-4-i386-core-minimal/root /sbin/runuser - root -c "/sbin/runuser -c 'rpmbuild -bs --target i386 --nodeps /builddir/build/SPECS/python-gnupg.spec' mockbuild"
sh: /usr/bin/python: No such file or directory
error: line 18: Version required: Requires:       python-abi =

This is because the "minimal" buildroot does not install Python
directly, nor is Python a dependency of anything installed with a
minimal buildroot on FC4.  This is not a problem on FC5 because Python
gets pulled into the mininmal buildroot as a dependency.

Jeff

Attachment: signature.asc
Description: This is a digitally signed message part

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

[Index of Archives]     [Fedora General Discussion]     [Fedora Art]     [Fedora Docs]     [Fedora Package Review]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite Backpacking]     [KDE Users]

  Powered by Linux