Re: redhat abe

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

 



rc040203@xxxxxxxxxx (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][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