diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/diffutils/diffutils_2.8.1.bb | 15 | ||||
-rw-r--r-- | packages/dosfstools/dosfstools-native_2.10.bb | 5 | ||||
-rw-r--r-- | packages/dosfstools/files/2.6.20-syscall.patch | 65 | ||||
-rw-r--r-- | packages/less/less_418.bb | 2 |
4 files changed, 83 insertions, 4 deletions
diff --git a/packages/diffutils/diffutils_2.8.1.bb b/packages/diffutils/diffutils_2.8.1.bb index a0a7b7dad9..584188c2a3 100644 --- a/packages/diffutils/diffutils_2.8.1.bb +++ b/packages/diffutils/diffutils_2.8.1.bb @@ -3,7 +3,7 @@ LICENSE = "GPL" DESCRIPTION = "Diffutils contains the GNU diff, diff3, \ sdiff, and cmp utilities. These programs are usually \ used for creating patch files." -PR = "r2" +PR = "r3" SRC_URI = "${GNU_MIRROR}/diffutils/diffutils-${PV}.tar.gz" @@ -18,8 +18,21 @@ EXTRA_OECONF_linux-uclibc = "--without-included-regex" do_install_append () { mv ${D}${bindir}/diff ${D}${bindir}/diff.${PN} + mv ${D}${bindir}/cmp ${D}${bindir}/cmp.${PN} } ALTERNATIVE_NAME = "diff" ALTERNATIVE_PATH = "diff.${PN}" ALTERNATIVE_PRIORITY = "100" + +pkg_postinst_${PN} () { + +update-alternatives --install /usr/bin/cmp cmp cmp.diffutils 100 + +} + +pkg_postrm_${PN} () { + +update-alternatives --remove cmp cmp.diffutils + +} diff --git a/packages/dosfstools/dosfstools-native_2.10.bb b/packages/dosfstools/dosfstools-native_2.10.bb index 62709916fc..1fbbe37c76 100644 --- a/packages/dosfstools/dosfstools-native_2.10.bb +++ b/packages/dosfstools/dosfstools-native_2.10.bb @@ -7,7 +7,7 @@ FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/dosfstools-${PV}" S="${WORKDIR}/dosfstools-${PV}" -PR="r3" +PR="r4" SRC_URI = "ftp://ftp.uni-erlangen.de/pub/Linux/LOCAL/dosfstools/dosfstools-${PV}.src.tar.gz \ file://mkdosfs-bootcode.patch;patch=1 \ @@ -16,7 +16,8 @@ SRC_URI = "ftp://ftp.uni-erlangen.de/pub/Linux/LOCAL/dosfstools/dosfstools-${PV} file://dosfstools-2.10-kernel-2.6.patch;patch=1 \ file://msdos_fat12_undefined.patch;patch=1 \ file://dosfstools-msdos_fs-types.patch;patch=1 \ - file://include-linux-types.patch;patch=1" + file://include-linux-types.patch;patch=1 \ + file://2.6.20-syscall.patch;patch=1" inherit native diff --git a/packages/dosfstools/files/2.6.20-syscall.patch b/packages/dosfstools/files/2.6.20-syscall.patch new file mode 100644 index 0000000000..7cf2662d27 --- /dev/null +++ b/packages/dosfstools/files/2.6.20-syscall.patch @@ -0,0 +1,65 @@ +Index: dosfstools-2.10/dosfsck/io.c +=================================================================== +--- dosfstools-2.10.orig/dosfsck/io.c 2007-06-07 16:15:52.000000000 +0200 ++++ dosfstools-2.10/dosfsck/io.c 2007-06-07 16:16:06.000000000 +0200 +@@ -42,28 +42,11 @@ + /* Use the _llseek system call directly, because there (once?) was a bug in + * the glibc implementation of it. */ + #include <linux/unistd.h> +-#if defined __alpha || defined __ia64__ || defined __s390x__ || defined __x86_64__ || defined __ppc64__ + /* On alpha, the syscall is simply lseek, because it's a 64 bit system. */ + static loff_t llseek( int fd, loff_t offset, int whence ) + { + return lseek(fd, offset, whence); + } +-#else +-# ifndef __NR__llseek +-# error _llseek system call not present +-# endif +-static _syscall5( int, _llseek, uint, fd, ulong, hi, ulong, lo, +- loff_t *, res, uint, wh ); +- +-static loff_t llseek( int fd, loff_t offset, int whence ) +-{ +- loff_t actual; +- +- if (_llseek(fd, offset>>32, offset&0xffffffff, &actual, whence) != 0) +- return (loff_t)-1; +- return actual; +-} +-#endif + + + void fs_open(char *path,int rw) +Index: dosfstools-2.10/mkdosfs/mkdosfs.c +=================================================================== +--- dosfstools-2.10.orig/mkdosfs/mkdosfs.c 2007-06-07 16:15:11.000000000 +0200 ++++ dosfstools-2.10/mkdosfs/mkdosfs.c 2007-06-07 16:15:30.000000000 +0200 +@@ -116,27 +116,11 @@ + /* Use the _llseek system call directly, because there (once?) was a bug in + * the glibc implementation of it. */ + #include <linux/unistd.h> +-#if defined __alpha || defined __ia64__ || defined __s390x__ || defined __x86_64__ || defined __ppc64__ + /* On alpha, the syscall is simply lseek, because it's a 64 bit system. */ + static loff_t llseek( int fd, loff_t offset, int whence ) + { + return lseek(fd, offset, whence); + } +-#else +-# ifndef __NR__llseek +-# error _llseek system call not present +-# endif +-static _syscall5( int, _llseek, uint, fd, ulong, hi, ulong, lo, +- loff_t *, res, uint, wh ); +-static loff_t llseek( int fd, loff_t offset, int whence ) +-{ +- loff_t actual; +- +- if (_llseek(fd, offset>>32, offset&0xffffffff, &actual, whence) != 0) +- return (loff_t)-1; +- return actual; +-} +-#endif + + #define ROUND_UP(value, divisor) (value + (divisor - (value % divisor))) / divisor + diff --git a/packages/less/less_418.bb b/packages/less/less_418.bb index c19a41e63d..d63e2c3290 100644 --- a/packages/less/less_418.bb +++ b/packages/less/less_418.bb @@ -6,7 +6,7 @@ SECTION = "console/utils" LICENSE = "BSD" DEPENDS = "ncurses" -SRC_URI = "${GNU_MIRROR}/less/less-${PV}.tar.gz " +SRC_URI = "${GNU_MIRROR}/less/less-${PV}.tar.gz" inherit autotools update-alternatives |