1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00

x11/rofi-file-browser-extended: Fix build

The build fails with the following error:

FAILED: CMakeFiles/filebrowser.dir/src/filebrowser.c.o
/usr/bin/cc -D_XOPEN_SOURCE=700 -Dfilebrowser_EXPORTS -I/wrkdirs/usr/ports/x11/rofi-file-browser-extended/work/rofi-file-browser-extended-1.3.1/include -I/usr/local/include/cairo -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/pixman-1 -I/usr/local/include/libpng16 -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -fPIC -MD -MT CMakeFiles/filebrowser.dir/src/filebrowser.c.o -MF CMakeFiles/filebrowser.dir/src/filebrowser.c.o.d -o CMakeFiles/filebrowser.dir/src/filebrowser.c.o -c /wrkdirs/usr/ports/x11/rofi-file-browser-extended/work/rofi-file-browser-extended-1.3.1/src/filebrowser.c
/wrkdirs/usr/ports/x11/rofi-file-browser-extended/work/rofi-file-browser-extended-1.3.1/src/filebrowser.c:380:27: error: incompatible function pointer types initializing '_mode_get_icon' (aka 'struct _cairo_surface *(*)(const struct rofi_mode *, unsigned int, unsigned int)') with an expression of type 'cairo_surface_t *(const Mode *, unsigned int, int)' (aka 'struct _cairo_surface *(const struct rofi_mode *, unsigned int, int)') [-Wincompatible-function-pointer-types]
    ._get_icon          = file_browser_get_icon,
                          ^~~~~~~~~~~~~~~~~~~~~
1 error generated.

So apply the patch provided at

https://github.com/marvinkreis/rofi-file-browser-extended/pull/49

and used by the Gentoo port too:

https://bugs.gentoo.org/880985

Reported by:	pkg-fallout
This commit is contained in:
Nicola Vitale 2024-03-13 17:15:29 +01:00
parent 5482de3747
commit d00fb2a9b6
No known key found for this signature in database
GPG Key ID: A51E190C4C0808D0
2 changed files with 9 additions and 1 deletions

View File

@ -3,6 +3,10 @@ DISTVERSION= 1.3.1
PORTREVISION= 1
CATEGORIES= x11
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${PORTNAME}/commit/
PATCHFILES= 6f62a2d0784a6937d35ac8f6df2e22c23bbfc8f4.patch:-p1 # Fix function pointer initialization
PATCHFILES+= 4d402e599e209a072492cc8c0e35a5e039e7bfd6.patch:-p1 # Check that 'height' is within INT_MAX
MAINTAINER= nivit@FreeBSD.org
COMMENT= Use rofi to quickly open files
WWW= https://github.com/marvinkreis/rofi-file-browser-extended

View File

@ -1,3 +1,7 @@
TIMESTAMP = 1669926301
TIMESTAMP = 1710338595
SHA256 (marvinkreis-rofi-file-browser-extended-1.3.1_GH0.tar.gz) = 9e010e671533dd747e6e7ae4ed290b6e2829e758ca073381fa8a8fe53e004660
SIZE (marvinkreis-rofi-file-browser-extended-1.3.1_GH0.tar.gz) = 27169
SHA256 (6f62a2d0784a6937d35ac8f6df2e22c23bbfc8f4.patch) = b7bc88eb8c810cbcc8c5a818870b7e9f435ca608f29c16306204cbb4ee3b75b5
SIZE (6f62a2d0784a6937d35ac8f6df2e22c23bbfc8f4.patch) = 1426
SHA256 (4d402e599e209a072492cc8c0e35a5e039e7bfd6.patch) = 6ad8680393b22ee363a7e1e0dacc72f02917133ea24a7ddcb34e9ee3700cb662
SIZE (4d402e599e209a072492cc8c0e35a5e039e7bfd6.patch) = 1226