redhat abe

Enrico Scholz enrico.scholz at informatik.tu-chemnitz.de
Tue Feb 1 01:07:27 UTC 2005


rc040203 at freenet.de (Ralf Corsepius) writes:

>> > This renders "apt-get source" and "apt-get build-dep" non-applicable
>> > to fedora.us hosted apt-repositories and therefore voids at least
>> > these aspects where apt is superior to yum.
>> 
>> Although I love apt for its powerful configuration, I have to admit that
>> 'apt-get build-dep' is not very usefully in the rpm-world:
>> 
>> * it detects only the requirements which were used to build the src.rpm,
>>   but not the deps which will be required
> True, but ???

Ok, an example:

| $ cat foo.spec
| ...
| %if 0%{?_with_foo:1}
| BuildRequires: foo-devel
| %else
| BuildRequires: bar-devel
| %endif
| ...
|
| $ rpmbuild -bs foo.spec --with foo
| --> foo-*.src.rpm
|
| $ rpm -qR foo
| foo-devel

'apt-get build-dep foo-*.src.rpm' will now try to install 'foo-devel',
but 'rpmbuild --rebuild foo-*.src.rpm' will need 'bar-devel'.

Simple rpm-header examination of the src.rpm is not sufficient (or
better: is wrong) for build-dep calculation.

(things get really strange when you have something like

| %define _with_foo  %(test -e /usr/lib/foo && echo 1 || echo 0)

which will be built in a chroot environment)




Enrico




More information about the fedora-devel-list mailing list