Michal Marek
9324bb52f3
testsuite: Warn if sysconfdir is not /etc
2014-04-04 13:06:05 +02:00
Michal Marek
81bf88d6c4
testsuite: Do not run tests with *.ko.gz if zlib is not enabled
2014-04-04 13:05:49 +02:00
Michal Marek
73476ec5cb
testsuite: Uncompress most modules
...
Only keep test-depmod/modules-order-compressed to test compressed module
support.
2014-04-04 12:32:16 +02:00
Tom Gundersen
8240333b25
config: also parse softdeps from modules
...
This information can be found in /lib/modules/`uname -r`/modules.softdep, and
has only recently been exported by the kernel.
Also remove the advice about copying modules.softdep to /lib/modules as it is
not clear how to do this correctly with several kernels installed with
potentially conflicting soft dependencies.
2014-04-01 08:13:54 -03:00
Michal Marek
450bd1b429
libkmod: Ignore errors from softdeps
...
Before we had softdeps, the usual idiom was
install foo /sbin/modprobe bar; /sbin/modprobe --ignore-install foo
ignoring errors from the first modprobe invocation. This also matches
the behavior of module-init-tools' implementation of softdep.
2014-04-01 07:40:37 -03:00
Lucas De Marchi
3a33a7a566
build-sys: add hooks to build python bindings
...
Add --enable-python configure switch so we build the python bindings. We
also pass version.py through SED_PROCESS macro, so the version is kept
in sync with kmod.
Acked-by: Andy Grover <agrover@redhat.com>
2014-03-26 22:30:56 -03:00
Lucas De Marchi
5ad36e5222
python: Remove unused files from import
...
Acked-by: Andy Grover <agrover@redhat.com>
2014-03-26 22:30:49 -03:00
Lucas De Marchi
299a3adfe8
Merge branch 'master' of python-kmod
...
This is python-kmod is found in git@github.com:agrover/kmod.git
d5b6f22639c077b86659828bcc78dcedc9daaa94
Its history has being rewritten to prepare for a merge:
- Every commit has been prefixed with "python: " in its commit
message
- s-o-b's have been removed
- Every file has been moved to libkmod/python directory
Some files don't make much sense anymore and are being removed
in this merge.
Acked-by: Andy Grover <agrover@redhat.com>
2014-03-26 22:30:31 -03:00
Guy Rozendorn
c03dfbd5a7
python: Issue #15 : resovled by using setuptools_cython
2014-03-25 00:34:16 -03:00
Guy Rozendorn
60ce23e707
python: Issue #15 : Cython needs to be in setup_requires
...
We need Cython BEFORE installing kmod (done with setup_requires),
and AFTER installation - during runtime (done with install_requires)
2014-03-25 00:34:16 -03:00
Guy Rozendorn
1f9c5a04f7
python: Issue #15 Cython is now a dependency
2014-03-25 00:34:16 -03:00
Andy Grover
57a8efdf92
python: update version to 0.9.1
2014-03-25 00:34:16 -03:00
Guy Rozendorn
17b69ada6f
python: Issue #13 skipping building extensions on non-Linux platforms
2014-03-25 00:34:16 -03:00
Andy Grover
e4a57f6828
python: Make kmod.modprobe() raise an error if no modules found
...
Add 'quiet' option to override.
Add docstring.
2014-03-25 00:34:16 -03:00
Andy Grover
891e0756e7
python: Add self as maintainer to setup.py
2014-03-25 00:34:16 -03:00
Andy Grover
8e73a86d6e
python: Correct building for python 2.6
...
Reported-by: Oz Nahum Tiram <nahumoz@gmail.com>
2014-03-25 00:34:16 -03:00
Oz
f0d6f3701a
python: add docstring to insert and remove methods
2014-03-25 00:34:16 -03:00
Oz
240c0f4694
python: add docstring to rmmod
2014-03-25 00:34:16 -03:00
Andy Grover
b32900f4e8
python: update version to 0.9
2014-03-25 00:34:16 -03:00
Andy Grover
9ebfb9c198
python: Update README
...
Last update changed API slightly:
* loaded_modules renamed to modules
* returns a module object instead of (name, size)
2014-03-25 00:34:16 -03:00
W. Trevor King
26105c168f
python: MANIFEST.in: add AUTHORS to distibuted source files.
2014-03-25 00:34:16 -03:00
W. Trevor King
c8b5c51ed6
python: Ran update-copyright.py.
2014-03-25 00:34:16 -03:00
W. Trevor King
64f9a6a630
python: .update-copyright.conf: update to pipe separators.
...
This brings the config file up to speed with the following
update-copyright commit:
commit 3c68a1a48419d8b2bbc2ce0e7f1700b996ec30e9
Author: W. Trevor King <wking@tremily.us>
Date: Fri Oct 19 21:52:48 2012 -0400
project: for consistency, also separate ignored paths with pipes.
2014-03-25 00:34:16 -03:00
W. Trevor King
8e8e24bcbd
python: .update-copyright.conf: add MANIFEST.in to ignored files.
2014-03-25 00:34:16 -03:00
W. Trevor King
ac24814360
python: .update-copyright.conf: add Red Hat alias for Andy Grover.
...
He seems to be assigning copyright of files he writes to Red Hat.
Avoiding .mailmap so the git log will still attribute changes to him.
I'm not sure which name should go in the AUTHORS file.
2014-03-25 00:34:16 -03:00
W. Trevor King
5a39a9d988
python: .update-copyright.conf: add README.rst to ignored files.
2014-03-25 00:34:16 -03:00
W. Trevor King
3c65e333f7
python: .mailmap: consolidate Andy Grover email addresses.
2014-03-25 00:34:15 -03:00
W. Trevor King
6745a4a7da
python: .update-copyright.conf: add copyright configuration.
...
Use my external update-copyright package to maintain copyright blurbs.
http://pypi.python.org/pypi/update-copyright/
2014-03-25 00:34:15 -03:00
W. Trevor King
0a2fab2b32
python: module: fix versions -> info typo in Module._info_get() error message.
2014-03-25 00:34:15 -03:00
W. Trevor King
d9c0c63eb7
python: Initialize Kmod.mod_dir to None in __cinit__().
2014-03-25 00:34:15 -03:00
W. Trevor King
caee9c10c5
python: Use an OrderedDict for Module.info (preserving modinfo ordering).
2014-03-25 00:34:15 -03:00
W. Trevor King
81c1a4e840
python: Add Module.info attribute.
2014-03-25 00:34:15 -03:00
W. Trevor King
e0ff45a048
python: Use Cython's libc.errno for EEXIST.
2014-03-25 00:34:15 -03:00
W. Trevor King
0dd3047efb
python: Add Module.versions attribute.
2014-03-25 00:34:15 -03:00
W. Trevor King
76d34f40e1
python: README.rst: add .rst symlink for GitHub.
2014-03-25 00:34:15 -03:00
W. Trevor King
161576d420
python: README: mention Cython dependency.
2014-03-25 00:34:15 -03:00
W. Trevor King
028fc127b6
python: README: cleanup reStructuredText syntax.
2014-03-25 00:34:15 -03:00
W. Trevor King
075f4ea0e2
python: Add missing copyright blurbs.
2014-03-25 00:34:15 -03:00
W. Trevor King
c737198936
python: Add docstrings to kmod.kmod and kmod.kmod.Kmod.
2014-03-25 00:34:15 -03:00
W. Trevor King
3cc8a66078
python: MANIFEST.in: add missing source to the sdist tarball.
2014-03-25 00:34:15 -03:00
W. Trevor King
113b46bc1e
python: Add additional out Module attributes (path, refcnt, ...).
2014-03-25 00:34:15 -03:00
W. Trevor King
f7c62154ec
python: Convert to Cython.
...
With Cython we get easier memory handling and Python 3 compatibility.
2014-03-25 00:34:15 -03:00
Andy Grover
cd4df5accd
python: update FSF address in COPYING and COPYING.LESSER
...
Please FSF, never move again.
2014-03-25 00:34:15 -03:00
Andy Grover
6cdc22b36b
python: whitespace
2014-03-25 00:34:15 -03:00
Andy Grover
705187f17b
python: add proper error handling to loaded_modules()
...
We need to check the result of basically all Py* calls and cleanup
properly if they fail.
2014-03-25 00:34:14 -03:00
Andy Grover
31aa6834ba
python: Improve README's description of kmod
...
Based on text from kmod's README.
2014-03-25 00:34:14 -03:00
Andy Grover
c73ffc51e5
python: Make setup.py version match version in .c
2014-03-25 00:34:14 -03:00
Andy Grover
3aa27ba988
python: Add README
2014-03-25 00:34:14 -03:00
Andy Grover
8a4d09336e
python: More cleanup and renaming of stuff. Add docstrings.
2014-03-25 00:34:14 -03:00
Andy Grover
1e688f86a7
python: Add support for listing loaded modules, modprobe, rmmod
...
And other misc. cleanups and changes.
2014-03-25 00:34:14 -03:00