diff options
author | Luigi Rizzo <luigi@FreeBSD.org> | 2008-12-31 11:43:34 +0000 |
---|---|---|
committer | Luigi Rizzo <luigi@FreeBSD.org> | 2008-12-31 11:43:34 +0000 |
commit | c7564382f2023b684287ec4e7e62fd8f2ba9cd02 (patch) | |
tree | e62f20ef50681e2e549bbedfd5371b2358d4cfa1 /sysutils/syslinux/files/patch-2 | |
parent | Add a fix for the following bugs: (diff) |
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/
Notes
Notes:
svn path=/head/; revision=225051
Diffstat (limited to 'sysutils/syslinux/files/patch-2')
-rw-r--r-- | sysutils/syslinux/files/patch-2 | 41 |
1 files changed, 41 insertions, 0 deletions
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; + |