On Dec 23, 2007, at 7:26 AM, Ralf S. Engelschall wrote:
> On Sun, Dec 23, 2007, Jeff Johnson wrote:
>
>> [...]
>>> So, I think the currently implemented %track support is good and
>>> a major
>>> step forward in practice as it (as OpenPKG clearly shows since
>>> years)
>>> allows one to automatically track the upstream version. But I
>>> personally
>>> would let the current implementation just settle for RPM 5.0 and see
>>> what feedback comes. Based on this feedback I would decide what
>>> further
>>> improvements should be done for RPM 5.0.
>>>
>>> Additionally, what would be IMHO a lot more useful in practice than
>>> additional _tracking_ functionality would be to have the companion
>>> feature which is still missing in RPM: the possibility to
>>> automatically
>>> download those distribution files which are still not present on the
>>> local filesystem! In OpenPKG we are using a silly external Perl
>>> utility
>>> for this ("openpkg dev fetch *.spec"), but to complement the vendor
>>> tracking to have this functionality built directly into RPM would be
>>> phantastic.
>>>
>> Um, rpm has had the ability to automatically download, with
>> digest/signature verification of the downloaded content
>> through a similar run-time probe as vcheck, since 4.4.6.
>> (digesy/signature verification in 4.4.9).
>>
>> Fragile and largely untested yes. But already implemented.
>
> Ops? Then I've overlooked this. What do I have to do to
> get this actually working? I've removed the distribution
> file and tried to build:
>
Here's a couple URL's to get you started:
https://lists.dulug.duke.edu/pipermail/rpm-devel/2006-April/000988.html
https://lists.dulug.duke.edu/pipermail/rpm-devel/2007-May/002701.html
> | $ /openpkg/bin/openpkg rpm -ba *spec
> | error: Fetching /make-3.81.tar.gz failed: Unknown or unexpected
> error
> | Executing(%prep): env -i /openpkg/lib/openpkg/bash --norc --
> noprofile --posix -e /tmp/rse/openpkg/tmp/rpm-tmp.85863
> | + cd /tmp/rse/openpkg/tmp
> | + exit 0
> | error: Bad file: /d2/u/rse/prj/openpkg-2008/src/pkg.dst/make/
> make-3.81.tar.gz: No such file or directory
> |
> |
> | RPM build errors:
> | Fetching /make-3.81.tar.gz failed: Unknown or unexpected error
> | Bad file: /d2/u/rse/prj/openpkg-2008/src/pkg.dst/make/
> make-3.81.tar.gz: No such file or directory
>
> I guess I need to configure some macros to allow RPM to fetch the
> distribution file from this example. BTW, the make.spec I used
> contained:
>
> | Version: 3.81
> | [...]
> | Source0: ftp://ftp.gnu.org/gnu/make/make-%{version}.tar.gz
>
> So, what do I have to configure to allow RPM 5 to download this
> source file, Jeff?
>
Be prepared for breakage, the rpmbuild fetch functionality is no more
than
a wild hack atm.
Try file:// setup to get the configgery in place, then try ftp://
URL's before http://
(rpmio will not handle a redirect).
Note that %patch as a macro has likely damaged some of the
implementation too.
I'll resurrect a demo later this week.
Meanwhile I'm off for a couple days. Merry X-mas!
73 de Jeff
> Ralf S. Engelschall
> rse@engelschall.com
> www.engelschall.com
>
> ______________________________________________________________________
> RPM Package Manager http://rpm5.org
> Developer Communication List rpm-devel@rpm5.org
Received on Sun Dec 23 13:40:02 2007