From c7564382f2023b684287ec4e7e62fd8f2ba9cd02 Mon Sep 17 00:00:00 2001 From: Luigi Rizzo Date: Wed, 31 Dec 2008 11:43:34 +0000 Subject: The syslinux program installs a linux bootloader on a FAT-formatted filesystem or disk image. This FreeBSD port can additionally operate on plain files containing a FAT image, thus requiring no special privilege. The program relies on mtools to perform the manipulation of the FAT filesystem. WWW: http://syslinux.zytor.com/ --- sysutils/syslinux/files/patch-2 | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 sysutils/syslinux/files/patch-2 (limited to 'sysutils/syslinux/files/patch-2') diff --git a/sysutils/syslinux/files/patch-2 b/sysutils/syslinux/files/patch-2 new file mode 100644 index 000000000000..4242be4ea0ad --- /dev/null +++ b/sysutils/syslinux/files/patch-2 @@ -0,0 +1,41 @@ +diff -ubwr ../../work/syslinux-3.72/libinstaller/bin2c.pl ./libinstaller/bin2c.pl +--- ../../work/syslinux-3.72/libinstaller/bin2c.pl 2008-09-26 01:46:02.000000000 +0200 ++++ ./libinstaller/bin2c.pl 2008-11-26 13:32:45.000000000 +0100 +@@ -27,7 +27,7 @@ + + $pad = 1 if ($pad < 1); + +-printf "unsigned char %s[] = {\n", $table_name; ++printf "static unsigned char _%s[] = {\n", $table_name; + + $pos = 0; + $linelen = 8; +@@ -74,5 +74,6 @@ + @st = stat STDIN; + + printf "\nint %s_mtime = %d;\n", $table_name, $st[9]; ++printf "\nunsigned char *%s = _%s;\n", $table_name, $table_name; + + exit 0; +diff -ubwr ../../work/syslinux-3.72/libinstaller/syslinux.h ./libinstaller/syslinux.h +--- ../../work/syslinux-3.72/libinstaller/syslinux.h 2008-09-26 01:46:02.000000000 +0200 ++++ ./libinstaller/syslinux.h 2008-11-26 13:32:23.000000000 +0100 +@@ -17,15 +17,15 @@ + #include "advconst.h" + + /* The standard boot sector and ldlinux image */ +-extern unsigned char syslinux_bootsect[]; ++extern unsigned char *syslinux_bootsect; + extern unsigned int syslinux_bootsect_len; + extern int syslinux_bootsect_mtime; + +-extern unsigned char syslinux_ldlinux[]; ++extern unsigned char *syslinux_ldlinux; + extern unsigned int syslinux_ldlinux_len; + extern int syslinux_ldlinux_mtime; + +-extern unsigned char syslinux_mbr[]; ++extern unsigned char *syslinux_mbr; + extern unsigned int syslinux_mbr_len; + extern int syslinux_mbr_mtime; + -- cgit v1.2.3