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: Stop linking pthread #4695

Merged
merged 1 commit into from
Nov 17, 2021
Merged

Conversation

kmk3
Copy link
Collaborator

@kmk3 kmk3 commented Nov 16, 2021

Added on commit 1379851 ("Baseline firejail 0.9.28", 2015-08-08). See
also commit ad6bb83 ("consolidate makefiles", 2018-03-31).

It is not used anywhere. And it looks like it has never been used
anywhere:

$ git log --oneline -Gpthread.h 137985136..master
$

Issue mentioned by @rusty-snake:
#4642 (comment)

Added on commit 1379851 ("Baseline firejail 0.9.28", 2015-08-08).  See
also commit ad6bb83 ("consolidate makefiles", 2018-03-31).

It is not used anywhere.  And it looks like it has never been used
anywhere:

    $ git log --oneline -Gpthread.h 1379851..master
    $

Issue mentioned by @rusty-snake:
netblue30#4642 (comment)
@kmk3
Copy link
Collaborator Author

kmk3 commented Nov 16, 2021

By the way, I have some more autoconf-related improvements/refactorings, but
one commit changes much more stuff, so I'll post them after this PR.

Copy link
Collaborator

@topimiettinen topimiettinen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, tests pass and it can always be reverted if there are obscure problems.

@reinerh reinerh merged commit 9abb0a8 into netblue30:master Nov 17, 2021
@kmk3 kmk3 deleted the build-rm-pthread branch November 17, 2021 22:23
@kmk3 kmk3 mentioned this pull request Nov 24, 2021
kmk3 added a commit that referenced this pull request Feb 6, 2022
@kmk3 kmk3 added this to Done (on RELNOTES) in Release 0.9.68 Feb 6, 2022
kmk3 added a commit to kmk3/firejail that referenced this pull request May 7, 2022
From the manual of GNU Autoconf (version 2.69):

>  -- Macro: AC_PROG_INSTALL
>      Set output variable 'INSTALL' to the name of a BSD-compatible
>      'install' program, if one is found in the current 'PATH'.
>      Otherwise, set 'INSTALL' to 'DIR/install-sh -c', checking the
>      directories specified to 'AC_CONFIG_AUX_DIR' (or its default
>      directories) to determine DIR (*note Output::).  Also set the
>      variables 'INSTALL_PROGRAM' and 'INSTALL_SCRIPT' to '${INSTALL}'
>      and 'INSTALL_DATA' to '${INSTALL} -m 644'.

>  -- Macro: AC_PROG_RANLIB
> 	 Set output variable 'RANLIB' to 'ranlib' if 'ranlib' is found,
> 	 and otherwise to ':' (do nothing).

None of the aforementioned variables are used:

    $ git grep -F -e '${INSTALL}' -e INSTALL_PROGRAM -e INSTALL_SCRIPT \
      -e INSTALL_DATA -e RANLIB
    $

So remove the macros that define them.

Misc: The macros in question have been present on configure.ac since it
was created, on commit 1379851 ("Baseline firejail 0.9.28",
2015-08-08).  And while the install command is called multiple times,
ranlib is not used anywhere (and it seems that it was never used):

    $ git grep -E '^[[:blank:]]+install ' -- '*Makefile*' '*.mk*' |
      wc -l
    32
    $ git grep -F ranlib | wc -l
    0
    $ git log --pretty= --name-only -G'RANLIB|ranlib' \
      1379851..master | sort -u
    README.md

Kind of relates to netblue30#4695.
reinerh pushed a commit that referenced this pull request May 8, 2022
From the manual of GNU Autoconf (version 2.69):

>  -- Macro: AC_PROG_INSTALL
>      Set output variable 'INSTALL' to the name of a BSD-compatible
>      'install' program, if one is found in the current 'PATH'.
>      Otherwise, set 'INSTALL' to 'DIR/install-sh -c', checking the
>      directories specified to 'AC_CONFIG_AUX_DIR' (or its default
>      directories) to determine DIR (*note Output::).  Also set the
>      variables 'INSTALL_PROGRAM' and 'INSTALL_SCRIPT' to '${INSTALL}'
>      and 'INSTALL_DATA' to '${INSTALL} -m 644'.

>  -- Macro: AC_PROG_RANLIB
> 	 Set output variable 'RANLIB' to 'ranlib' if 'ranlib' is found,
> 	 and otherwise to ':' (do nothing).

None of the aforementioned variables are used:

    $ git grep -F -e '${INSTALL}' -e INSTALL_PROGRAM -e INSTALL_SCRIPT \
      -e INSTALL_DATA -e RANLIB
    $

So remove the macros that define them.

Misc: The macros in question have been present on configure.ac since it
was created, on commit 1379851 ("Baseline firejail 0.9.28",
2015-08-08).  And while the install command is called multiple times,
ranlib is not used anywhere (and it seems that it was never used):

    $ git grep -E '^[[:blank:]]+install ' -- '*Makefile*' '*.mk*' |
      wc -l
    32
    $ git grep -F ranlib | wc -l
    0
    $ git log --pretty= --name-only -G'RANLIB|ranlib' \
      1379851..master | sort -u
    README.md

Kind of relates to #4695.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Release 0.9.68
  
Done (on RELNOTES)
Development

Successfully merging this pull request may close these issues.

None yet

3 participants