Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 119178 - sys-fs/jfsutils-1.1.10-r1.ebuild with possibility to build jfsutils staticaly
Summary: sys-fs/jfsutils-1.1.10-r1.ebuild with possibility to build jfsutils staticaly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-16 02:57 UTC by Evgeniy Dushistov
Modified: 2006-01-23 10:07 UTC (History)
0 users

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


Attachments
jfsutils-1.1.10-r1.ebuild (jfsutils-1.1.10-r1.ebuild,872 bytes, text/plain)
2006-01-16 02:57 UTC, Evgeniy Dushistov
Details
jfsutils-1.1.10-r1.ebuild (jfsutils-1.1.10-r1.ebuild,868 bytes, text/plain)
2006-01-21 11:14 UTC, Evgeniy Dushistov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Evgeniy Dushistov 2006-01-16 02:57:08 UTC
I need possibility to build jfsutils statically, 
may be include this possibility to official portage tree?

ebuild in attachment, here is patch to show what I changed:

--- /usr/portage/sys-fs/jfsutils/jfsutils-1.1.10.ebuild 2005-10-30 00:37:06.000000000 +0400
+++ jfsutils-1.1.10-r1.ebuild   2006-01-16 13:30:01.584890750 +0300
@@ -9,13 +9,16 @@
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
-IUSE=""
+IUSE="static"
 
 DEPEND="virtual/libc"
 
 src_compile() {
-       econf \
-               --sbindir=/sbin || die "econf failed"
+       if use static; then
+               CFLAGS="${CFLAGS} -static"
+       fi
+       CFLAGS="${CFLAGS}" econf \
+       --sbindir=/sbin || die "econf failed"
        emake || die
 }
Comment 1 Evgeniy Dushistov 2006-01-16 02:57:48 UTC
Created attachment 77242 [details]
jfsutils-1.1.10-r1.ebuild
Comment 2 Daniel Drake (RETIRED) gentoo-dev 2006-01-20 15:54:48 UTC
We aren't supposed to modify CFLAGS directly in ebuilds. Any chance you could rewrite it using the flag-o-matic eclass?
Comment 3 Evgeniy Dushistov 2006-01-21 11:14:47 UTC
Created attachment 77740 [details]
jfsutils-1.1.10-r1.ebuild

> Any chance you could
> rewrite it using the flag-o-matic eclass?

You mean something like this?
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2006-01-22 10:15:40 UTC
I looked at some ebuilds under app-shells which have a static USE flag and they use append-ldflags instead of append-flags. Can you try making that change and confirm that it still links statically?
Comment 5 Evgeniy Dushistov 2006-01-23 09:41:25 UTC
>Can you try making that change and
>confirm that it still links statically?

with append-ldflags all work fine.
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2006-01-23 10:07:03 UTC
Thanks, in portage.