Subject: Re: pkg/33417: multimedia/mjpegtools
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Gilles Dauphin <Gilles.Dauphin@enst.fr>
List: pkgsrc-bugs
Date: 05/04/2006 10:25:01
The following reply was made to PR pkg/33417; it has been noted by GNATS.
From: Gilles Dauphin <Gilles.Dauphin@enst.fr>
To: pkg-manager@netbsd.org, gnats-admin@netbsd.org,
pkgsrc-bugs@netbsd.org, dauphin@enst.fr, gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/33417: multimedia/mjpegtools
Date: Thu, 4 May 2006 12:20:09 +0200 (CEST)
> Delivered-To: dauphin@enst.fr
> X-Virus-Scanned: amavisd-new at enst.fr
> From: "Jeremy C. Reed" <reed@reedmedia.net>
> To: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,
"Gilles Dauphin" <dauphin@enst.fr>
> Subject: Re: pkg/33417: multimedia/mjpegtools
> X-Gnats-Was-Stupid: no
> Cc:
>
> The following reply was made to PR pkg/33417; it has been noted by GNATS.
>
> From: "Jeremy C. Reed" <reed@reedmedia.net>
> To: gnats-bugs@netbsd.org
> Cc:
> Subject: Re: pkg/33417: multimedia/mjpegtools
> Date: Wed, 3 May 2006 08:32:41 -0700 (PDT)
>
> On Wed, 3 May 2006, Gilles Dauphin wrote:
>
> > System: SunOS bi.enst.fr 5.10 Generic_Patch_118844-30 i86pc
>
> > >Fix:
> >
> >
> > d ont know
>
> Did you report this to the mjpegtools developers also?
> (I saw old emails on the mjpeg-developer list about supporting Solaris.)
>
> Jeremy C. Reed
I didn't, but now I know the patch for solaris10 gcc.
The first is in Makefile with the BUILD_DEPENDS parameter:
--------
.if ${MACHINE_ARCH} == "i386"
BUILD_DEPENDS+= nasm>=0.98:../../devel/nasm
.endif
--------------
and other (crazy) patch for solaris and maybe other system because
of __progname is tested in ./configure but not in .c files
--------------------------------cut here-------------------
diff -rbu mjpegtools/work/mjpegtools-1.8.0/lavtools/y4mblack.c
mjpegtools.save/work/mjpegtools-1.8.0/lavtools/y4mblack.c
--- mjpegtools/work/mjpegtools-1.8.0/lavtools/y4mblack.c Fri Jun 17
02:30:02 2005
+++ mjpegtools.save/work/mjpegtools-1.8.0/lavtools/y4mblack.c Wed May 3
15:26:19 2006
@@ -21,7 +21,7 @@
#include "yuv4mpeg.h"
-extern char *__progname;
+char *__progname="progname";
static void usage(void);
static void chroma_usage(void);
diff -rbu mjpegtools/work/mjpegtools-1.8.0/lavtools/y4mshift.c
mjpegtools.save/work/mjpegtools-1.8.0/lavtools/y4mshift.c
--- mjpegtools/work/mjpegtools-1.8.0/lavtools/y4mshift.c Mon Apr 5
19:07:34 2004
+++ mjpegtools.save/work/mjpegtools-1.8.0/lavtools/y4mshift.c Wed May 3
15:24:10 2006
@@ -29,7 +29,7 @@
#include "yuv4mpeg.h"
-extern char *__progname;
+char *__progname="progname";
#define HALFSHIFT (shiftnum / SS_H)
diff -rbu mjpegtools/work/mjpegtools-1.8.0/lavtools/y4mspatialfilter.c
mjpegtools.save/work/mjpegtools-1.8.0/lavtools/y4mspatialfilter.c
--- mjpegtools/work/mjpegtools-1.8.0/lavtools/y4mspatialfilter.c Mon Jan
3 20:03:54 2005
+++ mjpegtools.save/work/mjpegtools-1.8.0/lavtools/y4mspatialfilter.c Wed May
3 15:25:26 2006
@@ -23,7 +23,7 @@
#include "mmx.h"
#endif
-extern char *__progname;
+char *__progname="progname";
#define MIN(a,b) (((a)<(b))?(a):(b))
#define MAX(a,b) (((a)>(b))?(a):(b))
diff -rbu mjpegtools/work/mjpegtools-1.8.0/lavtools/yuv4mpeg.c
mjpegtools.save/work/mjpegtools-1.8.0/lavtools/yuv4mpeg.c
--- mjpegtools/work/mjpegtools-1.8.0/lavtools/yuv4mpeg.c Wed May 25
05:08:59 2005
+++ mjpegtools.save/work/mjpegtools-1.8.0/lavtools/yuv4mpeg.c Wed May 3
15:27:05 2006
@@ -61,7 +61,7 @@
#include "yuv4mpeg.h"
-extern char *__progname;
+char *__progname="progname";
static void usage(void);
static void chroma_usage(void);
diff -rbu mjpegtools/work/mjpegtools-1.8.0/lavtools/yuyvtoy4m.c
mjpegtools.save/work/mjpegtools-1.8.0/lavtools/yuyvtoy4m.c
--- mjpegtools/work/mjpegtools-1.8.0/lavtools/yuyvtoy4m.c Wed May 25
04:28:28 2005
+++ mjpegtools.save/work/mjpegtools-1.8.0/lavtools/yuyvtoy4m.c Wed May 3
15:27:40 2006
@@ -45,7 +45,7 @@
#include "yuv4mpeg.h"
-extern char *__progname;
+char *__progname="progname";
static void usage(void);
diff -rbu mjpegtools/work/mjpegtools-1.8.0/y4mdenoise/SearchBorder.hh
mjpegtools.save/work/mjpegtools-1.8.0/y4mdenoise/SearchBorder.hh
--- mjpegtools/work/mjpegtools-1.8.0/y4mdenoise/SearchBorder.hh Tue Apr 27
22:45:56 2004
+++ mjpegtools.save/work/mjpegtools-1.8.0/y4mdenoise/SearchBorder.hh Wed May
3 15:52:22 2006
@@ -12,6 +12,7 @@
#include "Limits.hh"
#include "DoublyLinkedList.hh"
#include "SetRegion2D.hh"
+#include <alloca.h>
// HACK: for development error messages.
#include <stdio.h>
diff -rbu mjpegtools/work/mjpegtools-1.8.0/y4munsharp/y4munsharp.c
mjpegtools.save/work/mjpegtools-1.8.0/y4munsharp/y4munsharp.c
--- mjpegtools/work/mjpegtools-1.8.0/y4munsharp/y4munsharp.c Mon Apr 11
20:16:42 2005
+++ mjpegtools.save/work/mjpegtools-1.8.0/y4munsharp/y4munsharp.c Wed May
3 15:53:32 2006
@@ -50,7 +50,7 @@
#define MAX(a,b) ((a) >= (b) ? (a) : (b))
#define ROUND(x) ((int) ((x) + 0.5))
-extern char *__progname;
+char *__progname="progname";
void usage(void);
void y4munsharp(void);
---------------------------cut here--------------