Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133907 - app-admin/localepurge: the localepurge script uses bashisms
Summary: app-admin/localepurge: the localepurge script uses bashisms
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: José Alberto Suárez López (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-20 16:18 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2006-05-30 07:00 UTC (History)
1 user (show)

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 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-05-20 16:18:31 UTC
The localepurge script uses bashisms but it uses #!/bin/sh as starting like, this breaks when /bin/sh is not bash.

A simple

src_unpack() {
unpack ${A}
cd "${S}"
sed -i -e 's:#!/bin/sh:#!/bin/bash:' "${S}/localepurge"
}
(properly indented of course)

solves the little glitches on Gentoo/FreeBSD.

A part from that, it works perfectly :)

Thanks,
Diego
Comment 1 José Alberto Suárez López (RETIRED) gentoo-dev 2006-05-30 07:00:41 UTC
Thanks :)

0.5-r1 out :)

i will use this "patch" in the ebuild until i make major changes in the script.

regards