-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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' ;-). > 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 ... > 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 - -- |--------------Another happy Mandrake Club member--------------| Buchan Milne Mechanical Engineer, Network Manager Cellphone * Work +27 82 472 2231 * +27 21 8828820x202 Stellenbosch Automotive Engineering http://www.cae.co.za GPG Key http://ranger.dnsalias.com/bgmilne.asc 1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE+5el5rJK6UGDSBKcRAiGCAJ9HuEv1lcPUqv7qzpnUhGa6SDzGlQCgmgwm xOuPQrDzIlSHjucn05JsrTk= =kKfO -----END PGP SIGNATURE----- ****************************************************************** Please click on http://www.cae.co.za/disclaimer.htm to read our e-mail disclaimer or send an e-mail to [EMAIL PROTECTED] for a copy. ******************************************************************
