]>
git.ipfire.org Git - thirdparty/util-linux.git/log
Karel Zak [Thu, 1 Apr 2021 10:30:25 +0000 (12:30 +0200)]
tests: update lscpu output
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 1 Apr 2021 10:27:05 +0000 (12:27 +0200)]
lscpu: report also number of cache instances
Caches (sum of all):
L1d: 128 KiB (4 instances)
L1i: 128 KiB (4 instances)
L2: 1 MiB (4 instances)
L3: 8 MiB (1 instance)
Suggested-by: John Henning <john.henning@oracle.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 1 Apr 2021 09:47:21 +0000 (11:47 +0200)]
build-sys: improve asciidoc generic rule
* keep it based on suffixes to make possible to generate individual
pages in dependence on original .adoc
* use absolute builddir to be robust enough for 'make distcheck'
* make man page links depend on man pages
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 31 Mar 2021 09:57:22 +0000 (11:57 +0200)]
build-sys: cleanup distcheck options
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 31 Mar 2021 09:33:06 +0000 (11:33 +0200)]
build-sys: make man pages location independent
We need to evaluate "include::" directive relatively to project
top-level source directory rather than to the current document
location.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 29 Mar 2021 16:56:12 +0000 (18:56 +0200)]
github: fix asciidoctror dependence
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 29 Mar 2021 13:26:37 +0000 (15:26 +0200)]
github: add ruby-asciidoctor to CI-build
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 29 Mar 2021 13:04:15 +0000 (15:04 +0200)]
docs: update Documentation/howto-man-page.txt
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 29 Mar 2021 12:41:26 +0000 (14:41 +0200)]
Asciidoc: Incorporate latest changes in findmnt.8
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 29 Mar 2021 13:09:27 +0000 (15:09 +0200)]
Merge remote-tracking branch 'mariobl/topic/asciidoc'
* mariobl/topic/asciidoc: (71 commits)
Asciidoc: Update .pot template
Asciidoc: Reorder example command sequence
Asciidoc: Update .pot template
Asciidoc: Better gettext message splitting in nsenter.1.adoc
Asciidoc: Update .pot template
Asciidoc: Fix typo and remove invisible spaces which confuse po4a
Asciidoc: Update .pot template
Asciidoc: Fix typo
Asciidoc: Fix artifact from initial import, sixth attempt
Asciidoc: Update .pot template
Asciidoc: Fix artifacts from initial import, fifth attempt
Asciidoc: Fix artifacts from initial import, fourth attempt
Asciidoc: Update .pot template
Asciidoc: Fix artifacts from initial import, third attempt
Asciidoc: Fix artifacts from initial import, second attempt
Asciidoc: Fix artifacts from initial import
Asciidoc: Add po4a config file and initial translation template for man pages
Asciidoc: Small indentation fix in mount.8.adoc
Asciidoc: Review sys-utils man pages, part 2
build-sys: fix out-of-tree build
...
Signed-off-by: Karel Zak <kzak@redhat.com>
Mario Blättermann [Sun, 28 Mar 2021 12:31:13 +0000 (14:31 +0200)]
Asciidoc: Update .pot template
Mario Blättermann [Sun, 28 Mar 2021 12:29:45 +0000 (14:29 +0200)]
Asciidoc: Reorder example command sequence
Mario Blättermann [Sun, 28 Mar 2021 10:00:01 +0000 (12:00 +0200)]
Asciidoc: Update .pot template
Mario Blättermann [Sun, 28 Mar 2021 09:58:08 +0000 (11:58 +0200)]
Asciidoc: Better gettext message splitting in nsenter.1.adoc
Mario Blättermann [Sun, 28 Mar 2021 08:47:42 +0000 (10:47 +0200)]
Asciidoc: Update .pot template
Mario Blättermann [Sun, 28 Mar 2021 08:47:00 +0000 (10:47 +0200)]
Asciidoc: Fix typo and remove invisible spaces which confuse po4a
Mario Blättermann [Fri, 26 Mar 2021 23:45:15 +0000 (00:45 +0100)]
Asciidoc: Update .pot template
Mario Blättermann [Fri, 26 Mar 2021 23:30:37 +0000 (00:30 +0100)]
Asciidoc: Fix typo
Mario Blättermann [Fri, 26 Mar 2021 23:10:27 +0000 (00:10 +0100)]
Asciidoc: Fix artifact from initial import, sixth attempt
Mario Blättermann [Fri, 26 Mar 2021 20:42:47 +0000 (21:42 +0100)]
Asciidoc: Update .pot template
Mario Blättermann [Fri, 26 Mar 2021 20:41:03 +0000 (21:41 +0100)]
Asciidoc: Fix artifacts from initial import, fifth attempt
Mario Blättermann [Fri, 26 Mar 2021 20:11:25 +0000 (21:11 +0100)]
Asciidoc: Fix artifacts from initial import, fourth attempt
Mario Blättermann [Fri, 26 Mar 2021 19:55:26 +0000 (20:55 +0100)]
Asciidoc: Update .pot template
Mario Blättermann [Fri, 26 Mar 2021 19:54:06 +0000 (20:54 +0100)]
Asciidoc: Fix artifacts from initial import, third attempt
Mario Blättermann [Fri, 26 Mar 2021 19:17:45 +0000 (20:17 +0100)]
Asciidoc: Fix artifacts from initial import, second attempt
Mario Blättermann [Fri, 26 Mar 2021 19:12:42 +0000 (20:12 +0100)]
Asciidoc: Fix artifacts from initial import
Mario Blättermann [Fri, 26 Mar 2021 16:32:17 +0000 (17:32 +0100)]
Asciidoc: Add po4a config file and initial translation template for man pages
Mario Blättermann [Fri, 26 Mar 2021 16:29:16 +0000 (17:29 +0100)]
Asciidoc: Small indentation fix in mount.8.adoc
Mario Blättermann [Fri, 26 Mar 2021 16:19:27 +0000 (17:19 +0100)]
Asciidoc: Review sys-utils man pages, part 2
Mario Blättermann [Fri, 26 Mar 2021 13:35:55 +0000 (14:35 +0100)]
Merge pull request #1 from karelzak/asciidoc-for-mario
Asciidoc for mario
Karel Zak [Fri, 26 Mar 2021 13:20:03 +0000 (14:20 +0100)]
build-sys: fix out-of-tree build
asciidoctor cannot write to source directory, we need to force it to
use $builddir.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 26 Mar 2021 11:42:12 +0000 (12:42 +0100)]
build-sys: add man-common/Makemodule.am
Signed-off-by: Karel Zak <kzak@redhat.com>
Mario Blättermann [Fri, 26 Mar 2021 12:35:42 +0000 (13:35 +0100)]
Asciidoc: Incorporate latest changes in rfkill.8 and umount.8
Mario Blättermann [Fri, 26 Mar 2021 12:26:16 +0000 (13:26 +0100)]
Asciidoc: Remove old man page links
Karel Zak [Fri, 26 Mar 2021 10:57:07 +0000 (11:57 +0100)]
build-sys: fix typo
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 26 Mar 2021 10:55:01 +0000 (11:55 +0100)]
build-sys: cleanup .gitignore files
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 26 Mar 2021 10:49:59 +0000 (11:49 +0100)]
build-sys: split man pages and man page links
The symlinks are generated by asciidoctor and current dist_man_MANS
depends on order (nan page before man link). This solutions is useless
when execute "make -j". The real solution is to keep man pages in
separate variable and use only this variable evaluate what we need to
generate.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 26 Mar 2021 10:03:35 +0000 (11:03 +0100)]
build-sys: remove man page link files
It seems asciidoctor generates all necessary files.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 26 Mar 2021 09:31:29 +0000 (10:31 +0100)]
build-sys: remove duplicate hook
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 26 Mar 2021 09:13:17 +0000 (10:13 +0100)]
build-sys: remove some man pages from PATHFILES
fix warnings:
Makefile:15936: warning: overriding recipe for target 'misc-utils/uuidd.8'
Makefile:15928: warning: ignoring old recipe for target 'misc-utils/uuidd.8'
Makefile:15936: warning: overriding recipe for target 'misc-utils/getopt.1'
Makefile:15928: warning: ignoring old recipe for target 'misc-utils/getopt.1'
Signed-off-by: Karel Zak <kzak@redhat.com>
Mario Blättermann [Thu, 25 Mar 2021 19:27:34 +0000 (20:27 +0100)]
Asciidoc: Review sys-utils man pages,part 1
Mario Blättermann [Thu, 25 Mar 2021 18:17:48 +0000 (19:17 +0100)]
Asciidoc: Review text-utils man pages
Mario Blättermann [Thu, 25 Mar 2021 17:22:30 +0000 (18:22 +0100)]
Asciidoc: Review term-utils man pages
Karel Zak [Thu, 25 Mar 2021 11:39:23 +0000 (12:39 +0100)]
ttymsg: fix resource leak [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 25 Mar 2021 11:23:21 +0000 (12:23 +0100)]
lsmem: use ul_path_readf_string() readable for analysers [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 25 Mar 2021 11:14:46 +0000 (12:14 +0100)]
lsirq: fix resources leak [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 25 Mar 2021 11:13:00 +0000 (12:13 +0100)]
lsirq: fix resources leak [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 25 Mar 2021 11:12:11 +0000 (12:12 +0100)]
meson: add irq utils
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 25 Mar 2021 10:53:02 +0000 (11:53 +0100)]
fstrim: fix memory leak [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 25 Mar 2021 10:03:03 +0000 (11:03 +0100)]
libmount: fix memory leak [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 25 Mar 2021 09:51:54 +0000 (10:51 +0100)]
libmount: add assert() to umount lookup code
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 25 Mar 2021 09:43:20 +0000 (10:43 +0100)]
libfdisk: make labels allocations readable for analysers [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 25 Mar 2021 09:25:12 +0000 (10:25 +0100)]
sfdisk: fix resources leak [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Mario Blättermann [Wed, 24 Mar 2021 19:28:08 +0000 (20:28 +0100)]
Add missing backslash to Makefile.am
Mario Blättermann [Wed, 24 Mar 2021 19:01:34 +0000 (20:01 +0100)]
Asciidoc: Review login-utils man pages
Mario Blättermann [Wed, 24 Mar 2021 17:53:27 +0000 (18:53 +0100)]
Asciidoc: Review disk-utils man pages
Mario Blättermann [Wed, 24 Mar 2021 16:37:34 +0000 (17:37 +0100)]
Asciidoc: Review terminal-colors.d.5.adoc
Karel Zak [Wed, 24 Mar 2021 11:54:41 +0000 (12:54 +0100)]
Merge branch 'topic/rfkill'
Karel Zak [Wed, 24 Mar 2021 11:43:17 +0000 (12:43 +0100)]
libsmartcols: introduce default sort column
* add default sort column, set by scols_sort_table()
* sort tree according to default sort column also in scols_sort_table_by_tree()
The function scols_sort_table() does not sort tree branches if tree
is not enabled. The function scols_sort_table_by_tree() does not care
if tree is enabled and it always follows parent->child relations. For
scols_sort_table_by_tree() we need to follow order in branches if
previously scols_sort_table() has been called.
For example lsblk calls
scols_sort_table(tb, cl);
scols_sort_table_by_tree(tb);
for list-like output (for example lsblk -P) and users assume the
same order as for tree (lsblk --tree).
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=
1940607
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 24 Mar 2021 11:42:58 +0000 (12:42 +0100)]
libsmartcols: add sort sunction to the sample
Signed-off-by: Karel Zak <kzak@redhat.com>
Mario Blättermann [Tue, 23 Mar 2021 20:09:22 +0000 (21:09 +0100)]
Define the asciidoctor command in configure.ac
Mario Blättermann [Tue, 23 Mar 2021 19:43:52 +0000 (20:43 +0100)]
Asciidoc: Review schedutils man pages
Mario Blättermann [Tue, 23 Mar 2021 19:10:02 +0000 (20:10 +0100)]
Asciidoc: Incorporate latest change in findmnt.8
Mario Blättermann [Tue, 23 Mar 2021 19:07:15 +0000 (20:07 +0100)]
Asciidoc: Review misc-utils man pages
Karel Zak [Tue, 23 Mar 2021 14:20:44 +0000 (15:20 +0100)]
rfkill: add "toggle" command
Addresses: https://github.com/karelzak/util-linux/issues/1269
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 22 Mar 2021 14:15:52 +0000 (15:15 +0100)]
tests: make it compatible with meson
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 22 Mar 2021 13:58:05 +0000 (14:58 +0100)]
findmnt: add --shadowed
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 22 Mar 2021 13:57:07 +0000 (14:57 +0100)]
libmount: mnt_table_over_fs() make child optional
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 22 Mar 2021 11:41:37 +0000 (12:41 +0100)]
findmnt: sort columns
Let's make "Available columns" in --help more readable.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 22 Mar 2021 10:29:28 +0000 (11:29 +0100)]
umount: support over-mounts for --recursive
For example for hierarchy:
$ findmnt -oTARGET,ID,PARENT
TARGET ID PARENT
/mnt/A 802 62
└─/mnt/A/B 937 802
├─/mnt/A/B/C 964 937
│ └─/mnt/A/B/C 991 964
└─/mnt/A/B 1018 937
└─/mnt/A/B 1045 1018
we need umount in order (id): 1045, 1018, 991, 964, 937, 802. The current
code first tries 991 in 937 branch.
Reported-by: Lennart Poettering <lennart@poettering.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 22 Mar 2021 10:24:49 +0000 (11:24 +0100)]
libmount: add mnt_table_over_fs()
The function returns the first over-mount for specified filesystem.
Signed-off-by: Karel Zak <kzak@redhat.com>
Mario Blättermann [Sun, 21 Mar 2021 17:24:47 +0000 (18:24 +0100)]
Asciidoc: Yet another formatting fix
Mario Blättermann [Sun, 21 Mar 2021 12:02:56 +0000 (13:02 +0100)]
Asciidoc: Formatting cleanup
Mario Blättermann [Sun, 21 Mar 2021 11:50:16 +0000 (12:50 +0100)]
Asciidoc: Remove already imported text-utils *roff man pages
Mario Blättermann [Sun, 21 Mar 2021 09:00:16 +0000 (10:00 +0100)]
Asciidoc: Unify spelling of »User Commands«
Mario Blättermann [Sat, 20 Mar 2021 15:42:47 +0000 (16:42 +0100)]
Asciidoc: Add Po4a hint to file headers
Mario Blättermann [Sat, 20 Mar 2021 14:23:32 +0000 (15:23 +0100)]
Asciidoc: Small fix in nsenter.1.adoc
Mario Blättermann [Sat, 20 Mar 2021 08:45:23 +0000 (09:45 +0100)]
Asciidoc: Some more man page formatting improvements
Besides some formatting tweaks, I've changed »lsblk(1)« into »lsblk(8)«
in the SEE ALSO section of mount.8.adoc. At least Archlinux and Debian
ship lsblk as a system administration command.
Mario Blättermann [Fri, 19 Mar 2021 19:52:00 +0000 (20:52 +0100)]
Asciidoc: Re-add empty lines to man pages
Mario Blättermann [Fri, 19 Mar 2021 17:25:50 +0000 (18:25 +0100)]
Asciidoc: Some formatting cleanup in man pages
Mario Blättermann [Fri, 19 Mar 2021 16:16:40 +0000 (17:16 +0100)]
Asciidoc: Remove already imported misc-utils *roff man pages
Mario Blättermann [Fri, 19 Mar 2021 16:12:57 +0000 (17:12 +0100)]
Asciidoc: Import misc-utils man pages
Karel Zak [Fri, 19 Mar 2021 15:39:27 +0000 (16:39 +0100)]
findmnt: add PARENT column
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 19 Mar 2021 13:54:34 +0000 (14:54 +0100)]
libfdisk: (gpt) returns location of the backup header too
Reported-by: Lennart Poettering <lennart@poettering.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 18 Mar 2021 09:23:36 +0000 (10:23 +0100)]
prlimit: fix optional arguments parsing
$ prlimit -f=100:100
failed to parse FSIZE limit
Fixes: https://github.com/karelzak/util-linux/issues/1265
Signed-off-by: Karel Zak <kzak@redhat.com>
Mario Blättermann [Wed, 17 Mar 2021 19:00:15 +0000 (20:00 +0100)]
Asciidoc: Remove already imported login-utils *roff man pages
Mario Blättermann [Wed, 17 Mar 2021 18:57:15 +0000 (19:57 +0100)]
Asciidoc: Import login-utils man pages
Karel Zak [Wed, 17 Mar 2021 14:52:08 +0000 (15:52 +0100)]
meson: add missing HAVE_ definitions
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 17 Mar 2021 14:42:26 +0000 (15:42 +0100)]
meson: update for new hardlink
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 17 Mar 2021 14:07:19 +0000 (15:07 +0100)]
meson: port localstatedir and sysconfdir
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 16 Feb 2021 17:09:24 +0000 (18:09 +0100)]
meson: update sources and dependencies
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 16 Feb 2021 11:10:36 +0000 (12:10 +0100)]
meson: update configuration
Signed-off-by: Karel Zak <kzak@redhat.com>
Zbigniew Jędrzejewski-Szmek [Mon, 11 May 2020 10:06:39 +0000 (12:06 +0200)]
meson: implement building of static programs
The whole thing is complicated by the fact that we have two layers
of libraries: e.g. libmount also needs libblkid. If we just tell meson
to make libmount static, this is not enough, because we also need it
to link to a static libblkid. Hence in the case of libs that link to
other libs internally, we need to create a different object with a
a different set of link_with items.
To avoid building the libraries twice, libfdisk and libmount are first
built into an internal "convenience" library, which is then linked into
the static and shared versions as appropriate.
Zbigniew Jędrzejewski-Szmek [Sun, 23 Feb 2020 18:42:55 +0000 (19:42 +0100)]
meson: add second build system
To build: meson build && ninja -C build
To run tests: ninja -C build check
To install for packaging: DESTDIR=/var/tmp/inst ninja -C build install
To install for realz: sudo ninja -C build install
v2:
- Optional items are now based on the 'feature' feature in meson.
Built libraries which are disabled turn into disabler() objects
and also poison any executables which link to them.
What is there:
- building of the binaries and libs and the python module
- installation of binaries, libs, python module, localization files,
man pages, pkgconfig files
- running of tests
- most options to configure build equivalently to the
./configure settings
Partially implemented:
- disabling of stuff when things missing. In the C code, the defines
are all used, so that should be fine. In the build system, some
files should be skipped, but that is probably not always done properly.
Getting this right might require some testing of various build option
combinations to get the details right.
Not implemented:
- static builds of fdisk and other binaries
- things marked with XXX or FIXME
- ???
Differences:
- .la files are not created. They are useless and everybody hates them.
- Requires.private in pkgconfig files are not present in the
autogenerated .pc file. Not sure if they should be there or not. If
necessary, they can be added by hand.
- man pages and systemd units are installed by the install target. Not
sure why 'make install' doesn't do that.
- the split between / and /usr is probably wrong. But it's all pointless
anyway, so maybe we could simplify things but not implementing it at
all under meson?
Zbigniew Jędrzejewski-Szmek [Thu, 27 Feb 2020 11:13:09 +0000 (12:13 +0100)]
tests/run: create failure directory
The test would occasionally fail with
tests/run.sh: line 241: /home/fedora/util-linux/build/tests/failures: No such file or directory
I don't quite understand why the file does not get created... The outupt directory
missing seems the most likely explanation.
Karel Zak [Wed, 17 Mar 2021 11:46:22 +0000 (12:46 +0100)]
tests: update build test results
Update as usually before release to see differences (on Fedora 33).
- static programs are not enabled by tools/config-gen.d/all.conf
anymore (see
63f4e199287c6b2cfbb092f1e2b0f0a3e0e576e3 )
- add new uclampset
- libdl and libpython3 seems unnecessary
- fdformat disabled by default
- new hardlink uses libpcre2-posix
Signed-off-by: Karel Zak <kzak@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 17 Mar 2021 11:45:40 +0000 (12:45 +0100)]
tools: use libcryptsetup in config-gen.d/all.conf
Signed-off-by: Karel Zak <kzak@redhat.com>
Mario Blättermann [Tue, 16 Mar 2021 20:17:50 +0000 (21:17 +0100)]
Asciidoc: add missing bugreports section to libblkid and some cleanup
Mario Blättermann [Tue, 16 Mar 2021 20:13:57 +0000 (21:13 +0100)]
Asciidoc: Remove already imported disk-utils *roff man pages
Mario Blättermann [Tue, 16 Mar 2021 20:08:43 +0000 (21:08 +0100)]
Asciidoc: Import disk-utils man pages