Compiling problem after apply a patch to xfce4-panel

Hi,
I wanna apply the following patch to xfce4-panel

so I applied it to the sourcecode

Then i run ./configure and it’s ok

But, when I run makepkg, I have the folowing error

[salome@salome xfce4-panel-4.16.0]$ makepkg
ù==> Creazione del pacchetto: xfce4-panel 4.16.0-1 (gio 28 gen 2021, 18:46:49)
==> Controllo delle dipendenze durante l'avvio in corso...
==> Controllo delle dipendenze durante la compilazione in corso...
==> Download dei sorgenti in corso...
  -> Download di xfce4-panel-4.16.0.tar.bz2 in corso...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 1349k  100 1349k    0     0  1294k      0  0:00:01  0:00:01 --:--:-- 2551k
==> Validazione di source file con sha256sums...
    xfce4-panel-4.16.0.tar.bz2 ... Verificato
==> Estrazione dei sorgenti in corso...
  -> Estrazione di xfce4-panel-4.16.0.tar.bz2 usando bsdtar in corso...
==> Avvio di prepare() in corso...
==> Avvio di build() in corso...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '1000' is supported by ustar format... yes
checking whether GID '100' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports nested variables... (cached) yes
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking how to print strings... printf
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether NLS is requested... yes
checking for intltool >= 0.35.0... 0.51.0 found
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... /usr/bin/intltool-merge
checking for intltool-extract... /usr/bin/intltool-extract
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.32.0
checking for XML::Parser... ok
checking for perl5... no
checking for perl... perl
checking for a sed that does not truncate output... (cached) /usr/bin/sed
configure: WARNING: Libtool does not cope well with whitespace in `pwd`
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for ANSI C header files... (cached) yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for string.h... (cached) yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking for sys/types.h... (cached) yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking for memory.h... (cached) yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking sys/prctl.h usability... yes
checking sys/prctl.h presence... yes
checking for sys/prctl.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for bind_textdomain_codeset... yes
checking for locale.h... (cached) yes
checking for LC_MESSAGES... yes
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for libintl.h... (cached) yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... (cached) yes
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... (cached) /usr/bin/msgfmt
checking for xgettext... (cached) /usr/bin/xgettext
checking for catalogs to be installed...  eo en_GB ca zh_CN nb tr en_AU fr eu gl be zh_TW th sr fi pl ast it he et pt_BR ka de sl pa zh_HK nl hy_AM ja hu nn si ar ko es kk ur sk am te hr sq pt cs is uk hye bn ur_PK id vi da ug lv el sv ru ie lt ms ro bg oc
checking for bind_textdomain_codeset... (cached) yes
checking for locales directory... ${prefix}/share/locale
checking for additional xgettext flags... --keyword=Q_ --from-code=UTF-8
checking for X... libraries , headers 
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for main in -lX11... yes
checking for gdbus-codegen... /usr/bin/gdbus-codegen
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libxfce4util-1.0 >= 4.15.6... 4.16.0
checking LIBXFCE4UTIL_CFLAGS... -I/usr/include/xfce4 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
checking LIBXFCE4UTIL_LIBS... -lxfce4util -lglib-2.0 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for garcon-1 >= 0.5.0... 4.16.1
checking GARCON_CFLAGS... -I/usr/include/garcon-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -pthread 
checking GARCON_LIBS... -lgarcon-1 -lgio-2.0 -lgthread-2.0 -pthread -lglib-2.0 -lgobject-2.0 -lglib-2.0 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for garcon-gtk3-1 >= 0.5.0... 4.16.1
checking GARCON_GTK3_CFLAGS... -I/usr/include/garcon-gtk3-1 -I/usr/include/garcon-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cloudproviders -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/at-spi-2.0 -I/usr/include/xfce4/libxfce4ui-2 -pthread -I/usr/include/xfce4 
checking GARCON_GTK3_LIBS... -lgarcon-gtk3-1 -lgarcon-1 -lgthread-2.0 -pthread -lglib-2.0 -lxfce4ui-2 -lgtk-3 -lgdk-3 -lz -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lxfce4util -lglib-2.0 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libxfce4ui-2 >= 4.15.8... 4.15.8
checking LIBXFCE4UI_CFLAGS... -I/usr/include/xfce4/libxfce4ui-2 -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cloudproviders -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/at-spi-2.0 -pthread -I/usr/include/xfce4 
checking LIBXFCE4UI_LIBS... -lxfce4ui-2 -lgtk-3 -lgdk-3 -lz -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lxfce4util -lglib-2.0 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libxfconf-0 >= 4.13.2... 4.16.0
checking XFCONF_CFLAGS... -I/usr/include/xfce4/xfconf-0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I/usr/include/libmount -I/usr/include/blkid 
checking XFCONF_LIBS... -lxfconf-0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gtk+-3.0 >= 3.22.0... 3.24.24
checking GTK_CFLAGS... -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cloudproviders -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/at-spi-2.0 -pthread 
checking GTK_LIBS... -lgtk-3 -lgdk-3 -lz -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for exo-2 >= 0.11.2... 4.16.0
checking EXO_CFLAGS... -I/usr/include/exo-2 -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cloudproviders -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/at-spi-2.0 -pthread -I/usr/include/xfce4 
checking EXO_LIBS... -lexo-2 -lgtk-3 -lgdk-3 -lz -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lxfce4util -lglib-2.0 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for glib-2.0 >= 2.50.0... 2.66.4
checking GLIB_CFLAGS... -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
checking GLIB_LIBS... -lglib-2.0 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gio-2.0 >= 2.50.0... 2.66.4
checking GIO_CFLAGS... -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I/usr/include/libmount -I/usr/include/blkid 
checking GIO_LIBS... -lgio-2.0 -lgobject-2.0 -lglib-2.0 
checking for GIO_UNIX... yes
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gmodule-2.0 >= 2.50.0... 2.66.4
checking GMODULE_CFLAGS... -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
checking GMODULE_LIBS... -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -lglib-2.0 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for cairo >= 1.0.0... 1.17.4
checking CAIRO_CFLAGS... -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 
checking CAIRO_LIBS... -lcairo 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libwnck-3.0 >= 3.0... 3.36.0
checking LIBWNCK_CFLAGS... -I/usr/include/libwnck-3.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cloudproviders -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/at-spi-2.0 -pthread -I/usr/include/startup-notification-1.0 
checking LIBWNCK_LIBS... -lwnck-3 -lgtk-3 -lgdk-3 -lz -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for dbusmenu-gtk3-0.4 >= 16.04.0... 16.04.0
checking DBUSMENU_CFLAGS... -I/usr/include/libdbusmenu-gtk3-0.4 -I/usr/include/libdbusmenu-glib-0.4 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/pixman-1 -I/usr/include/gio-unix-2.0 -I/usr/include/cloudproviders -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/at-spi-2.0 -pthread 
checking DBUSMENU_LIBS... -ldbusmenu-gtk3 -ldbusmenu-glib -lgtk-3 -lgdk-3 -lz -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gio-unix-2.0 >= 2.50.0... 2.66.4
checking GIO_UNIX_CFLAGS... -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I/usr/include/libmount -I/usr/include/blkid 
checking GIO_UNIX_LIBS... -lgio-2.0 -lgobject-2.0 -lglib-2.0 
checking for gobject-introspection... yes
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for vapigen... yes
checking for gtk-doc... yes
checking for gtkdoc-check... gtkdoc-check.test
checking for gtkdoc-check... /usr/bin/gtkdoc-check
checking for gtkdoc-rebase... /usr/bin/gtkdoc-rebase
checking for gtkdoc-mkpdf... /usr/bin/gtkdoc-mkpdf
checking whether to build gtk-doc documentation... no
checking for GTKDOC_DEPS... yes
checking whether to build with debugging support... no
checking whether /usr/bin/ld -m elf_x86_64 accepts --as-needed... yes
checking whether /usr/bin/ld -m elf_x86_64 accepts -O1... yes
checking whether gcc supports the GNUC visibility attribute... yes
checking if gcc supports -Wno-sign-compare... yes
checking PLATFORM_CPPFLAGS... 
checking PLATFORM_CFLAGS... 
checking PLATFORM_LDFLAGS... 
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating common/Makefile
config.status: creating docs/Makefile
config.status: creating docs/references/Makefile
config.status: creating docs/references/version.xml
config.status: creating icons/Makefile
config.status: creating icons/16x16/Makefile
config.status: creating icons/24x24/Makefile
config.status: creating icons/32x32/Makefile
config.status: creating icons/48x48/Makefile
config.status: creating icons/128x128/Makefile
config.status: creating icons/scalable/Makefile
config.status: creating libxfce4panel/Makefile
config.status: creating libxfce4panel/libxfce4panel-2.0.pc
config.status: creating libxfce4panel/libxfce4panel-config.h
config.status: creating migrate/Makefile
config.status: creating migrate/default.xml
config.status: creating panel/Makefile
config.status: creating wrapper/Makefile
config.status: creating plugins/Makefile
config.status: creating plugins/actions/Makefile
config.status: creating plugins/actions/actions.desktop.in
config.status: creating plugins/applicationsmenu/Makefile
config.status: creating plugins/applicationsmenu/applicationsmenu.desktop.in
config.status: creating plugins/clock/Makefile
config.status: creating plugins/clock/clock.desktop.in
config.status: creating plugins/directorymenu/Makefile
config.status: creating plugins/directorymenu/directorymenu.desktop.in
config.status: creating plugins/launcher/Makefile
config.status: creating plugins/launcher/launcher.desktop.in
config.status: creating plugins/pager/Makefile
config.status: creating plugins/pager/pager.desktop.in
config.status: creating plugins/separator/Makefile
config.status: creating plugins/separator/separator.desktop.in
config.status: creating plugins/showdesktop/Makefile
config.status: creating plugins/showdesktop/showdesktop.desktop.in
config.status: creating plugins/systray/Makefile
config.status: creating plugins/systray/systray.desktop.in
config.status: creating plugins/tasklist/Makefile
config.status: creating plugins/tasklist/tasklist.desktop.in
config.status: creating plugins/windowmenu/Makefile
config.status: creating plugins/windowmenu/windowmenu.desktop.in
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default-1 commands
config.status: executing po/stamp-it commands

Build Configuration:

* Debug Support:          no
* GNU Visibility:         yes

make  all-recursive
make[1]: ingresso nella directory «/run/media/salome/dati/Scaricati/patch xfce/xfce4-panel-4.16.0/src/xfce4-panel-4.16.0»
Making all in libxfce4panel
make[2]: ingresso nella directory «/run/media/salome/dati/Scaricati/patch xfce/xfce4-panel-4.16.0/src/xfce4-panel-4.16.0/libxfce4panel»
make  all-am
make[3]: ingresso nella directory «/run/media/salome/dati/Scaricati/patch xfce/xfce4-panel-4.16.0/src/xfce4-panel-4.16.0/libxfce4panel»
  CC       libxfce4panel_2_0_la-libxfce4panel-aliasdef.lo
  CC       libxfce4panel_2_0_la-libxfce4panel-enum-types.lo
  CC       libxfce4panel_2_0_la-libxfce4panel-marshal.lo
  CC       libxfce4panel_2_0_la-xfce-arrow-button.lo
  CC       libxfce4panel_2_0_la-libxfce4panel-config.lo
  CC       libxfce4panel_2_0_la-xfce-panel-convenience.lo
  CC       libxfce4panel_2_0_la-xfce-panel-plugin.lo
  CC       libxfce4panel_2_0_la-xfce-panel-plugin-provider.lo
  CC       libxfce4panel_2_0_la-xfce-panel-image.lo
  CCLD     libxfce4panel-2.0.la
  GISCAN   Libxfce4panel-2.0.gir
In file included from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/limits.h:26,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include-fixed/limits.h:195,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include-fixed/syslimits.h:7,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include-fixed/limits.h:34,
                 from /usr/lib/glib-2.0/include/glibconfig.h:11,
                 from /usr/include/glib-2.0/glib/gtypes.h:32,
                 from /usr/include/glib-2.0/glib/galloca.h:32,
                 from /usr/include/glib-2.0/glib.h:30,
                 from /usr/include/glib-2.0/gobject/gbinding.h:28,
                 from /usr/include/glib-2.0/glib-object.h:22,
                 from /run/media/salome/dati/Scaricati/patch xfce/xfce4-panel-4.16.0/src/xfce4-panel-4.16.0/libxfce4panel/libxfce4panel-enum-types.h:6,
                 from /run/media/salome/dati/Scaricati/patch xfce/xfce4-panel-4.16.0/src/xfce4-panel-4.16.0/libxfce4panel/g-ir-cpp-62qt5yfq.c:4:
/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
  397 | #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
      |    ^~~~~~~
gcc: error: xfce/xfce4-panel-4.16.0/src/xfce4-panel-4.16.0/libxfce4panel/tmp-introspectqbqa7m9w/.libs/Libxfce4panel-2.0: No such file or directory
gcc: error: /run/media/salome/dati/Scaricati/patch: No such file or directory
gcc: error: xfce/xfce4-panel-4.16.0/src/xfce4-panel-4.16.0/libxfce4panel/tmp-introspectqbqa7m9w/Libxfce4panel-2.0.o: No such file or directory
linking of temporary binary failed: Command '['/bin/sh', '../libtool', '--mode=link', '--tag=CC', '--silent', 'gcc', '-o', '/run/media/salome/dati/Scaricati/patch xfce/xfce4-panel-4.16.0/src/xfce4-panel-4.16.0/libxfce4panel/tmp-introspectqbqa7m9w/Libxfce4panel-2.0', '-export-dynamic', '-D_FORTIFY_SOURCE=2', '-DNDEBUG', '-DG_DISABLE_CAST_CHECKS', '-DG_DISABLE_ASSERT', '-DHAVE_GNUC_VISIBILITY', '-march=x86-64', '-mtune=generic', '-O2', '-pipe', '-fno-plt', '/run/media/salome/dati/Scaricati/patch xfce/xfce4-panel-4.16.0/src/xfce4-panel-4.16.0/libxfce4panel/tmp-introspectqbqa7m9w/Libxfce4panel-2.0.o', '-L.', 'libxfce4panel-2.0.la', '-lgio-2.0', '-lgobject-2.0', '-Wl,--export-dynamic', '-lgmodule-2.0', '-pthread', '-lglib-2.0', '-lglib-2.0', '-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now', '-Wl,--as-needed', '-Wl,-O1']' returned non-zero exit status 1.
make[3]: *** [/usr/share/gobject-introspection-1.0/Makefile.introspection:156: Libxfce4panel-2.0.gir] Errore 1
make[3]: uscita dalla directory «/run/media/salome/dati/Scaricati/patch xfce/xfce4-panel-4.16.0/src/xfce4-panel-4.16.0/libxfce4panel»
make[2]: *** [Makefile:794: all] Errore 2
make[2]: uscita dalla directory «/run/media/salome/dati/Scaricati/patch xfce/xfce4-panel-4.16.0/src/xfce4-panel-4.16.0/libxfce4panel»
make[1]: *** [Makefile:615: all-recursive] Errore 1
make[1]: uscita dalla directory «/run/media/salome/dati/Scaricati/patch xfce/xfce4-panel-4.16.0/src/xfce4-panel-4.16.0»
make: *** [Makefile:526: all] Errore 2
==> ERRORE: Si è verificato un errore in build().
    L'operazione sta per essere interrotta...
[salome@salome xfce4-panel-4.16.0]$

How did you do that? The best way would be to apply the patch to the Arch PKGBUILD. I just did and it built successfully.

Here’s the easiest way:

  • Install needed tools:

    sudo pacman -S --needed base-devel yay
    
  • Download the PKGBUILD from ABS:

    yay -G xfce4-panel
    
  • Change directory into the new folder where the PKGBUILD was downloaded:

    cd xfce4-panel
    
  • Open the PKGBUILD in your favorite text editor and bump the pkgrel so the package will be saved as a separate version:

    pkgrel=1.1
    
  • Add the patch from the gist to the source() array:

    source=(https://archive.xfce.org/src/xfce/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2
            https://gist.githubusercontent.com/ivan/3052b607d30cbfc7a285b755739c5836/raw/9504f93bec511bf47c40d5481044b8ee28799dc8/$pkgname-window-buttons-icon-size.patch)
    
  • Instruct makepkg to apply the patch in the prepare() function:

    prepare() {
      cd "$srcdir/$pkgname-$pkgver"
      patch -p1 -i "$srcdir/$pkgname-window-buttons-icon-size.patch"
    }
    
  • Update the checksums, build and install the package:

    updpkgsums && makepkg -srcif
    
    

End result:

PKGBUILD
# Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
# Contributor: tobias <tobias funnychar archlinux.org>

pkgname=xfce4-panel
pkgver=4.16.1
pkgrel=1.1
pkgdesc="Panel for the Xfce desktop environment"
arch=('x86_64')
url="https://www.xfce.org/"
license=('GPL2')
groups=('xfce4')
depends=('exo' 'garcon' 'libxfce4ui' 'xfconf' 'libwnck3' 'libdbusmenu-gtk3'
         'hicolor-icon-theme' 'desktop-file-utils')
makedepends=('intltool' 'gobject-introspection' 'vala')
source=(https://archive.xfce.org/src/xfce/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2
        https://gist.githubusercontent.com/ivan/3052b607d30cbfc7a285b755739c5836/raw/9504f93bec511bf47c40d5481044b8ee28799dc8/$pkgname-window-buttons-icon-size.patch)
sha256sums=('fa099bc6be6592dbb828747a473c2e1b0e7f85afd945a98002b475bb6f975991'
            '1cf7129b150abf3adbb011dbabf21166db73fa2f421b0f2c98c818c011666104')

prepare() {
  cd "$srcdir/$pkgname-$pkgver"
  patch -p1 -i "$srcdir/$pkgname-window-buttons-icon-size.patch"
}

build() {
  cd "$srcdir/$pkgname-$pkgver"

  ./configure \
    --prefix=/usr \
    --sysconfdir=/etc \
    --libexecdir=/usr/lib \
    --localstatedir=/var \
    --disable-static \
    --enable-gio-unix \
    --disable-debug
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir" install
}

# vim:set ts=2 sw=2 et:
3 Likes

Might also want to put ‘xfce4-panel’ in the ‘IgnorePkg’ array in /etc/pacman.conf, so it doesn’t automatically upgrade.

That’s a good idea as well. What I do is a little more advanced since I have more than onehundred custom PKGBUILDs:

IgnoreGroup = modified

Then in my PKGBUILD I add:

groups=('modified')
1 Like

thank you so much, the patch was applied correctly following your steps.
Unfortunately, the patch itself doesn’t work as expected, so I’ll have to wait until XFCE devs will apply a patch/hack to libwnck3 (spoiler: maybe never)