Bug 220899 - app-arch/lzma-utils: make need for C++ optional
Bug#: 220899 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: base-system@gentoo.org Reported By: ulm@gentoo.org
Component: Applications
URL:  http://archives.gentoo.org/gentoo-dev/msg_db1f0266707ce070d0362272c308d26f.xml
Summary: app-arch/lzma-utils: make need for C++ optional
Keywords:  
Status Whiteboard: 
Opened: 2008-05-08 11:37 0000
Description:   Opened: 2008-05-08 11:37 0000
Following the recent discussion in -dev, here is an ebuild and a patch to
disable all pieces that require C++ support.

Tested with:
   tar --use-compress-program=/usr/bin/lzmadec -tvf coreutils-6.11.tar.lzma
   lzmadec <coreutils-6.11.tar.lzma | tar -tvf -

------- Comment #1 From Ulrich Müller 2008-05-08 11:38:20 0000 -------
Created an attachment (id=152445) [details]
Changes for lzma-utils-4.32.5.ebuild

------- Comment #2 From Ulrich Müller 2008-05-08 11:38:45 0000 -------
Created an attachment (id=152447) [details]
lzma-utils-4.32.5-no-cxx.patch

------- Comment #3 From SpanKY 2008-05-10 08:36:04 0000 -------
you cant run autotools in lzma-utils, so i posted a patch containing the
generated differences

i also added a wrapper script "lzma" so that packages doing `lzma -dc` will
still work (like portage)

thanks for the patch, in the tree

http://sources.gentoo.org/app-arch/lzma-utils/lzma-utils-4.32.5.ebuild?r1=1.8&r2=1.9

------- Comment #4 From Ulrich Müller 2008-05-10 10:04:13 0000 -------
(In reply to comment #3)
> i also added a wrapper script "lzma" so that packages doing `lzma -dc`
> will still work (like portage)

Hm, also support for "lzma -d" would be useful since tar calls it like this.

   elif [ "$1" = "-d" ] ; then
          lzmadec

(Or maybe cleaner to convert to a case statement.)

------- Comment #5 From SpanKY 2008-05-10 10:38:30 0000 -------
thanks, ive done both of those things

http://sources.gentoo.org/app-arch/lzma-utils/files/lzma-nocxx.sh?r1=1.1&r2=1.2