public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] new rpm.eclass
@ 2003-06-21 14:30 Alastair Tse
  2003-06-22  0:12 ` Georgi Georgiev
  0 siblings, 1 reply; 3+ messages in thread
From: Alastair Tse @ 2003-06-21 14:30 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 964 bytes --]

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.

Cheers,
-- 
Alastair 'liquidx' Tse
 >> Gentoo Developer 
 >> http://www.liquidx.net/ | http://cvs.gentoo.org/~liquidx/
 >> GPG Key : http://cvs.gentoo.org/~liquidx/liquidx_gentoo_org.asc
 >> FingerPrint : 579A 9B0E 43E8 0E40 EE93  BB1C 38CE 1C7B 3907 14F6

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-dev] new rpm.eclass
  2003-06-21 14:30 [gentoo-dev] new rpm.eclass Alastair Tse
@ 2003-06-22  0:12 ` Georgi Georgiev
  2003-06-22 12:27   ` Alastair Tse
  0 siblings, 1 reply; 3+ messages in thread
From: Georgi Georgiev @ 2003-06-22  0:12 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1442 bytes --]

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     \
\___________________________/\__________________________________/

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-dev] new rpm.eclass
  2003-06-22  0:12 ` Georgi Georgiev
@ 2003-06-22 12:27   ` Alastair Tse
  0 siblings, 0 replies; 3+ messages in thread
From: Alastair Tse @ 2003-06-22 12:27 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 732 bytes --]

On Sun, 2003-06-22 at 01:12, Georgi Georgiev wrote:
> 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.

Interesting. I wasn't aware of that trick. I'll probably change
rpm.eclass to use that method instead.

Thanks,
-- 
Alastair 'liquidx' Tse
 >> Gentoo Developer 
 >> http://www.liquidx.net/ | http://cvs.gentoo.org/~liquidx/
 >> GPG Key : http://cvs.gentoo.org/~liquidx/liquidx_gentoo_org.asc
 >> FingerPrint : 579A 9B0E 43E8 0E40 EE93  BB1C 38CE 1C7B 3907 14F6

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-06-22 12:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-21 14:30 [gentoo-dev] new rpm.eclass Alastair Tse
2003-06-22  0:12 ` Georgi Georgiev
2003-06-22 12:27   ` Alastair Tse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox