From 02ceb5af376fbbb99d06a65da84cb6a05c1b7480 Mon Sep 17 00:00:00 2001 From: Yingjie Wang Date: Thu, 15 Jan 2026 18:45:43 -0500 Subject: [PATCH] new bblfs: dev-libs/libdbusmenu-16.04.0 --- dev-libs/libdbusmenu-16.04.0.PKGBUILD | 57 +++++++++++++++++++ .../libdbusmenu-16.04.0-configure-fix.patch | 35 ++++++++++++ .../libdbusmenu-16.04.0-werror.patch | 37 ++++++++++++ 3 files changed, 129 insertions(+) create mode 100644 dev-libs/libdbusmenu-16.04.0.PKGBUILD create mode 100644 dev-libs/libdbusmenu-16.04.0/libdbusmenu-16.04.0-configure-fix.patch create mode 100644 dev-libs/libdbusmenu-16.04.0/libdbusmenu-16.04.0-werror.patch diff --git a/dev-libs/libdbusmenu-16.04.0.PKGBUILD b/dev-libs/libdbusmenu-16.04.0.PKGBUILD new file mode 100644 index 0000000..8861d75 --- /dev/null +++ b/dev-libs/libdbusmenu-16.04.0.PKGBUILD @@ -0,0 +1,57 @@ +pkgname=libdbusmenu +pkgver=16.04.0 +_ver=${pkgver%.*} +slot="0" +pkgdesc="Library to pass menu structure across DBus" +homepage="https://launchpad.net/libdbusmenu" +license=("LGPL-2.1" "LGPL-3") +_patches=("libdbusmenu-16.04.0-configure-fix.patch" + "libdbusmenu-16.04.0-werror.patch" +) +_patch_sums=("e872017556eb7e6b23a9c80e478b9e25be604bd2500be94879bad6634150265bb7b2979fc3cbe05a06dc9f3ca115ab57457853b37c6db622b5ec4bb23abff2bd" + "ba1144695110cd8ecf89deaea28e0aacc40b00a500a1dc86c28e67754599117e0a2217c4d6066c1061fa009af82e463dd303ba78c479053857ef6e793959068e" +) +sources=("${pkgname}-${pkgver}.tar.gz" + "${_patches[@]}" +) +urls=("https://launchpad.net/${pkgname/lib}/${_ver}/${pkgver}/+download/${sources[0]}" + "${_patches[@]}" +) +sha512sums=("ee9654ac4ed94bdebc94a6db83b126784273a417a645b2881b2ba676a5f67d7fc95dd2bb37bfb0890aa47299ed73cb21ed7de8b75f3fed6b69bfd39065062241" + "${_patch_sums[@]}" +) + +src_prepare() { + tar -xf ${distdir}/${sources[0]} --strip-components=1 + for _patch in ${_patches[@]}; do + patch -p1 -i ${filedir}/${_patch} + done + autoconf +} + +src_build() { + CFLAGS+=" -Wno-error" + + local conf_args=( + --prefix=/usr + --docdir=/usr/share/doc/${pkgname}-${pkgver} + --cache-file="${srcdir}"/config.cache + --disable-static + # dumper extra tool is only for GTK+-2.x + --disable-dumper + --disable-introspection + --disable-vala + --disable-massivedebugging + --disable-tests + --enable-gtk + --with-gtk=3 + ) + ./configure "${conf_args[@]}" + make +} + +src_install() { + make -j1 DESTDIR="$pkgdir" install +} + +# vim:ft=sh syn=sh et sw=2: diff --git a/dev-libs/libdbusmenu-16.04.0/libdbusmenu-16.04.0-configure-fix.patch b/dev-libs/libdbusmenu-16.04.0/libdbusmenu-16.04.0-configure-fix.patch new file mode 100644 index 0000000..a578778 --- /dev/null +++ b/dev-libs/libdbusmenu-16.04.0/libdbusmenu-16.04.0-configure-fix.patch @@ -0,0 +1,35 @@ +From 4b79b41a25cc1e2c4355738b4bed6c73b919ffee Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= +Date: Sun, 6 Aug 2017 17:55:45 +0200 +Subject: [PATCH] configure: Fix HAVE_VALGRIND not being defined when tests are + disabled + +If --disable-tests is used, configure fails with the following error: + + configure: error: conditional "HAVE_VALGRIND" was never defined. + Usually this means the macro was only invoked conditionally. + +This is because AM_CONDITIONAL for it is called inside the 'if' for +tests being enabled. Move it just below that block to ensure that it's +defined unconditionally. +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index ace54d1..cbd38a6 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -120,8 +120,8 @@ PKG_CHECK_MODULES(DBUSMENUTESTS, json-glib-1.0 >= $JSON_GLIB_REQUIRED_VERSION + [have_tests=yes] + ) + PKG_CHECK_MODULES(DBUSMENUTESTSVALGRIND, valgrind, have_valgrind=yes, have_valgrind=no) +-AM_CONDITIONAL([HAVE_VALGRIND], [test "x$have_valgrind" = "xyes"]) + ]) ++AM_CONDITIONAL([HAVE_VALGRIND], [test "x$have_valgrind" = "xyes"]) + + AC_SUBST(DBUSMENUTESTS_CFLAGS) + AC_SUBST(DBUSMENUTESTS_LIBS) +-- +2.14.0 + diff --git a/dev-libs/libdbusmenu-16.04.0/libdbusmenu-16.04.0-werror.patch b/dev-libs/libdbusmenu-16.04.0/libdbusmenu-16.04.0-werror.patch new file mode 100644 index 0000000..aaa6178 --- /dev/null +++ b/dev-libs/libdbusmenu-16.04.0/libdbusmenu-16.04.0-werror.patch @@ -0,0 +1,37 @@ +https://bugs.gentoo.org/691260 + +--- a/libdbusmenu-glib/Makefile.am ++++ b/libdbusmenu-glib/Makefile.am +@@ -68,3 +68,3 @@ libdbusmenu_glib_la_CFLAGS = \ + $(COVERAGE_CFLAGS) \ +- -Wall -Werror -Wno-error=deprecated-declarations \ ++ -Wall -Wno-error=deprecated-declarations \ + -DG_LOG_DOMAIN="\"LIBDBUSMENU-GLIB\"" +--- a/libdbusmenu-gtk/Makefile.am ++++ b/libdbusmenu-gtk/Makefile.am +@@ -68,3 +68,3 @@ libdbusmenu_gtk_la_CFLAGS = \ + -I$(top_srcdir) \ +- -Wall -Werror -Wno-error=deprecated-declarations \ ++ -Wall -Wno-error=deprecated-declarations \ + -DG_LOG_DOMAIN="\"LIBDBUSMENU-GTK\"" +--- a/tests/Makefile.am ++++ b/tests/Makefile.am +@@ -105,3 +105,3 @@ TESTS_ENVIRONMENT = env GI_TYPELIB_PATH=$(top_builddir)/libdbusmenu-glib:$(top_b + DBUSMENU_GLIB_TEST_CFLAGS = \ +- -Wall -Werror \ ++ -Wall \ + -DG_DISABLE_DEPRECATED \ +--- a/tools/Makefile.am ++++ b/tools/Makefile.am +@@ -18,3 +18,3 @@ dbusmenu_dumper_CFLAGS = \ + $(DBUSMENUDUMPER_CFLAGS) \ +- -Wall -Werror ++ -Wall + +--- a/tools/testapp/Makefile.am ++++ b/tools/testapp/Makefile.am +@@ -14,3 +14,3 @@ dbusmenu_testapp_CFLAGS = \ + $(DBUSMENUGLIB_CFLAGS) \ +- -Wall -Werror ++ -Wall +