summaryrefslogtreecommitdiffstats
path: root/korean/mkisofs/files
diff options
context:
space:
mode:
authorcjh <cjh@FreeBSD.org>2001-03-23 06:54:07 +0000
committercjh <cjh@FreeBSD.org>2001-03-23 06:54:07 +0000
commit8597b0b1828e191252b6315d75282632bcb0bd97 (patch)
tree6483d3c28e9cb4c917fd6b8c3cf3a85ed59ee9d2 /korean/mkisofs/files
parent41533b2df1e73ac929db61753212bdda859d3e8b (diff)
downloadFreeBSD-ports-8597b0b1828e191252b6315d75282632bcb0bd97.zip
FreeBSD-ports-8597b0b1828e191252b6315d75282632bcb0bd97.tar.gz
ko-mkisofs, with Korean charset conversion support, activated.
Diffstat (limited to 'korean/mkisofs/files')
-rw-r--r--korean/mkisofs/files/patch-ac11
-rw-r--r--korean/mkisofs/files/patch-ad31
-rw-r--r--korean/mkisofs/files/patch-aj41
-rw-r--r--korean/mkisofs/files/patch-bb13
-rw-r--r--korean/mkisofs/files/patch-bc42
-rw-r--r--korean/mkisofs/files/patch-bd47
-rw-r--r--korean/mkisofs/files/patch-be33
7 files changed, 218 insertions, 0 deletions
diff --git a/korean/mkisofs/files/patch-ac b/korean/mkisofs/files/patch-ac
new file mode 100644
index 0000000..c729a75
--- /dev/null
+++ b/korean/mkisofs/files/patch-ac
@@ -0,0 +1,11 @@
+--- include/schily.h.orig Mon Aug 30 16:50:46 1999
++++ include/schily.h Sat Sep 18 17:25:57 1999
+@@ -34,7 +34,7 @@
+ #define _SCHILY_H
+
+ #ifndef _STANDARD_H
+-#include <standard.h.h>
++#include <standard.h>
+ #endif
+
+ #if defined(_SIZE_T) || defined(_T_SIZE_) || defined(_T_SIZE) || \
diff --git a/korean/mkisofs/files/patch-ad b/korean/mkisofs/files/patch-ad
new file mode 100644
index 0000000..7b89394
--- /dev/null
+++ b/korean/mkisofs/files/patch-ad
@@ -0,0 +1,31 @@
+--- RULES/i386-freebsd-cc.rul.orig Sun Aug 29 16:09:56 1999
++++ RULES/i386-freebsd-cc.rul Wed Sep 22 13:21:08 1999
+@@ -24,7 +24,8 @@
+ ###########################################################################
+
+ CPPFLAGS= $(CPPOPTS) $(CPPOPTX)
+-CFLAGS= $(COPTS) $(CWARNOPTS) $(COPTOPT) $(COPTX)
++XCFLAGS:= $(CFLAGS)
++CFLAGS= $(COPTS) $(CWARNOPTS) $(XCFLAGS) $(COPTX)
+
+ CPPOPTS= -I. -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS)
+ COPTS=
+@@ -57,14 +58,13 @@
+
+ FLOAT_OPTIONS=
+
+-CC= @echo " ==> COMPILING \"$@\""; gcc
+-LDCC= @echo " ==> LINKING \"$@\""; gcc
+-DYNLD= @echo " ==> LINKING dynamic library \"$@\""; gcc
+-RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib
++LDCC= $(CC)
++DYNLD= $(CC)
++RANLIB= ranlib
+ ARFLAGS= cr
+ LORDER= lorder
+ TSORT= tsort
+
+ RMDEP= :
+-MKDEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); gcc -M
++MKDEP= $(CC) -M
+ MKDEP_OUT=
diff --git a/korean/mkisofs/files/patch-aj b/korean/mkisofs/files/patch-aj
new file mode 100644
index 0000000..9e9fcad
--- /dev/null
+++ b/korean/mkisofs/files/patch-aj
@@ -0,0 +1,41 @@
+--- lib/cvt.c.orig Wed Sep 8 15:03:20 1999
++++ lib/cvt.c Sun Feb 25 10:06:50 2001
+@@ -31,7 +31,7 @@
+ #include <standard.h>
+
+ #ifdef HAVE_DTOA /* 4.4BSD floating point implementation */
+-extern char *__dtoa __PR((double value, int mode, int ndigit, int *decpt, int *sign, char **ep));
++extern char *__dtoa __PR((double value, int mode, int ndigit, int *decpt, int *sign, char **ep, char **resultp));
+ #endif
+
+ #ifndef HAVE_ECVT
+@@ -57,7 +57,13 @@
+ static char *buf;
+ char *bufend;
+ char *ep;
+- char *bp = __dtoa(value, 2, ndigit, decpt, sign, &ep);
++ char *bp;
++ static char *dtoaresult = NULL;
++
++ free(dtoaresult);
++ dtoaresult = NULL;
++
++ bp = __dtoa(value, 2, ndigit, decpt, sign, &ep, &dtoaresult);
+
+ if (value == 0.0) {
+ /*
+@@ -102,7 +108,13 @@
+ static char *buf;
+ char *bufend;
+ char *ep;
+- char *bp = __dtoa(value, 3, ndigit, decpt, sign, &ep);
++ char *bp;
++ static char *dtoaresult = NULL;
++
++ free(dtoaresult);
++ dtoaresult = NULL;
++
++ bp = __dtoa(value, 3, ndigit, decpt, sign, &ep, &dtoaresult);
+
+ if (value == 0.0) {
+ /*
diff --git a/korean/mkisofs/files/patch-bb b/korean/mkisofs/files/patch-bb
new file mode 100644
index 0000000..b37ea2f
--- /dev/null
+++ b/korean/mkisofs/files/patch-bb
@@ -0,0 +1,13 @@
+--- mkisofs/tree.c.orig Thu Apr 27 11:44:57 2000
++++ mkisofs/tree.c Sat Apr 29 11:34:23 2000
+@@ -538,8 +538,8 @@
+ table->de_flags |= INHIBIT_JOLIET_ENTRY;
+ /* table->name = strdup("<translation table>");*/
+ table->name = strdup(trans_tbl);
+- table->table = (char *) e_malloc(ISO_ROUND_UP(tablesize));
+- memset(table->table, 0, ISO_ROUND_UP(tablesize));
++ table->table = (char *) e_malloc(ISO_ROUND_UP(tablesize+1));
++ memset(table->table, 0, ISO_ROUND_UP(tablesize+1));
+ iso9660_file_length(trans_tbl, table, 0);
+
+ if (use_RockRidge) {
diff --git a/korean/mkisofs/files/patch-bc b/korean/mkisofs/files/patch-bc
new file mode 100644
index 0000000..b8e8c1f
--- /dev/null
+++ b/korean/mkisofs/files/patch-bc
@@ -0,0 +1,42 @@
+--- mkisofs/modes.c.orig Sun May 7 14:49:37 2000
++++ mkisofs/modes.c Thu Aug 17 21:02:57 2000
+@@ -58,7 +58,7 @@
+ int hdlen;
+ int len = 1; /* Nach SCSI Norm */
+ int try = 0;
+- struct scsi_mode_page_header *mp;
++ struct scg_scsi_mode_page_header *mp;
+
+ again:
+ fillbytes((caddr_t)mode, sizeof(mode), '\0');
+@@ -77,7 +77,7 @@
+ scgp->silent--;
+ return (FALSE);
+ } else {
+- len = ((struct scsi_mode_header *)mode)->sense_data_len + 1;
++ len = ((struct scg_scsi_mode_header *)mode)->sense_data_len + 1;
+ }
+ if (mode_sense(scgp, mode, len, page, 0) < 0) { /* Page n current */
+ scgp->silent--;
+@@ -87,9 +87,9 @@
+
+ if (scgp->verbose)
+ scsiprbytes("Mode Sense Data", mode, len - scsigetresid(scgp));
+- hdlen = sizeof(struct scsi_mode_header) +
+- ((struct scsi_mode_header *)mode)->blockdesc_len;
+- mp = (struct scsi_mode_page_header *)(mode + hdlen);
++ hdlen = sizeof(struct scg_scsi_mode_header) +
++ ((struct scg_scsi_mode_header *)mode)->blockdesc_len;
++ mp = (struct scg_scsi_mode_page_header *)(mode + hdlen);
+ if (scgp->verbose)
+ scsiprbytes("Mode Page Data", (u_char *)mp, mp->p_len+2);
+
+@@ -223,7 +223,7 @@
+ ((struct scsi_modesel_header *)modep)->sense_data_len = 0;
+ ((struct scsi_modesel_header *)modep)->res2 = 0;
+
+- i = ((struct scsi_mode_header *)modep)->blockdesc_len;
++ i = ((struct scg_scsi_mode_header *)modep)->blockdesc_len;
+ if (i > 0) {
+ i_to_3_byte(
+ ((struct scsi_mode_data *)modep)->blockdesc.nlblock,
diff --git a/korean/mkisofs/files/patch-bd b/korean/mkisofs/files/patch-bd
new file mode 100644
index 0000000..12e6425
--- /dev/null
+++ b/korean/mkisofs/files/patch-bd
@@ -0,0 +1,47 @@
+--- libscg/scg/scsireg.h.orig Sun May 28 23:31:20 2000
++++ libscg/scg/scsireg.h Thu Aug 17 20:31:45 2000
+@@ -170,7 +170,7 @@
+
+ #if defined(_BIT_FIELDS_LTOH) /* Intel byteorder */
+
+-struct scsi_mode_header {
++struct scg_scsi_mode_header {
+ Ucbit sense_data_len : 8;
+ u_char medium_type;
+ Ucbit res2 : 4;
+@@ -182,7 +182,7 @@
+
+ #else /* Motorola byteorder */
+
+-struct scsi_mode_header {
++struct scg_scsi_mode_header {
+ Ucbit sense_data_len : 8;
+ u_char medium_type;
+ Ucbit write_prot : 1;
+@@ -244,7 +244,7 @@
+
+ #if defined(_BIT_FIELDS_LTOH) /* Intel byteorder */
+
+-struct scsi_mode_page_header {
++struct scg_scsi_mode_page_header {
+ Ucbit p_code : 6;
+ Ucbit res : 1;
+ Ucbit parsave : 1;
+@@ -262,7 +262,7 @@
+
+ #else /* Motorola byteorder */
+
+-struct scsi_mode_page_header {
++struct scg_scsi_mode_page_header {
+ Ucbit parsave : 1;
+ Ucbit res : 1;
+ Ucbit p_code : 6;
+@@ -988,7 +988,7 @@
+
+
+ struct scsi_mode_data {
+- struct scsi_mode_header header;
++ struct scg_scsi_mode_header header;
+ struct scsi_mode_blockdesc blockdesc;
+ union pagex {
+ struct acb_mode_data acb;
diff --git a/korean/mkisofs/files/patch-be b/korean/mkisofs/files/patch-be
new file mode 100644
index 0000000..422bb3d
--- /dev/null
+++ b/korean/mkisofs/files/patch-be
@@ -0,0 +1,33 @@
+--- mkisofs/scsi_cdr.c.orig Sun Jul 2 23:11:23 2000
++++ mkisofs/scsi_cdr.c Thu Aug 17 21:02:04 2000
+@@ -1791,7 +1791,7 @@
+ int secsize;
+ {
+ struct scsi_mode_data md;
+- int count = sizeof(struct scsi_mode_header) +
++ int count = sizeof(struct scg_scsi_mode_header) +
+ sizeof(struct scsi_mode_blockdesc);
+
+ (void)test_unit_ready(scgp); /* clear any error situation */
+@@ -2462,8 +2462,8 @@
+ return (NULL);
+
+ mp = (struct cd_mode_page_2A *)
+- (mode + sizeof(struct scsi_mode_header) +
+- ((struct scsi_mode_header *)mode)->blockdesc_len);
++ (mode + sizeof(struct scg_scsi_mode_header) +
++ ((struct scg_scsi_mode_header *)mode)->blockdesc_len);
+
+ /*
+ * Do some heuristics against pre SCSI-3/mmc VU page 2A
+@@ -2481,8 +2481,8 @@
+ if (val != 0 && val < 176)
+ return (NULL);
+
+- len -= sizeof(struct scsi_mode_header) +
+- ((struct scsi_mode_header *)mode)->blockdesc_len;
++ len -= sizeof(struct scg_scsi_mode_header) +
++ ((struct scg_scsi_mode_header *)mode)->blockdesc_len;
+ if (modep)
+ mp2 = (struct cd_mode_page_2A *)modep;
+ else
OpenPOWER on IntegriCloud