Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 196944 - sys-libs/db-3.2.9-r11 broken quoting in sed statement
Summary: sys-libs/db-3.2.9-r11 broken quoting in sed statement
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: William L. Thomson Jr. (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-24 16:45 UTC by Konrad Karczewski
Modified: 2007-10-25 07:02 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 Konrad Karczewski 2007-10-24 16:45:37 UTC
The ebuild for sys-libs/db-3.2.9-r11 has been modified without change in the version:
ls -la /usr/portage/sys-libs/db/db-3.2.9-r11.ebuild 
-rw-r--r-- 1 root root 4675 Oct 24 09:36 /usr/portage/sys-libs/db/db-3.2.9-r11.ebuild

And now an attempt to rebuild it fails with sed error:
 * Applying db-3.2.9-fix-dep-link.patch ...                               [ ok ]
sed: invalid option -- O
Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...

The cause is missing " after Makefile.orig on line 51:

        sed -e 's:DB185INC=:DB185INC= -I/usr/include/db1:' \
                -e 's:DB185LIB=:DB185LIB= -ldb1:' \
                "${S}/dist/Makefile.in.orig > "${S}"/dist/Makefile.in || die "Failed to sed" 

it should be:
        sed -e 's:DB185INC=:DB185INC= -I/usr/include/db1:' \
                -e 's:DB185LIB=:DB185LIB= -ldb1:' \
                "${S}/dist/Makefile.in.orig" > "${S}"/dist/Makefile.in || die "Failed to sed" 

After this fix is applied and digest is fixed the package can be emerged
Comment 1 Torsten Veller (RETIRED) gentoo-dev 2007-10-25 07:02:47 UTC
Fixed. Thanks for the report.