pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/x11/deforaos-panel Various portability fixes for SunOS.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/93aa58f2dea4
branches:  trunk
changeset: 632267:93aa58f2dea4
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Fri Mar 21 14:38:01 2014 +0000

description:
Various portability fixes for SunOS.

diffstat:

 x11/deforaos-panel/distinfo                           |   5 ++++-
 x11/deforaos-panel/patches/patch-data_pkgconfig.sh    |  16 ++++++++++++++++
 x11/deforaos-panel/patches/patch-src_applets_main.c   |  16 ++++++++++++++++
 x11/deforaos-panel/patches/patch-src_applets_volume.c |  15 +++++++++++++++
 4 files changed, 51 insertions(+), 1 deletions(-)

diffs (74 lines):

diff -r b80478f02446 -r 93aa58f2dea4 x11/deforaos-panel/distinfo
--- a/x11/deforaos-panel/distinfo       Fri Mar 21 14:19:31 2014 +0000
+++ b/x11/deforaos-panel/distinfo       Fri Mar 21 14:38:01 2014 +0000
@@ -1,7 +1,10 @@
-$NetBSD: distinfo,v 1.3 2013/06/15 12:47:46 khorben Exp $
+$NetBSD: distinfo,v 1.4 2014/03/21 14:38:01 jperkin Exp $
 
 SHA1 (Panel-0.2.18.tar.gz) = 2920631f99b3c9f4d91de1765b2588dfbf0f6645
 RMD160 (Panel-0.2.18.tar.gz) = c8dae6a9cb028814a24b01a5fcf04b6b34f4c6c6
 Size (Panel-0.2.18.tar.gz) = 111036 bytes
+SHA1 (patch-data_pkgconfig.sh) = a4fae097b46becc6d98fb6b42707188d8ed3e048
+SHA1 (patch-src_applets_main.c) = 239eebc72b7d113a72e42633e838c3294003e931
 SHA1 (patch-src_applets_memory.c) = bcc44e38c03fc60e6720e71d815178f7129fa798
 SHA1 (patch-src_applets_swap.c) = 75599dd9b7aed08895c542376d2a6b7883a91f7f
+SHA1 (patch-src_applets_volume.c) = 10a4dfe01b6576a7f39a344ddd669725666d72a7
diff -r b80478f02446 -r 93aa58f2dea4 x11/deforaos-panel/patches/patch-data_pkgconfig.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/deforaos-panel/patches/patch-data_pkgconfig.sh        Fri Mar 21 14:38:01 2014 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-data_pkgconfig.sh,v 1.1 2014/03/21 14:38:01 jperkin Exp $
+
+Use correct rpath flag on SunOS.
+
+--- data/pkgconfig.sh.orig     2013-02-04 22:23:50.000000000 +0000
++++ data/pkgconfig.sh
+@@ -114,6 +114,9 @@ while [ $# -gt 0 ]; do
+                       Darwin)
+                               RPATH="-Wl,-rpath,\${libdir}"
+                               ;;
++                      SunOS)
++                              RPATH="-Wl,-R\${libdir}"
++                              ;;
+               esac
+       fi
+ 
diff -r b80478f02446 -r 93aa58f2dea4 x11/deforaos-panel/patches/patch-src_applets_main.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/deforaos-panel/patches/patch-src_applets_main.c       Fri Mar 21 14:38:01 2014 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_applets_main.c,v 1.1 2014/03/21 14:38:01 jperkin Exp $
+
+Need sys/fcntl.h for O_RDONLY on SunOS.
+
+--- src/applets/main.c.orig    2013-06-01 23:34:31.000000000 +0000
++++ src/applets/main.c
+@@ -23,6 +23,9 @@
+ #include <errno.h>
+ #include <libintl.h>
+ #include <System.h>
++#ifdef __sun
++#include <sys/fcntl.h>
++#endif
+ #include "Panel.h"
+ #include "../../config.h"
+ #define _(string) gettext(string)
diff -r b80478f02446 -r 93aa58f2dea4 x11/deforaos-panel/patches/patch-src_applets_volume.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/deforaos-panel/patches/patch-src_applets_volume.c     Fri Mar 21 14:38:01 2014 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_applets_volume.c,v 1.1 2014/03/21 14:38:01 jperkin Exp $
+
+Fix SunOS includes.
+
+--- src/applets/volume.c.orig  2013-02-04 22:23:50.000000000 +0000
++++ src/applets/volume.c
+@@ -19,7 +19,7 @@
+ 
+ 
+ #include <sys/ioctl.h>
+-#if defined(__NetBSD__) || defined(__sun__)
++#if defined(__NetBSD__)
+ # include <sys/audioio.h>
+ #elif defined(__linux__)
+ # include <alsa/asoundlib.h>



Home | Main Index | Thread Index | Old Index