From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] fotoxx: Update to 20.01 ; Fix musl build
Date: Sun, 05 Jan 2020 21:10:38 +0100 [thread overview]
Message-ID: <20200105201038.Z1D1qSMK2a-fV4ohtEU-qj47cqwDFL7sC011uaVYn74@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-18045@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 329 bytes --]
There is an updated 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: 3746 bytes --]
From 4ac49bb7720589739543a011883be2482c3b9b2e 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/patches/Makefile.patch | 18 ++++++++++++++++++
srcpkgs/fotoxx/patches/musl.patch | 25 +++++++++++++++++++++++++
srcpkgs/fotoxx/template | 18 ++++++++++--------
3 files changed, 53 insertions(+), 8 deletions(-)
create mode 100644 srcpkgs/fotoxx/patches/Makefile.patch
create mode 100644 srcpkgs/fotoxx/patches/musl.patch
diff --git a/srcpkgs/fotoxx/patches/Makefile.patch b/srcpkgs/fotoxx/patches/Makefile.patch
new file mode 100644
index 00000000000..7b191c73375
--- /dev/null
+++ b/srcpkgs/fotoxx/patches/Makefile.patch
@@ -0,0 +1,18 @@
+diff --git Makefile Makefile
+index 218aa2d..64bfe26 100644
+--- Makefile
++++ Makefile
+@@ -47,5 +47,5 @@ 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 ${EXECINFO} \
+ -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..4e7c71e8863 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,19 @@ 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"
+ export EXECINFO="-lexecinfo";;
+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
}
next prev parent reply other threads:[~2020-01-05 20:10 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-05 2:50 [PR PATCH] " 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 [this message]
2020-01-05 20:10 ` 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200105201038.Z1D1qSMK2a-fV4ohtEU-qj47cqwDFL7sC011uaVYn74@z \
--to=voidlinux-github@inbox.vuxu.org \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).