Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] fotoxx: Update to 20.01 ; Fix musl build
@ 2020-01-05  2:50 voidlinux-github
  2020-01-05  8:09 ` [PR PATCH] [Updated] " voidlinux-github
                   ` (25 more replies)
  0 siblings, 26 replies; 27+ messages in thread
From: voidlinux-github @ 2020-01-05  2:50 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 324 bytes --]

There is a new pull request by ndowens against master on the void-packages repository

https://github.com/ndowens/void-packages fotoxx
https://github.com/void-linux/void-packages/pull/18045

fotoxx: Update to 20.01 ; Fix musl build


A patch file from https://github.com/void-linux/void-packages/pull/18045.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-fotoxx-18045.patch --]
[-- Type: text/x-diff, Size: 3839 bytes --]

From 029ef749887da636328245be6eb19ae1d02cece8 Mon Sep 17 00:00:00 2001
From: Nathan Owens <ndowens04@gmail.com>
Date: Sat, 4 Jan 2020 20:48:00 -0600
Subject: [PATCH] fotoxx: Update to 20.01 ; Fix musl build

---
 srcpkgs/fotoxx/files/libexecinfo.patch | 18 ++++++++++++++++++
 srcpkgs/fotoxx/patches/musl.patch      | 25 +++++++++++++++++++++++++
 srcpkgs/fotoxx/template                | 24 ++++++++++++++++--------
 3 files changed, 59 insertions(+), 8 deletions(-)
 create mode 100644 srcpkgs/fotoxx/files/libexecinfo.patch
 create mode 100644 srcpkgs/fotoxx/patches/musl.patch

diff --git a/srcpkgs/fotoxx/files/libexecinfo.patch b/srcpkgs/fotoxx/files/libexecinfo.patch
new file mode 100644
index 00000000000..a98de4d7954
--- /dev/null
+++ b/srcpkgs/fotoxx/files/libexecinfo.patch
@@ -0,0 +1,18 @@
+diff --git Makefile Makefile
+index 218aa2d..64bfe26 100644
+--- Makefile
++++ Makefile
+@@ -47,7 +47,7 @@ CFLAGS = $(CXXFLAGS) $(CPPFLAGS) -c                \
+    -I/usr/include/libchamplain-0.12/
+ 
+ LIBS = `$(PKG_CONFIG) --libs gtk+-3.0`                                              \
+-         -lrt -lpthread -llcms2 -ltiff -lpng -ljpeg                                 \
++         -lrt -lpthread -llcms2 -ltiff -lpng -ljpeg -lexecinfo                      \
+          -lclutter-1.0 -lclutter-gtk-1.0 -lchamplain-0.12 -lchamplain-gtk-0.12
+ 
+ ALLFILES = fotoxx.o f.widgets.o f.file.o f.gallery.o f.albums.o f.area.o f.meta.o   \
+@@ -146,4 +146,3 @@ uninstall:
+ clean:
+ 	rm -f  fotoxx
+ 	rm -f  *.o
+-
diff --git a/srcpkgs/fotoxx/patches/musl.patch b/srcpkgs/fotoxx/patches/musl.patch
new file mode 100644
index 00000000000..603b9f2017f
--- /dev/null
+++ b/srcpkgs/fotoxx/patches/musl.patch
@@ -0,0 +1,25 @@
+diff --git f.file.cc f.file.cc
+index 7c4f083..f2c9c07 100644
+--- f.file.cc
++++ f.file.cc
+@@ -3493,16 +3493,16 @@ int find_imagefiles(cchar *folder, int flags, char **&flist, int &NF, int Finit)
+
+    globflags = GLOB_NOSORT;
+    Fimages = Fthumbs = Fdirs = Frecurse = Fnolinks = 0;
+-
++
+    if (flags & 1) Fimages = 1;
+    if (flags & 2) Fthumbs = 1;
+    if (flags & 4) globflags += GLOB_PERIOD;
+    if (flags & 8) Fdirs = 1;
+    if (flags & 16) Frecurse = 1;
+    if (flags & 32) Fnolinks = 1;
+-
++#ifdef GLOB_ONLYDIR
+    if (Fdirs && ! Fimages && ! Fthumbs)
+       globflags += GLOB_ONLYDIR;
+-
++#endif
+    globdata.gl_pathc = 0;                                                        //  glob() setup
+    globdata.gl_offs = 0;
+    globdata.gl_pathc = 0;
diff --git a/srcpkgs/fotoxx/template b/srcpkgs/fotoxx/template
index 9d9602e6ccf..63aeaf5fe14 100644
--- a/srcpkgs/fotoxx/template
+++ b/srcpkgs/fotoxx/template
@@ -1,6 +1,6 @@
 # Template file for 'fotoxx'
 pkgname=fotoxx
-version=19.20
+version=20.01
 revision=1
 wrksrc=fotoxx
 build_style=gnu-makefile
@@ -13,17 +13,25 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="https://www.kornelix.net/fotoxx/fotoxx.html"
 distfiles="https://www.kornelix.net/downloads/downloads/fotoxx-${version}.tar.gz"
-checksum=bfa6f20bc5121fbf521354ddf19489e0cfba1f8aa72db1e63fdb26fc5d935752
-
-case "$XBPS_TARGET_MACHINE" in
-	*-musl) broken="execinfo.h is a GNU specific header, and doesn’t exist under musl.";;
-esac
+checksum=b7463c9fd9649111d428d68ca93f148650a3702958d83797e693763ce6a17963
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" libchamplain-devel"
 fi
 
+case "$XBPS_TARGET_LIBC" in
+	musl)
+		makedepends+=" libexecinfo-devel";;
+esac
+
+pre_build() {
+case "$XBPS_TARGET_LIBC" in
+	musl)
+		patch -Np0 < "$FILESDIR"/libexecinfo.patch;;
+esac
+}
+
 post_install() {
-	rm -v ${DESTDIR}/usr/share/doc/fotoxx/{changelog.gz,copyright,fotoxx.man}
-	rm -rv ${DESTDIR}/usr/share/appdata
+	rm -rv ${DESTDIR}/usr/share/doc/fotoxx/{changelog.gz,copyright,fotoxx.man} \
+		  ${DESTDIR}/usr/share/appdata
 }

^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2020-01-17 18:04 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-05  2:50 [PR PATCH] fotoxx: Update to 20.01 ; Fix musl build voidlinux-github
2020-01-05  8:09 ` [PR PATCH] [Updated] " voidlinux-github
2020-01-05 18:37 ` voidlinux-github
2020-01-05 18:52 ` voidlinux-github
2020-01-05 18:57 ` voidlinux-github
2020-01-05 20:07 ` voidlinux-github
2020-01-05 20:10 ` voidlinux-github
2020-01-05 20:10 ` [PR PATCH] [Updated] " voidlinux-github
2020-01-06 18:43 ` voidlinux-github
2020-01-08 16:53 ` voidlinux-github
2020-01-08 16:56 ` voidlinux-github
2020-01-08 17:11 ` voidlinux-github
2020-01-08 17:21 ` voidlinux-github
2020-01-08 17:27 ` voidlinux-github
2020-01-08 18:04 ` voidlinux-github
2020-01-08 19:41 ` voidlinux-github
2020-01-08 20:00 ` voidlinux-github
2020-01-09  2:28 ` [PR PATCH] [Updated] " voidlinux-github
2020-01-09  2:31 ` voidlinux-github
2020-01-09  2:52 ` [PR PATCH] [Updated] " voidlinux-github
2020-01-11 12:13 ` fotoxx: Update to 20.03 " voidlinux-github
2020-01-11 18:26 ` voidlinux-github
2020-01-11 18:45 ` voidlinux-github
2020-01-11 19:02 ` voidlinux-github
2020-01-11 19:49 ` [PR PATCH] [Updated] " voidlinux-github
2020-01-11 20:12 ` [PR PATCH] [Updated] fotoxx: Update to 20.04 " voidlinux-github
2020-01-17 18:04 ` [PR PATCH] [Merged]: " voidlinux-github

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).