[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: redhat abe
- From: Enrico Scholz <enrico scholz informatik tu-chemnitz de>
- To: fedora-devel-list redhat com
- Subject: Re: redhat abe
- Date: Tue, 01 Feb 2005 02:07:27 +0100
rc040203 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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]