pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/audio/alsa-lib Fix build on SunOS (no dirent->d_type).



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e26403b354b8
branches:  trunk
changeset: 364518:e26403b354b8
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Tue Jun 27 15:51:39 2017 +0000

description:
Fix build on SunOS (no dirent->d_type).

diffstat:

 audio/alsa-lib/distinfo                       |   3 ++-
 audio/alsa-lib/patches/patch-src_ucm_parser.c |  20 ++++++++++++++++++++
 2 files changed, 22 insertions(+), 1 deletions(-)

diffs (38 lines):

diff -r 6ad1d014200a -r e26403b354b8 audio/alsa-lib/distinfo
--- a/audio/alsa-lib/distinfo   Tue Jun 27 15:40:23 2017 +0000
+++ b/audio/alsa-lib/distinfo   Tue Jun 27 15:51:39 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.27 2017/06/19 20:46:31 wiz Exp $
+$NetBSD: distinfo,v 1.28 2017/06/27 15:51:39 jperkin Exp $
 
 SHA1 (alsa-lib-1.1.4.1.tar.bz2) = 628634afbdc19054fca26d714aa6c2f1e41e465d
 RMD160 (alsa-lib-1.1.4.1.tar.bz2) = 703e99f22a6b399fe32419a2ccc95b9b6292db10
@@ -21,3 +21,4 @@
 SHA1 (patch-src_pcm_pcm__mmap.c) = 2d0f05aa53b30cef1ec083aa4f5d559d0a679058
 SHA1 (patch-src_seq_seq__midi__event.c) = 2a5de492d6ca19a0f0c564e8f5a065e5fc57ea5c
 SHA1 (patch-src_shmarea.c) = d6d0876ae7911ff16138bb82a3b1c79e795218cf
+SHA1 (patch-src_ucm_parser.c) = 6682d702c5180ecddd1c6c8ecffe6064986ed8b1
diff -r 6ad1d014200a -r e26403b354b8 audio/alsa-lib/patches/patch-src_ucm_parser.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/alsa-lib/patches/patch-src_ucm_parser.c     Tue Jun 27 15:51:39 2017 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-src_ucm_parser.c,v 1.7 2017/06/27 15:51:39 jperkin Exp $
+
+* SunOS has no dirent d_type
+
+--- src/ucm/parser.c.orig      2017-06-01 06:27:36.000000000 +0000
++++ src/ucm/parser.c
+@@ -1476,7 +1476,13 @@ static int filename_filter(const struct
+ {
+       if (dirent == NULL)
+               return 0;
++#ifdef __sun
++      struct stat s;
++      stat(dirent->d_name, &s);
++      if (s.st_mode & S_IFDIR) {
++#else
+       if (dirent->d_type == DT_DIR) {
++#endif
+               if (dirent->d_name[0] == '.') {
+                       if (dirent->d_name[1] == '\0')
+                               return 0;



Home | Main Index | Thread Index | Old Index