Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 97185 - dev-libs/libowfat does not care about diet flag
Summary: dev-libs/libowfat does not care about diet flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-27 03:56 UTC by Rolf Eike Beer
Modified: 2012-01-31 22:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to make ebuild aware of diet USE flag (libowfat-ebuild.diff,962 bytes, patch)
2005-08-10 06:16 UTC, Rolf Eike Beer
Details | Diff
don't require dietlibc for libowfat (libowfat-ebuild.diff,892 bytes, patch)
2010-07-26 16:04 UTC, Rolf Eike Beer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rolf Eike Beer archtester 2005-06-27 03:56:18 UTC
-libowfat unconditionally emerges dietlibc instead of checking diet USE flag   
-libowfat is not available on all archs (there should be no problem to add it   
as ~everything, works for me on hppa)   
-there is a version 0.23  
  
This ebuild fixes all of these. ~hppa is acked by GMsoft.  
  
--- /usr/local/portage/dev-libs/libowfat/libowfat-0.23.ebuild ---  
DESCRIPTION="reimplement libdjb - excellent libraries from Dan Bernstein."  
SRC_URI="http://dl.fefe.de/${P}.tar.bz2"  
HOMEPAGE="http://www.fefe.de/libowfat/"  
  
SLOT="0"  
LICENSE="GPL-2"  
KEYWORDS="~x86 ~sparc ~ppc ~hppa"  
IUSE="diet"  
DEPEND="diet? (>=dev-libs/dietlibc-0.23)  
        >=sys-apps/sed-4"  
  
RDEPEND="diet? (>=dev-libs/dietlibc-0.23)"  
  
src_unpack() {  
        unpack ${A} ; cd ${S}  
        sed -i -e "s:^CFLAGS.*:CFLAGS=-I. ${CFLAGS}:" \  
                -e "s:^prefix.*:prefix=/usr:" \  
                -e "s:^INCLUDEDIR.*:INCLUDEDIR=\${prefix}/include/libowfat:" \  
                GNUmakefile  
        if use diet; then  
                einfo "Enabling dietlibc build"  
                sed -i -e "s:^DIET=.*:DIET=/usr/bin/diet -Os:" GNUmakefile  
        else  
                einfo "Disabling dietlibc build"  
                sed -i -e "s:^DIET=.*:DIET=:" GNUmakefile  
        fi  
}  
  
src_compile() {  
        emake || die  
}  
  
src_install () {  
        make \  
                LIBDIR=${D}/usr/lib \  
                MAN3DIR=${D}/usr/share/man/man3 \  
                INCLUDEDIR=${D}/usr/include/libowfat \  
                install || die  
}  
------  

Reproducible: Always
Steps to Reproduce:
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-06-27 04:01:54 UTC
Please, don't paste ebuilds inline. Attach them. If you are just changing a part
of the ebuild, attach only the unified diff. Thanks.
Comment 2 Rolf Eike Beer archtester 2005-08-10 06:16:39 UTC
Created attachment 65599 [details, diff]
patch to make ebuild aware of diet USE flag

Can also be used for 0.24 which is out now
Comment 3 Rolf Eike Beer archtester 2010-07-26 15:54:16 UTC
Why is that closed as needsinfo? There was no further information requested.
Comment 4 Rolf Eike Beer archtester 2010-07-26 16:04:51 UTC
Created attachment 240213 [details, diff]
don't require dietlibc for libowfat

Patch against current libowfat ebuild.
Comment 5 Guy Martin (RETIRED) gentoo-dev 2010-07-26 16:25:25 UTC
Assigned to patrick@gentoo.org as per Rolf's request.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2012-01-31 18:25:08 UTC
ping
Comment 7 Rolf Eike Beer archtester 2012-01-31 21:37:29 UTC
My current ebuild can be found at http://opensource.sf-tec.de/repos/dakon-overlay/dev-libs/libowfat/
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2012-01-31 22:06:16 UTC
Fixed in 0.28-r1.