Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 196944

Summary: sys-libs/db-3.2.9-r11 broken quoting in sed statement
Product: Gentoo Linux Reporter: Konrad Karczewski <konrad.karczewski>
Component: New packagesAssignee: William L. Thomson Jr. (RETIRED) <wltjr>
Status: RESOLVED FIXED    
Severity: normal CC: caleb
Priority: High    
Version: 2007.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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.