From 9713faf5b4dbc8bc5c9eed8477d0c3155907bd42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Fri, 29 Mar 2024 10:56:00 +0700 Subject: [PATCH] xfce4-docklike-plugin: update to 0.4.2. --- ...ame-called-but-libgen.h-not-included.patch | 56 ------------------- srcpkgs/xfce4-docklike-plugin/template | 4 +- 2 files changed, 2 insertions(+), 58 deletions(-) delete mode 100644 srcpkgs/xfce4-docklike-plugin/patches/0001-basename-called-but-libgen.h-not-included.patch diff --git a/srcpkgs/xfce4-docklike-plugin/patches/0001-basename-called-but-libgen.h-not-included.patch b/srcpkgs/xfce4-docklike-plugin/patches/0001-basename-called-but-libgen.h-not-included.patch deleted file mode 100644 index 81624f468ad..00000000000 --- a/srcpkgs/xfce4-docklike-plugin/patches/0001-basename-called-but-libgen.h-not-included.patch +++ /dev/null @@ -1,56 +0,0 @@ -From 1af295dba41c2a5a6a91b83ce4eebc0cf6225598 Mon Sep 17 00:00:00 2001 -From: Hakan Erduman -Date: Fri, 7 Jan 2022 18:22:43 +0100 -Subject: [PATCH] basename() called but not included - - Seen while porting to alpine linux. - This compiles on GNU libc since it is not posixly strict - enough in regard to header files but fails on e.g. musl - or other c libraries. - - The patch adresses this by using g_path_get_basename from - glib instead. This may also help compilation on the *BSDs. - and void linux, musl variety. ---- - src/Helpers.cpp | 2 +- - src/Wnck.cpp | 4 ++-- - 2 files changed, 3 insertions(+), 3 deletions(-) - -diff --git a/src/Helpers.cpp b/src/Helpers.cpp -index ece3e95..086dff3 100644 ---- a/src/Helpers.cpp -+++ b/src/Helpers.cpp -@@ -83,7 +83,7 @@ namespace Help - { - char buffer[1024]; - strcpy(buffer, str.c_str()); -- return basename(buffer); -+ return g_path_get_basename(buffer); - } - - std::string trim(const std::string str) -diff --git a/src/Wnck.cpp b/src/Wnck.cpp -index 2ab598f..1c08335 100644 ---- a/src/Wnck.cpp -+++ b/src/Wnck.cpp -@@ -35,7 +35,7 @@ namespace Wnck - int nbr = read(fd, buffer, 512); - ::close(fd); - -- char* exe = basename(buffer); -+ char* exe = g_path_get_basename(buffer); - if (strcmp(exe, "python") != 0) // ADDIT graphical interpreters here - return exe; - -@@ -44,7 +44,7 @@ namespace Wnck - ; - - if (it < buffer + nbr) -- return basename(it); -+ return g_path_get_basename(it); - } - - // fallback : return window's name --- -2.34.1 - diff --git a/srcpkgs/xfce4-docklike-plugin/template b/srcpkgs/xfce4-docklike-plugin/template index 65667b5f989..ec49a37ce15 100644 --- a/srcpkgs/xfce4-docklike-plugin/template +++ b/srcpkgs/xfce4-docklike-plugin/template @@ -1,6 +1,6 @@ # Template file for 'xfce4-docklike-plugin' pkgname=xfce4-docklike-plugin -version=0.4.0 +version=0.4.2 revision=1 build_style=gnu-configure configure_args="--with-locales-dir=/usr/share/locale" @@ -11,4 +11,4 @@ maintainer="Orphaned " license="GPL-3.0-or-later" homepage="https://docs.xfce.org/panel-plugins/xfce4-docklike-plugin/start" distfiles="https://archive.xfce.org/src/panel-plugins/${pkgname}/${version%.*}/${pkgname}-${version}.tar.bz2" -checksum=b4136a70897895f0599e8e7237223dde17221f099a2fc816917d5894bbd4f372 +checksum=b6a40b976a78f2abb1bec057c48d45bfb317e00b12e05a7dfcbea4d183f8db71