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

Bug 546452

Summary: sys-kernel/kergen doesnt work (can't find it own modules)
Product: Gentoo Linux Reporter: lumbrius
Component: Current packagesAssignee: Justin Lecher (RETIRED) <jlec>
Status: RESOLVED FIXED    
Severity: normal CC: jlec
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: A patch to fix the module's names so they can be found.

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
+