pkgsrc-Changes archive

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

CVS commit: pkgsrc/x11/wmweather



Module Name:    pkgsrc
Committed By:   dholland
Date:           Thu Jun 23 18:24:08 UTC 2016

Modified Files:
        pkgsrc/x11/wmweather: Makefile distinfo
        pkgsrc/x11/wmweather/patches: patch-aa
Added Files:
        pkgsrc/x11/wmweather/patches: patch-wmweather.c

Log Message:
Use BSD_INSTALL_* as suggested by cube to work around install problems on
old Solaris. Fixes PR 32296 Jake Kupersmith.

While here, add patch comment and use <ctype.h> correctly.


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 pkgsrc/x11/wmweather/Makefile
cvs rdiff -u -r1.10 -r1.11 pkgsrc/x11/wmweather/distinfo
cvs rdiff -u -r1.6 -r1.7 pkgsrc/x11/wmweather/patches/patch-aa
cvs rdiff -u -r0 -r1.1 pkgsrc/x11/wmweather/patches/patch-wmweather.c

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

Modified files:

Index: pkgsrc/x11/wmweather/Makefile
diff -u pkgsrc/x11/wmweather/Makefile:1.44 pkgsrc/x11/wmweather/Makefile:1.45
--- pkgsrc/x11/wmweather/Makefile:1.44  Sat Mar  5 11:29:49 2016
+++ pkgsrc/x11/wmweather/Makefile       Thu Jun 23 18:24:07 2016
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.44 2016/03/05 11:29:49 jperkin Exp $
+# $NetBSD: Makefile,v 1.45 2016/06/23 18:24:07 dholland Exp $
 
 DISTNAME=      wmweather-2.4.5
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    x11
 MASTER_SITES=  http://people.debian.org/~godisch/wmweather/
 

Index: pkgsrc/x11/wmweather/distinfo
diff -u pkgsrc/x11/wmweather/distinfo:1.10 pkgsrc/x11/wmweather/distinfo:1.11
--- pkgsrc/x11/wmweather/distinfo:1.10  Wed Nov  4 03:28:56 2015
+++ pkgsrc/x11/wmweather/distinfo       Thu Jun 23 18:24:07 2016
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.10 2015/11/04 03:28:56 agc Exp $
+$NetBSD: distinfo,v 1.11 2016/06/23 18:24:07 dholland Exp $
 
 SHA1 (wmweather-2.4.5.tar.gz) = bb42dabd7e25e8996a50daf6623f9dda555eabdf
 RMD160 (wmweather-2.4.5.tar.gz) = 22418b350d54a68c8625adca127e1ff7a50032b9
 SHA512 (wmweather-2.4.5.tar.gz) = eb62a6d03875c087e306e83ec2010916da702f942b22b130c327d890daf29803bf01f52fe0e03b962656d0dd9a329696e8fc19238eedc32f5ce72d8929eab87b
 Size (wmweather-2.4.5.tar.gz) = 85128 bytes
-SHA1 (patch-aa) = 65f758bb94039e07a228c00d0b8cafdb6fc06db6
+SHA1 (patch-aa) = a882d59ff36a5fb23822ab9288c48f62edc094d8
+SHA1 (patch-wmweather.c) = ef7e6a9ebc4bd28c3b99bf49715f8e02f670028a

Index: pkgsrc/x11/wmweather/patches/patch-aa
diff -u pkgsrc/x11/wmweather/patches/patch-aa:1.6 pkgsrc/x11/wmweather/patches/patch-aa:1.7
--- pkgsrc/x11/wmweather/patches/patch-aa:1.6   Sun Aug 16 12:03:02 2015
+++ pkgsrc/x11/wmweather/patches/patch-aa       Thu Jun 23 18:24:07 2016
@@ -1,4 +1,8 @@
-$NetBSD: patch-aa,v 1.6 2015/08/16 12:03:02 leot Exp $
+$NetBSD: patch-aa,v 1.7 2016/06/23 18:24:07 dholland Exp $
+
+ - Configure for pkgsrc
+ - Use BSD_INSTALL_* to avoid problems on old Solaris (PR 32296)
+ - Handle config file the pkgsrc way
 
 --- Makefile.in.orig   2007-05-13 17:27:21.000000000 +0000
 +++ Makefile.in
@@ -8,12 +12,19 @@ $NetBSD: patch-aa,v 1.6 2015/08/16 12:03
 -DESTDIR         =
  prefix          = @prefix@
  exec_prefix     = @exec_prefix@
-@@ -31,7 +30,8 @@ install: wmweather wmweather.1
-       ${INSTALL_PROGRAM} wmweather   ${DESTDIR}${bindir}
-       ${INSTALL_DATA}    wmweather.1 ${DESTDIR}${mandir}/man1
+@@ -28,10 +27,12 @@ wmgeneral.o: wmgeneral.c wmgeneral.h
+ 
+ install: wmweather wmweather.1
+-      ${INSTALL} -d ${DESTDIR}${bindir} ${DESTDIR}${mandir}/man1 ${DESTDIR}${sysconfdir}
+-      ${INSTALL_PROGRAM} wmweather   ${DESTDIR}${bindir}
+-      ${INSTALL_DATA}    wmweather.1 ${DESTDIR}${mandir}/man1
 -      ${LN_S} wmweather   ${DESTDIR}${bindir}/wmWeather
 -      ${LN_S} wmweather.1 ${DESTDIR}${mandir}/man1/wmWeather.1
 -      test -e ${DESTDIR}${sysconfdir}/${sysconffile} || ${INSTALL_DATA} wmweather.conf ${DESTDIR}${sysconfdir}/${sysconffile}
++      ${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}${bindir}
++      ${BSD_INSTALL_MAN_DIR} ${DESTDIR}${mandir}/man1 ${DESTDIR}${sysconfdir}
++      ${BSD_INSTALL_PROGRAM} wmweather   ${DESTDIR}${bindir}
++      ${BSD_INSTALL_DATA}    wmweather.1 ${DESTDIR}${mandir}/man1
 +      ${LN_S} -f wmweather   ${DESTDIR}${bindir}/wmWeather
 +      ${LN_S} -f wmweather.1 ${DESTDIR}${mandir}/man1/wmWeather.1
 +      ${BSD_INSTALL_DATA_DIR} ${DESTDIR}${prefix}/share/examples/wmweather

Added files:

Index: pkgsrc/x11/wmweather/patches/patch-wmweather.c
diff -u /dev/null pkgsrc/x11/wmweather/patches/patch-wmweather.c:1.1
--- /dev/null   Thu Jun 23 18:24:08 2016
+++ pkgsrc/x11/wmweather/patches/patch-wmweather.c      Thu Jun 23 18:24:07 2016
@@ -0,0 +1,24 @@
+$NetBSD: patch-wmweather.c,v 1.1 2016/06/23 18:24:07 dholland Exp $
+
+Use ctype.h functions correctly.
+
+--- wmweather.c~       2009-07-03 16:00:38.000000000 +0000
++++ wmweather.c
+@@ -270,7 +270,7 @@ static void do_conf(const char *rcfile)
+                               exit(1);
+                       }
+                       for (i = 0; i < 4; i++)
+-                              optarg[i] = toupper(optarg[i]);
++                              optarg[i] = toupper((unsigned char)optarg[i]);
+                       if (station != NULL)
+                               free(station);
+                       station = strdup(optarg);
+@@ -407,7 +407,7 @@ static void do_opts(int argc, char *argv
+                               exit(1);
+                       }
+                       for (i = 0; i < 4; i++)
+-                              optarg[i] = toupper(optarg[i]);
++                              optarg[i] = toupper((unsigned char)optarg[i]);
+                       if (station != NULL)
+                               free(station);
+                       station = optarg;



Home | Main Index | Thread Index | Old Index