Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 546452 - sys-kernel/kergen doesnt work (can't find it own modules)
Summary: sys-kernel/kergen doesnt work (can't find it own modules)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Justin Lecher (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-13 13:29 UTC by lumbrius
Modified: 2015-04-17 07:04 UTC (History)
1 user (show)

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


Attachments
A patch to fix the module's names so they can be found. (0.1.0-remove-extensions.patch,1.37 KB, patch)
2015-04-14 08:15 UTC, pavel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description lumbrius 2015-04-13 13:29:24 UTC
sys-kernel/kergen-0.1.0 can't find its own modules.

Reproducible: Always

Steps to Reproduce:
run as root: keygen -g

Actual Results:  
diana linux-3.18.11-gentoo # kergen -g
/usr/bin/python3.3: can't open file 'kergen-map.py': [Errno 2] No such file or directory
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.3/kergen", line 50, in <module>
    kernel_options = subprocess.check_output(['python', 'kergen-map.py'], universal_newlines=True)[:-1].split(' ')
  File "/usr/lib64/python3.3/subprocess.py", line 589, in check_output
    raise CalledProcessError(retcode, process.args, output=output)
subprocess.CalledProcessError: Command '['python', 'kergen-map.py']' returned non-zero exit status 2


Expected Results:  
kergen should work:
  -g, --generate    Generate optimized kernel options for your hardware and
                    add the non existing ones to .config

diana linux-3.18.11-gentoo # qlist kergen | grep kergen-map
/usr/bin/kergen-map
/usr/lib/python-exec/python3.3/kergen-map
Comment 1 pavel 2015-04-14 08:15:00 UTC
Created attachment 401204 [details, diff]
A patch to fix the module's names so they can be found.

I'm sorry for this.
Here is a patch solving the issue.
Comment 2 pavel 2015-04-14 09:13:41 UTC
I made a new release with this bug fixed, i.e. version 0.1.1, so you might want to just make a version bump to 0.1.1 instead of implementing the patch.
Thanks.
Comment 3 lumbrius 2015-04-16 22:06:16 UTC
(In reply to pavel from comment #2)
> I made a new release with this bug fixed, i.e. version 0.1.1, so you might
> want to just make a version bump to 0.1.1 instead of implementing the patch.
> Thanks.


Could you please submit version 0.1.1 into main tree?
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2015-04-17 07:04:02 UTC
+*kergen-0.1.1 (17 Apr 2015)
+
+  17 Apr 2015; Justin Lecher <jlec@gentoo.org> +kergen-0.1.1.ebuild,
+  -kergen-0.1.0.ebuild:
+  Version Bump; drop old, fixes bug #546452
+