From 5d15291874c967b67fec352bf04f7fe96248bb6b Mon Sep 17 00:00:00 2001 From: Max Logaev Date: Fri, 25 Sep 2026 16:02:08 +0300 Subject: [PATCH] New package: kconfig-frontends-4.11.0.1 The GTK frontend is disabled because it requires the obsolete "libglade", which is explicitly listed in "removed-packages". --- common/shlibs | 1 + srcpkgs/kconfig-frontends-qt5 | 1 + .../patches/autoconf_270p.patch | 25 ++++++++++ .../patches/gperf_newtype.patch | 17 +++++++ .../patches/python3_support.patch | 12 +++++ srcpkgs/kconfig-frontends/template | 48 +++++++++++++++++++ srcpkgs/libkconfig-parser | 1 + srcpkgs/libkconfig-parser-devel | 1 + 8 files changed, 106 insertions(+) create mode 120000 srcpkgs/kconfig-frontends-qt5 create mode 100644 srcpkgs/kconfig-frontends/patches/autoconf_270p.patch create mode 100644 srcpkgs/kconfig-frontends/patches/gperf_newtype.patch create mode 100644 srcpkgs/kconfig-frontends/patches/python3_support.patch create mode 100644 srcpkgs/kconfig-frontends/template create mode 120000 srcpkgs/libkconfig-parser create mode 120000 srcpkgs/libkconfig-parser-devel diff --git a/common/shlibs b/common/shlibs index aab04340ef57d6..a20bcc8112c07b 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4686,3 +4686,4 @@ libcpptrace.so.1 cpptrace-1.0.4_1 libcgif.so.0 cgif-0.5.3_1 libdsk.so.5 libdsk-1.5.22_1 libblend2d.so libblend2d-0.21.2_1 +libkconfig-parser.so libkconfig-parser-4.11.0_1 diff --git a/srcpkgs/kconfig-frontends-qt5 b/srcpkgs/kconfig-frontends-qt5 new file mode 120000 index 00000000000000..a6d8653efe1460 --- /dev/null +++ b/srcpkgs/kconfig-frontends-qt5 @@ -0,0 +1 @@ +kconfig-frontends \ No newline at end of file diff --git a/srcpkgs/kconfig-frontends/patches/autoconf_270p.patch b/srcpkgs/kconfig-frontends/patches/autoconf_270p.patch new file mode 100644 index 00000000000000..95425c1a64bbf0 --- /dev/null +++ b/srcpkgs/kconfig-frontends/patches/autoconf_270p.patch @@ -0,0 +1,25 @@ +Description: Fixes Debian bug #993143 + The configure.ac file is not compatible with autoreconf 2.70 as AC_PROG_LEX + now requires an argument for lex handling. Requiring noyywrap for standard + lex handling in autoreconf 2.70. +Author: Philippe Thierry +--- a/configure.ac ++++ b/configure.ac +@@ -6,7 +6,7 @@ + + #---------------------------------------- + # Prepare autoconf +-AC_PREREQ([2.67]) ++AC_PREREQ([2.69]) + AC_INIT( + [kconfig-frontends], + [m4_esyscmd_s([./scripts/version.sh])], +@@ -207,7 +207,7 @@ + [test "$need_pkgconfig" = "yes"], + [PKG_PROG_PKG_CONFIG()]) + # Look for `lex'. If it cannot be found, autoconf sets $LEX to ':'. +-AC_PROG_LEX ++AC_PROG_LEX([noyywrap]) + AS_IF( + [test "$LEX" = ":"], + [AC_MSG_ERROR([can not find a lexer generator (such as lex or flex)])]) diff --git a/srcpkgs/kconfig-frontends/patches/gperf_newtype.patch b/srcpkgs/kconfig-frontends/patches/gperf_newtype.patch new file mode 100644 index 00000000000000..aad529a8830138 --- /dev/null +++ b/srcpkgs/kconfig-frontends/patches/gperf_newtype.patch @@ -0,0 +1,17 @@ +Description: Correct type mismatch in gperf generated file + The hconfig.c file, generated from gperf and distributed by + upstream, is not properly patched yet and does not build + correctly. This patch avoid a type mismatch between the + prototype and the function definition. +Author: Philippe Thierry +--- a/libs/parser/hconf.c ++++ b/libs/parser/hconf.c +@@ -172,7 +172,7 @@ + #endif + #endif + const struct kconf_id * +-kconf_id_lookup (register const char *str, register unsigned int len) ++kconf_id_lookup (register const char *str, register GPERF_LEN_TYPE len) + { + enum + { diff --git a/srcpkgs/kconfig-frontends/patches/python3_support.patch b/srcpkgs/kconfig-frontends/patches/python3_support.patch new file mode 100644 index 00000000000000..39ec4fdcedf2c2 --- /dev/null +++ b/srcpkgs/kconfig-frontends/patches/python3_support.patch @@ -0,0 +1,12 @@ +Description: Updated to python3 + Python 2 is being end of life. this file is python3 + compatible. +Author: Philippe Thierry +--- a/utils/kconfig-diff ++++ b/utils/kconfig-diff +@@ -1,4 +1,4 @@ +-#!/usr/bin/python ++#!/usr/bin/python3 + # + # diffconfig - a tool to compare .config files. + # diff --git a/srcpkgs/kconfig-frontends/template b/srcpkgs/kconfig-frontends/template new file mode 100644 index 00000000000000..be20b1fef3107f --- /dev/null +++ b/srcpkgs/kconfig-frontends/template @@ -0,0 +1,48 @@ +# Template file for 'kconfig-frontends' +pkgname=kconfig-frontends +version=4.11.0.1 +revision=1 +build_style=gnu-configure +configure_args="--enable-conf --enable-mconf --enable-nconf --enable-qconf --disable-gconf" +hostmakedepends="flex gperf bison autoconf automake pkg-config libtool qt5-host-tools" +makedepends="ncurses-devel qt5-devel" +depends="bash python3" +short_desc="Linux kernel style configuration framework for other projects" +maintainer="Max Logaev " +license="GPL-2.0-only" +homepage="https://gitlab.com/ymorin/kconfig-frontends" +distfiles="${DEBIAN_SITE}/main/k/${pkgname}/${pkgname}_${version}+dfsg.orig.tar.bz2" +checksum=5462393596a42e6efed78e1b0a56fde75466dd50452394b841f2882a78000ca8 + +pre_configure() { + mkdir -p "./scripts/.autostuff/m4" + autoreconf -fi +} + +libkconfig-parser_package() { + short_desc+=" - parsing library" + + pkg_install() { + vmove "usr/lib/libkconfig-parser-*.so" + } +} + +libkconfig-parser-devel_package() { + short_desc+=" - development files" + depends="libkconfig-parser-${version}_${revision}" + + pkg_install() { + vmove usr/include + vmove usr/lib/libkconfig-parser.so + vmove usr/lib/pkgconfig + } +} + +kconfig-frontends-qt5_package() { + short_desc+=" - Qt5" + depends="${sourcepkg}>=${version}_${revision}" + + pkg_install() { + vmove usr/bin/kconfig-qconf + } +} diff --git a/srcpkgs/libkconfig-parser b/srcpkgs/libkconfig-parser new file mode 120000 index 00000000000000..a6d8653efe1460 --- /dev/null +++ b/srcpkgs/libkconfig-parser @@ -0,0 +1 @@ +kconfig-frontends \ No newline at end of file diff --git a/srcpkgs/libkconfig-parser-devel b/srcpkgs/libkconfig-parser-devel new file mode 120000 index 00000000000000..a6d8653efe1460 --- /dev/null +++ b/srcpkgs/libkconfig-parser-devel @@ -0,0 +1 @@ +kconfig-frontends \ No newline at end of file