summaryrefslogtreecommitdiff
path: root/graphics/xv/patches
diff options
context:
space:
mode:
authordillo <dillo>2004-03-29 00:50:41 +0000
committerdillo <dillo>2004-03-29 00:50:41 +0000
commit7f0f83eb4be5739d23ca41bcd9cef949a8ad34bd (patch)
tree2ed28436abd23828ecfea8463375425c027748e9 /graphics/xv/patches
parent9fc5eb8f967e8a60efe9fe945892ab9af580eebe (diff)
downloadpkgsrc-7f0f83eb4be5739d23ca41bcd9cef949a8ad34bd.tar.gz
Apply longname.patch and fix crash with long file names in visual schnauzer.
Bump package revision. While here, convert to buildlink 3.
Diffstat (limited to 'graphics/xv/patches')
-rw-r--r--graphics/xv/patches/patch-am26
-rw-r--r--graphics/xv/patches/patch-ao19
-rw-r--r--graphics/xv/patches/patch-at24
-rw-r--r--graphics/xv/patches/patch-ay18
4 files changed, 62 insertions, 25 deletions
diff --git a/graphics/xv/patches/patch-am b/graphics/xv/patches/patch-am
index 37d6a9b6212..11eab1f68d4 100644
--- a/graphics/xv/patches/patch-am
+++ b/graphics/xv/patches/patch-am
@@ -1,15 +1,17 @@
-$NetBSD: patch-am,v 1.1 2001/04/05 13:57:16 wiz Exp $
+$NetBSD: patch-am,v 1.2 2004/03/29 00:50:41 dillo Exp $
This patch is based on
http://www.mit.edu/afs/athena/contrib/graphics/src/xv/patches/png/xvpng.diff
It was edited to fit into the NetBSD Packages Collection! - HF
+It is also based on
+ftp://ftp.trilon.com/pub/xv/patches/longname.patch
---------------------------------------------------------------------------
---- xvbrowse.c.patched Sun Jun 13 03:22:27 1999
-+++ xvbrowse.c Sun Jun 13 03:25:38 1999
-@@ -61,6 +61,7 @@
+--- xvbrowse.c.orig Sun Mar 21 21:27:18 2004
++++ xvbrowse.c
+@@ -61,6 +61,7 @@ typedef unsigned int mode_t; /* file mo
#include "bits/br_pic"
#include "bits/br_pi"
#include "bits/br_pic2"
@@ -17,7 +19,7 @@ It was edited to fit into the NetBSD Packages Collection! - HF
#include "bits/br_trash"
#include "bits/fcurs"
-@@ -106,7 +107,8 @@
+@@ -106,7 +107,8 @@ typedef unsigned int mode_t; /* file mo
#define BF_PI 31
#define BF_PIC2 32
#define BF_PCD 33
@@ -27,7 +29,7 @@ It was edited to fit into the NetBSD Packages Collection! - HF
#define ISLOADABLE(ftyp) (ftyp!=BF_DIR && ftyp!=BF_CHR && ftyp!=BF_BLK && \
ftyp!=BF_SOCK && ftyp!=BF_FIFO)
-@@ -543,6 +545,7 @@
+@@ -543,6 +545,7 @@ void CreateBrowse(geom, fgstr, bgstr, hi
bfIcons[BF_PI] = MakePix1(br->win,br_pi_bits,br_pi_width,br_pi_height);
bfIcons[BF_PIC2]=MakePix1(br->win,br_pic2_bits,br_pic2_width,br_pic2_height);
bfIcons[BF_PCD] = MakePix1(br->win,br_pcd_bits,br_pcd_width,br_pcd_height);
@@ -35,7 +37,15 @@ It was edited to fit into the NetBSD Packages Collection! - HF
/* check that they all got built */
-@@ -3045,6 +3048,7 @@
+@@ -1509,6 +1512,7 @@ static void drawIcon(br, num)
+ if (StringWidth(str) > ISPACE_WIDE-6) {
+ int dotpos;
+ strncpy(tmpstr, str, (size_t) 56);
++ tmpstr[56] = '\0';
+ dotpos = strlen(tmpstr);
+ strcat(tmpstr,"...");
+
+@@ -3045,6 +3049,7 @@ static void scanFile(br, bf, name)
case RFT_PI: bf->ftype = BF_PI; break;
case RFT_PIC2: bf->ftype = BF_PIC2; break;
case RFT_PCD: bf->ftype = BF_PCD; break;
@@ -43,7 +53,7 @@ It was edited to fit into the NetBSD Packages Collection! - HF
}
}
}
-@@ -3612,6 +3616,7 @@
+@@ -3612,6 +3617,7 @@ static void genIcon(br, bf)
case RFT_PI: strcat(str,"PI file"); break;
case RFT_PIC2: strcat(str,"PIC2 file"); break;
case RFT_PCD: strcat(str,"PhotoCD file"); break;
diff --git a/graphics/xv/patches/patch-ao b/graphics/xv/patches/patch-ao
index c3fb63b1358..de9aed5b99a 100644
--- a/graphics/xv/patches/patch-ao
+++ b/graphics/xv/patches/patch-ao
@@ -1,15 +1,18 @@
-$NetBSD: patch-ao,v 1.1 2001/04/05 13:57:17 wiz Exp $
+$NetBSD: patch-ao,v 1.2 2004/03/29 00:50:41 dillo Exp $
This patch is based on
http://www.mit.edu/afs/athena/contrib/graphics/src/xv/patches/png/xvpng.diff
It was edited to fit into the NetBSD Packages Collection! - HF
+It is also based on
+ftp://ftp.trilon.com/pub/xv/patches/longname.patch
+
---------------------------------------------------------------------------
---- xvdir.c.patched Sun Jun 13 03:27:12 1999
-+++ xvdir.c Sun Jun 13 03:33:01 1999
-@@ -62,6 +62,9 @@
+--- xvdir.c.orig Sun Mar 21 21:18:09 2004
++++ xvdir.c
+@@ -62,6 +62,9 @@ static char *saveFormats[] = { "GIF",
#ifdef HAVE_TIFF
"TIFF",
#endif
@@ -19,7 +22,7 @@ It was edited to fit into the NetBSD Packages Collection! - HF
"PostScript",
"PBM/PGM/PPM (raw)",
"PBM/PGM/PPM (ascii)",
-@@ -1123,6 +1126,14 @@
+@@ -1123,6 +1126,14 @@ int DoSave()
}
#endif
@@ -34,7 +37,7 @@ It was edited to fit into the NetBSD Packages Collection! - HF
-@@ -1181,6 +1192,7 @@
+@@ -1181,6 +1192,7 @@ int DoSave()
case F_FITS:
rv = WriteFITS (fp, thepic, ptype, w, h, rp, gp, bp, nc, col,
picComments);
@@ -42,7 +45,7 @@ It was edited to fit into the NetBSD Packages Collection! - HF
case F_MAG:
rv = WriteMAG (fp, thepic, ptype, w, h, rp, gp, bp, nc, col,
picComments); break;
-@@ -1415,19 +1427,26 @@
+@@ -1416,19 +1428,26 @@ static void changeSuffix()
(strcmp(lowsuf,"eps" )==0) ||
(strcmp(lowsuf,"rgb" )==0) ||
(strcmp(lowsuf,"tga" )==0) ||
@@ -71,7 +74,7 @@ It was edited to fit into the NetBSD Packages Collection! - HF
/* found one. set lowsuf = to the new suffix, and tack on to filename */
-@@ -1462,6 +1481,9 @@
+@@ -1463,6 +1482,9 @@ static void changeSuffix()
#ifdef HAVE_TIFF
case F_TIFF: strcpy(lowsuf,"tif"); break;
diff --git a/graphics/xv/patches/patch-at b/graphics/xv/patches/patch-at
index 47f58e897a2..5c9c2c07220 100644
--- a/graphics/xv/patches/patch-at
+++ b/graphics/xv/patches/patch-at
@@ -1,8 +1,14 @@
-$NetBSD: patch-at,v 1.1 2001/04/05 13:57:17 wiz Exp $
+$NetBSD: patch-at,v 1.2 2004/03/29 00:50:41 dillo Exp $
---- xvpopup.c.orig Thu Jan 19 19:09:31 1995
-+++ xvpopup.c Sun Nov 14 14:05:49 1999
-@@ -200,14 +200,14 @@
+This patch is partially based on
+ftp://ftp.trilon.com/pub/xv/patches/longname.patch
+
+-----------------------
+
+
+--- xvpopup.c.orig Sun Mar 21 21:18:09 2004
++++ xvpopup.c
+@@ -200,14 +200,14 @@ static int doPopUp(txt, labels, n, popty
if (!padHaveDooDads) {
DCreate(&padWDial, popW, 16, puhigh-16-100-1,75,100,
@@ -20,7 +26,7 @@ $NetBSD: patch-at,v 1.1 2001/04/05 13:57:17 wiz Exp $
infofg, infobg, hicol, locol, "Opaque", NULL);
MBCreate(&padMthdMB, popW, 100-2+44, 10, 140, 19, NULL,
-@@ -258,9 +258,9 @@
+@@ -258,9 +258,9 @@ static int doPopUp(txt, labels, n, popty
else if (poptyp == ISPAD) {
BTSetActive(&bts[0], (int) strlen(gsBuf));
i = pWIDE * 3; RANGE(i,2048,9999);
@@ -32,7 +38,7 @@ $NetBSD: patch-at,v 1.1 2001/04/05 13:57:17 wiz Exp $
DSetActive(&padWDial, (padMode!=PAD_LOAD)); /* DSetRange activates dial */
DSetActive(&padHDial, (padMode!=PAD_LOAD));
-@@ -465,9 +465,9 @@
+@@ -465,9 +465,9 @@ int PadPopUp(pMode, pStr, pWide,pHigh, p
changedGSBuf(); /* careful! popW doesn't exist yet! */
if (padHaveDooDads) {
@@ -45,7 +51,7 @@ $NetBSD: patch-at,v 1.1 2001/04/05 13:57:17 wiz Exp $
}
else { oldW = pWIDE; oldH = pHIGH; oldO = 100; }
-@@ -486,9 +486,9 @@
+@@ -486,9 +486,9 @@ int PadPopUp(pMode, pStr, pWide,pHigh, p
}
if (rv == 1) { /* cancelled: restore normal values */
@@ -58,7 +64,7 @@ $NetBSD: patch-at,v 1.1 2001/04/05 13:57:17 wiz Exp $
}
XUnmapWindow(theDisp, padWDial.win);
-@@ -498,9 +498,9 @@
+@@ -498,9 +498,9 @@ int PadPopUp(pMode, pStr, pWide,pHigh, p
/* load up return values */
*pMode = padMode;
*pStr = padBuf;
@@ -71,7 +77,7 @@ $NetBSD: patch-at,v 1.1 2001/04/05 13:57:17 wiz Exp $
*pOmode = padOMode;
return rv;
-@@ -972,8 +972,8 @@
+@@ -973,8 +973,8 @@ static void clickPUD(x,y)
else if (popUp == ISPAD) {
if (PTINRECT(x, y, padDButt.x, padDButt.y, padDButt.w, padDButt.h)) {
if (BTTrack(&padDButt)) {
diff --git a/graphics/xv/patches/patch-ay b/graphics/xv/patches/patch-ay
new file mode 100644
index 00000000000..71892e60565
--- /dev/null
+++ b/graphics/xv/patches/patch-ay
@@ -0,0 +1,18 @@
+$NetBSD: patch-ay,v 1.1 2004/03/29 00:50:41 dillo Exp $
+
+This patch is based on
+ftp://ftp.trilon.com/pub/xv/patches/longname.patch
+
+--------------------------
+
+
+--- xvtext.c.orig Sat Jan 14 00:46:28 1995
++++ xvtext.c
+@@ -293,6 +293,7 @@ void OpenTextView(text, len, title, free
+ tv->textlen = len;
+ tv->freeonclose = freeonclose;
+ strncpy(tv->title, title, (size_t) TITLELEN-1);
++ tv->title[TITLELEN-1] = '\0';
+
+ computeText(tv); /* compute # lines and linestarts array */
+