pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/multimedia/kdemultimedia3 for NetBSD 2.0D and later, u...
details: https://anonhg.NetBSD.org/pkgsrc/rev/2e3c65053e87
branches: trunk
changeset: 474709:2e3c65053e87
user: mrg <mrg%pkgsrc.org@localhost>
date: Tue May 04 11:30:17 2004 +0000
description:
for NetBSD 2.0D and later, use statvfs(2).
XXX this should be a configure test...
diffstat:
multimedia/kdemultimedia3/distinfo | 3 +-
multimedia/kdemultimedia3/patches/patch-ad | 42 ++++++++++++++++++++++++++++++
2 files changed, 44 insertions(+), 1 deletions(-)
diffs (62 lines):
diff -r 8d76010e847e -r 2e3c65053e87 multimedia/kdemultimedia3/distinfo
--- a/multimedia/kdemultimedia3/distinfo Tue May 04 09:26:06 2004 +0000
+++ b/multimedia/kdemultimedia3/distinfo Tue May 04 11:30:17 2004 +0000
@@ -1,10 +1,11 @@
-$NetBSD: distinfo,v 1.4 2004/04/20 13:13:42 markd Exp $
+$NetBSD: distinfo,v 1.5 2004/05/04 11:30:17 mrg Exp $
SHA1 (kdemultimedia-3.2.2.tar.bz2) = 2536393d2bc31f15448082218960b867315c1cf0
Size (kdemultimedia-3.2.2.tar.bz2) = 4911246 bytes
SHA1 (patch-aa) = 1e0694a956357d759a73a010e9a4700d5072ebf7
SHA1 (patch-ab) = 29d8a451cd7e641f67190fa3b4980678ebe7dd70
SHA1 (patch-ac) = f13b1d7b0285a3189b9b039daef771d9294ad413
+SHA1 (patch-ad) = 272548cfda5b9d8ea2fd16d7d490ef74a5c349e6
SHA1 (patch-ar) = 604469ee9cedaccb5e75567abf1088cddab9bcbc
SHA1 (patch-cs) = 6b00976b20b3d6af611f75921e20f88086061ce5
SHA1 (patch-ct) = b61875aa683a08e69f0a403a8111319469fa3c4e
diff -r 8d76010e847e -r 2e3c65053e87 multimedia/kdemultimedia3/patches/patch-ad
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/kdemultimedia3/patches/patch-ad Tue May 04 11:30:17 2004 +0000
@@ -0,0 +1,42 @@
+$NetBSD: patch-ad,v 1.1 2004/05/04 11:30:17 mrg Exp $
+
+--- kscd/libwm/plat_freebsd.c.orig 2003-05-05 22:19:39.000000000 +1000
++++ kscd/libwm/plat_freebsd.c 2004-05-04 19:17:17.000000000 +1000
+@@ -380,6 +380,14 @@
+ return (ioctl(d->fd, CDIOCSTOP));
+ } /* gen_stop() */
+
++/* XXX */
++#ifdef __NetBSD__
++# include <sys/param.h>
++# if __NetBSD_Version__ >= 200040000 /* 2.0D */
++# define HAVE_SYS_STATVFS_H 1
++# endif
++#endif
++
+ /*----------------------------------------*
+ * Eject the current CD, if there is one.
+ *----------------------------------------*/
+@@ -388,14 +396,22 @@
+ {
+ /* On some systems, we can check to see if the CD is mounted. */
+ struct stat stbuf;
++#ifdef HAVE_SYS_STATVFS_H
++ struct statvfs buf;
++#else
+ struct statfs buf;
++#endif
+ int rval;
+
+ if (fstat(d->fd, &stbuf) != 0)
+ return (-2);
+
+ /* Is this a mounted filesystem? */
++#ifdef HAVE_SYS_STATVFS_H
++ if (fstatvfs(stbuf.st_rdev, &buf) == 0)
++#else
+ if (fstatfs(stbuf.st_rdev, &buf) == 0)
++#endif
+ return (-3);
+
+ rval = ioctl(d->fd, CDIOCALLOW);
Home |
Main Index |
Thread Index |
Old Index