Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 63539 - lvm2-2.00.15-r1 script error with static use-flag
Summary: lvm2-2.00.15-r1 script error with static use-flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: rob holland (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-10 05:42 UTC by Andreas Kobara
Modified: 2004-09-19 01:35 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Kobara 2004-09-10 05:42:16 UTC
The recent ebuild -r1 should be rewritten otherwise:

!!! ERROR: sys-fs/lvm2-2.00.15-r1 failed.
!!! Function src_unpack, Line 27, Exitcode 1
!!! sed failed

src_unpack reads:
 use static && sed .... || die ...
which doesn't work right here.

Please change to:

src_unpack() {
 unpack ${A}
 cd ${S}

 if use static; then
  sed -i -e 's/TARGETS += lvm.static/TARGETS = .commands lvm-static/' \
         -e 's/^install_tools_static:/install_tools_unused:/' \
         -e 's/^install_tools_dynamic: lvm/install_tools_static: lvm.static/' \
         -e 's/lvm \\$/lvm.static \\/' tools/Makefile.in || die "sed failed"
 fi
}

Regards,
Andy.
Comment 1 rob holland (RETIRED) gentoo-dev 2004-09-14 01:48:04 UTC
this should have been fixed a while ago (someone else reported it). Can you confirm its ok now for you?
Comment 2 Andreas Kobara 2004-09-19 01:35:57 UTC
Confirmed. I see the "sed expression" went into brackets. That's ok now.
Resolved, thanks.