Drop what's not maintained
cover Drop what's not maintained
Some of these were long due, just not done since they were at least not broken. However the python stuff was keeping me from succesfully running make distcheck. Even if this is fixed, it'd be probably better maintained somewhere else.
Lucas De Marchi (4):
Drop python bindings
ci: drop travis config
testsuite: drop mkosi
gitignore: Ignore *.pc files
.gitignore | 1 + .travis.yml | 33 ------ Makefile.am | 82 +-------------- README.md | 3 +- autogen.sh | 1 - configure.ac | 21 ---- libkmod/python/.gitignore | 6 -- libkmod/python/README | 23 ----- libkmod/python/kmod/__init__.py | 24 ----- libkmod/python/kmod/_libkmod_h.pxd | 113 --------------------- libkmod/python/kmod/_util.pxd | 20 ---- libkmod/python/kmod/_util.pyx | 28 ----- libkmod/python/kmod/error.py | 18 ---- libkmod/python/kmod/kmod.pxd | 22 ---- libkmod/python/kmod/kmod.pyx | 125 ----------------------- libkmod/python/kmod/list.pxd | 25 ----- libkmod/python/kmod/list.pyx | 45 -------- libkmod/python/kmod/module.pxd | 24 ----- libkmod/python/kmod/module.pyx | 158 ----------------------------- libkmod/python/kmod/version.py.in | 17 ---- testsuite/mkosi/.gitignore | 3 - testsuite/mkosi/mkosi.arch | 26 ----- testsuite/mkosi/mkosi.build | 38 ------- testsuite/mkosi/mkosi.clear | 20 ---- testsuite/mkosi/mkosi.fedora | 28 ----- 25 files changed, 4 insertions(+), 900 deletions(-) delete mode 100644 .travis.yml delete mode 100644 libkmod/python/.gitignore delete mode 100644 libkmod/python/README delete mode 100644 libkmod/python/kmod/__init__.py delete mode 100644 libkmod/python/kmod/_libkmod_h.pxd delete mode 100644 libkmod/python/kmod/_util.pxd delete mode 100644 libkmod/python/kmod/_util.pyx delete mode 100644 libkmod/python/kmod/error.py delete mode 100644 libkmod/python/kmod/kmod.pxd delete mode 100644 libkmod/python/kmod/kmod.pyx delete mode 100644 libkmod/python/kmod/list.pxd delete mode 100644 libkmod/python/kmod/list.pyx delete mode 100644 libkmod/python/kmod/module.pxd delete mode 100644 libkmod/python/kmod/module.pyx delete mode 100644 libkmod/python/kmod/version.py.in delete mode 100644 testsuite/mkosi/.gitignore delete mode 100644 testsuite/mkosi/mkosi.arch delete mode 100755 testsuite/mkosi/mkosi.build delete mode 100644 testsuite/mkosi/mkosi.clear delete mode 100644 testsuite/mkosi/mkosi.fedora
Signature · 1 line
2.43.0
PATCH 1/4 Drop python bindings
Python bindings are not well maintained. Currently it's just broken when trying to build with cython 3.0.8:
make --no-print-directory all-recursive Making all in . CYTHON libkmod/python/kmod/kmod.c Error compiling Cython file: ------------------------------------------------------------ ... # details. # # You should have received a copy of the GNU Lesser General Public License # along with python-kmod. If not, see <http://www.gnu.org/licenses/>. cimport _libkmod_h ^
Nothing really touched those bindings for 10 years already. I postponed the removal since they were at least building, but that just changed. So let's drop it and allow any interested people to give it a better life outside of libkmod.
--- .travis.yml | 1 - Makefile.am | 72 +------------ README.md | 3 +- autogen.sh | 1 - configure.ac | 20 ---- libkmod/python/.gitignore | 6 -- libkmod/python/README | 23 ----- libkmod/python/kmod/__init__.py | 24 ----- libkmod/python/kmod/_libkmod_h.pxd | 113 --------------------- libkmod/python/kmod/_util.pxd | 20 ---- libkmod/python/kmod/_util.pyx | 28 ----- libkmod/python/kmod/error.py | 18 ---- libkmod/python/kmod/kmod.pxd | 22 ---- libkmod/python/kmod/kmod.pyx | 125 ----------------------- libkmod/python/kmod/list.pxd | 25 ----- libkmod/python/kmod/list.pyx | 45 -------- libkmod/python/kmod/module.pxd | 24 ----- libkmod/python/kmod/module.pyx | 158 ----------------------------- libkmod/python/kmod/version.py.in | 17 ---- testsuite/mkosi/mkosi.build | 2 +- 20 files changed, 4 insertions(+), 743 deletions(-) delete mode 100644 libkmod/python/.gitignore delete mode 100644 libkmod/python/README delete mode 100644 libkmod/python/kmod/__init__.py delete mode 100644 libkmod/python/kmod/_libkmod_h.pxd delete mode 100644 libkmod/python/kmod/_util.pxd delete mode 100644 libkmod/python/kmod/_util.pyx delete mode 100644 libkmod/python/kmod/error.py delete mode 100644 libkmod/python/kmod/kmod.pxd delete mode 100644 libkmod/python/kmod/kmod.pyx delete mode 100644 libkmod/python/kmod/list.pxd delete mode 100644 libkmod/python/kmod/list.pyx delete mode 100644 libkmod/python/kmod/module.pxd delete mode 100644 libkmod/python/kmod/module.pyx delete mode 100644 libkmod/python/kmod/version.py.in
.travis.yml +0 -1
@@ -18,7 +18,6 @@ before_install: - sudo apt-get install -qq linux-headers-generic before_script: - - unset PYTHON_CFLAGS # hack to broken travis setup - export KDIR="$(find /lib/modules/* -maxdepth 1 -name build | sort -n --reverse | head -1)" script:
Makefile.am +2 -70
90 lines not on this page · raw message
README.md +1 -2
@@ -67,8 +67,7 @@ Hacking ======= Run 'autogen.sh' script before configure. If you want to accept the recommended -flags, you just need to run 'autogen.sh c'. Note that the recommended -flags require cython be installed to compile successfully. +flags, you just need to run 'autogen.sh c'. Make sure to read the CODING-STYLE file and the other READMEs: libkmod/README and testsuite/README.
autogen.sh +0 -1
@@ -33,7 +33,6 @@ cd $oldpwd hackargs="\ --enable-debug \ ---enable-python \ --with-zstd \ --with-xz \ --with-zlib \
configure.ac +0 -20
@@ -214,24 +214,6 @@ AS_IF([test "x$enable_debug" = "xyes"], [ AC_DEFINE(ENABLE_DEBUG, [1], [Debug messages.]) ]) -AC_ARG_ENABLE([python], - AS_HELP_STRING([--enable-python], [enable Python libkmod bindings @<:@default=disabled@:>@]), - [], [enable_python=no]) -AS_IF([test "x$enable_python" = "xyes"], [ - AM_PATH_PYTHON(,,[:]) - AC_PATH_PROG([CYTHON], [cython], [:]) - - PKG_CHECK_MODULES([PYTHON], [python-${PYTHON_VERSION}], - [have_python=yes], - [PKG_CHECK_MODULES([PYTHON], [python], - [have_python=yes], - [have_python=no])]) - - AS_IF([test "x$have_python" = xno], - [AC_MSG_ERROR([*** python support requested but libraries not found])]) -]) -AM_CONDITIONAL([BUILD_PYTHON], [test "x$enable_python" = "xyes"]) - AC_ARG_ENABLE([coverage], AS_HELP_STRING([--enable-coverage], [enable test coverage @<:@default=disabled@:>@]), [], [enable_coverage=no])
@@ -330,7 +312,6 @@ AC_CONFIG_FILES([ libkmod/docs/Makefile libkmod/docs/version.xml libkmod/libkmod.pc - libkmod/python/kmod/version.py tools/kmod.pc ])
@@ -358,7 +339,6 @@ AC_MSG_RESULT([ experimental features: ${enable_experimental} tools: ${enable_tools} - python bindings: ${enable_python} logging: ${enable_logging} compression: zstd=${with_zstd} xz=${with_xz} zlib=${with_zlib} debug: ${enable_debug}
libkmod/python/.gitignore deleted +0 -6
@@ -1,6 +0,0 @@ -__pycache__ -dist -*.c -*.pyc -*.so -kmod/version.py
libkmod/python/README deleted +0 -23
@@ -1,23 +0,0 @@ -python-kmod -=========== - -Python bindings for kmod/libkmod - -python-kmod is a Python wrapper module for libkmod, exposing common -module operations: listing installed modules, modprobe, and rmmod. -It is at: - -Example (python invoked as root) --------------------------------- - -:: - - >>> import kmod - >>> km = kmod.Kmod() - >>> [(m.name, m.size) for m in km.loaded()] - [(u'nfs', 407706), - (u'nfs_acl', 12741) - ... - (u'virtio_blk', 17549)] - >>> km.modprobe("btrfs") - >>> km.rmmod("btrfs")
libkmod/python/kmod/__init__.py deleted +0 -24
@@ -1,24 +0,0 @@ -# Copyright (C) 2012 W. Trevor King <[email protected]> -# -# This file is part of python-kmod. -# -# python-kmod is free software: you can redistribute it and/or modify it under -# the terms of the GNU Lesser General Public License version 2.1 as published -# by the Free Software Foundation. -# -# python-kmod is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more -# details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with python-kmod. If not, see <http://www.gnu.org/licenses/>. - -"Libkmod -- Python interface to kmod API." - -from .version import __version__ -try: - from .kmod import Kmod -except ImportError: - # this is a non-Linux platform - pass
libkmod/python/kmod/_libkmod_h.pxd deleted +0 -113
113 lines not on this page · raw message
libkmod/python/kmod/_util.pxd deleted +0 -20
@@ -1,20 +0,0 @@ -# Copyright (C) 2012 W. Trevor King <[email protected]> -# -# This file is part of python-kmod. -# -# python-kmod is free software: you can redistribute it and/or modify it under -# the terms of the GNU Lesser General Public License version 2.1 as published -# by the Free Software Foundation. -# -# python-kmod is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more -# details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with python-kmod. If not, see <http://www.gnu.org/licenses/>. - -cimport _libkmod_h - - -cdef object char_ptr_to_str(_libkmod_h.const_char_ptr bytes)
libkmod/python/kmod/_util.pyx deleted +0 -28
@@ -1,28 +0,0 @@ -# Copyright (C) 2012 W. Trevor King <[email protected]> -# -# This file is part of python-kmod. -# -# python-kmod is free software: you can redistribute it and/or modify it under -# the terms of the GNU Lesser General Public License version 2.1 as published -# by the Free Software Foundation. -# -# python-kmod is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more -# details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with python-kmod. If not, see <http://www.gnu.org/licenses/>. - -import sys as _sys - -cimport _libkmod_h - - -cdef object char_ptr_to_str(_libkmod_h.const_char_ptr char_ptr): - if char_ptr is NULL: - return None - if _sys.version_info >= (3,): # Python 3 - return str(char_ptr, 'ascii') - # Python 2 - return unicode(char_ptr, 'ascii')
libkmod/python/kmod/error.py deleted +0 -18
@@ -1,18 +0,0 @@ -# Copyright (C) 2012 W. Trevor King <[email protected]> -# -# This file is part of python-kmod. -# -# python-kmod is free software: you can redistribute it and/or modify it under -# the terms of the GNU Lesser General Public License version 2.1 as published -# by the Free Software Foundation. -# -# python-kmod is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more -# details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with python-kmod. If not, see <http://www.gnu.org/licenses/>. - -class KmodError (Exception): - pass
libkmod/python/kmod/kmod.pxd deleted +0 -22
@@ -1,22 +0,0 @@ -# Copyright (C) 2012 W. Trevor King <[email protected]> -# -# This file is part of python-kmod. -# -# python-kmod is free software: you can redistribute it and/or modify it under -# the terms of the GNU Lesser General Public License version 2.1 as published -# by the Free Software Foundation. -# -# python-kmod is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more -# details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with python-kmod. If not, see <http://www.gnu.org/licenses/>. - -cimport _libkmod_h - - -cdef class Kmod (object): - cdef _libkmod_h.kmod_ctx *_kmod_ctx - cdef object mod_dir
libkmod/python/kmod/kmod.pyx deleted +0 -125
125 lines not on this page · raw message
libkmod/python/kmod/list.pxd deleted +0 -25
@@ -1,25 +0,0 @@ -# Copyright (C) 2012 W. Trevor King <[email protected]> -# -# This file is part of python-kmod. -# -# python-kmod is free software: you can redistribute it and/or modify it under -# the terms of the GNU Lesser General Public License version 2.1 as published -# by the Free Software Foundation. -# -# python-kmod is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more -# details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with python-kmod. If not, see <http://www.gnu.org/licenses/>. - -cimport _libkmod_h - - -cdef class ModListItem (object): - cdef _libkmod_h.kmod_list *list - - -cdef class ModList (ModListItem): - cdef _libkmod_h.kmod_list *_next
libkmod/python/kmod/list.pyx deleted +0 -45
45 lines not on this page · raw message
libkmod/python/kmod/module.pxd deleted +0 -24
@@ -1,24 +0,0 @@ -# Copyright (C) 2012 W. Trevor King <[email protected]> -# -# This file is part of python-kmod. -# -# python-kmod is free software: you can redistribute it and/or modify it under -# the terms of the GNU Lesser General Public License version 2.1 as published -# by the Free Software Foundation. -# -# python-kmod is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more -# details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with python-kmod. If not, see <http://www.gnu.org/licenses/>. - -cimport _libkmod_h -cimport list as _list - - -cdef class Module (object): - cdef _libkmod_h.kmod_module *module - - cpdef from_mod_list_item(self, _list.ModListItem item)
libkmod/python/kmod/module.pyx deleted +0 -158
158 lines not on this page · raw message
libkmod/python/kmod/version.py.in deleted +0 -17
@@ -1,17 +0,0 @@ -# Copyright (C) 2012 W. Trevor King <[email protected]> -# -# This file is part of python-kmod. -# -# python-kmod is free software: you can redistribute it and/or modify it under -# the terms of the GNU Lesser General Public License version 2.1 as published -# by the Free Software Foundation. -# -# python-kmod is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more -# details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with python-kmod. If not, see <http://www.gnu.org/licenses/>. - -__version__ = '@VERSION@'
testsuite/mkosi/mkosi.build +1 -1
@@ -32,7 +32,7 @@ cd build kdir=$(find_kdir) IFS=/ read _ _ _ kver _ <<<"$kdir" -../autogen.sh c --disable-python +../autogen.sh c make -j make check KDIR="$kdir" KVER="$kver" make install
Signature · 1 line
2.43.0
PATCH 2/4 ci: drop travis config
In reply to Lucas De MarchiWe are not using travis anymore for CI. Drop its configuration.
--- .travis.yml | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 .travis.yml
.travis.yml deleted +0 -32
@@ -1,32 +0,0 @@ -language: c -dist: focal - -matrix: - include: - - compiler: gcc - env: CC=gcc - - compiler: clang - env: CC=clang - -before_install: - - sudo apt-get update -qq - - sudo apt-get install -qq libzstd-dev zstd - - sudo apt-get install -qq liblzma-dev - - sudo apt-get install -qq zlib1g-dev - - sudo apt-get install -qq xsltproc docbook-xsl - - sudo apt-get install -qq cython - - sudo apt-get install -qq linux-headers-generic - -before_script: - - export KDIR="$(find /lib/modules/* -maxdepth 1 -name build | sort -n --reverse | head -1)" - -script: - - ./autogen.sh c --without-openssl && make -j - - make -j check - -notifications: - irc: - channels: - - "irc.freenode.org#kmod" - template: - - "%{commit}: %{author} - %{message}"
Signature · 1 line
2.43.0
PATCH 3/4 testsuite: drop mkosi
In reply to Lucas De MarchiIt's not being actively used, so drop it.
--- Makefile.am | 10 ---------- configure.ac | 1 - testsuite/mkosi/.gitignore | 3 --- testsuite/mkosi/mkosi.arch | 26 ------------------------ testsuite/mkosi/mkosi.build | 38 ------------------------------------ testsuite/mkosi/mkosi.clear | 20 ------------------- testsuite/mkosi/mkosi.fedora | 28 -------------------------- 7 files changed, 126 deletions(-) delete mode 100644 testsuite/mkosi/.gitignore delete mode 100644 testsuite/mkosi/mkosi.arch delete mode 100755 testsuite/mkosi/mkosi.build delete mode 100644 testsuite/mkosi/mkosi.clear delete mode 100644 testsuite/mkosi/mkosi.fedora
Makefile.am +0 -10
@@ -416,13 +416,3 @@ tar: kmod-$(VERSION).tar.xz kmod-$(VERSION).tar.sign tar-sync: kmod-$(VERSION).tar.xz kmod-$(VERSION).tar.sign kup put kmod-$(VERSION).tar.xz kmod-$(VERSION).tar.sign /pub/linux/utils/kernel/kmod/ - -# ------------------------------------------------------------------------------ -# mkosi -# ------------------------------------------------------------------------------ - -DISTRO ?= "arch" - -mkosi: - -$(MKDIR_P) $(top_srcdir)/testsuite/mkosi/mkosi.cache - $(MKOSI) -C $(top_srcdir)/testsuite/mkosi --build-sources ../../ --default mkosi.${DISTRO} -fi
configure.ac +0 -1
@@ -33,7 +33,6 @@ AC_PROG_MKDIR_P AC_PROG_LN_S PKG_PROG_PKG_CONFIG AC_PATH_PROG([XSLTPROC], [xsltproc]) -AC_PATH_PROG([MKOSI], [mkosi]) AC_PROG_CC_C99
testsuite/mkosi/.gitignore deleted +0 -3
@@ -1,3 +0,0 @@ -/*-image.raw* -/.mkosi-* -/mkosi.cache
testsuite/mkosi/mkosi.arch deleted +0 -26
@@ -1,26 +0,0 @@ -[Distribution] -Distribution=arch -Release=(rolling) - -[Output] -Output = arch-image.raw - -[Packages] -Packages = valgrind -BuildPackages = - automake - gcc - git - make - pkg-config - python2 - python2-future - autoconf - gtk-doc - docbook-xml - docbook-xsl - linux-headers - openssl - -[Partitions] -RootSize = 3G
testsuite/mkosi/mkosi.build deleted +0 -38
@@ -1,38 +0,0 @@ -#!/bin/bash -ex - -function find_kdir() { - local kdirs=(/usr/lib/modules/*/build/Makefile /usr/src/kernels/*/Makefile) - local kdir="" - - for f in "${kdirs[@]}"; do - if [ -f "$f" ]; then - kdir=$f - break - fi - done - - if [ -z "$kdir" ]; then - printf '==> Unable to find kernel headers to build modules for tests\n' >&2 - exit 1 - fi - - kdir=${kdir%/Makefile} - - echo $kdir -} - -if [ -f configure ]; then - make distclean -fi - -rm -rf build -mkdir build -cd build - -kdir=$(find_kdir) -IFS=/ read _ _ _ kver _ <<<"$kdir" - -../autogen.sh c -make -j -make check KDIR="$kdir" KVER="$kver" -make install
testsuite/mkosi/mkosi.clear deleted +0 -20
@@ -1,20 +0,0 @@ -[Distribution] -Distribution=clear -Release=latest - -[Output] -Output = clear-image.raw - -[Packages] -Packages= - os-core-update -BuildPackages= - os-core-dev - linux-dev - -[Partitions] -RootSize = 5G - -[Host] -# This is where swupd-extract is usually installed. -ExtraSearchPaths=$SUDO_HOME/go/bin
testsuite/mkosi/mkosi.fedora deleted +0 -28
@@ -1,28 +0,0 @@ -[Distribution] -Distribution=fedora -Release=29 - -[Output] -Output = fedora-image.raw - -[Packages] -Packages = valgrind -BuildPackages = - autoconf - automake - gcc - git - gtk-doc - kernel-devel - libtool - libxslt - make - pkgconf-pkg-config - xml-common - libzstd-devel - xz-devel - zlib-devel - openssl-devel - -[Partitions] -RootSize = 2G
Signature · 1 line
2.43.0
PATCH 4/4 gitignore: Ignore *.pc files
In reply to Lucas De Marchitools/kmod.pc is generated by build system. Any new *.pc we may have should follow a similar approach. So, just ignore from git, like we do for e.g. *.o.
--- .gitignore | 1 + 1 file changed, 1 insertion(+)
.gitignore +1 -0
@@ -1,6 +1,7 @@ *.o *.gcda *.gcno +*.pc /*.tar.xz /*.md5sum /*.mbx
Signature · 1 line
2.43.0
Re: [PATCH 2/4] ci: drop travis config
In reply to Lucas De MarchiQuoted 3 lines · Lucas De Marchi
We are not using travis anymore for CI. Drop its configuration.
Signed-off-by Lucas De Marchi <[email protected]>
What is being used to CI testing for userspace?
Luis
Re: Re: [PATCH 2/4] ci: drop travis config
Quoted 6 lines · Luis Chamberlain
Quoted 3 lines · Lucas De Marchi
We are not using travis anymore for CI. Drop its configuration.
Signed-off-by Lucas De Marchi <[email protected]>What is being used to CI testing for userspace?
currently it's basically the testsuite being executed manually. I had it using github-actions some time ago and may add it back.
Lucas De Marchi
Quoted 2 lines
Luis