summaryrefslogtreecommitdiff
path: root/sysutils/xcdroast
diff options
context:
space:
mode:
authorfrueauf <frueauf@pkgsrc.org>2002-10-26 17:05:29 +0000
committerfrueauf <frueauf@pkgsrc.org>2002-10-26 17:05:29 +0000
commite0dc53079dad3010e4e1bc4e048d5a49d2dfbafb (patch)
treef1dab0e9681e4c57fc6a5c4852aac03bd97b93eb /sysutils/xcdroast
parent893804603547e2b18e19535753d8ad05c88eec2a (diff)
downloadpkgsrc-e0dc53079dad3010e4e1bc4e048d5a49d2dfbafb.tar.gz
According to Avon Barksdale <avon@flatlet.net>, the casting of NULL to (void *)
in the execl call is to make sure it is 64 bit on 64 bit archs. Not verified by myself since I have no 64bit arch to test on. Patch provided in private email.
Diffstat (limited to 'sysutils/xcdroast')
-rw-r--r--sysutils/xcdroast/distinfo4
-rw-r--r--sysutils/xcdroast/patches/patch-ac35
2 files changed, 24 insertions, 15 deletions
diff --git a/sysutils/xcdroast/distinfo b/sysutils/xcdroast/distinfo
index 3089ffb6c72..b791e2aa768 100644
--- a/sysutils/xcdroast/distinfo
+++ b/sysutils/xcdroast/distinfo
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.4 2002/09/26 12:29:55 jlam Exp $
+$NetBSD: distinfo,v 1.5 2002/10/26 17:05:29 frueauf Exp $
SHA1 (xcdroast-0.98alpha9.tar.gz) = 7994b54ce0a0b55fe140f4b2ba14e0d1317d5d52
Size (xcdroast-0.98alpha9.tar.gz) = 649469 bytes
SHA1 (patch-aa) = 48365964de9a0ee2349fea063695c7b1d999b645
SHA1 (patch-ab) = 39c716a03162a1c093e95442befbc65c8bd6fb76
-SHA1 (patch-ac) = 5d462c9c2521c85258b53030174fa91a2c76d73b
+SHA1 (patch-ac) = 26e1b7569ba0f20eeddffaac342eb731f0f61cac
SHA1 (patch-ad) = 875d4c2a31a3590d7a566d4452b253edf30a75d9
diff --git a/sysutils/xcdroast/patches/patch-ac b/sysutils/xcdroast/patches/patch-ac
index 81c7d5a7dcc..ad250e1e73e 100644
--- a/sysutils/xcdroast/patches/patch-ac
+++ b/sysutils/xcdroast/patches/patch-ac
@@ -1,7 +1,7 @@
-$NetBSD: patch-ac,v 1.4 2002/09/26 12:29:56 jlam Exp $
+$NetBSD: patch-ac,v 1.5 2002/10/26 17:05:30 frueauf Exp $
---- io.c.orig Tue Jul 17 12:39:11 2001
-+++ io.c
+--- io.c.orig Tue Jul 17 21:39:11 2001
++++ io.c Sat Oct 26 18:44:59 2002
@@ -16,6 +16,14 @@
#include <sys/wait.h>
#include <signal.h>
@@ -17,7 +17,7 @@ $NetBSD: patch-ac,v 1.4 2002/09/26 12:29:56 jlam Exp $
#if defined(linux) || defined(__FreeBSD__)
# include <sys/soundcard.h>
# include <sys/ioctl.h>
-@@ -996,22 +1004,22 @@ GList *get_dsp_devices() {
+@@ -996,22 +1004,22 @@
GList *dsp;
GList *loop;
struct stat buf;
@@ -45,7 +45,7 @@ $NetBSD: patch-ac,v 1.4 2002/09/26 12:29:56 jlam Exp $
/* check if the user has any special audio-hardware running,
which set the AUDIODEV-environment-variable */
audiodev = getenv("AUDIODEV");
-@@ -1066,15 +1074,15 @@ gchar *audiodev;
+@@ -1066,15 +1074,15 @@
gchar *gen_mix_from_dspdev(gchar *dsp, gchar *ret) {
gchar tmp[MAXLINE];
struct stat buf;
@@ -64,7 +64,7 @@ $NetBSD: patch-ac,v 1.4 2002/09/26 12:29:56 jlam Exp $
strcpy(tmp,dsp+8);
g_snprintf(tmp2,MAXLINE,"/dev/mixer%s",tmp);
-@@ -1084,7 +1092,7 @@ gchar tmp2[MAXLINE];
+@@ -1084,7 +1092,7 @@
}
}
#endif
@@ -73,7 +73,16 @@ $NetBSD: patch-ac,v 1.4 2002/09/26 12:29:56 jlam Exp $
g_snprintf(tmp,MAXLINE,"%s%s",dsp,"ctl");
-@@ -2362,10 +2370,10 @@ gint count;
+@@ -1991,7 +1999,7 @@
+ }
+
+ /* startup child */
+- if (execl("/bin/sh", "sh", "-c", cmd ,NULL) < 0) {
++ if (execl("/bin/sh", "sh", "-c", cmd ,(void *)NULL) < 0) {
+ g_error("execl error\n");
+ }
+
+@@ -2362,10 +2370,10 @@
gint query_mixer() {
gint mix;
@@ -86,7 +95,7 @@ $NetBSD: patch-ac,v 1.4 2002/09/26 12:29:56 jlam Exp $
audio_info_t ainfo;
#endif
#ifdef hpux
-@@ -2380,7 +2388,7 @@ struct audio_gains again;
+@@ -2380,7 +2388,7 @@
return -1;
}
@@ -95,7 +104,7 @@ $NetBSD: patch-ac,v 1.4 2002/09/26 12:29:56 jlam Exp $
dodebug(10,"quering mixer %s\n", setupdata.mix_device);
mix = open(setupdata.mix_device, O_RDWR);
-@@ -2400,7 +2408,7 @@ struct audio_gains again;
+@@ -2400,7 +2408,7 @@
return ((val & 0x7f) + ((val >> 8) & 0x7f))/2;
#endif
@@ -104,7 +113,7 @@ $NetBSD: patch-ac,v 1.4 2002/09/26 12:29:56 jlam Exp $
dodebug(10,"quering mixer %s\n", setupdata.mix_device);
mix = open(setupdata.mix_device, O_RDONLY);
-@@ -2450,7 +2458,7 @@ struct audio_gains again;
+@@ -2450,7 +2458,7 @@
gint set_mixer(gint val) {
gint mix;
@@ -113,7 +122,7 @@ $NetBSD: patch-ac,v 1.4 2002/09/26 12:29:56 jlam Exp $
audio_info_t ainfo;
#endif
#ifdef hpux
-@@ -2464,7 +2472,7 @@ struct audio_gains again;
+@@ -2464,7 +2472,7 @@
return -1;
}
@@ -122,7 +131,7 @@ $NetBSD: patch-ac,v 1.4 2002/09/26 12:29:56 jlam Exp $
dodebug(10,"setting mixer %s to %d\n", setupdata.mix_device, val);
mix = open(setupdata.mix_device, O_RDWR);
-@@ -2482,7 +2490,7 @@ struct audio_gains again;
+@@ -2482,7 +2490,7 @@
close(mix);
#endif
@@ -131,7 +140,7 @@ $NetBSD: patch-ac,v 1.4 2002/09/26 12:29:56 jlam Exp $
dodebug(10,"setting mixer %s to %d\n", setupdata.mix_device, val);
mix = open(setupdata.mix_device, O_WRONLY);
-@@ -3275,6 +3283,9 @@ gint ret,found;
+@@ -3275,6 +3283,9 @@
/* got the message that no medium is present?
in this case, ignore return code */
if (strstr(line,"medium not present")) {