summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2018-11-26 06:52:22 +0000
committerdholland <dholland@pkgsrc.org>2018-11-26 06:52:22 +0000
commitf7e69d1718c4cae5690a2a316e754b46806d140a (patch)
tree3c129d2e44d4d6a236a517adc3c6def6ebeb806b /sysutils
parentf8372619ab0281d9c8444d5d672b9b5c23488ab0 (diff)
downloadpkgsrc-f7e69d1718c4cae5690a2a316e754b46806d140a.tar.gz
Add a distfile patch to handle pervasive LP64 problems.
Also include assorted cleanup: don't use sprintf, don't use getwd, fix some 32-bit file size truncations I noticed, use standard functions and headers, etc. patch-ac has been rolled into the distfile patch, but (for now anyway) not the others. Use tradcpp to produce the app-defaults file (and an install script) as otherwise these were getting mangled. PR 52739. This makes it no longer segfault calling XtVaSetValues() on all LP64 platforms. But, unfortunately, for me it's still crashing, and I'm out of available time to chase the problem further. The symptom is that it crashes with a bad font pointer in the Initialize code of its TextField widget, which seems to be because something overwrites some X resource strings with garbage so the font doesn't get set. I think. This seems to be happening from inside libXt. Disabling libXaw3d (which there isn't a straightforward pkgsrc hook for) makes it run, or at least start, so I think it's a net improvement.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/xfm/Makefile9
-rw-r--r--sysutils/xfm/distinfo7
-rw-r--r--sysutils/xfm/patches/patch-ac16
3 files changed, 13 insertions, 19 deletions
diff --git a/sysutils/xfm/Makefile b/sysutils/xfm/Makefile
index 04eeb620b59..b14c89726ef 100644
--- a/sysutils/xfm/Makefile
+++ b/sysutils/xfm/Makefile
@@ -1,10 +1,14 @@
-# $NetBSD: Makefile,v 1.19 2015/10/14 20:17:28 wiz Exp $
+# $NetBSD: Makefile,v 1.20 2018/11/26 06:52:22 dholland Exp $
DISTNAME= xfm-1.4.3
PKGREVISION= 4
CATEGORIES= sysutils x11
MASTER_SITES= http://www.musikwissenschaft.uni-mainz.de/~ag/xfm/
+PATCHFILES= xfm-jumbo-patch-20181125.gz
+PATCH_SITES= http://www.NetBSD.org/~dholland/patchkits/xfm/
+PATCH_DIST_STRIP= -p1
+
MAINTAINER= rxg@NetBSD.org
HOMEPAGE= http://www.musikwissenschaft.uni-mainz.de/~ag/xfm/
COMMENT= The X File Manager
@@ -13,6 +17,7 @@ LICENSE= gnu-gpl-v2
BUILD_TARGET+= all xfm.install.script Xfm.ad
USE_IMAKE= YES
+IMAKEOPTS= -DCppCmd=tradcpp
# does not directly support Xaw3d
.PHONY: buildlink-Xaw3d-inc-hack
pre-configure: buildlink-Xaw3d-inc-hack
@@ -21,6 +26,8 @@ buildlink-Xaw3d-inc-hack: buildlink-directories
cd ${BUILDLINK_DIR}/include/X11 && ln -s Xaw3d Xaw
#BUILDLINK_TRANSFORM+= l:Xaw:Xaw3d
+TOOL_DEPENDS+= tradcpp>=0.5.2:../../devel/tradcpp
+
.include "../../x11/libXaw3d/buildlink3.mk"
.include "../../x11/libXpm/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/sysutils/xfm/distinfo b/sysutils/xfm/distinfo
index fd19ebeb1a8..4534668c723 100644
--- a/sysutils/xfm/distinfo
+++ b/sysutils/xfm/distinfo
@@ -1,12 +1,15 @@
-$NetBSD: distinfo,v 1.8 2015/11/04 01:32:41 agc Exp $
+$NetBSD: distinfo,v 1.9 2018/11/26 06:52:22 dholland Exp $
SHA1 (xfm-1.4.3.tar.gz) = 8d6235bb63e04491cc99603144b52884866b39e2
RMD160 (xfm-1.4.3.tar.gz) = b06c562b467e5085e5ecdd4273b64d554415ce69
SHA512 (xfm-1.4.3.tar.gz) = 8d81a50c474712745d1d1fe6e84d772fd2faba6db31bec2bade799923d9455d772cd1b7cc68bd8014e0ab9f2840117ead0eb959945f800e13a62824d82c8955d
Size (xfm-1.4.3.tar.gz) = 420962 bytes
+SHA1 (xfm-jumbo-patch-20181125.gz) = def1eb43063dcdf5f2c885410f083573e4d1cd83
+RMD160 (xfm-jumbo-patch-20181125.gz) = 0d6c70e6b3925050166d4bb48335e8a3e76a6891
+SHA512 (xfm-jumbo-patch-20181125.gz) = 2e09e55dbbd99006b1e4e134b9c4749f3ee743c699cf346c2b9625ef69b3d338bfd268697fc63038b9d3b55de60365e7c8d148f9ae4309d8fb614b8bf3653105
+Size (xfm-jumbo-patch-20181125.gz) = 25181 bytes
SHA1 (patch-aa) = 24ce4e78b18356db98ed2588f8da48380e1efd20
SHA1 (patch-ab) = b8c1cff37974fee67272e1f7befe345654ceb819
-SHA1 (patch-ac) = 40a32177cc5b64a49a51ea9c77062bfdc77da75d
SHA1 (patch-ad) = 64709ecb67e91d8677545a7af54fa205079a77fd
SHA1 (patch-ae) = 9e2a79a0a7becdca8bcdb30da457ef7b25ccd22d
SHA1 (patch-af) = 075d38b00064ef6a853e62268e07a0432b1a7710
diff --git a/sysutils/xfm/patches/patch-ac b/sysutils/xfm/patches/patch-ac
deleted file mode 100644
index 2481b0f4856..00000000000
--- a/sysutils/xfm/patches/patch-ac
+++ /dev/null
@@ -1,16 +0,0 @@
-$NetBSD: patch-ac,v 1.1.1.1 2002/06/04 16:44:55 cjep Exp $
-
---- src/FmErrors.c.orig Tue Aug 1 09:19:16 2000
-+++ src/FmErrors.c Tue Aug 1 09:20:09 2000
-@@ -21,11 +21,6 @@
-
- #define LABEL_WIDTH 300
-
--/* Uggh ...... */
--#ifndef linux
--extern char *sys_errlist[];
--#endif
--
- /*-----------------------------------------------------------------------------
- STAIC DATA
- -----------------------------------------------------------------------------*/