forked from pool/util-linux
checked in (request 43994)
OBS-URL: https://build.opensuse.org/package/show/Base:System/util-linux?expand=0&rev=48
This commit is contained in:
parent
90fbbacf81
commit
0e4629cd8c
18
adjtimex-1.20-nosyscall.diff
Normal file
18
adjtimex-1.20-nosyscall.diff
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
--- adjtimex-1.20/adjtimex.c
|
||||||
|
+++ adjtimex-1.20/adjtimex.c
|
||||||
|
@@ -35,15 +35,6 @@
|
||||||
|
#include <sys/ioctl.h>
|
||||||
|
#include <linux/rtc.h>
|
||||||
|
|
||||||
|
-#ifdef __alpha__
|
||||||
|
-extern int adjtimex(struct timex *);
|
||||||
|
-#else
|
||||||
|
-#ifdef __ia64__
|
||||||
|
-extern int adjtimex(struct timex *);
|
||||||
|
-#else
|
||||||
|
-_syscall1(int, adjtimex, struct timex *, txcp)
|
||||||
|
-#endif
|
||||||
|
-#endif
|
||||||
|
int F_print = 0;
|
||||||
|
|
||||||
|
#ifndef LOG_PATH
|
3
adjtimex-1.20.tar.bz2
Normal file
3
adjtimex-1.20.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:ad3619a6f4f04d278ac3d3e0261649465a9748dc84220aa5f4060aadaea839ba
|
||||||
|
size 50096
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:527a20975cbcffb39ab122867c4a9438cf09e7d1e01a06eaa2f340de282a4c95
|
|
||||||
size 75184
|
|
@ -2,11 +2,12 @@ libuuid1
|
|||||||
libuuid-devel
|
libuuid-devel
|
||||||
requires -libuuid-<targettype>
|
requires -libuuid-<targettype>
|
||||||
requires "libuuid1-<targettype> = <version>"
|
requires "libuuid1-<targettype> = <version>"
|
||||||
|
requires -libblkid-<targettype>
|
||||||
|
requires "libblkid1-<targettype> = <version>"
|
||||||
libblkid1
|
libblkid1
|
||||||
|
obsoletes "e2fsprogs-<targettype> <= <version>"
|
||||||
libblkid-devel
|
libblkid-devel
|
||||||
requires -libblkid-<targettype>
|
requires -libblkid-<targettype>
|
||||||
requires "libblkid1-<targettype> = <version>"
|
requires "libblkid1-<targettype> = <version>"
|
||||||
libmount1
|
requires -libuuid-<targettype>
|
||||||
libmount-devel
|
requires "libuuid1-<targettype> = <version>"
|
||||||
requires -libmount-<targettype>
|
|
||||||
requires "libmount1-<targettype> = <version>"
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
Index: util-linux-ng-2.18/fdisk/fdisk.c
|
Index: util-linux-ng-2.16/fdisk/fdisk.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- util-linux-ng-2.18.orig/fdisk/fdisk.c 2010-06-30 14:44:25.000000000 +0200
|
--- util-linux-ng-2.16.orig/fdisk/fdisk.c
|
||||||
+++ util-linux-ng-2.18/fdisk/fdisk.c 2010-07-08 14:35:07.000000000 +0200
|
+++ util-linux-ng-2.16/fdisk/fdisk.c
|
||||||
@@ -1838,6 +1838,7 @@ static void check_consistency(struct par
|
@@ -1586,6 +1586,7 @@ static void check_consistency(struct par
|
||||||
/* compute logical ending (c, h, s) */
|
/* compute logical ending (c, h, s) */
|
||||||
long2chs(get_start_sect(p) + get_nr_sects(p) - 1, &lec, &leh, &les);
|
long2chs(get_start_sect(p) + get_nr_sects(p) - 1, &lec, &leh, &les);
|
||||||
|
|
||||||
@ -10,7 +10,7 @@ Index: util-linux-ng-2.18/fdisk/fdisk.c
|
|||||||
/* Same physical / logical beginning? */
|
/* Same physical / logical beginning? */
|
||||||
if (cylinders <= 1024 && (pbc != lbc || pbh != lbh || pbs != lbs)) {
|
if (cylinders <= 1024 && (pbc != lbc || pbh != lbh || pbs != lbs)) {
|
||||||
printf(_("Partition %d has different physical/logical "
|
printf(_("Partition %d has different physical/logical "
|
||||||
@@ -1854,7 +1855,6 @@ static void check_consistency(struct par
|
@@ -1602,7 +1603,6 @@ static void check_consistency(struct par
|
||||||
printf(_("logical=(%d, %d, %d)\n"),lec, leh, les);
|
printf(_("logical=(%d, %d, %d)\n"),lec, leh, les);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
23
util-linux-2.14.1-mount_skip_sync.patch
Normal file
23
util-linux-2.14.1-mount_skip_sync.patch
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
diff -Nurw util-linux-ng-2.16.orig/mount/umount.c util-linux-ng-2.16/mount/umount.c
|
||||||
|
--- util-linux-ng-2.16.orig/mount/umount.c 2009-07-04 01:20:06.000000000 +0200
|
||||||
|
+++ util-linux-ng-2.16/mount/umount.c 2009-09-29 14:50:44.000000000 +0200
|
||||||
|
@@ -361,6 +361,7 @@
|
||||||
|
umount_all (char *types, char *test_opts) {
|
||||||
|
struct mntentchn *mc, *hd;
|
||||||
|
int errors = 0;
|
||||||
|
+ int do_sync = 0;
|
||||||
|
|
||||||
|
hd = mtab_head();
|
||||||
|
if (!hd->prev)
|
||||||
|
@@ -370,9 +371,11 @@
|
||||||
|
&& matching_opts (mc->m.mnt_opts, test_opts)) {
|
||||||
|
errors |= umount_one (mc->m.mnt_fsname, mc->m.mnt_dir,
|
||||||
|
mc->m.mnt_type, mc->m.mnt_opts, mc);
|
||||||
|
+ do_sync = 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
+ if (do_sync)
|
||||||
|
sync ();
|
||||||
|
return errors;
|
||||||
|
}
|
@ -38,23 +38,24 @@ Signed-off-by: Ludwig Nussel <ludwig.nussel@suse.de>
|
|||||||
create mode 100644 mount/sha512.c
|
create mode 100644 mount/sha512.c
|
||||||
create mode 100644 mount/sha512.h
|
create mode 100644 mount/sha512.h
|
||||||
|
|
||||||
Index: util-linux-ng-2.18/mount/Makefile.am
|
diff --git a/mount/Makefile.am b/mount/Makefile.am
|
||||||
===================================================================
|
index c5f58aa..43ff01a 100644
|
||||||
--- util-linux-ng-2.18.orig/mount/Makefile.am 2010-05-24 12:35:47.000000000 +0200
|
--- a/mount/Makefile.am
|
||||||
+++ util-linux-ng-2.18/mount/Makefile.am 2010-07-08 14:39:01.000000000 +0200
|
+++ b/mount/Makefile.am
|
||||||
@@ -7,7 +7,7 @@ sbin_PROGRAMS = losetup swapon
|
@@ -7,7 +7,8 @@ sbin_PROGRAMS = losetup swapon
|
||||||
dist_man_MANS = fstab.5 mount.8 swapoff.8 swapon.8 umount.8 losetup.8
|
dist_man_MANS = fstab.5 mount.8 swapoff.8 swapon.8 umount.8 losetup.8
|
||||||
|
|
||||||
# generic sources for all programs (mount, umount, losetup)
|
# generic sources for all programs (mount, umount, losetup)
|
||||||
-srcs_common = sundries.c xmalloc.c $(top_srcdir)/lib/canonicalize.c sundries.h xmalloc.h
|
-srcs_common = sundries.c xmalloc.c ../lib/canonicalize.c sundries.h xmalloc.h
|
||||||
+srcs_common = sundries.c xmalloc.c $(top_srcdir)/lib/canonicalize.c sundries.h xmalloc.h rmd160.c sha512.c
|
+srcs_common = sundries.c xmalloc.c ../lib/canonicalize.c sundries.h xmalloc.h \
|
||||||
|
+ rmd160.c sha512.c
|
||||||
|
|
||||||
# generic header for mount and umount
|
# generic header for mount and umount
|
||||||
hdrs_mount = fstab.h mount_mntent.h mount_constants.h \
|
hdrs_mount = fstab.h mount_mntent.h mount_constants.h \
|
||||||
Index: util-linux-ng-2.18/mount/lomount.c
|
diff --git a/mount/lomount.c b/mount/lomount.c
|
||||||
===================================================================
|
index 67712c6..a0b951c 100644
|
||||||
--- util-linux-ng-2.18.orig/mount/lomount.c 2010-05-19 23:36:23.000000000 +0200
|
--- a/mount/lomount.c
|
||||||
+++ util-linux-ng-2.18/mount/lomount.c 2010-07-08 14:39:29.000000000 +0200
|
+++ b/mount/lomount.c
|
||||||
@@ -23,6 +23,12 @@
|
@@ -23,6 +23,12 @@
|
||||||
#include "sundries.h"
|
#include "sundries.h"
|
||||||
#include "xmalloc.h"
|
#include "xmalloc.h"
|
||||||
@ -142,7 +143,7 @@ Index: util-linux-ng-2.18/mount/lomount.c
|
|||||||
char *filename;
|
char *filename;
|
||||||
|
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
@@ -707,13 +742,37 @@ set_loop(const char *device, const char
|
@@ -707,13 +742,37 @@ set_loop(const char *device, const char *file, unsigned long long offset,
|
||||||
filename = (char *) file;
|
filename = (char *) file;
|
||||||
xstrncpy((char *)loopinfo64.lo_file_name, filename, LO_NAME_SIZE);
|
xstrncpy((char *)loopinfo64.lo_file_name, filename, LO_NAME_SIZE);
|
||||||
|
|
||||||
@ -182,7 +183,7 @@ Index: util-linux-ng-2.18/mount/lomount.c
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -734,20 +793,70 @@ set_loop(const char *device, const char
|
@@ -734,20 +793,70 @@ set_loop(const char *device, const char *file, unsigned long long offset,
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -265,7 +266,7 @@ Index: util-linux-ng-2.18/mount/lomount.c
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ioctl(fd, LOOP_SET_FD, ffd) < 0) {
|
if (ioctl(fd, LOOP_SET_FD, ffd) < 0) {
|
||||||
@@ -897,7 +1006,13 @@ usage(void) {
|
@@ -895,7 +1004,13 @@ usage(void) {
|
||||||
|
|
||||||
fprintf(stderr, _("\nOptions:\n"
|
fprintf(stderr, _("\nOptions:\n"
|
||||||
" -e | --encryption <type> enable data encryption with specified <name/num>\n"
|
" -e | --encryption <type> enable data encryption with specified <name/num>\n"
|
||||||
@ -279,7 +280,7 @@ Index: util-linux-ng-2.18/mount/lomount.c
|
|||||||
" -o | --offset <num> start at offset <num> into file\n"
|
" -o | --offset <num> start at offset <num> into file\n"
|
||||||
" --sizelimit <num> loop limited to only <num> bytes of the file\n"
|
" --sizelimit <num> loop limited to only <num> bytes of the file\n"
|
||||||
" -p | --pass-fd <num> read passphrase from file descriptor <num>\n"
|
" -p | --pass-fd <num> read passphrase from file descriptor <num>\n"
|
||||||
@@ -910,11 +1025,14 @@ usage(void) {
|
@@ -908,11 +1023,14 @@ usage(void) {
|
||||||
int
|
int
|
||||||
main(int argc, char **argv) {
|
main(int argc, char **argv) {
|
||||||
char *p, *offset, *sizelimit, *encryption, *passfd, *device, *file, *assoc;
|
char *p, *offset, *sizelimit, *encryption, *passfd, *device, *file, *assoc;
|
||||||
@ -291,10 +292,10 @@ Index: util-linux-ng-2.18/mount/lomount.c
|
|||||||
int ro = 0;
|
int ro = 0;
|
||||||
int pfd = -1;
|
int pfd = -1;
|
||||||
+ int keysz = 0;
|
+ int keysz = 0;
|
||||||
uintmax_t off = 0, slimit = 0;
|
unsigned long long off, slimit;
|
||||||
struct option longopts[] = {
|
struct option longopts[] = {
|
||||||
{ "all", 0, 0, 'a' },
|
{ "all", 0, 0, 'a' },
|
||||||
@@ -923,6 +1041,8 @@ main(int argc, char **argv) {
|
@@ -921,6 +1039,8 @@ main(int argc, char **argv) {
|
||||||
{ "encryption", 1, 0, 'e' },
|
{ "encryption", 1, 0, 'e' },
|
||||||
{ "find", 0, 0, 'f' },
|
{ "find", 0, 0, 'f' },
|
||||||
{ "help", 0, 0, 'h' },
|
{ "help", 0, 0, 'h' },
|
||||||
@ -304,8 +305,8 @@ Index: util-linux-ng-2.18/mount/lomount.c
|
|||||||
{ "offset", 1, 0, 'o' },
|
{ "offset", 1, 0, 'o' },
|
||||||
{ "sizelimit", 1, 0, 128 },
|
{ "sizelimit", 1, 0, 128 },
|
||||||
@@ -939,12 +1059,13 @@ main(int argc, char **argv) {
|
@@ -939,12 +1059,13 @@ main(int argc, char **argv) {
|
||||||
|
off = 0;
|
||||||
capacity = delete = find = all = 0;
|
slimit = 0;
|
||||||
assoc = offset = sizelimit = encryption = passfd = NULL;
|
assoc = offset = sizelimit = encryption = passfd = NULL;
|
||||||
+ keysize = NULL;
|
+ keysize = NULL;
|
||||||
|
|
||||||
@ -331,7 +332,7 @@ Index: util-linux-ng-2.18/mount/lomount.c
|
|||||||
case 'o':
|
case 'o':
|
||||||
offset = optarg;
|
offset = optarg;
|
||||||
break;
|
break;
|
||||||
@@ -1058,8 +1185,11 @@ main(int argc, char **argv) {
|
@@ -1054,8 +1181,11 @@ main(int argc, char **argv) {
|
||||||
else {
|
else {
|
||||||
if (passfd && sscanf(passfd, "%d", &pfd) != 1)
|
if (passfd && sscanf(passfd, "%d", &pfd) != 1)
|
||||||
usage();
|
usage();
|
||||||
@ -344,10 +345,10 @@ Index: util-linux-ng-2.18/mount/lomount.c
|
|||||||
if (res == 2 && find) {
|
if (res == 2 && find) {
|
||||||
if (verbose)
|
if (verbose)
|
||||||
printf(_("stolen loop=%s...trying again\n"),
|
printf(_("stolen loop=%s...trying again\n"),
|
||||||
Index: util-linux-ng-2.18/mount/lomount.h
|
diff --git a/mount/lomount.h b/mount/lomount.h
|
||||||
===================================================================
|
index 59108d4..07ab875 100644
|
||||||
--- util-linux-ng-2.18.orig/mount/lomount.h 2010-02-04 12:53:56.000000000 +0100
|
--- a/mount/lomount.h
|
||||||
+++ util-linux-ng-2.18/mount/lomount.h 2010-07-08 14:38:38.000000000 +0200
|
+++ b/mount/lomount.h
|
||||||
@@ -1,5 +1,6 @@
|
@@ -1,5 +1,6 @@
|
||||||
-extern int set_loop(const char *, const char *, unsigned long long, unsigned long long,
|
-extern int set_loop(const char *, const char *, unsigned long long, unsigned long long,
|
||||||
- const char *, int, int *);
|
- const char *, int, int *);
|
||||||
@ -357,11 +358,11 @@ Index: util-linux-ng-2.18/mount/lomount.h
|
|||||||
extern int del_loop(const char *);
|
extern int del_loop(const char *);
|
||||||
extern int is_loop_device(const char *);
|
extern int is_loop_device(const char *);
|
||||||
extern int is_loop_autoclear(const char *device);
|
extern int is_loop_autoclear(const char *device);
|
||||||
Index: util-linux-ng-2.18/mount/losetup.8
|
diff --git a/mount/losetup.8 b/mount/losetup.8
|
||||||
===================================================================
|
index 8ccab6c..8566898 100644
|
||||||
--- util-linux-ng-2.18.orig/mount/losetup.8 2010-05-19 23:36:23.000000000 +0200
|
--- a/mount/losetup.8
|
||||||
+++ util-linux-ng-2.18/mount/losetup.8 2010-07-08 14:38:38.000000000 +0200
|
+++ b/mount/losetup.8
|
||||||
@@ -96,9 +96,18 @@ find the first unused loop device. If a
|
@@ -92,9 +92,18 @@ find the first unused loop device. If a
|
||||||
argument is present, use this device. Otherwise, print its name
|
argument is present, use this device. Otherwise, print its name
|
||||||
.IP "\fB\-h, \-\-help\fP"
|
.IP "\fB\-h, \-\-help\fP"
|
||||||
print help
|
print help
|
||||||
@ -380,7 +381,7 @@ Index: util-linux-ng-2.18/mount/losetup.8
|
|||||||
.IP "\fB\-o, \-\-offset \fIoffset\fP"
|
.IP "\fB\-o, \-\-offset \fIoffset\fP"
|
||||||
the data start is moved \fIoffset\fP bytes into the specified file or
|
the data start is moved \fIoffset\fP bytes into the specified file or
|
||||||
device
|
device
|
||||||
@@ -169,6 +178,8 @@ the command
|
@@ -165,6 +174,8 @@ the command
|
||||||
.fi
|
.fi
|
||||||
.SH RESTRICTION
|
.SH RESTRICTION
|
||||||
DES encryption is painfully slow. On the other hand, XOR is terribly weak.
|
DES encryption is painfully slow. On the other hand, XOR is terribly weak.
|
||||||
@ -389,11 +390,11 @@ Index: util-linux-ng-2.18/mount/losetup.8
|
|||||||
|
|
||||||
Cryptoloop is deprecated in favor of dm-crypt. For more details see
|
Cryptoloop is deprecated in favor of dm-crypt. For more details see
|
||||||
.BR cryptsetup (8).
|
.BR cryptsetup (8).
|
||||||
Index: util-linux-ng-2.18/mount/mount.8
|
diff --git a/mount/mount.8 b/mount/mount.8
|
||||||
===================================================================
|
index 2888b46..582898a 100644
|
||||||
--- util-linux-ng-2.18.orig/mount/mount.8 2010-06-30 10:41:35.000000000 +0200
|
--- a/mount/mount.8
|
||||||
+++ util-linux-ng-2.18/mount/mount.8 2010-07-08 14:38:38.000000000 +0200
|
+++ b/mount/mount.8
|
||||||
@@ -869,6 +869,15 @@ Every time the inode is modified, the i_
|
@@ -826,6 +826,15 @@ Every time the inode is modified, the i_version field will be incremented.
|
||||||
.B noiversion
|
.B noiversion
|
||||||
Do not increment the i_version inode field.
|
Do not increment the i_version inode field.
|
||||||
.TP
|
.TP
|
||||||
@ -409,7 +410,7 @@ Index: util-linux-ng-2.18/mount/mount.8
|
|||||||
.B mand
|
.B mand
|
||||||
Allow mandatory locks on this filesystem. See
|
Allow mandatory locks on this filesystem. See
|
||||||
.BR fcntl (2).
|
.BR fcntl (2).
|
||||||
@@ -2582,6 +2591,10 @@ that are really options to
|
@@ -2525,6 +2534,10 @@ that are really options to
|
||||||
.BR \%losetup (8).
|
.BR \%losetup (8).
|
||||||
(These options can be used in addition to those specific
|
(These options can be used in addition to those specific
|
||||||
to the filesystem type.)
|
to the filesystem type.)
|
||||||
@ -418,13 +419,13 @@ Index: util-linux-ng-2.18/mount/mount.8
|
|||||||
+.BR \-\-pass-fd
|
+.BR \-\-pass-fd
|
||||||
+option.
|
+option.
|
||||||
|
|
||||||
Since Linux 2.6.25 is supported auto-destruction of loop devices and
|
If no explicit loop device is mentioned
|
||||||
then any loop device allocated by
|
(but just an option `\fB\-o loop\fP' is given), then
|
||||||
Index: util-linux-ng-2.18/mount/mount.c
|
diff --git a/mount/mount.c b/mount/mount.c
|
||||||
===================================================================
|
index efe1165..09006f7 100644
|
||||||
--- util-linux-ng-2.18.orig/mount/mount.c 2010-06-30 12:51:09.000000000 +0200
|
--- a/mount/mount.c
|
||||||
+++ util-linux-ng-2.18/mount/mount.c 2010-07-08 14:38:38.000000000 +0200
|
+++ b/mount/mount.c
|
||||||
@@ -96,6 +96,9 @@ struct mountargs {
|
@@ -95,6 +95,9 @@ struct mountargs {
|
||||||
void *data;
|
void *data;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -434,7 +435,7 @@ Index: util-linux-ng-2.18/mount/mount.c
|
|||||||
/* Map from -o and fstab option strings to the flag argument to mount(2). */
|
/* Map from -o and fstab option strings to the flag argument to mount(2). */
|
||||||
struct opt_map {
|
struct opt_map {
|
||||||
const char *opt; /* option name */
|
const char *opt; /* option name */
|
||||||
@@ -201,6 +204,7 @@ static int opt_nofail = 0;
|
@@ -200,6 +203,7 @@ static int opt_nofail = 0;
|
||||||
|
|
||||||
static const char *opt_loopdev, *opt_vfstype, *opt_offset, *opt_sizelimit,
|
static const char *opt_loopdev, *opt_vfstype, *opt_offset, *opt_sizelimit,
|
||||||
*opt_encryption, *opt_speed, *opt_comment, *opt_uhelper;
|
*opt_encryption, *opt_speed, *opt_comment, *opt_uhelper;
|
||||||
@ -442,7 +443,7 @@ Index: util-linux-ng-2.18/mount/mount.c
|
|||||||
|
|
||||||
static int is_readonly(const char *node);
|
static int is_readonly(const char *node);
|
||||||
static int mounted (const char *spec0, const char *node0);
|
static int mounted (const char *spec0, const char *node0);
|
||||||
@@ -217,6 +221,8 @@ static struct string_opt_map {
|
@@ -216,6 +220,8 @@ static struct string_opt_map {
|
||||||
{ "offset=", 0, &opt_offset },
|
{ "offset=", 0, &opt_offset },
|
||||||
{ "sizelimit=", 0, &opt_sizelimit },
|
{ "sizelimit=", 0, &opt_sizelimit },
|
||||||
{ "encryption=", 0, &opt_encryption },
|
{ "encryption=", 0, &opt_encryption },
|
||||||
@ -451,7 +452,7 @@ Index: util-linux-ng-2.18/mount/mount.c
|
|||||||
{ "speed=", 0, &opt_speed },
|
{ "speed=", 0, &opt_speed },
|
||||||
{ "comment=", 1, &opt_comment },
|
{ "comment=", 1, &opt_comment },
|
||||||
{ "uhelper=", 0, &opt_uhelper },
|
{ "uhelper=", 0, &opt_uhelper },
|
||||||
@@ -1116,7 +1122,8 @@ loop_check(const char **spec, const char
|
@@ -1081,7 +1087,8 @@ loop_check(const char **spec, const char **type, int *flags,
|
||||||
*type = opt_vfstype;
|
*type = opt_vfstype;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -460,8 +461,8 @@ Index: util-linux-ng-2.18/mount/mount.c
|
|||||||
+ opt_encryption || opt_phash || opt_keybits);
|
+ opt_encryption || opt_phash || opt_keybits);
|
||||||
*loopfile = *spec;
|
*loopfile = *spec;
|
||||||
|
|
||||||
/* Automatically create a loop device from a regular file if a filesystem
|
if (*loop) {
|
||||||
@@ -1170,7 +1177,7 @@ loop_check(const char **spec, const char
|
@@ -1113,7 +1120,7 @@ loop_check(const char **spec, const char **type, int *flags,
|
||||||
printf(_("mount: going to use the loop device %s\n"), *loopdev);
|
printf(_("mount: going to use the loop device %s\n"), *loopdev);
|
||||||
|
|
||||||
if ((res = set_loop(*loopdev, *loopfile, offset, sizelimit,
|
if ((res = set_loop(*loopdev, *loopfile, offset, sizelimit,
|
||||||
@ -470,7 +471,7 @@ Index: util-linux-ng-2.18/mount/mount.c
|
|||||||
if (res == 2) {
|
if (res == 2) {
|
||||||
/* loop dev has been grabbed by some other process,
|
/* loop dev has been grabbed by some other process,
|
||||||
try again, if not given explicitly */
|
try again, if not given explicitly */
|
||||||
@@ -1981,6 +1988,7 @@ static struct option longopts[] = {
|
@@ -1920,6 +1927,7 @@ static struct option longopts[] = {
|
||||||
{ "options", 1, 0, 'o' },
|
{ "options", 1, 0, 'o' },
|
||||||
{ "test-opts", 1, 0, 'O' },
|
{ "test-opts", 1, 0, 'O' },
|
||||||
{ "pass-fd", 1, 0, 'p' },
|
{ "pass-fd", 1, 0, 'p' },
|
||||||
@ -478,7 +479,7 @@ Index: util-linux-ng-2.18/mount/mount.c
|
|||||||
{ "types", 1, 0, 't' },
|
{ "types", 1, 0, 't' },
|
||||||
{ "bind", 0, 0, 'B' },
|
{ "bind", 0, 0, 'B' },
|
||||||
{ "move", 0, 0, 'M' },
|
{ "move", 0, 0, 'M' },
|
||||||
@@ -2143,6 +2151,7 @@ main(int argc, char *argv[]) {
|
@@ -2082,6 +2090,7 @@ main(int argc, char *argv[]) {
|
||||||
char *options = NULL, *test_opts = NULL, *node;
|
char *options = NULL, *test_opts = NULL, *node;
|
||||||
const char *spec = NULL;
|
const char *spec = NULL;
|
||||||
char *label = NULL;
|
char *label = NULL;
|
||||||
@ -486,7 +487,7 @@ Index: util-linux-ng-2.18/mount/mount.c
|
|||||||
char *uuid = NULL;
|
char *uuid = NULL;
|
||||||
char *types = NULL;
|
char *types = NULL;
|
||||||
char *p;
|
char *p;
|
||||||
@@ -2173,7 +2182,7 @@ main(int argc, char *argv[]) {
|
@@ -2112,7 +2121,7 @@ main(int argc, char *argv[]) {
|
||||||
initproctitle(argc, argv);
|
initproctitle(argc, argv);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -495,7 +496,7 @@ Index: util-linux-ng-2.18/mount/mount.c
|
|||||||
longopts, NULL)) != -1) {
|
longopts, NULL)) != -1) {
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case 'a': /* mount everything in fstab */
|
case 'a': /* mount everything in fstab */
|
||||||
@@ -2194,6 +2203,9 @@ main(int argc, char *argv[]) {
|
@@ -2133,6 +2142,9 @@ main(int argc, char *argv[]) {
|
||||||
case 'i':
|
case 'i':
|
||||||
external_allowed = 0;
|
external_allowed = 0;
|
||||||
break;
|
break;
|
||||||
@ -505,7 +506,7 @@ Index: util-linux-ng-2.18/mount/mount.c
|
|||||||
case 'l':
|
case 'l':
|
||||||
list_with_volumelabel = 1;
|
list_with_volumelabel = 1;
|
||||||
break;
|
break;
|
||||||
@@ -2341,6 +2353,9 @@ main(int argc, char *argv[]) {
|
@@ -2280,6 +2292,9 @@ main(int argc, char *argv[]) {
|
||||||
|
|
||||||
atexit(unlock_mtab);
|
atexit(unlock_mtab);
|
||||||
|
|
||||||
@ -515,10 +516,11 @@ Index: util-linux-ng-2.18/mount/mount.c
|
|||||||
switch (argc+specseen) {
|
switch (argc+specseen) {
|
||||||
case 0:
|
case 0:
|
||||||
/* mount -a */
|
/* mount -a */
|
||||||
Index: util-linux-ng-2.18/mount/rmd160.c
|
diff --git a/mount/rmd160.c b/mount/rmd160.c
|
||||||
===================================================================
|
new file mode 100644
|
||||||
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
index 0000000..3430954
|
||||||
+++ util-linux-ng-2.18/mount/rmd160.c 2010-07-08 14:38:38.000000000 +0200
|
--- /dev/null
|
||||||
|
+++ b/mount/rmd160.c
|
||||||
@@ -0,0 +1,532 @@
|
@@ -0,0 +1,532 @@
|
||||||
+/* rmd160.c - RIPE-MD160
|
+/* rmd160.c - RIPE-MD160
|
||||||
+ * Copyright (C) 1998 Free Software Foundation, Inc.
|
+ * Copyright (C) 1998 Free Software Foundation, Inc.
|
||||||
@ -1052,10 +1054,11 @@ Index: util-linux-ng-2.18/mount/rmd160.c
|
|||||||
+ rmd160_final( &hd );
|
+ rmd160_final( &hd );
|
||||||
+ memcpy( outbuf, hd.buf, 20 );
|
+ memcpy( outbuf, hd.buf, 20 );
|
||||||
+}
|
+}
|
||||||
Index: util-linux-ng-2.18/mount/rmd160.h
|
diff --git a/mount/rmd160.h b/mount/rmd160.h
|
||||||
===================================================================
|
new file mode 100644
|
||||||
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
index 0000000..4b2c61d
|
||||||
+++ util-linux-ng-2.18/mount/rmd160.h 2010-07-08 14:38:38.000000000 +0200
|
--- /dev/null
|
||||||
|
+++ b/mount/rmd160.h
|
||||||
@@ -0,0 +1,11 @@
|
@@ -0,0 +1,11 @@
|
||||||
+#ifndef RMD160_H
|
+#ifndef RMD160_H
|
||||||
+#define RMD160_H
|
+#define RMD160_H
|
||||||
@ -1068,10 +1071,11 @@ Index: util-linux-ng-2.18/mount/rmd160.h
|
|||||||
+#endif /*RMD160_H*/
|
+#endif /*RMD160_H*/
|
||||||
+
|
+
|
||||||
+
|
+
|
||||||
Index: util-linux-ng-2.18/mount/sha512.c
|
diff --git a/mount/sha512.c b/mount/sha512.c
|
||||||
===================================================================
|
new file mode 100644
|
||||||
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
index 0000000..f717c8b
|
||||||
+++ util-linux-ng-2.18/mount/sha512.c 2010-07-08 14:38:38.000000000 +0200
|
--- /dev/null
|
||||||
|
+++ b/mount/sha512.c
|
||||||
@@ -0,0 +1,432 @@
|
@@ -0,0 +1,432 @@
|
||||||
+/*
|
+/*
|
||||||
+ * sha512.c
|
+ * sha512.c
|
||||||
@ -1505,10 +1509,11 @@ Index: util-linux-ng-2.18/mount/sha512.c
|
|||||||
+ memset(&ctx, 0, sizeof(ctx));
|
+ memset(&ctx, 0, sizeof(ctx));
|
||||||
+}
|
+}
|
||||||
+#endif
|
+#endif
|
||||||
Index: util-linux-ng-2.18/mount/sha512.h
|
diff --git a/mount/sha512.h b/mount/sha512.h
|
||||||
===================================================================
|
new file mode 100644
|
||||||
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
index 0000000..4b57c01
|
||||||
+++ util-linux-ng-2.18/mount/sha512.h 2010-07-08 14:38:38.000000000 +0200
|
--- /dev/null
|
||||||
|
+++ b/mount/sha512.h
|
||||||
@@ -0,0 +1,45 @@
|
@@ -0,0 +1,45 @@
|
||||||
+/*
|
+/*
|
||||||
+ * sha512.h
|
+ * sha512.h
|
||||||
@ -1555,3 +1560,6 @@ Index: util-linux-ng-2.18/mount/sha512.h
|
|||||||
+/* no sha384_write(), use sha512_write() */
|
+/* no sha384_write(), use sha512_write() */
|
||||||
+/* no sha384_final(), use sha512_final(), result in ctx->sha_out[0...47] */
|
+/* no sha384_final(), use sha512_final(), result in ctx->sha_out[0...47] */
|
||||||
+extern void sha384_hash_buffer(const unsigned char *, size_t, unsigned char *, size_t);
|
+extern void sha384_hash_buffer(const unsigned char *, size_t, unsigned char *, size_t);
|
||||||
|
--
|
||||||
|
1.6.4.2
|
||||||
|
|
||||||
|
15
util-linux-addpart-use-atoll.patch
Normal file
15
util-linux-addpart-use-atoll.patch
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
Index: util-linux-ng-2.17.2/partx/addpart.c
|
||||||
|
===================================================================
|
||||||
|
--- util-linux-ng-2.17.2.orig/partx/addpart.c 2010-01-28 15:57:59.000000000 +0100
|
||||||
|
+++ util-linux-ng-2.17.2/partx/addpart.c 2010-05-11 15:51:26.000000000 +0200
|
||||||
|
@@ -25,8 +25,8 @@ main(int argc, char **argv){
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
p.pno = atoi(argv[2]);
|
||||||
|
- p.start = 512 * ((long long) atol(argv[3]));
|
||||||
|
- p.length = 512 * ((long long) atol(argv[4]));
|
||||||
|
+ p.start = 512 * atoll(argv[3]);
|
||||||
|
+ p.length = 512 * atoll(argv[4]);
|
||||||
|
p.devname[0] = 0;
|
||||||
|
p.volname[0] = 0;
|
||||||
|
a.op = BLKPG_ADD_PARTITION;
|
41
util-linux-mount-detect-ro-mount.patch
Normal file
41
util-linux-mount-detect-ro-mount.patch
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
From 81694f8c60dffb7851f941e69a1b79bc573ace53 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Petr Uzel <petr.uzel@suse.cz>
|
||||||
|
Date: Fri, 21 May 2010 15:19:31 +0200
|
||||||
|
Subject: [PATCH] mount: detect when kernel silently adds MS_RDONLY flag
|
||||||
|
|
||||||
|
Linux kernel can silently add MS_RDONLY flag when mounting file system that
|
||||||
|
does not have write support. Check this to avoid 'ro' in /proc/mounts and 'rw'
|
||||||
|
in mtab.
|
||||||
|
|
||||||
|
[kzak@redhat.com: - don't check for 'ro' for MS_MOVE and MS_PROPAGATION]
|
||||||
|
|
||||||
|
Reported-by: James Foris <jim.foris@med.ge.com>
|
||||||
|
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
|
||||||
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
||||||
|
---
|
||||||
|
mount/mount.c | 12 ++++++++++++
|
||||||
|
1 files changed, 12 insertions(+), 0 deletions(-)
|
||||||
|
|
||||||
|
Index: util-linux-ng-2.17.2/mount/mount.c
|
||||||
|
===================================================================
|
||||||
|
--- util-linux-ng-2.17.2.orig/mount/mount.c 2010-05-28 15:22:47.000000000 +0200
|
||||||
|
+++ util-linux-ng-2.17.2/mount/mount.c 2010-05-28 15:23:03.000000000 +0200
|
||||||
|
@@ -1388,6 +1388,18 @@ mount_retry:
|
||||||
|
flags &= ~MS_RDONLY;
|
||||||
|
}
|
||||||
|
|
||||||
|
+ /* Kernel can silently add MS_RDONLY flag when mounting file system that
|
||||||
|
+ * does not have write support. Check this to avoid 'ro' in /proc/mounts
|
||||||
|
+ * and 'rw' in mtab.
|
||||||
|
+ */
|
||||||
|
+ if (!fake && mnt5_res == 0 &&
|
||||||
|
+ !(flags & MS_RDONLY) && !(flags & MS_PROPAGATION) && !(flags & MS_MOVE) &&
|
||||||
|
+ is_readonly(node)) {
|
||||||
|
+
|
||||||
|
+ printf(_("mount: warning: %s seems to be mounted read-only.\n"), node);
|
||||||
|
+ flags |= MS_RDONLY;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
if (fake || mnt5_res == 0) {
|
||||||
|
/* Mount succeeded, report this (if verbose) and write mtab entry. */
|
||||||
|
|
3
util-linux-ng-2.17.2.tar.bz2
Normal file
3
util-linux-ng-2.17.2.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:c9ae801b6a5ab20b7749a278a8bf6830ef53adc5e8b7eb0ac1a9f410c774118f
|
||||||
|
size 3815657
|
BIN
util-linux-ng-2.18.tar.bz2
(Stored with Git LFS)
BIN
util-linux-ng-2.18.tar.bz2
(Stored with Git LFS)
Binary file not shown.
@ -1,4 +1,5 @@
|
|||||||
addFilter("init-script-without-%stop_on_removal-preun /etc/init.d/raw")
|
addFilter("init-script-without-%stop_on_removal-preun /etc/init.d/raw")
|
||||||
addFilter("incoherent-init-script-name raw")
|
addFilter("incoherent-init-script-name raw")
|
||||||
addFilter("no-reload-entry /etc/init.d/raw")
|
addFilter("no-reload-entry /etc/init.d/raw")
|
||||||
|
addFilter("files-duplicate .*(rootflags|ramsize|vidmode)")
|
||||||
|
|
||||||
|
@ -1,28 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Fri Jul 9 06:23:27 UTC 2010 - puzel@novell.com
|
|
||||||
|
|
||||||
- update to util-linux-ng-2.18
|
|
||||||
- do not provide rdev, ramsize, vidmode and rootflags commands
|
|
||||||
anymore
|
|
||||||
- fdisk does not use cylinders as display units by default
|
|
||||||
- libmount: new library; its API is still officially unstable
|
|
||||||
- new commands: findmnt, fsfreeze, swaplabel
|
|
||||||
- blkid: new option "-i" to print I/O limits
|
|
||||||
- full release notes:
|
|
||||||
ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/v2.18/v2.18-ReleaseNotes
|
|
||||||
- update to adjtimex-1.28
|
|
||||||
- update to which-2.20
|
|
||||||
- drop util-linux-2.14.1-mount_skip_sync.patch (fixed upstream)
|
|
||||||
- drop util-linux-addpart-use-atoll.patch (fixed upstream)
|
|
||||||
- drop util-linux-mount-detect-ro-mount.patch (fixed upstream)
|
|
||||||
- drop adjtimex-1.20-nosyscall.diff (fixed upstream)
|
|
||||||
- cleanup specfile a bit
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Mon Jun 28 06:38:35 UTC 2010 - jengelh@medozas.de
|
|
||||||
|
|
||||||
- use %_smp_mflags
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jun 24 23:24:41 CEST 2010 - jeffm@suse.de
|
Thu Jun 24 23:24:41 CEST 2010 - jeffm@suse.de
|
||||||
|
|
||||||
|
152
util-linux.spec
152
util-linux.spec
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package util-linux (Version 2.18)
|
# spec file for package util-linux (Version 2.17.2)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@ -17,40 +17,30 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
%define time_ver 1.7
|
|
||||||
%define which_ver 2.20
|
|
||||||
%define adjtimex_ver 1.28
|
|
||||||
|
|
||||||
Name: util-linux
|
Name: util-linux
|
||||||
BuildRequires: audit-devel
|
BuildRequires: audit-devel gettext-devel pkg-config
|
||||||
BuildRequires: gettext-devel
|
BuildRequires: libselinux-devel libsepol-devel ncurses-devel pam-devel readline-devel zlib-devel
|
||||||
BuildRequires: libselinux-devel
|
|
||||||
BuildRequires: libsepol-devel
|
|
||||||
BuildRequires: ncurses-devel
|
|
||||||
BuildRequires: pam-devel
|
|
||||||
BuildRequires: pkg-config
|
|
||||||
BuildRequires: readline-devel
|
|
||||||
BuildRequires: zlib-devel
|
|
||||||
Url: http://userweb.kernel.org/~kzak/util-linux-ng/
|
Url: http://userweb.kernel.org/~kzak/util-linux-ng/
|
||||||
Supplements: filesystem(minix)
|
Supplements: filesystem(minix)
|
||||||
PreReq: %install_info_prereq permissions
|
PreReq: %install_info_prereq permissions
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: System/Base
|
Group: System/Base
|
||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
Version: 2.18
|
Version: 2.17.2
|
||||||
Release: 5
|
Release: 5
|
||||||
Recommends: %name-lang = %{version}
|
Recommends: %name-lang = %{version}
|
||||||
Summary: A collection of basic system utilities
|
Summary: A collection of basic system utilities
|
||||||
Source: ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/v%{version}/%name-ng-%{version}.tar.bz2
|
Source: ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/v%{version}/%name-ng-%{version}.tar.bz2
|
||||||
Source1: util-linux-rpmlintrc
|
Source1: util-linux-rpmlintrc
|
||||||
# XXX: make nologin part of login package
|
|
||||||
Source2: nologin.c
|
Source2: nologin.c
|
||||||
Source3: nologin.8
|
Source3: nologin.8
|
||||||
Source4: raw.init
|
Source4: raw.init
|
||||||
Source5: etc.raw
|
Source5: etc.raw
|
||||||
Source6: etc_filesystems
|
Source6: etc_filesystems
|
||||||
# XXX: add libmnt
|
|
||||||
Source7: baselibs.conf
|
Source7: baselibs.conf
|
||||||
|
%define time_ver 1.7
|
||||||
|
%define which_ver 2.19
|
||||||
|
%define adjtimex_ver 1.20
|
||||||
# XXX: post upstream?
|
# XXX: post upstream?
|
||||||
Source9: adjtimex-%{adjtimex_ver}.tar.bz2
|
Source9: adjtimex-%{adjtimex_ver}.tar.bz2
|
||||||
# XXX: post upstream?
|
# XXX: post upstream?
|
||||||
@ -76,13 +66,20 @@ Source51: blkid.conf
|
|||||||
##
|
##
|
||||||
# 241372 - remove legacy warnings from fdisk
|
# 241372 - remove legacy warnings from fdisk
|
||||||
Patch1: util-linux-2.12r-fdisk_remove_bogus_warnings.patch
|
Patch1: util-linux-2.12r-fdisk_remove_bogus_warnings.patch
|
||||||
|
# bnc#447036
|
||||||
|
Patch2: util-linux-2.14.1-mount_skip_sync.patch
|
||||||
# crypto patch
|
# crypto patch
|
||||||
Patch3: util-linux-2.17.1-mount_losetup_crypto.patch
|
Patch3: util-linux-2.17.1-mount_losetup_crypto.patch
|
||||||
Patch4: util-linux-2.17.1-losetup-honor-documented-c-option
|
Patch4: util-linux-2.17.1-losetup-honor-documented-c-option
|
||||||
|
# 603328
|
||||||
|
Patch5: util-linux-addpart-use-atoll.patch
|
||||||
|
# bnc#481123
|
||||||
|
Patch6: util-linux-mount-detect-ro-mount.patch
|
||||||
Patch7: util-linux-swapon-btrfs-limitations
|
Patch7: util-linux-swapon-btrfs-limitations
|
||||||
##
|
##
|
||||||
## adjtimex
|
## adjtimex
|
||||||
##
|
##
|
||||||
|
Patch50: adjtimex-1.20-nosyscall.diff
|
||||||
##
|
##
|
||||||
## klogconsole
|
## klogconsole
|
||||||
##
|
##
|
||||||
@ -99,8 +96,8 @@ Patch70: which-lib64.patch
|
|||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
PreReq: %insserv_prereq %fillup_prereq /bin/sed
|
PreReq: %insserv_prereq %fillup_prereq /bin/sed
|
||||||
#
|
#
|
||||||
Provides: util = %{version}-%{release} rawio = %{version}-%{release} raw = %{version}-%{release} base = %{version}-%{release} uuid-runtime = %{version}-%{release}
|
Provides: util = %{version}-%{release} rawio = %{version}-%{release} raw = %{version}-%{release} base = %{version}-%{release} schedutils = %{version}-%{release} uuid-runtime = %{version}-%{release}
|
||||||
Obsoletes: util < %{version}-%{release} rawio < %{version}-%{release} raw < %{version}-%{release} base < %{version}-%{release} uuid-runtime < %{version}-%{release}
|
Obsoletes: util < %{version}-%{release} rawio < %{version}-%{release} raw < %{version}-%{release} base < %{version}-%{release} schedutils < %{version}-%{release} uuid-runtime < %{version}-%{release}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package contains a large variety of low-level system utilities
|
This package contains a large variety of low-level system utilities
|
||||||
@ -121,7 +118,7 @@ License: GPLv2+
|
|||||||
Summary: Development files for the filesystem detection library
|
Summary: Development files for the filesystem detection library
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
Requires: libblkid1 = %version
|
Requires: libblkid1 = %version libuuid-devel
|
||||||
|
|
||||||
%description -n libblkid-devel
|
%description -n libblkid-devel
|
||||||
Files needed to develop applications using the library for filesystem
|
Files needed to develop applications using the library for filesystem
|
||||||
@ -159,44 +156,27 @@ Requires: libuuid1 = %version
|
|||||||
Files to develop applications using the library to generate universally
|
Files to develop applications using the library to generate universally
|
||||||
unique IDs (UUIDs).
|
unique IDs (UUIDs).
|
||||||
|
|
||||||
%package -n libmount1
|
|
||||||
License: GPLv2+
|
|
||||||
Summary: Mount library
|
|
||||||
Group: System/Filesystems
|
|
||||||
AutoReqProv: on
|
|
||||||
|
|
||||||
%description -n libmount1
|
|
||||||
Library designed to be used in low-level utils like
|
|
||||||
mount(8) and /sbin/mount.<type> helpers.
|
|
||||||
|
|
||||||
%package -n libmount-devel
|
|
||||||
License: GPLv2+
|
|
||||||
Summary: Development files for libmount1
|
|
||||||
Group: Development/Libraries/C and C++
|
|
||||||
AutoReqProv: on
|
|
||||||
Requires: libmount1 = %version
|
|
||||||
|
|
||||||
%description -n libmount-devel
|
|
||||||
Files to develop applications using the libmount library.
|
|
||||||
|
|
||||||
%lang_package
|
%lang_package
|
||||||
%prep
|
%prep
|
||||||
%setup -q -a 9 -b 11 -b 12 -b 13 -n %name-ng-%version
|
%setup -q -a 9 -b 11 -b 12 -b 13 -n %name-ng-%version
|
||||||
|
#patch0 -p1
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
|
%patch2 -p1
|
||||||
%patch3 -p1
|
%patch3 -p1
|
||||||
%patch4 -p1
|
%patch4 -p1
|
||||||
|
%patch5 -p1
|
||||||
|
%patch6 -p1
|
||||||
%patch7 -p1
|
%patch7 -p1
|
||||||
#
|
#
|
||||||
cd adjtimex-*
|
cd adjtimex-*
|
||||||
# adjtimex patches belongs here
|
%patch50 -p1
|
||||||
cd -
|
cd -
|
||||||
# setctsid
|
# setctsid
|
||||||
cp %{S:22} %{S:23} .
|
cp %{S:22} %{S:23} .
|
||||||
# nologin
|
# nologin
|
||||||
cp %{S:2} %{S:3} %{S:26} %{S:30} .
|
cp %{S:2} %{S:3} %{S:26} %{S:30} .
|
||||||
cd ../klogconsole
|
cd ../klogconsole
|
||||||
#%#patch55 -p1 -b .quiet
|
%patch55 -p1 -b .quiet
|
||||||
%patch55 -p1
|
|
||||||
%patch56 -p1
|
%patch56 -p1
|
||||||
cd ../time-*
|
cd ../time-*
|
||||||
%patch60
|
%patch60
|
||||||
@ -207,11 +187,12 @@ cd ../which-*
|
|||||||
# adjtimex build
|
# adjtimex build
|
||||||
cd adjtimex-%{adjtimex_ver}
|
cd adjtimex-%{adjtimex_ver}
|
||||||
CFLAGS="$RPM_OPT_FLAGS" ./configure
|
CFLAGS="$RPM_OPT_FLAGS" ./configure
|
||||||
make %{?_smp_mflags}
|
make %{?jobs:-j%jobs}
|
||||||
cd ..
|
cd ..
|
||||||
pushd ../
|
pushd ../
|
||||||
# which build
|
# which build
|
||||||
cd which-%{which_ver}
|
cd which-%{which_ver}
|
||||||
|
#autoreconf -fi
|
||||||
aclocal --force
|
aclocal --force
|
||||||
autoconf --force
|
autoconf --force
|
||||||
automake --force-missing --add-missing --foreign
|
automake --force-missing --add-missing --foreign
|
||||||
@ -220,7 +201,7 @@ CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr \
|
|||||||
--mandir=%{_mandir} \
|
--mandir=%{_mandir} \
|
||||||
--infodir=%{_infodir} \
|
--infodir=%{_infodir} \
|
||||||
%{_target_cpu}-suse-linux
|
%{_target_cpu}-suse-linux
|
||||||
make %{?_smp_mflags}
|
make %{?jobs:-j%jobs}
|
||||||
cd ..
|
cd ..
|
||||||
# time build
|
# time build
|
||||||
cd time-%{time_ver}
|
cd time-%{time_ver}
|
||||||
@ -230,16 +211,16 @@ CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE " INSTALL_PROGRAM='$(INSTALL)' \
|
|||||||
--mandir=%{_mandir} \
|
--mandir=%{_mandir} \
|
||||||
--infodir=%{_infodir} \
|
--infodir=%{_infodir} \
|
||||||
%{_target_cpu}-suse-linux
|
%{_target_cpu}-suse-linux
|
||||||
make %{?_smp_mflags}
|
make %{?jobs:-j%jobs}
|
||||||
cd ..
|
cd ..
|
||||||
# klogconsole build
|
# klogconsole build
|
||||||
cd klogconsole
|
cd klogconsole
|
||||||
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS"
|
make %{?jobs:-j%jobs} CFLAGS="$RPM_OPT_FLAGS"
|
||||||
cd ..
|
cd ..
|
||||||
popd
|
popd
|
||||||
# setctsid build
|
# setctsid build
|
||||||
rm -f setctsid
|
rm -f setctsid
|
||||||
make %{?_smp_mflags} setctsid CFLAGS="$RPM_OPT_FLAGS"
|
make %{?jobs:-j%jobs} setctsid CFLAGS="$RPM_OPT_FLAGS"
|
||||||
#
|
#
|
||||||
# util-linux itself
|
# util-linux itself
|
||||||
#
|
#
|
||||||
@ -262,8 +243,11 @@ CFLAGS="$RPM_OPT_FLAGS" \
|
|||||||
--enable-write \
|
--enable-write \
|
||||||
--disable-use-tty-group \
|
--disable-use-tty-group \
|
||||||
--disable-static \
|
--disable-static \
|
||||||
|
%ifarch %ix86 x86_64
|
||||||
|
--enable-rdev \
|
||||||
|
%endif
|
||||||
#
|
#
|
||||||
make %{?_smp_mflags}
|
make %{?jobs:-j%jobs}
|
||||||
#
|
#
|
||||||
gcc $RPM_OPT_FLAGS -o nologin nologin.c
|
gcc $RPM_OPT_FLAGS -o nologin nologin.c
|
||||||
gcc $RPM_OPT_FLAGS -o mkzimage_cmdline %{S:29}
|
gcc $RPM_OPT_FLAGS -o mkzimage_cmdline %{S:29}
|
||||||
@ -316,7 +300,6 @@ install -m 644 %{SOURCE6} $RPM_BUILD_ROOT/etc/filesystems
|
|||||||
install -m 755 nologin $RPM_BUILD_ROOT/sbin
|
install -m 755 nologin $RPM_BUILD_ROOT/sbin
|
||||||
rm -f $RPM_BUILD_ROOT/%{_libdir}/libblkid.la
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/libblkid.la
|
||||||
rm -f $RPM_BUILD_ROOT/%{_libdir}/libuuid.la
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/libuuid.la
|
||||||
rm -f $RPM_BUILD_ROOT/%{_libdir}/libmount.la
|
|
||||||
%ifnarch ppc ppc64
|
%ifnarch ppc ppc64
|
||||||
install -m 755 mkzimage_cmdline $RPM_BUILD_ROOT/usr/bin
|
install -m 755 mkzimage_cmdline $RPM_BUILD_ROOT/usr/bin
|
||||||
install -m 644 %{S:28} $RPM_BUILD_ROOT%{_mandir}/man8
|
install -m 644 %{S:28} $RPM_BUILD_ROOT%{_mandir}/man8
|
||||||
@ -402,12 +385,6 @@ fi
|
|||||||
%postun -n libblkid1
|
%postun -n libblkid1
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
|
|
||||||
%post -n libmount1
|
|
||||||
/sbin/ldconfig
|
|
||||||
|
|
||||||
%postun -n libmount1
|
|
||||||
/sbin/ldconfig
|
|
||||||
|
|
||||||
%pre -n uuidd
|
%pre -n uuidd
|
||||||
/usr/sbin/groupadd -r uuidd 2>/dev/null || :
|
/usr/sbin/groupadd -r uuidd 2>/dev/null || :
|
||||||
/usr/sbin/useradd -r -g uuidd -c "User for uuidd" \
|
/usr/sbin/useradd -r -g uuidd -c "User for uuidd" \
|
||||||
@ -455,7 +432,6 @@ fi
|
|||||||
/bin/more
|
/bin/more
|
||||||
/bin/mount
|
/bin/mount
|
||||||
/bin/umount
|
/bin/umount
|
||||||
/bin/findmnt
|
|
||||||
/sbin/adjtimex
|
/sbin/adjtimex
|
||||||
/sbin/agetty
|
/sbin/agetty
|
||||||
/sbin/blockdev
|
/sbin/blockdev
|
||||||
@ -479,8 +455,6 @@ fi
|
|||||||
/sbin/fsck
|
/sbin/fsck
|
||||||
/sbin/switch_root
|
/sbin/switch_root
|
||||||
/sbin/wipefs
|
/sbin/wipefs
|
||||||
/sbin/fsfreeze
|
|
||||||
/sbin/swaplabel
|
|
||||||
/usr/bin/ipcmk
|
/usr/bin/ipcmk
|
||||||
/bin/logger
|
/bin/logger
|
||||||
/usr/bin/cal
|
/usr/bin/cal
|
||||||
@ -499,6 +473,8 @@ fi
|
|||||||
/usr/bin/ipcs
|
/usr/bin/ipcs
|
||||||
/usr/bin/isosize
|
/usr/bin/isosize
|
||||||
/usr/bin/line
|
/usr/bin/line
|
||||||
|
#/usr/bin/linux32
|
||||||
|
#/usr/bin/linux64
|
||||||
/usr/bin/look
|
/usr/bin/look
|
||||||
/usr/bin/lscpu
|
/usr/bin/lscpu
|
||||||
/usr/bin/mcookie
|
/usr/bin/mcookie
|
||||||
@ -597,14 +573,13 @@ fi
|
|||||||
%{_mandir}/man8/fsck.minix.8.gz
|
%{_mandir}/man8/fsck.minix.8.gz
|
||||||
%{_mandir}/man8/isosize.8.gz
|
%{_mandir}/man8/isosize.8.gz
|
||||||
%{_mandir}/man8/ldattach.8.gz
|
%{_mandir}/man8/ldattach.8.gz
|
||||||
|
#%{_mandir}/man8/linux32.8.gz
|
||||||
|
#%{_mandir}/man8/linux64.8.gz
|
||||||
%{_mandir}/man8/losetup.8.gz
|
%{_mandir}/man8/losetup.8.gz
|
||||||
%{_mandir}/man8/mkfs.8.gz
|
%{_mandir}/man8/mkfs.8.gz
|
||||||
%{_mandir}/man8/mkswap.8.gz
|
%{_mandir}/man8/mkswap.8.gz
|
||||||
%{_mandir}/man8/mount.8.gz
|
%{_mandir}/man8/mount.8.gz
|
||||||
%{_mandir}/man8/nologin.8.gz
|
%{_mandir}/man8/nologin.8.gz
|
||||||
%{_mandir}/man8/findmnt.8.gz
|
|
||||||
%{_mandir}/man8/fsfreeze.8.gz
|
|
||||||
%{_mandir}/man8/swaplabel.8.gz
|
|
||||||
%ifnarch ppc ppc64
|
%ifnarch ppc ppc64
|
||||||
%{_mandir}/man8/mkzimage_cmdline.8.gz
|
%{_mandir}/man8/mkzimage_cmdline.8.gz
|
||||||
%endif
|
%endif
|
||||||
@ -625,6 +600,7 @@ fi
|
|||||||
%attr (755,root,root) /usr/share/getopt/getopt-parse.tcsh
|
%attr (755,root,root) /usr/share/getopt/getopt-parse.tcsh
|
||||||
%attr (755,root,root) /usr/share/getopt/getopt-test.bash
|
%attr (755,root,root) /usr/share/getopt/getopt-test.bash
|
||||||
%attr (755,root,root) /usr/share/getopt/getopt-test.tcsh
|
%attr (755,root,root) /usr/share/getopt/getopt-test.tcsh
|
||||||
|
#/usr/share/locale/*/LC_MESSAGES/util-linux-ng.mo
|
||||||
%ifnarch ia64
|
%ifnarch ia64
|
||||||
%doc fdisk/README.fdisk
|
%doc fdisk/README.fdisk
|
||||||
/sbin/fdisk
|
/sbin/fdisk
|
||||||
@ -637,7 +613,18 @@ fi
|
|||||||
/sbin/cfdisk
|
/sbin/cfdisk
|
||||||
/sbin/sfdisk
|
/sbin/sfdisk
|
||||||
%endif
|
%endif
|
||||||
|
%ifarch %ix86 x86_64
|
||||||
|
/usr/sbin/ramsize
|
||||||
|
/usr/sbin/rdev
|
||||||
|
/usr/sbin/rootflags
|
||||||
|
/usr/sbin/vidmode
|
||||||
|
%{_mandir}/man8/ramsize.8.gz
|
||||||
|
%{_mandir}/man8/rdev.8.gz
|
||||||
|
%{_mandir}/man8/rootflags.8.gz
|
||||||
|
%{_mandir}/man8/vidmode.8.gz
|
||||||
|
%endif
|
||||||
%ifnarch s390 s390x
|
%ifnarch s390 s390x
|
||||||
|
#%config(noreplace) /etc/fdprm
|
||||||
/usr/bin/cytune
|
/usr/bin/cytune
|
||||||
/usr/sbin/fdformat
|
/usr/sbin/fdformat
|
||||||
/sbin/hwclock
|
/sbin/hwclock
|
||||||
@ -650,6 +637,35 @@ fi
|
|||||||
%{_mandir}/man8/klogconsole.8.gz
|
%{_mandir}/man8/klogconsole.8.gz
|
||||||
%{_mandir}/man8/tunelp.8.gz
|
%{_mandir}/man8/tunelp.8.gz
|
||||||
%endif
|
%endif
|
||||||
|
# setarch links
|
||||||
|
#%ifarch %ix86 x86_64
|
||||||
|
#/usr/bin/i386
|
||||||
|
#%{_mandir}/man8/i386.8.gz
|
||||||
|
#%endif
|
||||||
|
#%ifarch x86_64
|
||||||
|
#/usr/bin/x86_64
|
||||||
|
#%{_mandir}/man8/x86_64.8.gz
|
||||||
|
#%endif
|
||||||
|
#%ifarch s390 s390x
|
||||||
|
#/usr/bin/s390
|
||||||
|
#/usr/bin/s390x
|
||||||
|
#%{_mandir}/man8/s390.8.gz
|
||||||
|
#%{_mandir}/man8/s390x.8.gz
|
||||||
|
#%endif
|
||||||
|
#%ifarch ppc ppc64
|
||||||
|
#/usr/bin/ppc
|
||||||
|
#/usr/bin/ppc32
|
||||||
|
#/usr/bin/ppc64
|
||||||
|
#%{_mandir}/man8/ppc.8.gz
|
||||||
|
#%{_mandir}/man8/ppc32.8.gz
|
||||||
|
#%{_mandir}/man8/ppc64.8.gz
|
||||||
|
#%endif
|
||||||
|
#%ifarch ia64
|
||||||
|
#/usr/bin/i386
|
||||||
|
#/usr/bin/ia64
|
||||||
|
#%{_mandir}/man8/i386.8.gz
|
||||||
|
#%{_mandir}/man8/ia64.8.gz
|
||||||
|
#%endif
|
||||||
|
|
||||||
%files -n libblkid1
|
%files -n libblkid1
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
@ -664,18 +680,6 @@ fi
|
|||||||
%_libdir/pkgconfig/blkid.pc
|
%_libdir/pkgconfig/blkid.pc
|
||||||
%{_mandir}/man3/libblkid.3.gz
|
%{_mandir}/man3/libblkid.3.gz
|
||||||
|
|
||||||
%files -n libmount1
|
|
||||||
%defattr(-, root, root)
|
|
||||||
/%{_lib}/libmount.so.1
|
|
||||||
/%{_lib}/libmount.so.1.*
|
|
||||||
|
|
||||||
%files -n libmount-devel
|
|
||||||
%defattr(-, root, root)
|
|
||||||
%{_libdir}/libmount.so
|
|
||||||
%dir %{_includedir}/mount
|
|
||||||
%{_includedir}/mount/mount.h
|
|
||||||
%_libdir/pkgconfig/mount.pc
|
|
||||||
|
|
||||||
%files -n uuidd
|
%files -n uuidd
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
%verify(not mode) %attr(0755,root,root) /usr/sbin/uuidd
|
%verify(not mode) %attr(0755,root,root) /usr/sbin/uuidd
|
||||||
|
3
which-2.19.tar.bz2
Normal file
3
which-2.19.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:0fb382412c553f05f1336a43591e7de106e9ca3c675113973160e72196001df6
|
||||||
|
size 105483
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:33ca01bb3d801338e4a464367d74eaab24f87041c44c9b5e1150393f1744a3a0
|
|
||||||
size 107758
|
|
Loading…
Reference in New Issue
Block a user