Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 601310 - net-dns/opendnssec-2.0.1: Bad sed in ebuild
Summary: net-dns/opendnssec-2.0.1: Bad sed in ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Marc Schiffbauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-30 21:06 UTC by Kévin Beaubestre
Modified: 2016-12-18 02:46 UTC (History)
0 users

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


Attachments
Patch correcting sed (opendnssec-2.0.1.diff,559 bytes, patch)
2016-11-30 21:06 UTC, Kévin Beaubestre
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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...