1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 11:07:44 +00:00
Commit graph

64 commits

Author SHA1 Message Date
Etienne Cordonnier
e1441eff2c GNUMakefile: install libstdbuf
Use external libstdbuf.so when building with make, as embedding the library
is only needed to work around "cargo install" limitations with shared libraries.

Also change default installation directory to /usr/local/libexec/coreutils/ for consistency
with GNU coreutils

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
2025-06-22 23:30:34 +02:00
Sylvestre Ledru
858db601aa
Merge pull request #7964 from kevinburke/no-selinux-mac
GNUMakefile: fix compilation on Macs
2025-06-06 11:58:26 +02:00
Sylvestre Ledru
1e33e535ce also install the locales 2025-05-28 23:45:58 +02:00
Kevin Burke
2408bd6b36
GNUMakefile: fix compilation on Macs
Previously, attempting to compile on Macs would bring in the SELinux
dependencies (runcon) which led to compilation errors on Macs.

Fixes #7695.
2025-05-27 15:05:16 -07:00
E
c3cb9ef619
Add stty to GNUmakefile
Add `stty` to `GNUmakefile`
2025-05-28 03:21:05 +09:00
Sylvestre Ledru
b778fa7baf gnu: fix the build with selinux 2025-05-07 23:02:45 +02:00
Daniel Hofstetter
e6461269fc
Merge pull request #7448 from sylvestre/selinux2
selinux: run the GNU test too
2025-03-17 15:01:33 +01:00
Sylvestre Ledru
5486132eaf
bump busybox & toybox 2025-03-17 11:13:39 +01:00
Sylvestre Ledru
ad6723c44b selinux test: collect and process the results 2025-03-17 11:09:18 +01:00
Sylvestre Ledru
5917a6c99d make: when BUILD_SPEC_FEATURE is set, pass it to the job 2025-03-17 11:09:18 +01:00
Sylvestre Ledru
a9a33543fb build: pass feat_selinux when building with selinux 2025-03-17 11:09:18 +01:00
Sylvestre Ledru
72ad89d956 selinux: run the GNU test too 2025-03-17 11:09:18 +01:00
Zachary Goff-Hodges
7d46a35e02 GNUmakefile: add support for 'CARGO_TARGET_DIR' enviroment variable 2025-03-05 12:02:11 +01:00
Brandon Maier
9082f9ba57 GNUmakefile: support skipping manpages and completions
When packaging uutils for Conda-Forge and a cross-compiled architecture,
the install of completion scripts and manpages fails with the following
error.

> .../coreutils manpage arch > .../man/arch.1
> /bin/sh: .../coreutils: Bad CPU type in executable
> make: *** [GNUmakefile:349: manpages] Error 126

When cross-compiling, the `coreutils` tool will be for a different
architecture then the build platform. So we won't be able to extract the
manpages and completions.

Provide build arguments that let us skip the build and install of
manpages and completions.
2025-02-22 13:53:42 -06:00
Brandon Maier
22db84fed0
Update GNUmakefile
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2025-02-18 14:13:31 -06:00
Brandon Maier
7628dc2299 GNUmakefile: fix install error "argument list too long"
When packaging uutils for Conda-Forge, the install of completion scripts
fails with the following error.

  make: /bin/sh: Argument list too long

The completion scripts are installed with a `foreach` loop that expands
into a single long command. That command hits the maximum argument
length on the build platform used by Conda-Forge.

To fix, we change the Make command to split each install into a seperate
command. This is done by embedding a newline in the command. See the
following for an example of how this works.

https://www.extrema.is/blog/2021/12/17/makefile-foreach-commands
2025-02-18 11:42:34 -06:00
Daniel Hofstetter
a7b9737490 GNUmakefile: remove "sleep" from UNIX_PROGS
because it's already in PROGS
2024-12-16 09:36:45 +01:00
Ulrich Hornung
abdeead005 add sleep explicitly to makefile 2024-04-07 01:27:30 +02:00
boxdot
e88183174b
relpath: remove
Closes #5236
2023-10-04 16:13:06 +02:00
Miles Liu
749a2476f4
make: uninstall man pages 2023-07-20 16:24:48 +08:00
Sylvestre Ledru
69f74433b5 make: split the manpage / completions generation into their target
Thanks to this, it is easier to generate these files:
* make manpages
* make completions
2023-07-17 19:06:06 +02:00
Joining7943
78ce521c01 ci: Use nextest as test runner instead of cargo test 2023-04-19 22:06:06 +02:00
Sylvestre Ledru
79d18ab656 generate manpages 2023-03-04 19:42:28 +01:00
Sylvestre Ledru
9ff6b80381 makefile: add support for toybox 2022-12-07 14:28:04 +01:00
Sylvestre Ledru
92942722a7 bump busybox 2022-12-04 16:40:03 +01:00
Sylvestre Ledru
fcef8676f7
Remove manpages from the spell list ignore 2022-08-04 17:58:25 +02:00
gmnsii
c2e214bd99
Add dir and vdir utils (based on ls)
Fix issue #3163

They are basically ls with some different options.
2022-04-15 17:30:40 +02:00
Sylvestre Ledru
cfc87b684c
Update GNUmakefile 2022-04-10 18:28:20 +02:00
Marvin Schmidt
b00357a19c make: Introduce DATAROOTDIR
This makes it easier to install binaries into an arch-dependent
directory (e.g. /usr/${host}/bin) while keeping arch-independent files
like the shell completions under /usr/share by specifying e.g.
PREFIX=/usr/${host} and DATAROOTDIR=/usr/share
2022-04-10 13:27:35 +02:00
Marvin Schmidt
66168bf06b make: Include PREFIX in BINDIR 2022-04-10 13:27:35 +02:00
Marvin Schmidt
79f1266017 make: Remove MANDIR
It's unused since commit 6cfed3bd ("make: no longer create INSTALLDIR_MAN")
2022-04-10 13:27:35 +02:00
Sylvestre Ledru
136803ef3d makefile: also build basenc 2022-03-28 23:11:17 +02:00
Dylan Aïssi
2b59b011f6 dd - add dd in GNUmakefile 2022-02-08 15:50:09 +01:00
Terts Diepraam
6cfed3bd50 make: no longer create INSTALLDIR_MAN
Creating this is no longer necessary and might result in a permission error, which causes installation errors
2022-01-30 14:47:29 +01:00
Terts Diepraam
d12459563c make: use "cargo clean" instead of removing the target/$profile folder 2022-01-26 19:48:31 +01:00
Terts Diepraam
bd4d26d37c docs: remove old manpage generation 2022-01-20 23:30:01 +01:00
Roy Ivy III
7a760cae99 refactor/polish ~ re-normalize whitespace
* minimize inconsistent/invisible whitespace

- consistent indentation (either spaces-only, tabs, *or* tabs with following spaces [for indentation])
- no internal/invisible tabs
- no trailing whitespace
- EOF EOLNs
2022-01-09 21:35:39 -06:00
Koutheir Attouchi
7010dfd939 runcon: added implementation and tests. 2021-08-22 21:59:41 +02:00
Koutheir Attouchi
090be5bb94 chcon: added implementation and integration tests
The ToDo list was updated to mark `chcon` as done.

Building and testing `chcon` requires enabling the `feat_selinux` feature. If `make` is used for building, then please specify `SELINUX_ENABLED=1` if building and testing on a system where SELinux is not enabled.
2021-08-05 22:57:57 -04:00
Sylvestre Ledru
3b19ba1dff
Merge pull request #2491 from SuperSandro2000/fix-square-braket
Fix installation of [ symlink
2021-07-10 10:39:51 +02:00
Sandro Jäckel
4551e769ba
Fix installation of [ symlink 2021-07-10 00:36:12 +02:00
Sandro
1a8a594ffc
Create completion directories incase they do not exist 2021-07-09 23:41:12 +02:00
Michael Debertol
97d14893a1 [: install test as [ as well 2021-06-29 00:27:58 +02:00
Michael Debertol
a87538b77d uutils: uninstall shell completions 2021-06-25 21:23:45 +02:00
Michael Debertol
a9e79c72c7 uutils: enable shell completions
This adds a hidden `completion` subcommand to coreutils. When invoked with
`coreutils completion <utility> <shell>` a completion file will be printed
to stdout. When running `make install` those files will be created for all
utilities and copied to the appropriate locations.
`make install` will install completions for zsh, fish and bash; however,
clap also supports generating completions for powershell and elvish.

With this patch all utilities are required to have a publich uu_app function
that returns a clap::App in addition to the uumain function.
2021-06-25 21:23:45 +02:00
Roy Ivy III
4495964864 maint/CICD ~ disable inapplicable tests from BusyTests 2021-06-06 19:28:25 -05:00
Roy Ivy III
5b697aace8 maint/build ~ normalize makefile recipe format 2021-06-06 19:28:25 -05:00
Sylvestre Ledru
badf7aacb7
Merge pull request #2300 from tertsdiepraam/pr
Implement `pr` (resurrection of the resurrected PR)
2021-05-31 21:14:57 +02:00
Roy Ivy III
ec982bb695 refactor ~ (makefiles) fix spelling + add spell-checker exceptions 2021-05-31 08:23:58 -05:00
Terts Diepraam
6c4479f82d pr: add to other list in GNUMakefile 2021-05-31 09:39:11 +02:00