Le Mardi 10 Juin 2003 16:21, Buchan Milne a �crit :
> Olivier Thauvin wrote:
> > Le Mardi 10 Juin 2003 15:06, Buchan Milne a �crit :
> >
> > If you understand hdlist contain all rpms header, you're able to
>
> understand
>
> > that all method availlable in perl-URPM works for both hdlist or rpms
>
> (src
>
> > and binary).
> >
> > distriblint works from hdlist or rpm, transparency for user. It parse rpm
> > headers or hdlist and get info trought perl-URPM, that's why I add some
> > functions.
> >
> > If you are asking about support of srpms on urpmi, I discussed a bit
>
> about
>
> > this with F. Pons.
> > The problem is simple: you should to be root to install rpms, and
>
> should be
>
> > normal user to install srpms.
> > urpmi mysource.src.rpm will install dependencies to build the src, you
>
> have to
>
> > install manually the src.rpm after or before.
>
> But, I want a feature that will
> -tell me where to find the srpm that made a certain package (in this
> case perl-HTML-Template).
> -where to find it.
>
> So far, urpmf will tell me:
>
> $ urpmf --sourcerpm perl-HTML-Template
> perl-HTML-Template:perl-HTML-Template-2.6-4mdk.src.rpm
> perl-HTML-Template-Expr:perl-HTML-Template-Expr-0.04-2mdk.src.rpm
>
> (maybe urpmq, which by default only returns the package that matches
> exactly, should have this functionality also)
>
> But, now I have no idea where to find the srpm. Is it in SRPMS for 8.1,
> 8.2, 9.0 or 9.1? I want a tool that tells me this, so I can:
>
> $ wget `urpmq --sourcerpm --sources perl-HTML-Template'
> $ sudo urpmi --src `urpmq --sourcerpm perl-HTML-Template`
> $ rpm --rebuild `urpmq --sourcerpm perl-HTML-Template`
>
> Later, I will want a tool that will
> -find the srpm
> -download it
> -install dependencies (easy once you have the src.rpm and have sudo
> setup), or if I have specified I want to build everything (-d like
> urpmq?), it will instead download the srpms, and start building all
> buildrequires that are not currently installed) etc.
> -rebuild it
> -update the local urpmi source with the new package
> -optionally install the package (via sudo).
> -rhymes with 'portage' ;-).

Ok, I see the idea now.
distlint have this of query, and I just discover the src.rpm doesn't appear 
with urpmq -i.
fpons ?? :) yes, I am not nice with you :)

>
> > My rebuild script do:
> > sudo /usr/sbin/urpmi file.src.rpm
>
> But where does it get the SRPM. The machine we're building on happens to
> be our ftp server, with mirrors of 8.2, 9.0, 9.1, but we don't have
> space for SRPMS on it, but we have a mirror close that does ...

I have a big i586 server acting as nfs server for my other computer 
(ppc/sparc). Yes, would be nice for poeple who just want rebuild a rpm 
without mirror all the tree.

>
> > rpm -Uvh file.src.rpm
> >
> > Not a big deal.
> >
> > Urpmi is not perfect with src.rpm, but some issues or miss come from rpm
> > itself. Very hard to deal.
>
> I think we need hdlists for the SRPMs, so urpmi knows where to find them.
>
> Regards,
> Buchan

-- 
Linux pour Mac !? Enfin le moyen de transformer
une pomme en v�ritable ordinateur. - JL.
Olivier Thauvin - http://nanardon.homelinux.org/


Reply via email to