diff --git a/python-libmount.changes b/python-libmount.changes index 66fa501..93c7ab9 100644 --- a/python-libmount.changes +++ b/python-libmount.changes @@ -1,3 +1,44 @@ +------------------------------------------------------------------- +Wed Feb 25 20:43:28 CET 2015 - sbrabec@suse.cz + +- Update to util-linux-2.26: + * based on the git master branch of util-linux, remove backported + patches (util-linux-libblkid-unsafe-chars.patch, + util-linux-libblkid-overflow.patch) + * zramctl(8): this NEW COMMAND allows to control /dev/zramN + devices + * agetty(8): supports new option --reload to force already + running agetty processes to reprint the /etc/issue file + * cfdisk(8), sfdisk(8) and fdisk(8): support sfdisk-compatible + scripts; it's possible to save your partitioning layout to text + files and (re)use it in all fdisks + * fdisk(8), sfdisk(8): support new command-line option "--output + " to specify output columns for --list or print commands + * nsenter(1): has been updated to work with the latest kernel + changes in user namespaces supports new command-line option + --preserve-credentials + * unshare(1): has been updated to work with the latest kernel + changes in user namespaces supports new command-line option + "--setgroups=" + * swapon(8): supports new command-line option "-o " with + the same semantics as -o for mount(8); it's now possible to + specify swap options on the command line by the same string as + in fstab + * fdformat(8): supports new command-line options --from and --to + to specify tracks and --repair for broken floppies + * getopt(1): has been updated to the latest version (originally + maintained outside of util-linux) and refactored + * ldattach(8): has been improved to support GSM0710 and intro + modem commands + * logger(1): supports new command-line option --id= to specify + PID (or another ID) allows to specify --rfc3164 or --rfc5424 + syslog protocols + * libfdisk: the library is distributed as a shared library with a + stable API and a standard header file + * libmount: provides a new simple API to monitor mount-table + changes (including changes in userspace mount options) +- Fix lack of I18N support in util-linux-systemd (mis-compilation). + ------------------------------------------------------------------- Sun Feb 22 17:15:41 UTC 2015 - crrodriguez@opensuse.org diff --git a/python-libmount.spec b/python-libmount.spec index af9761b..83d7ba5 100644 --- a/python-libmount.spec +++ b/python-libmount.spec @@ -76,7 +76,7 @@ Name: python-libmount %endif Summary: %main_summary License: GPL-2.0+ -Group: %group_pl +Group: %main_group BuildRequires: audit-devel BuildRequires: bc BuildRequires: binutils-devel @@ -120,7 +120,7 @@ BuildRequires: libmount-devel %endif %endif #END SECOND STAGE DEPENDENCIES -Version: 2.25.2 +Version: 2.26 Release: 0 # util-linux is a base package and uuidd pre-requiring pwdutils pulls # that into the core build cycle. pwdutils also pulls in the whole @@ -129,7 +129,7 @@ Release: 0 # these tools as well #!BuildIgnore: pwdutils Url: https://www.kernel.org/pub/linux/utils/util-linux/ -Source: ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.25/%{_name}-%{version}.tar.xz +Source: ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.26/%{_name}-%{version}.tar.xz Source1: util-linux-rpmlintrc Source4: raw.init Source5: etc.raw @@ -139,7 +139,7 @@ Source8: login.pamd Source9: remote.pamd Source10: su.pamd Source11: su.default -Source12: ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.25/%{_name}-%{version}.tar.sign +Source12: ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.26/%{_name}-%{version}.tar.sign Source13: %{_name}.keyring Source14: runuser.pamd # klogconsole, http://opensuse.github.com/kiwi, 7.02.25, git 859dc050 @@ -161,10 +161,6 @@ Source51: blkid.conf Patch4: make-sure-sbin-resp-usr-sbin-are-in-PATH.diff # PATCH-FEATURE-SUSE -- Report about disabled encryption to stderr. Patch12: util-linux-noenc-suse.patch -# PATCH-FIX-SECURITY util-linux-libblkid-unsafe-chars.patch bsc907434 CVE-2014-9114 sbrabec@suse.cz -- libblkid: care about unsafe chars in cache -Patch13: util-linux-libblkid-unsafe-chars.patch -# PATCH-FIX-SECURITY util-linux-libblkid-overflow.patch bsc907434 CVE-2014-9114 sbrabec@suse.cz -- libblkid: fix possible buffer overflow -Patch14: util-linux-libblkid-overflow.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build # %if %build_util_linux @@ -328,6 +324,31 @@ Requires: libsmartcols-devel = %{version} %description -n libsmartcols-devel-static Files to develop applications using the libsmartcols library. +%package -n libfdisk1 +Summary: Filesystem detection library +Group: System/Filesystems + +%description -n libfdisk1 +Library for filesystem detection. + +%package -n libfdisk-devel +Summary: Development files for the filesystem detection library +Group: Development/Libraries/C and C++ +Requires: libfdisk1 = %{version} + +%description -n libfdisk-devel +Files needed to develop applications using the library for filesystem +detection. + +%package -n libfdisk-devel-static +Summary: Development files for the filesystem detection library +Group: Development/Libraries/C and C++ +Requires: libfdisk-devel = %{version} + +%description -n libfdisk-devel-static +Files needed to develop applications using the library for filesystem +detection. + %lang_package %endif %if %build_util_linux_systemd @@ -366,7 +387,6 @@ SMP systems. %if %build_util_linux %package -n python-libmount Summary: %summary_pl -License: GPL-2.0+ Group: %group_pl %description -n python-libmount @@ -384,8 +404,6 @@ xzcat %{S:0} | %gpg_verify -p %{_name} %{S:12} - %setup -q -n %{_name}-%{version} -b 40 %patch4 -p1 %patch12 -p1 -%patch13 -p1 -%patch14 -p1 # # setctsid cp -p %{S:22} %{S:23} . @@ -499,7 +517,6 @@ sed -i ' ' libmount/python/Makemodule.am misc-utils/Makemodule.am login-utils/Makemodule.am # Ignore dependencies on optional (and not built in second stage) libraries sed -i ' - /AM_GNU_GETTEXT/d s/UL_REQUIRES_BUILD(\[.*\], \[libuuid\])/dnl &/ s/UL_REQUIRES_BUILD(\[.*\], \[libsmartcols\])/dnl &/ ' configure.ac @@ -840,6 +857,10 @@ fi %postun -n libuuid1 -p /sbin/ldconfig +%post -n libfdisk1 -p /sbin/ldconfig + +%postun -n libfdisk1 -p /sbin/ldconfig + %files lang -f %{name}.lang %endif @@ -1053,6 +1074,7 @@ fi %verify(not mode) %attr(0755,root,tty) %{_bindir}/wall %{_bindir}/whereis %verify(not mode) %attr(0755,root,tty) %{_bindir}/write +%{_sbindir}/zramctl %if %{with enable_su} %{_mandir}/man1/kill.1.gz %{_mandir}/man1/su.1.gz @@ -1154,6 +1176,7 @@ fi %{_mandir}/man8/uname26.8.gz %{_mandir}/man8/setctsid.8.gz %{_mandir}/man8/wipefs.8.gz +%{_mandir}/man8/zramctl.8.gz %{_mandir}/man8/fstrim.8.gz %{_mandir}/man8/lsblk.8.gz %{_mandir}/man8/resizepart.8.gz @@ -1272,6 +1295,23 @@ fi %files -n libuuid-devel-static %defattr(-, root, root) %{_libdir}/libuuid.*a + +%files -n libfdisk1 +%defattr(-, root, root) +%{_libdir}/libfdisk.so.1 +%{_libdir}/libfdisk.so.1.* + +%files -n libfdisk-devel +%defattr(-, root, root) +%{_libdir}/libfdisk.so +%dir %{_includedir}/libfdisk +%{_includedir}/libfdisk/libfdisk.h +%{_libdir}/pkgconfig/fdisk.pc + +%files -n libfdisk-devel-static +%defattr(-, root, root) +%{_libdir}/libfdisk.*a + %endif %if %build_util_linux_systemd diff --git a/util-linux-2.25.2.tar.sign b/util-linux-2.25.2.tar.sign deleted file mode 100644 index f5cdfad..0000000 --- a/util-linux-2.25.2.tar.sign +++ /dev/null @@ -1,17 +0,0 @@ ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1 - -iQIcBAABAgAGBQJUSk3GAAoJEOS3HV7sOcKEsrcQAIRmU5klSM7Q+JWzvvvdoKhb -wVqB5VbYCZEH8L5NMRQwzWbZcMtIsFAD6T7tH6hX/jjYxMB5FdJfWrCdaYsevY6k -hpUkEAK6FWzGGJE/s5sq90zgoDQHCBG2VRxLiKj4WfO8zKfBiJTrA43NQPCSj6pN -fT/t1fzpTQj5BRrhjH/e3ghz+CvSw9LH5RZqB8gURBly+1zuTxDw3zfVEqA44/Y7 -Dl+G+r6DzuiUTjGhXlEeG+NfImGhWAiw+r7ScTBEYmF5lQ1VUWlNCg3cX8/JIU/o -U9TQL3mBdcLc0kVBsQ0XcroCpEyYBNDbyjGUEQ8PIVMCdqg114Jphdp7j+9tecSs -ofBo/P99U43jFtozow+ECHYX6j9LiTyynPZAmMnD+bvtIL/tBDaP4/x0qeqtmJyF -+I+V7fARGqMmyt+3xRD3euN16X15HAOW7tchAfhj7T35WfXfV5jHTiz9RA58EgJ5 -7MKAkezEpMbeWUXkVe2nm9Lcki2pU+iuGC36L6hi1Jlxe58gdF1bE2UXW3eXb6mc -1E3uC3jCJ+5gG8mJBYpf4nt+sXA7Elv9QahTsXABbUyNxR43E47rQgsmPqTZgU8O -TxRUz/ZI1ytVFTeledsWb35mItxiP9g8HgCZF7idcZkqx1p41DMkjj7GCkSHxDju -H19vNbkWYnuK8AoqPAQy -=RONJ ------END PGP SIGNATURE----- diff --git a/util-linux-2.25.2.tar.xz b/util-linux-2.25.2.tar.xz deleted file mode 100644 index 044440d..0000000 --- a/util-linux-2.25.2.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e0457f715b73f4a349e1acb08cb410bf0edc9a74a3f75c357070f31f70e33cd6 -size 3703644 diff --git a/util-linux-2.26.tar.sign b/util-linux-2.26.tar.sign new file mode 100644 index 0000000..1b2e1f0 --- /dev/null +++ b/util-linux-2.26.tar.sign @@ -0,0 +1,17 @@ +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1 + +iQIcBAABAgAGBQJU5dYmAAoJEOS3HV7sOcKE/kwP/2IxeHdT91RtWcNvTVhKaFe5 +KItv6vf1790aogocDmnOzxQGhKu/A6BMok4rck2tWkgbH9cPVeG9s3ThN8+cr4Jd +e0pLW+0AgmMFKHRcsmdzSJsOKwoIwrJFkmbGcBQbjJgX74N3RPUX8j+J9JB3VRdf +ampyz6wtbsQ0sK4JkE7GCPhC8VEOcWP/Aousx4+nVf/TGgow4s5aBuP0pdDI3liS +3VAoABPDwUSb3llNw6rfM40PfGU9FObofPiPnD3kNTqEJclxDlbBW4CzcMX5yPca +gMDYoMv35t2lQULeyl/t3C7QzVZtCUyomYIRKta1U0vpwN9dHZSd6aUly2ad/2ci +9bO71M3MTcDzayNz/WiHg1UiadsqmcrfUFvOsFwbxaRrJp0yG5Ymo0wCpYIiR5SN +snevV8tgPWOfUqkhApA7rdWf/lNTz26D9gioKnMpU+BXkPk6LzPvVF4/BoRT1PFr +yiF4g/HaNfjdiZSOYTpC8LbjhCE+H1MPx8ljp5LPR8DtUh3Rl8o0edNK6WcK6USO +s7N4QsXpWNHk71OTvYYHGSJLhk2nmABQXKOKNHUxKqbHAgta/Wuc9yNB+7+qxrYp +xR28xtXwHzMrGf6dL9ZEQbMhuhlRTfhe+4AM5SCKY3JZJcahvn2ocEuZSAphoJhl +FWmJ6n5biUK+N5VnDvMX +=bnK5 +-----END PGP SIGNATURE----- diff --git a/util-linux-2.26.tar.xz b/util-linux-2.26.tar.xz new file mode 100644 index 0000000..dbeecd9 --- /dev/null +++ b/util-linux-2.26.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a23c6f39dea0ed215ccd589509ffc7bb6f706f6e1a04760f493fb0fd7e93c489 +size 3847960 diff --git a/util-linux-libblkid-overflow.patch b/util-linux-libblkid-overflow.patch deleted file mode 100644 index 0f8e763..0000000 --- a/util-linux-libblkid-overflow.patch +++ /dev/null @@ -1,101 +0,0 @@ -From 109df14fad4e9570e26950913ebace6c79289400 Mon Sep 17 00:00:00 2001 -From: Sebastian Krahmer -Date: Fri, 5 Dec 2014 10:06:42 +0100 -Subject: [PATCH] libblkid: fix potential bufer overflows - -While digging deeper into libblk probing, I found that some -computations might wrap and allocate too few buffer space which then -overflows. In particular on 32bit systems (chromebook) where size_t is -32bit, this is problematic (for 64bit the result fits into the calloc -size_t). - -Signed-off-by: Karel Zak ---- - libblkid/src/partitions/gpt.c | 12 ++++++++---- - libblkid/src/probe.c | 7 +++++++ - libblkid/src/superblocks/zfs.c | 3 +++ - 3 files changed, 18 insertions(+), 4 deletions(-) - -diff --git a/libblkid/src/partitions/gpt.c b/libblkid/src/partitions/gpt.c -index 6ab4f71..665577f 100644 ---- a/libblkid/src/partitions/gpt.c -+++ b/libblkid/src/partitions/gpt.c -@@ -17,6 +17,7 @@ - #include - #include - #include -+#include - - #include "partitions.h" - #include "crc32.h" -@@ -263,14 +264,17 @@ static struct gpt_header *get_gpt_header( - return NULL; - } - -- /* Size of blocks with GPT entries */ -- esz = le32_to_cpu(h->num_partition_entries) * -- le32_to_cpu(h->sizeof_partition_entry); -- if (!esz) { -+ if (le32_to_cpu(h->num_partition_entries) == 0 || -+ le32_to_cpu(h->sizeof_partition_entry) == 0 || -+ ULONG_MAX / le32_to_cpu(h->num_partition_entries) < le32_to_cpu(h->sizeof_partition_entry)) { - DBG(LOWPROBE, ul_debug("GPT entries undefined")); - return NULL; - } - -+ /* Size of blocks with GPT entries */ -+ esz = le32_to_cpu(h->num_partition_entries) * -+ le32_to_cpu(h->sizeof_partition_entry); -+ - /* The header seems valid, save it - * (we don't care about zeros in hdr->reserved2 area) */ - memcpy(hdr, h, sizeof(*h)); -diff --git a/libblkid/src/probe.c b/libblkid/src/probe.c -index 3f7e43b..70e882a 100644 ---- a/libblkid/src/probe.c -+++ b/libblkid/src/probe.c -@@ -103,6 +103,7 @@ - #include - #include - #include -+#include - - #ifdef HAVE_LIBUUID - # include -@@ -578,6 +579,12 @@ unsigned char *blkid_probe_get_buffer(blkid_probe pr, - return NULL; - } - -+ /* someone trying to overflow some buffers? */ -+ if (len > ULONG_MAX - sizeof(struct blkid_bufinfo)) { -+ errno = ENOMEM; -+ return NULL; -+ } -+ - /* allocate info and space for data by why call */ - bf = calloc(1, sizeof(struct blkid_bufinfo) + len); - if (!bf) { -diff --git a/libblkid/src/superblocks/zfs.c b/libblkid/src/superblocks/zfs.c -index 6ffa24d..86da59d 100644 ---- a/libblkid/src/superblocks/zfs.c -+++ b/libblkid/src/superblocks/zfs.c -@@ -12,6 +12,7 @@ - #include - #include - #include -+#include - - #include "superblocks.h" - -@@ -108,6 +109,8 @@ static void zfs_extract_guid_name(blkid_probe pr, loff_t offset) - - nvs->nvs_type = be32_to_cpu(nvs->nvs_type); - nvs->nvs_strlen = be32_to_cpu(nvs->nvs_strlen); -+ if (nvs->nvs_strlen > UINT_MAX - sizeof(*nvs)) -+ break; - avail -= nvs->nvs_strlen + sizeof(*nvs); - nvdebug("nvstring: type %u string %*s\n", nvs->nvs_type, - nvs->nvs_strlen, nvs->nvs_string); --- -2.2.2 - diff --git a/util-linux-libblkid-unsafe-chars.patch b/util-linux-libblkid-unsafe-chars.patch deleted file mode 100644 index 833f603..0000000 --- a/util-linux-libblkid-unsafe-chars.patch +++ /dev/null @@ -1,167 +0,0 @@ -From 89e90ae7b2826110ea28c1c0eb8e7c56c3907bdc Mon Sep 17 00:00:00 2001 -From: Karel Zak -Date: Thu, 27 Nov 2014 13:39:35 +0100 -Subject: [PATCH] libblkid: care about unsafe chars in cache - -The high-level libblkid API uses /run/blkid/blkid.tab cache to -store probing results. The cache format is - - devname - -and unfortunately the cache code does not escape quotation marks: - - # mkfs.ext4 -L 'AAA"BBB' - - # cat /run/blkid/blkid.tab - ... - /dev/sdb1 - -such string is later incorrectly parsed and blkid(8) returns -nonsenses. And for use-cases like - - # eval $(blkid -o export /dev/sdb1) - -it's also insecure. - -Note that mount, udevd and blkid -p are based on low-level libblkid -API, it bypass the cache and directly read data from the devices. - -The current udevd upstream does not depend on blkid(8) output at all, -it's directly linked with the library and all unsafe chars are encoded by -\x notation. - - # mkfs.ext4 -L 'X"`/tmp/foo` "' /dev/sdb1 - # udevadm info --export-db | grep LABEL - ... - E: ID_FS_LABEL=X__/tmp/foo___ - E: ID_FS_LABEL_ENC=X\x22\x60\x2ftmp\x2ffoo\x60\x20\x22 - -Signed-off-by: Karel Zak ---- - libblkid/src/read.c | 21 ++++++++++++++++++--- - libblkid/src/save.c | 22 +++++++++++++++++++++- - misc-utils/blkid.8 | 5 ++++- - misc-utils/blkid.c | 4 ++-- - 4 files changed, 45 insertions(+), 7 deletions(-) - -diff --git a/libblkid/src/read.c b/libblkid/src/read.c -index 0e91c9c..81ab0df 100644 ---- a/libblkid/src/read.c -+++ b/libblkid/src/read.c -@@ -252,15 +252,30 @@ static int parse_token(char **name, char **value, char **cp) - *value = skip_over_blank(*value + 1); - - if (**value == '"') { -- end = strchr(*value + 1, '"'); -- if (!end) { -+ char *p = end = *value + 1; -+ -+ /* convert 'foo\"bar' to 'foo"bar' */ -+ while (*p) { -+ if (*p == '\\') { -+ p++; -+ *end = *p; -+ } else { -+ *end = *p; -+ if (*p == '"') -+ break; -+ } -+ p++; -+ end++; -+ } -+ -+ if (*end != '"') { - DBG(READ, ul_debug("unbalanced quotes at: %s", *value)); - *cp = *value; - return -BLKID_ERR_CACHE; - } - (*value)++; - *end = '\0'; -- end++; -+ end = ++p; - } else { - end = skip_over_word(*value); - if (*end) { -diff --git a/libblkid/src/save.c b/libblkid/src/save.c -index 8216f09..5e8bbee 100644 ---- a/libblkid/src/save.c -+++ b/libblkid/src/save.c -@@ -26,6 +26,21 @@ - - #include "blkidP.h" - -+ -+static void save_quoted(const char *data, FILE *file) -+{ -+ const char *p; -+ -+ fputc('"', file); -+ for (p = data; p && *p; p++) { -+ if ((unsigned char) *p == 0x22 || /* " */ -+ (unsigned char) *p == 0x5c) /* \ */ -+ fputc('\\', file); -+ -+ fputc(*p, file); -+ } -+ fputc('"', file); -+} - static int save_dev(blkid_dev dev, FILE *file) - { - struct list_head *p; -@@ -43,9 +58,14 @@ static int save_dev(blkid_dev dev, FILE *file) - - if (dev->bid_pri) - fprintf(file, " PRI=\"%d\"", dev->bid_pri); -+ - list_for_each(p, &dev->bid_tags) { - blkid_tag tag = list_entry(p, struct blkid_struct_tag, bit_tags); -- fprintf(file, " %s=\"%s\"", tag->bit_name,tag->bit_val); -+ -+ fputc(' ', file); /* space between tags */ -+ fputs(tag->bit_name, file); /* tag NAME */ -+ fputc('=', file); /* separator between NAME and VALUE */ -+ save_quoted(tag->bit_val, file); /* tag "VALUE" */ - } - fprintf(file, ">%s\n", dev->bid_name); - -diff --git a/misc-utils/blkid.8 b/misc-utils/blkid.8 -index 156a14b..c95b833 100644 ---- a/misc-utils/blkid.8 -+++ b/misc-utils/blkid.8 -@@ -200,7 +200,10 @@ partitions. This output format is \fBDEPRECATED\fR. - .TP - .B export - print key=value pairs for easy import into the environment; this output format --is automatically enabled when I/O Limits (\fB-i\fR option) are requested -+is automatically enabled when I/O Limits (\fB-i\fR option) are requested. -+ -+The non-printing characters are encoded by ^ and M- notation and all -+potentially unsafe characters are escaped. - .RE - .TP - .BI \-O " offset" -diff --git a/misc-utils/blkid.c b/misc-utils/blkid.c -index a6ca660..1bd8646 100644 ---- a/misc-utils/blkid.c -+++ b/misc-utils/blkid.c -@@ -306,7 +306,7 @@ static void print_value(int output, int num, const char *devname, - printf("DEVNAME=%s\n", devname); - fputs(name, stdout); - fputs("=", stdout); -- safe_print(value, valsz, NULL); -+ safe_print(value, valsz, " \\\"'$`<>"); - fputs("\n", stdout); - - } else { -@@ -315,7 +315,7 @@ static void print_value(int output, int num, const char *devname, - fputs(" ", stdout); - fputs(name, stdout); - fputs("=\"", stdout); -- safe_print(value, valsz, "\""); -+ safe_print(value, valsz, "\"\\"); - fputs("\"", stdout); - } - } --- -2.2.2 - diff --git a/util-linux-systemd.changes b/util-linux-systemd.changes index 66fa501..93c7ab9 100644 --- a/util-linux-systemd.changes +++ b/util-linux-systemd.changes @@ -1,3 +1,44 @@ +------------------------------------------------------------------- +Wed Feb 25 20:43:28 CET 2015 - sbrabec@suse.cz + +- Update to util-linux-2.26: + * based on the git master branch of util-linux, remove backported + patches (util-linux-libblkid-unsafe-chars.patch, + util-linux-libblkid-overflow.patch) + * zramctl(8): this NEW COMMAND allows to control /dev/zramN + devices + * agetty(8): supports new option --reload to force already + running agetty processes to reprint the /etc/issue file + * cfdisk(8), sfdisk(8) and fdisk(8): support sfdisk-compatible + scripts; it's possible to save your partitioning layout to text + files and (re)use it in all fdisks + * fdisk(8), sfdisk(8): support new command-line option "--output + " to specify output columns for --list or print commands + * nsenter(1): has been updated to work with the latest kernel + changes in user namespaces supports new command-line option + --preserve-credentials + * unshare(1): has been updated to work with the latest kernel + changes in user namespaces supports new command-line option + "--setgroups=" + * swapon(8): supports new command-line option "-o " with + the same semantics as -o for mount(8); it's now possible to + specify swap options on the command line by the same string as + in fstab + * fdformat(8): supports new command-line options --from and --to + to specify tracks and --repair for broken floppies + * getopt(1): has been updated to the latest version (originally + maintained outside of util-linux) and refactored + * ldattach(8): has been improved to support GSM0710 and intro + modem commands + * logger(1): supports new command-line option --id= to specify + PID (or another ID) allows to specify --rfc3164 or --rfc5424 + syslog protocols + * libfdisk: the library is distributed as a shared library with a + stable API and a standard header file + * libmount: provides a new simple API to monitor mount-table + changes (including changes in userspace mount options) +- Fix lack of I18N support in util-linux-systemd (mis-compilation). + ------------------------------------------------------------------- Sun Feb 22 17:15:41 UTC 2015 - crrodriguez@opensuse.org diff --git a/util-linux-systemd.spec b/util-linux-systemd.spec index 3797392..9938646 100644 --- a/util-linux-systemd.spec +++ b/util-linux-systemd.spec @@ -120,7 +120,7 @@ BuildRequires: libmount-devel %endif %endif #END SECOND STAGE DEPENDENCIES -Version: 2.25.2 +Version: 2.26 Release: 0 # util-linux is a base package and uuidd pre-requiring pwdutils pulls # that into the core build cycle. pwdutils also pulls in the whole @@ -129,7 +129,7 @@ Release: 0 # these tools as well #!BuildIgnore: pwdutils Url: https://www.kernel.org/pub/linux/utils/util-linux/ -Source: ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.25/%{_name}-%{version}.tar.xz +Source: ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.26/%{_name}-%{version}.tar.xz Source1: util-linux-rpmlintrc Source4: raw.init Source5: etc.raw @@ -139,7 +139,7 @@ Source8: login.pamd Source9: remote.pamd Source10: su.pamd Source11: su.default -Source12: ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.25/%{_name}-%{version}.tar.sign +Source12: ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.26/%{_name}-%{version}.tar.sign Source13: %{_name}.keyring Source14: runuser.pamd # klogconsole, http://opensuse.github.com/kiwi, 7.02.25, git 859dc050 @@ -161,10 +161,6 @@ Source51: blkid.conf Patch4: make-sure-sbin-resp-usr-sbin-are-in-PATH.diff # PATCH-FEATURE-SUSE -- Report about disabled encryption to stderr. Patch12: util-linux-noenc-suse.patch -# PATCH-FIX-SECURITY util-linux-libblkid-unsafe-chars.patch bsc907434 CVE-2014-9114 sbrabec@suse.cz -- libblkid: care about unsafe chars in cache -Patch13: util-linux-libblkid-unsafe-chars.patch -# PATCH-FIX-SECURITY util-linux-libblkid-overflow.patch bsc907434 CVE-2014-9114 sbrabec@suse.cz -- libblkid: fix possible buffer overflow -Patch14: util-linux-libblkid-overflow.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build # %if %build_util_linux @@ -328,6 +324,31 @@ Requires: libsmartcols-devel = %{version} %description -n libsmartcols-devel-static Files to develop applications using the libsmartcols library. +%package -n libfdisk1 +Summary: Filesystem detection library +Group: System/Filesystems + +%description -n libfdisk1 +Library for filesystem detection. + +%package -n libfdisk-devel +Summary: Development files for the filesystem detection library +Group: Development/Libraries/C and C++ +Requires: libfdisk1 = %{version} + +%description -n libfdisk-devel +Files needed to develop applications using the library for filesystem +detection. + +%package -n libfdisk-devel-static +Summary: Development files for the filesystem detection library +Group: Development/Libraries/C and C++ +Requires: libfdisk-devel = %{version} + +%description -n libfdisk-devel-static +Files needed to develop applications using the library for filesystem +detection. + %lang_package %endif %if %build_util_linux_systemd @@ -383,8 +404,6 @@ xzcat %{S:0} | %gpg_verify -p %{_name} %{S:12} - %setup -q -n %{_name}-%{version} -b 40 %patch4 -p1 %patch12 -p1 -%patch13 -p1 -%patch14 -p1 # # setctsid cp -p %{S:22} %{S:23} . @@ -498,7 +517,6 @@ sed -i ' ' libmount/python/Makemodule.am misc-utils/Makemodule.am login-utils/Makemodule.am # Ignore dependencies on optional (and not built in second stage) libraries sed -i ' - /AM_GNU_GETTEXT/d s/UL_REQUIRES_BUILD(\[.*\], \[libuuid\])/dnl &/ s/UL_REQUIRES_BUILD(\[.*\], \[libsmartcols\])/dnl &/ ' configure.ac @@ -839,6 +857,10 @@ fi %postun -n libuuid1 -p /sbin/ldconfig +%post -n libfdisk1 -p /sbin/ldconfig + +%postun -n libfdisk1 -p /sbin/ldconfig + %files lang -f %{name}.lang %endif @@ -1052,6 +1074,7 @@ fi %verify(not mode) %attr(0755,root,tty) %{_bindir}/wall %{_bindir}/whereis %verify(not mode) %attr(0755,root,tty) %{_bindir}/write +%{_sbindir}/zramctl %if %{with enable_su} %{_mandir}/man1/kill.1.gz %{_mandir}/man1/su.1.gz @@ -1153,6 +1176,7 @@ fi %{_mandir}/man8/uname26.8.gz %{_mandir}/man8/setctsid.8.gz %{_mandir}/man8/wipefs.8.gz +%{_mandir}/man8/zramctl.8.gz %{_mandir}/man8/fstrim.8.gz %{_mandir}/man8/lsblk.8.gz %{_mandir}/man8/resizepart.8.gz @@ -1271,6 +1295,23 @@ fi %files -n libuuid-devel-static %defattr(-, root, root) %{_libdir}/libuuid.*a + +%files -n libfdisk1 +%defattr(-, root, root) +%{_libdir}/libfdisk.so.1 +%{_libdir}/libfdisk.so.1.* + +%files -n libfdisk-devel +%defattr(-, root, root) +%{_libdir}/libfdisk.so +%dir %{_includedir}/libfdisk +%{_includedir}/libfdisk/libfdisk.h +%{_libdir}/pkgconfig/fdisk.pc + +%files -n libfdisk-devel-static +%defattr(-, root, root) +%{_libdir}/libfdisk.*a + %endif %if %build_util_linux_systemd diff --git a/util-linux.changes b/util-linux.changes index 66fa501..93c7ab9 100644 --- a/util-linux.changes +++ b/util-linux.changes @@ -1,3 +1,44 @@ +------------------------------------------------------------------- +Wed Feb 25 20:43:28 CET 2015 - sbrabec@suse.cz + +- Update to util-linux-2.26: + * based on the git master branch of util-linux, remove backported + patches (util-linux-libblkid-unsafe-chars.patch, + util-linux-libblkid-overflow.patch) + * zramctl(8): this NEW COMMAND allows to control /dev/zramN + devices + * agetty(8): supports new option --reload to force already + running agetty processes to reprint the /etc/issue file + * cfdisk(8), sfdisk(8) and fdisk(8): support sfdisk-compatible + scripts; it's possible to save your partitioning layout to text + files and (re)use it in all fdisks + * fdisk(8), sfdisk(8): support new command-line option "--output + " to specify output columns for --list or print commands + * nsenter(1): has been updated to work with the latest kernel + changes in user namespaces supports new command-line option + --preserve-credentials + * unshare(1): has been updated to work with the latest kernel + changes in user namespaces supports new command-line option + "--setgroups=" + * swapon(8): supports new command-line option "-o " with + the same semantics as -o for mount(8); it's now possible to + specify swap options on the command line by the same string as + in fstab + * fdformat(8): supports new command-line options --from and --to + to specify tracks and --repair for broken floppies + * getopt(1): has been updated to the latest version (originally + maintained outside of util-linux) and refactored + * ldattach(8): has been improved to support GSM0710 and intro + modem commands + * logger(1): supports new command-line option --id= to specify + PID (or another ID) allows to specify --rfc3164 or --rfc5424 + syslog protocols + * libfdisk: the library is distributed as a shared library with a + stable API and a standard header file + * libmount: provides a new simple API to monitor mount-table + changes (including changes in userspace mount options) +- Fix lack of I18N support in util-linux-systemd (mis-compilation). + ------------------------------------------------------------------- Sun Feb 22 17:15:41 UTC 2015 - crrodriguez@opensuse.org diff --git a/util-linux.spec b/util-linux.spec index 18ebf87..e065519 100644 --- a/util-linux.spec +++ b/util-linux.spec @@ -120,7 +120,7 @@ BuildRequires: libmount-devel %endif %endif #END SECOND STAGE DEPENDENCIES -Version: 2.25.2 +Version: 2.26 Release: 0 # util-linux is a base package and uuidd pre-requiring pwdutils pulls # that into the core build cycle. pwdutils also pulls in the whole @@ -129,7 +129,7 @@ Release: 0 # these tools as well #!BuildIgnore: pwdutils Url: https://www.kernel.org/pub/linux/utils/util-linux/ -Source: ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.25/%{_name}-%{version}.tar.xz +Source: ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.26/%{_name}-%{version}.tar.xz Source1: util-linux-rpmlintrc Source4: raw.init Source5: etc.raw @@ -139,7 +139,7 @@ Source8: login.pamd Source9: remote.pamd Source10: su.pamd Source11: su.default -Source12: ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.25/%{_name}-%{version}.tar.sign +Source12: ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.26/%{_name}-%{version}.tar.sign Source13: %{_name}.keyring Source14: runuser.pamd # klogconsole, http://opensuse.github.com/kiwi, 7.02.25, git 859dc050 @@ -161,10 +161,6 @@ Source51: blkid.conf Patch4: make-sure-sbin-resp-usr-sbin-are-in-PATH.diff # PATCH-FEATURE-SUSE -- Report about disabled encryption to stderr. Patch12: util-linux-noenc-suse.patch -# PATCH-FIX-SECURITY util-linux-libblkid-unsafe-chars.patch bsc907434 CVE-2014-9114 sbrabec@suse.cz -- libblkid: care about unsafe chars in cache -Patch13: util-linux-libblkid-unsafe-chars.patch -# PATCH-FIX-SECURITY util-linux-libblkid-overflow.patch bsc907434 CVE-2014-9114 sbrabec@suse.cz -- libblkid: fix possible buffer overflow -Patch14: util-linux-libblkid-overflow.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build # %if %build_util_linux @@ -328,6 +324,31 @@ Requires: libsmartcols-devel = %{version} %description -n libsmartcols-devel-static Files to develop applications using the libsmartcols library. +%package -n libfdisk1 +Summary: Filesystem detection library +Group: System/Filesystems + +%description -n libfdisk1 +Library for filesystem detection. + +%package -n libfdisk-devel +Summary: Development files for the filesystem detection library +Group: Development/Libraries/C and C++ +Requires: libfdisk1 = %{version} + +%description -n libfdisk-devel +Files needed to develop applications using the library for filesystem +detection. + +%package -n libfdisk-devel-static +Summary: Development files for the filesystem detection library +Group: Development/Libraries/C and C++ +Requires: libfdisk-devel = %{version} + +%description -n libfdisk-devel-static +Files needed to develop applications using the library for filesystem +detection. + %lang_package %endif %if %build_util_linux_systemd @@ -383,8 +404,6 @@ xzcat %{S:0} | %gpg_verify -p %{_name} %{S:12} - %setup -q -n %{_name}-%{version} -b 40 %patch4 -p1 %patch12 -p1 -%patch13 -p1 -%patch14 -p1 # # setctsid cp -p %{S:22} %{S:23} . @@ -498,7 +517,6 @@ sed -i ' ' libmount/python/Makemodule.am misc-utils/Makemodule.am login-utils/Makemodule.am # Ignore dependencies on optional (and not built in second stage) libraries sed -i ' - /AM_GNU_GETTEXT/d s/UL_REQUIRES_BUILD(\[.*\], \[libuuid\])/dnl &/ s/UL_REQUIRES_BUILD(\[.*\], \[libsmartcols\])/dnl &/ ' configure.ac @@ -839,6 +857,10 @@ fi %postun -n libuuid1 -p /sbin/ldconfig +%post -n libfdisk1 -p /sbin/ldconfig + +%postun -n libfdisk1 -p /sbin/ldconfig + %files lang -f %{name}.lang %endif @@ -1052,6 +1074,7 @@ fi %verify(not mode) %attr(0755,root,tty) %{_bindir}/wall %{_bindir}/whereis %verify(not mode) %attr(0755,root,tty) %{_bindir}/write +%{_sbindir}/zramctl %if %{with enable_su} %{_mandir}/man1/kill.1.gz %{_mandir}/man1/su.1.gz @@ -1153,6 +1176,7 @@ fi %{_mandir}/man8/uname26.8.gz %{_mandir}/man8/setctsid.8.gz %{_mandir}/man8/wipefs.8.gz +%{_mandir}/man8/zramctl.8.gz %{_mandir}/man8/fstrim.8.gz %{_mandir}/man8/lsblk.8.gz %{_mandir}/man8/resizepart.8.gz @@ -1271,6 +1295,23 @@ fi %files -n libuuid-devel-static %defattr(-, root, root) %{_libdir}/libuuid.*a + +%files -n libfdisk1 +%defattr(-, root, root) +%{_libdir}/libfdisk.so.1 +%{_libdir}/libfdisk.so.1.* + +%files -n libfdisk-devel +%defattr(-, root, root) +%{_libdir}/libfdisk.so +%dir %{_includedir}/libfdisk +%{_includedir}/libfdisk/libfdisk.h +%{_libdir}/pkgconfig/fdisk.pc + +%files -n libfdisk-devel-static +%defattr(-, root, root) +%{_libdir}/libfdisk.*a + %endif %if %build_util_linux_systemd