diff options
author | 2012-10-11 04:31:47 +0000 | |
---|---|---|
committer | 2012-10-11 04:31:47 +0000 | |
commit | f78f91ee6197b7618bf31d8ff1dfc6c2ab00cd7b (patch) | |
tree | 8297f3fd1a9ecb4446db3322a112ef1d7ac403e4 /sys-apps/util-linux | |
parent | Remove missing libvirt-sandbox-0.1.0.ebuild from Manifest. (diff) | |
download | gentoo-2-f78f91ee6197b7618bf31d8ff1dfc6c2ab00cd7b.tar.gz gentoo-2-f78f91ee6197b7618bf31d8ff1dfc6c2ab00cd7b.tar.bz2 gentoo-2-f78f91ee6197b7618bf31d8ff1dfc6c2ab00cd7b.zip |
Switch to official upstream release.
(Portage version: 2.2.0_alpha131/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps/util-linux')
-rw-r--r-- | sys-apps/util-linux/ChangeLog | 10 | ||||
-rw-r--r-- | sys-apps/util-linux/files/util-linux-2.22-md5-aliasing.patch | 36 | ||||
-rw-r--r-- | sys-apps/util-linux/files/util-linux-2.22-sfdisk-aliasing.patch | 38 | ||||
-rw-r--r-- | sys-apps/util-linux/files/util-linux-2.22-umount-user.patch | 63 | ||||
-rw-r--r-- | sys-apps/util-linux/util-linux-2.22.1.ebuild (renamed from sys-apps/util-linux/util-linux-2.22-r1.ebuild) | 5 |
5 files changed, 10 insertions, 142 deletions
diff --git a/sys-apps/util-linux/ChangeLog b/sys-apps/util-linux/ChangeLog index b9ec74f105f6..fab439c4a69b 100644 --- a/sys-apps/util-linux/ChangeLog +++ b/sys-apps/util-linux/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for sys-apps/util-linux # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/util-linux/ChangeLog,v 1.405 2012/10/10 17:32:45 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/util-linux/ChangeLog,v 1.406 2012/10/11 04:31:47 vapier Exp $ + +*util-linux-2.22.1 (11 Oct 2012) + + 11 Oct 2012; Mike Frysinger <vapier@gentoo.org> +util-linux-2.22.1.ebuild, + -files/util-linux-2.22-md5-aliasing.patch, + -files/util-linux-2.22-sfdisk-aliasing.patch, + -files/util-linux-2.22-umount-user.patch, -util-linux-2.22-r1.ebuild: + Switch to official upstream release. *util-linux-2.22-r1 (10 Oct 2012) diff --git a/sys-apps/util-linux/files/util-linux-2.22-md5-aliasing.patch b/sys-apps/util-linux/files/util-linux-2.22-md5-aliasing.patch deleted file mode 100644 index bf0bc9dbadb2..000000000000 --- a/sys-apps/util-linux/files/util-linux-2.22-md5-aliasing.patch +++ /dev/null @@ -1,36 +0,0 @@ -From 70d1554726de505e476c3a24b6706881e74a0c67 Mon Sep 17 00:00:00 2001 -From: Mike Frysinger <vapier@gentoo.org> -Date: Wed, 10 Oct 2012 00:18:45 -0400 -Subject: [PATCH] md5: fix strict aliasing warnings - -This is the same fix as was merged in gcc/binutils where this code -appears to originate from. - -Signed-off-by: Mike Frysinger <vapier@gentoo.org> ---- - lib/md5.c | 9 ++++++--- - 1 file changed, 6 insertions(+), 3 deletions(-) - -diff --git a/lib/md5.c b/lib/md5.c -index 26ec4bb..488d16e 100644 ---- a/lib/md5.c -+++ b/lib/md5.c -@@ -138,9 +138,12 @@ void MD5Final(unsigned char digest[MD5LENGTH], struct MD5Context *ctx) - } - byteReverse(ctx->in, 14); - -- /* Append length in bits and transform */ -- ((uint32_t *) ctx->in)[14] = ctx->bits[0]; -- ((uint32_t *) ctx->in)[15] = ctx->bits[1]; -+ /* Append length in bits and transform. -+ * Use memcpy to avoid aliasing problems. On most systems, -+ * this will be optimized away to the same code. -+ */ -+ memcpy(&ctx->in[14 * sizeof(uint32_t)], &ctx->bits[0], 4); -+ memcpy(&ctx->in[15 * sizeof(uint32_t)], &ctx->bits[1], 4); - - MD5Transform(ctx->buf, (uint32_t *) ctx->in); - byteReverse((unsigned char *) ctx->buf, 4); --- -1.7.12 - diff --git a/sys-apps/util-linux/files/util-linux-2.22-sfdisk-aliasing.patch b/sys-apps/util-linux/files/util-linux-2.22-sfdisk-aliasing.patch deleted file mode 100644 index ef2bcca59c89..000000000000 --- a/sys-apps/util-linux/files/util-linux-2.22-sfdisk-aliasing.patch +++ /dev/null @@ -1,38 +0,0 @@ -From 24453f0bf4b96c19873f0aed91dbec04f349dd7c Mon Sep 17 00:00:00 2001 -From: Mike Frysinger <vapier@gentoo.org> -Date: Wed, 10 Oct 2012 00:25:11 -0400 -Subject: [PATCH] sfdisk: fix aliasing warnings - -Should compile down to the same code. - -Signed-off-by: Mike Frysinger <vapier@gentoo.org> ---- - fdisks/sfdisk.c | 10 ++++++---- - 1 file changed, 6 insertions(+), 4 deletions(-) - -diff --git a/fdisks/sfdisk.c b/fdisks/sfdisk.c -index 3450f52..e59d52a 100644 ---- a/fdisks/sfdisk.c -+++ b/fdisks/sfdisk.c -@@ -1561,12 +1561,14 @@ msdos_partition(char *dev, int fd, unsigned long start, struct disk_desc *z) { - return 0; - } - -- unsigned int sig = *(unsigned short *)(s->data + 2); -- if (sig <= 0x1ae -- && *(unsigned short *)(s->data + sig) == 0x55aa -- && (1 & *(unsigned char *)(s->data + sig + 2))) { -+ unsigned short sig, magic; -+ memcpy(&sig, s->data + 2, sizeof(sig)); -+ if (sig <= 0x1ae) { -+ memcpy(&magic, s->data + sig, sizeof(magic)); -+ if (magic == 0x55aa && (1 & *(unsigned char *)(s->data + sig + 2))) { - warnx(_("DM6 signature found - giving up\n")); - return 0; -+ } - } - - for (pno = 0; pno < 4; pno++, cp += sizeof(struct partition)) { --- -1.7.12 - diff --git a/sys-apps/util-linux/files/util-linux-2.22-umount-user.patch b/sys-apps/util-linux/files/util-linux-2.22-umount-user.patch deleted file mode 100644 index 1f61b8cfab0a..000000000000 --- a/sys-apps/util-linux/files/util-linux-2.22-umount-user.patch +++ /dev/null @@ -1,63 +0,0 @@ -https://bugs.gentoo.org/435540 - -From 4be900c51d371a7a41495e4eca2d29fc77c20c7c Mon Sep 17 00:00:00 2001 -From: Karel Zak <kzak@redhat.com> -Date: Wed, 12 Sep 2012 14:27:12 +0200 -Subject: [PATCH] libmount: don't remove user= when executed by root - -The original mount(8) allows to store arbitrary user= option to mtab -file if called by root user. For example: - - # mount -f foo /bar -t xxx -o rw,user=kzak - -the new mount removes the 'user=' and 'users' options at all for root -user. This is regression. The original functionality is necessary by -'sshfs' where fuse writes to mtab file by mount(8). - -Reported-by: Juergen Daubert <jue@jue.li> (and 'horrorStruck' on IRC) -Signed-off-by: Karel Zak <kzak@redhat.com> ---- - libmount/src/context_mount.c | 12 ++++-------- - 1 file changed, 4 insertions(+), 8 deletions(-) - -diff --git a/libmount/src/context_mount.c b/libmount/src/context_mount.c -index fdb459c..c665a05 100644 ---- a/libmount/src/context_mount.c -+++ b/libmount/src/context_mount.c -@@ -58,12 +58,10 @@ static int fix_optstr(struct libmnt_context *cxt) - * but exception is command line for /sbin/mount.<type> helpers. Let's - * save the original user=<name> to call the helpers with unchanged - * "user" setting. -- * -- * Don't check for MNT_MS_USER in cxt->user_mountflags, the flag maybe -- * removed by evaluate_permissions(). - */ -- if (!mnt_optstr_get_option(fs->user_optstr, "user", &val, &valsz)) { -- if (val) { -+ if (cxt->user_mountflags & MNT_MS_USER) { -+ if (!mnt_optstr_get_option(fs->user_optstr, -+ "user", &val, &valsz) && val) { - cxt->orig_user = strndup(val, valsz); - if (!cxt->orig_user) { - rc = -ENOMEM; -@@ -157,7 +155,7 @@ static int fix_optstr(struct libmnt_context *cxt) - goto done; - } - -- if (!rc && cxt->user_mountflags & MNT_MS_USER) -+ if (!rc && cxt->restricted && (cxt->user_mountflags & MNT_MS_USER)) - rc = mnt_optstr_fix_user(&fs->user_optstr); - - /* refresh merged optstr */ -@@ -256,8 +254,6 @@ static int evaluate_permissions(struct libmnt_context *cxt) - */ - cxt->user_mountflags &= ~MNT_MS_OWNER; - cxt->user_mountflags &= ~MNT_MS_GROUP; -- cxt->user_mountflags &= ~MNT_MS_USER; -- cxt->user_mountflags &= ~MNT_MS_USERS; - } else { - /* - * user mount --- -1.7.12 - diff --git a/sys-apps/util-linux/util-linux-2.22-r1.ebuild b/sys-apps/util-linux/util-linux-2.22.1.ebuild index 9a69c93f29e5..1b331c67aaa4 100644 --- a/sys-apps/util-linux/util-linux-2.22-r1.ebuild +++ b/sys-apps/util-linux/util-linux-2.22.1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/util-linux/util-linux-2.22-r1.ebuild,v 1.1 2012/10/10 04:30:41 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/util-linux/util-linux-2.22.1.ebuild,v 1.1 2012/10/11 04:31:47 vapier Exp $ EAPI="3" @@ -50,9 +50,6 @@ src_prepare() { po/update-potfiles eautoreconf fi - epatch "${FILESDIR}"/${P}-umount-user.patch #435540 - epatch "${FILESDIR}"/${P}-md5-aliasing.patch - epatch "${FILESDIR}"/${P}-sfdisk-aliasing.patch elibtoolize } |