Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

audit: flag incorrect automake/autoconf/libtool dep handling #39322

Closed
wants to merge 1 commit into from
Closed

audit: flag incorrect automake/autoconf/libtool dep handling #39322

wants to merge 1 commit into from

Conversation

DomT4
Copy link
Member

@DomT4 DomT4 commented May 3, 2015

Just makes the audit cough out this:

 * :libtool is deprecated. Usage should be "libtool"
 * :autoconf is deprecated. Usage should be "autoconf"
 * :automake is deprecated. Usage should be "automake"

Closes #39303.

Just makes the audit cough out this:
```
 * :libtool is deprecated. Usage should be "libtool"
 * :autoconf is deprecated. Usage should be "autoconf"
 * :automake is deprecated. Usage should be "automake"
```

Closes #39303.
@L2G
Copy link
Contributor

L2G commented May 3, 2015

I'd suggest a small modification:

* :libtool is deprecated. Usage should be: "libtool" => :build

(And so on.)

@DomT4
Copy link
Member Author

DomT4 commented May 3, 2015

I thought about that, but it's not always true. A few things use normally build-time deps as depends_on "example" => :run - So we don't actually want to flag a warning in that situation. I believe there's an existing Audit rule to catch the situation where a build-time dep isn't declared either :build or :run.

@L2G
Copy link
Contributor

L2G commented May 3, 2015

I believe there's an existing Audit rule to catch the situation where a build-time dep isn't declared either :build or :run.

I believe the only thing that catches this now is the sharp eyes of the core maintainers doing the code reviews. 😁

@DomT4
Copy link
Member Author

DomT4 commented May 3, 2015

I believe the only thing that catches this now is the sharp eyes of the core maintainers doing the code reviews

Change wget's autoconf => :build to autoconf and then run brew audit against it and you'll see this:

wget:
 * autoconf dependency should be
  depends_on "autoconf" => :build
Or if it is indeed a runtime denpendency
  depends_on "autoconf" => :run

Error: 1 problems in 1 formulae

😺

@L2G
Copy link
Contributor

L2G commented May 4, 2015

Is it possible these weren't showing up for the formula I was auditing because I was running brew audit before brew install and not after?

@DomT4
Copy link
Member Author

DomT4 commented May 4, 2015

Shouldn't have been, no. It won't have flagged your use of :automake at this point, but it should have flagged it if you'd done something like depends_on :automake instead of depends_on :automake => :build.

@jacknagel jacknagel closed this in 7cfd3e6 May 5, 2015
@DomT4 DomT4 deleted the audit branch May 5, 2015 01:27
@Homebrew Homebrew locked and limited conversation to collaborators Jul 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

audit command should catch depends_on :autoconf and depends_on :automake
2 participants