pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/misc/tmux



Module Name:    pkgsrc
Committed By:   leot
Date:           Thu Mar 12 11:35:33 UTC 2020

Modified Files:
        pkgsrc/misc/tmux: Makefile distinfo
        pkgsrc/misc/tmux/patches: patch-compat.h

Log Message:
tmux: Fix build on Solaris due missing paths.h defines

Solaris has paths.h but does not define all _PATH_DEFPATH.
Backport upsrteam commit
 <https://github.com/tmux/tmux/commit/92ecd611f68663dfceb2494e637b3ebe51d3fd86>
to address that.

Fixes PR pkg/55065.

Thanks to Joern Clausen for the patch and PR!


To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 pkgsrc/misc/tmux/Makefile
cvs rdiff -u -r1.44 -r1.45 pkgsrc/misc/tmux/distinfo
cvs rdiff -u -r1.1 -r1.2 pkgsrc/misc/tmux/patches/patch-compat.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/misc/tmux/Makefile
diff -u pkgsrc/misc/tmux/Makefile:1.52 pkgsrc/misc/tmux/Makefile:1.53
--- pkgsrc/misc/tmux/Makefile:1.52      Sat Jan 18 23:33:09 2020
+++ pkgsrc/misc/tmux/Makefile   Thu Mar 12 11:35:33 2020
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.52 2020/01/18 23:33:09 rillig Exp $
+# $NetBSD: Makefile,v 1.53 2020/03/12 11:35:33 leot Exp $
 
 DISTNAME=      tmux-3.0a
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    misc
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=tmux/}
 GITHUB_RELEASE=        ${PKGVERSION_NOREV}

Index: pkgsrc/misc/tmux/distinfo
diff -u pkgsrc/misc/tmux/distinfo:1.44 pkgsrc/misc/tmux/distinfo:1.45
--- pkgsrc/misc/tmux/distinfo:1.44      Thu Jan 23 10:09:35 2020
+++ pkgsrc/misc/tmux/distinfo   Thu Mar 12 11:35:33 2020
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.44 2020/01/23 10:09:35 jperkin Exp $
+$NetBSD: distinfo,v 1.45 2020/03/12 11:35:33 leot Exp $
 
 SHA1 (tmux-3.0a.tar.gz) = 0cc951b9ff545b429c101eb562e0be9c5aba5ed4
 RMD160 (tmux-3.0a.tar.gz) = 2b781a3632c11098184f787774742b5e5af761ce
 SHA512 (tmux-3.0a.tar.gz) = f326ee9c0e5e9a46ce9c99c76407b8cf35feea5f898c3c937fd8c5e488ff9a809272de19226d9d10f864e11051dcf633327820b7f8d86d85962da61174bbfb0b
 Size (tmux-3.0a.tar.gz) = 546377 bytes
-SHA1 (patch-compat.h) = 3d78363377e0a518d9fad5c92eccb6209ec13e6c
+SHA1 (patch-compat.h) = bee44eb311a6ff5fa64743d61867300303d9c65b

Index: pkgsrc/misc/tmux/patches/patch-compat.h
diff -u pkgsrc/misc/tmux/patches/patch-compat.h:1.1 pkgsrc/misc/tmux/patches/patch-compat.h:1.2
--- pkgsrc/misc/tmux/patches/patch-compat.h:1.1 Thu Jan 23 10:09:35 2020
+++ pkgsrc/misc/tmux/patches/patch-compat.h     Thu Mar 12 11:35:33 2020
@@ -1,9 +1,61 @@
-$NetBSD: patch-compat.h,v 1.1 2020/01/23 10:09:35 jperkin Exp $
+$NetBSD: patch-compat.h,v 1.2 2020/03/12 11:35:33 leot Exp $
 
-Handle the FNM_CASEFOLD extension.  tmux/tmux#2020.
+- Solaris has paths.h but does not define all used _PATH_*.
+  Backport commit 92ecd611f68663dfceb2494e637b3ebe51d3fd86 to address that:
+   <https://github.com/tmux/tmux/commit/92ecd611f68663dfceb2494e637b3ebe51d3fd86>
 
---- compat.h.orig      2019-06-26 11:26:30.000000000 +0000
+- Handle the FNM_CASEFOLD extension.
+  Shared upstream via:
+   <https://github.com/tmux/tmux/pull/2020>
+
+--- compat.h.orig      2020-03-12 11:24:29.222099235 +0000
 +++ compat.h
+@@ -61,12 +61,31 @@ void       warn(const char *, ...);
+ void  warnx(const char *, ...);
+ #endif
+ 
+-#ifndef HAVE_PATHS_H
+-#define       _PATH_BSHELL    "/bin/sh"
+-#define       _PATH_TMP       "/tmp/"
++#ifdef HAVE_PATHS_H
++#include <paths.h>
++#endif
++
++#ifndef _PATH_BSHELL
++#define _PATH_BSHELL  "/bin/sh"
++#endif
++
++#ifndef _PATH_TMP
++#define _PATH_TMP     "/tmp/"
++#endif
++
++#ifndef _PATH_DEVNULL
+ #define _PATH_DEVNULL "/dev/null"
++#endif
++
++#ifndef _PATH_TTY
+ #define _PATH_TTY     "/dev/tty"
++#endif
++
++#ifndef _PATH_DEV
+ #define _PATH_DEV     "/dev/"
++#endif
++
++#ifndef _PATH_DEFPATH
+ #define _PATH_DEFPATH "/usr/bin:/bin"
+ #endif
+ 
+@@ -98,10 +117,6 @@ void       warnx(const char *, ...);
+ #include "compat/bitstring.h"
+ #endif
+ 
+-#ifdef HAVE_PATHS_H
+-#include <paths.h>
+-#endif
+-
+ #ifdef HAVE_LIBUTIL_H
+ #include <libutil.h>
+ #endif
 @@ -154,6 +154,14 @@ void      warnx(const char *, ...);
  #define O_DIRECTORY 0
  #endif



Home | Main Index | Thread Index | Old Index