Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133026 - linux-info.eclass check_extra_config() fix and improvement
Summary: linux-info.eclass check_extra_config() fix and improvement
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Highest normal (vote)
Assignee: John Mylchreest (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-11 08:16 UTC by Alin Năstac (RETIRED)
Modified: 2006-05-22 10:41 UTC (History)
1 user (show)

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


Attachments
linux-info.eclass.patch (linux-info.eclass.patch,4.06 KB, patch)
2006-05-11 08:56 UTC, Alin Năstac (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alin Năstac (RETIRED) gentoo-dev 2006-05-11 08:16:31 UTC
As I said, check_extra_config fails to die if anything but last test fails.
Also, error/warning reporting should be done in the same manner.
Patch will follow shortly.
Comment 1 John Mylchreest (RETIRED) gentoo-dev 2006-05-11 08:20:02 UTC
brilliant, thanks.
Comment 2 John Mylchreest (RETIRED) gentoo-dev 2006-05-11 08:21:07 UTC
CC'ing in kernel herd as well, this will need to spur awareness.
Comment 3 Alin Năstac (RETIRED) gentoo-dev 2006-05-11 08:56:38 UTC
Created attachment 86612 [details, diff]
linux-info.eclass.patch

The improvements part:
 - first interpret @ and ~ operators since the natural way is to specify ~!FOE instead !~FOE (searched in the tree; nothing is affected by this change)
 - for "soft" checks (~ or @): give the oportunity to specify the function used to report the problem (eerror or ewarn) by defining vars like ERROR_${config} or WARNING_${config}
Comment 4 Alin Năstac (RETIRED) gentoo-dev 2006-05-17 00:21:31 UTC
Please decide whether you apply this patch or not.
The current net-dialup/ppp-2.4.3-r15 ebuild use features implemented by this patch; if you don't apply it, I would have to find other ways to obtain what I want.
Comment 5 Alin Năstac (RETIRED) gentoo-dev 2006-05-18 21:27:50 UTC
If you don't respond till Sunday, I will consider you accept the patch and apply it myself.
Comment 6 Henrik Brix Andersen 2006-05-19 00:20:31 UTC
(In reply to comment #5)
> If you don't respond till Sunday, I will consider you accept the patch and
> apply it myself.

No, you will not. The patch is being looked on, have patience.
Comment 7 John Mylchreest (RETIRED) gentoo-dev 2006-05-22 02:30:49 UTC
Unfortunately because of time constraints on my end, and the fact the patch touches trivial changes which add extra reading (albeit minimal) I've not had time until recently to review this.

Judging from my preliminary checks, and reading through it all looks fine.
Please feel free to commit and email kernel@gentoo.org to inform of the eclass changes. Perhaps attaching the patch/bug would be enough background info.

Cheers,
John
Comment 8 Alin Năstac (RETIRED) gentoo-dev 2006-05-22 10:41:23 UTC
(In reply to comment #7)
> Judging from my preliminary checks, and reading through it all looks fine.
> Please feel free to commit and email kernel@gentoo.org to inform of the eclass
> changes. Perhaps attaching the patch/bug would be enough background info.

I've applied a slightly different patch (now the last messages are displayed using eerror when hard_errors_count > 0, otherwise ewarn being used).
kernel team is in CC, therefore I find it redundant to send them an email regarding this bug.

Please add me to CC list if bugs are opened regarding the new check_extra_config(). Thank you!