Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: improve main clean target #6186

Merged
merged 5 commits into from
Feb 4, 2024
Merged

Conversation

kmk3
Copy link
Collaborator

@kmk3 kmk3 commented Feb 1, 2024

Organize the main clean target and remove more paths on clean.

@kmk3 kmk3 merged commit 71ffe7a into netblue30:master Feb 4, 2024
13 checks passed
@kmk3 kmk3 deleted the build-improve-clean branch February 4, 2024 23:25
kmk3 added a commit that referenced this pull request Feb 5, 2024
kmk3 added a commit that referenced this pull request Feb 7, 2024
In the `debian_ci` job in .gitlab-ci.yml, dpkg-deb calls `make
distclean` before calling ./configure, which makes `make clean` fail due
to test/compile/compile.sh not being able to source config.mk (which is
created by ./configure):

     dpkg-source -i -I --before-build .
    [...]
       dh_auto_clean
    	make -j2 distclean
    make[1]: Entering directory '/builds/Firejail/firejail_ci'
    error: run ./configure to generate config.mk
    [...]
    cd compile && ./compile.sh --clean
    ./compile.sh: line 15: ./../../config.sh: No such file or directory
    make[2]: *** [Makefile:24: clean] Error 1

This amends commit 152a21f ("build: simplify clean target",
2023-07-29) / PR #6186.
kmk3 added a commit that referenced this pull request Feb 7, 2024
In the `debian_ci` job in .gitlab-ci.yml, dpkg-deb calls `make
distclean` before calling ./configure, which makes `make clean` fail due
to certain variables not being declared:

     dpkg-source -i -I --before-build .
    [...]
       dh_auto_clean
    	make -j2 distclean
    make[1]: Entering directory '/builds/kmk3/firejail_ci'
    error: run ./configure to generate config.mk
    [...]
    rm -f contrib/syntax/files/example [...]
    rm -fr - -.tar.xz
    rm: invalid option -- '.'
    Try 'rm --help' for more information.
    make[1]: *** [Makefile:175: clean] Error 1

This amends commit 8a783cd ("build: use TARNAME and remove more paths
on clean", 2023-07-29) / PR #6186.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done (on RELNOTES)
Development

Successfully merging this pull request may close these issues.

1 participant