On 21/06/2003 at 15:30:19(+0100), Alastair Tse used 1.4K just to say: > Hi All, > > There are a number of packages that require us extracting directly from > RPMs or Source RPMs. As a result, a number of ebuilds depend on > rpm2targz (a slackware creation) for extraction and have their own > src_unpack routine. > > To automate the process a little better, I've written an rpm.eclass > which is a slot in replacement for src_unpack(). It automatically > extracts rpm packages and for source rpms, it also extracts inner > tarballs. Internally, it still uses rpm2targz but is a little smarter > about cleaning up after itself and handles multiple sources properly. > > This is now in portage. For an example of how it can used, look at > app-misc/jot or x11-themes/redhat-artwork. The rpm.eclass uses the rpm2targz script itself which is a waste of time and resources. Please take a look at bugs 23249 and maybe 23179 for another approach which was already adopted by a few packages (ccc, cxx, libcpms, libcxml, ladebug and compaq-sources) even before the bug was submitted. -- /^^^^^^^^^^^^^^^^^^^^^^^^^^^\/^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\ / Georgi Georgiev (-< / I cannot and will not cut my \ \ chutz@chubaka.net /\ .o)\ conscience to fit this year's / / +81(90)6266-1163 V_/_ |(/)/ fashions. -- Lillian Hellman \ \___________________________/\__________________________________/