Browse Source

update to latest stable upstream, fix uclibc/musl issues

Waldemar Brodkorb 11 years ago
parent
commit
1ebda4d177

+ 3 - 3
package/util-linux/Makefile

@@ -4,13 +4,13 @@
 include ${TOPDIR}/rules.mk
 
 PKG_NAME:=		util-linux
-PKG_VERSION:=		2.22.2
+PKG_VERSION:=		2.23.2
 PKG_RELEASE:=		1
-PKG_MD5SUM:=		eeacbfdd2556acd899a2d0ffdb446185
+PKG_MD5SUM:=		b39fde897334a4858bb2098edcce5b3f
 PKG_DESCR:=		Linux utilities
 PKG_SECTION:=		fs
 PKG_BUILDDEP:=		ncurses
-PKG_SITES:=		http://www.kernel.org/pub/linux/utils/util-linux/v2.22/
+PKG_SITES:=		http://www.kernel.org/pub/linux/utils/util-linux/v2.23/
 PKG_NOPARALLEL:=	1
 
 DISTFILES:=		$(PKG_NAME)-$(PKG_VERSION).tar.xz

+ 0 - 11
package/util-linux/patches/patch-Makefile_in

@@ -1,11 +0,0 @@
---- util-linux-2.22.2.orig/Makefile.in	2012-12-13 12:19:40.000000000 +0100
-+++ util-linux-2.22.2/Makefile.in	2013-02-28 14:08:40.000000000 +0100
-@@ -83,7 +83,7 @@ bin_PROGRAMS = $(am__EXEEXT_1) $(am__EXE
- sbin_PROGRAMS = $(am__EXEEXT_27) $(am__EXEEXT_28) $(am__EXEEXT_29) \
- 	$(am__EXEEXT_30) $(am__EXEEXT_31) $(am__EXEEXT_32) \
- 	$(am__EXEEXT_33) $(am__EXEEXT_34) $(am__EXEEXT_35) \
--	$(am__EXEEXT_36) $(am__EXEEXT_37) fsck.minix$(EXEEXT) \
-+	$(am__EXEEXT_36) $(am__EXEEXT_37) \
- 	mkfs.minix$(EXEEXT) mkfs$(EXEEXT) mkfs.bfs$(EXEEXT) \
- 	mkswap$(EXEEXT) $(am__EXEEXT_38) $(am__EXEEXT_39) \
- 	$(am__EXEEXT_40) $(am__EXEEXT_41) $(am__EXEEXT_42) \

+ 13 - 0
package/util-linux/patches/patch-fdisks_cfdisk_c

@@ -0,0 +1,13 @@
+patch taken from sabotage linux -- https://github.com/rofl0r/sabotage
+
+--- util-linux-2.23.2.orig/fdisks/cfdisk.c	2013-07-30 10:39:26.000000000 +0200
++++ util-linux-2.23.2/fdisks/cfdisk.c	2013-08-14 12:42:25.000000000 +0200
+@@ -325,7 +325,7 @@ int num_parts = 0;
+ int logical = 0;
+ long long logical_sectors[MAXIMUM_PARTS];
+ 
+-__sighandler_t old_SIGINT, old_SIGTERM;
++sighandler_t old_SIGINT, old_SIGTERM;
+ 
+ int arrow_cursor = FALSE;
+ int display_units = MEGABYTES;

+ 30 - 0
package/util-linux/patches/patch-fdisks_fdisksunlabel_c

@@ -0,0 +1,30 @@
+patch taken from sabotage linux -- https://github.com/rofl0r/sabotage
+
+--- util-linux-2.23.2.orig/fdisks/fdisksunlabel.c	2013-07-30 10:39:26.000000000 +0200
++++ util-linux-2.23.2/fdisks/fdisksunlabel.c	2013-08-14 12:38:12.000000000 +0200
+@@ -383,9 +383,11 @@ static void fetch_sun(struct fdisk_conte
+ 	}
+ }
+ 
+-static int verify_sun_cmp(int *a, int *b, void *data)
++static void* cmp_data;
++static int verify_sun_cmp(const void *pa, const void *pb)
+ {
+-    unsigned int *verify_sun_starts = (unsigned int *) data;
++    const int *a = pa, *b = pb;
++    unsigned int *verify_sun_starts = (unsigned int *) cmp_data;	
+ 
+     if (*a == -1)
+ 	    return 1;
+@@ -449,9 +451,8 @@ static int sun_verify_disklabel(struct f
+         else
+             array[i] = -1;
+     }
+-    qsort_r(array,ARRAY_SIZE(array),sizeof(array[0]),
+-	  (int (*)(const void *,const void *,void *)) verify_sun_cmp,
+-	  verify_sun_starts);
++    cmp_data = verify_sun_starts;
++    qsort(array,ARRAY_SIZE(array),sizeof(array[0]), verify_sun_cmp);
+ 
+     if (array[0] == -1) {
+ 	fdisk_info(cxt, _("No partitions defined"));

+ 12 - 0
package/util-linux/patches/patch-include_ttyutils_h

@@ -0,0 +1,12 @@
+patch taken from sabotage linux -- https://github.com/rofl0r/sabotage
+
+--- util-linux-2.23.2.orig/include/ttyutils.h	2013-07-15 10:25:46.000000000 +0200
++++ util-linux-2.23.2/include/ttyutils.h	2013-08-14 12:31:25.000000000 +0200
+@@ -10,6 +10,7 @@
+ #include <stdlib.h>
+ #include <termios.h>
+ #include <limits.h>
++#include <sys/ttydefaults.h>
+ #ifdef HAVE_SYS_IOCTL_H
+ #include <sys/ioctl.h>
+ #endif

+ 14 - 0
package/util-linux/patches/patch-lib_fileutils_c

@@ -0,0 +1,14 @@
+--- util-linux-2.23.2.orig/lib/fileutils.c	2013-06-13 09:46:10.000000000 +0200
++++ util-linux-2.23.2/lib/fileutils.c	2013-08-14 11:58:47.000000000 +0200
+@@ -37,7 +37,11 @@ int xmkstemp(char **tmpname, char *dir)
+ 		xasprintf(&localtmp, "%s/%s.XXXXXX", _PATH_TMP,
+ 			  program_invocation_short_name);
+ 	old_mode = umask(077);
++#if defined(__GLIBC__) && !defined(__UCLIBC__)
+ 	fd = mkostemp(localtmp, O_RDWR|O_CREAT|O_EXCL|O_CLOEXEC);
++#else
++	fd = mkstemp(localtmp);
++#endif
+ 	umask(old_mode);
+ 	if (fd == -1) {
+ 		free(localtmp);

+ 14 - 0
package/util-linux/patches/patch-libblkid_src_save_c

@@ -0,0 +1,14 @@
+--- util-linux-2.23.2.orig/libblkid/src/save.c	2013-07-30 10:39:26.000000000 +0200
++++ util-linux-2.23.2/libblkid/src/save.c	2013-08-14 11:59:06.000000000 +0200
+@@ -110,7 +110,11 @@ int blkid_flush_cache(blkid_cache cache)
+ 		tmp = malloc(strlen(filename) + 8);
+ 		if (tmp) {
+ 			sprintf(tmp, "%s-XXXXXX", filename);
++#if defined(__GLIBC__) && !defined(__UCLIBC__)
+ 			fd = mkostemp(tmp, O_RDWR|O_CREAT|O_EXCL|O_CLOEXEC);
++#else
++			fd = mkstemp(tmp);
++#endif
+ 			if (fd >= 0) {
+ 				if (fchmod(fd, 0644) != 0)
+ 					DBG(SAVE, blkid_debug("%s: fchmod failed", filename));

+ 5 - 5
package/util-linux/patches/patch-libmount_src_tab_parse_c

@@ -1,5 +1,5 @@
---- util-linux-2.22.2.orig/libmount/src/tab_parse.c	2012-12-12 21:04:47.000000000 +0100
-+++ util-linux-2.22.2/libmount/src/tab_parse.c	2013-02-28 14:34:10.000000000 +0100
+--- util-linux-2.23.2.orig/libmount/src/tab_parse.c	2013-07-30 10:39:26.000000000 +0200
++++ util-linux-2.23.2/libmount/src/tab_parse.c	2013-08-14 11:39:26.000000000 +0200
 @@ -16,6 +16,8 @@
  #include <dirent.h>
  #include <fcntl.h>
@@ -62,9 +62,9 @@
  			"%n",		/* number of read bytes */
  
  			&fs->id,
-@@ -162,10 +172,14 @@ static int mnt_parse_mountinfo_line(stru
- 		return -EINVAL;
- 	}
+@@ -164,10 +174,14 @@ static int mnt_parse_mountinfo_line(stru
+ 	if (p > s + 1)
+ 		fs->opt_fields = strndup(s + 1, p - s - 1);
  	s = p + 3;
 +	len           = strlen (s) + 1;
 +	fstype        = malloc (sizeof *fstype * len);

+ 14 - 0
package/util-linux/patches/patch-libmount_src_utils_c

@@ -0,0 +1,14 @@
+--- util-linux-2.23.2.orig/libmount/src/utils.c	2013-07-30 11:15:27.000000000 +0200
++++ util-linux-2.23.2/libmount/src/utils.c	2013-08-14 11:58:25.000000000 +0200
+@@ -842,7 +842,11 @@ int mnt_open_uniq_filename(const char *f
+ 	 */
+ 	oldmode = umask(S_IRGRP|S_IWGRP|S_IXGRP|
+ 			S_IROTH|S_IWOTH|S_IXOTH);
++#if defined(__GLIBC__) && !defined(__UCLIBC__)
+ 	fd = mkostemp(n, O_RDWR|O_CREAT|O_EXCL|O_CLOEXEC);
++#else
++	fd = mkstemp(n);
++#endif
+ 	umask(oldmode);
+ 
+ 	if (fd >= 0 && name)

+ 13 - 0
package/util-linux/patches/patch-term-utils_setterm_c

@@ -0,0 +1,13 @@
+patch taken from sabotage linux -- https://github.com/rofl0r/sabotage
+
+--- util-linux-2.23.2.orig/term-utils/setterm.c	2013-06-13 09:46:10.000000000 +0200
++++ util-linux-2.23.2/term-utils/setterm.c	2013-08-14 12:47:43.000000000 +0200
+@@ -123,7 +123,7 @@
+ #include "nls.h"
+ #include "closestream.h"
+ 
+-#if __GNU_LIBRARY__ < 5
++#if defined(__GNU_LIBRARY__) && __GNU_LIBRARY__ < 5
+ #ifndef __alpha__
+ # include <linux/unistd.h>
+ #define __NR_klogctl __NR_syslog

+ 12 - 0
package/util-linux/patches/patch-term-utils_ttymsg_c

@@ -0,0 +1,12 @@
+patch taken from sabotage linux -- https://github.com/rofl0r/sabotage
+
+--- util-linux-2.23.2.orig/term-utils/ttymsg.c	2013-07-30 10:39:26.000000000 +0200
++++ util-linux-2.23.2/term-utils/ttymsg.c	2013-08-14 12:50:50.000000000 +0200
+@@ -41,6 +41,7 @@
+   */
+ 
+ #include <sys/types.h>
++#include <sys/param.h>
+ #include <sys/uio.h>
+ #include <signal.h>
+ #include <fcntl.h>

+ 12 - 0
package/util-linux/patches/patch-text-utils_hexdump_h

@@ -0,0 +1,12 @@
+patch taken from sabotage linux -- https://github.com/rofl0r/sabotage
+
+--- util-linux-2.23.2.orig/text-utils/hexdump.h	2013-07-30 10:39:26.000000000 +0200
++++ util-linux-2.23.2/text-utils/hexdump.h	2013-08-14 12:44:31.000000000 +0200
+@@ -33,6 +33,7 @@
+  *	@(#)hexdump.h	5.4 (Berkeley) 6/1/90
+  */
+ 
++#include <sys/types.h>
+ typedef struct _pr {
+ 	struct _pr *nextpr;		/* next print unit */
+ #define	F_ADDRESS	0x001		/* print offset */

+ 13 - 0
package/util-linux/patches/patch-text-utils_pg_c

@@ -0,0 +1,13 @@
+patch taken from sabotage linux -- https://github.com/rofl0r/sabotage
+
+--- util-linux-2.23.2.orig/text-utils/pg.c	2013-07-30 10:39:26.000000000 +0200
++++ util-linux-2.23.2/text-utils/pg.c	2013-08-14 12:44:55.000000000 +0200
+@@ -37,7 +37,7 @@
+ #ifndef	TIOCGWINSZ
+ # include <sys/ioctl.h>
+ #endif
+-#include <sys/termios.h>
++#include <termios.h>
+ #include <fcntl.h>
+ #include <regex.h>
+ #include <stdio.h>