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

Bug 601310

Summary: net-dns/opendnssec-2.0.1: Bad sed in ebuild
Product: Gentoo Linux Reporter: Kévin Beaubestre <kevin+gentoo>
Component: Current packagesAssignee: Marc Schiffbauer <mschiff>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch correcting sed

Description Kévin Beaubestre 2016-11-30 21:06:54 UTC
Created attachment 454798 [details, diff]
Patch correcting sed

In order to upgrade opendnssec from 1.4 to 2.0, there is a need to update a database used by opendnssec (kasp.db).
The ebuild gives us the needed files under /usr/share/opendnssec/db/ but the sed at lines 199-203 breaks the migration shell script for two reasons:
- the path to schema.{sqlite,mysql} (depending on the enabled USEflag) is missing its last directory (sql/);
- this path should be assigned to the variable SCHEMA but the start of the line is being removed by the sed, thus the assignation becomes an attempt to execute the sql file.

Attached is a working patch.
Comment 1 Marc Schiffbauer gentoo-dev 2016-12-18 02:46:44 UTC
Thanks for reporting and the patch! Applied...