-
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
dbus: add manpages and missing build dependencies #6835
Conversation
Which ones? If they are not usually built that makes me wonder if we should do so.
It'll just be HEAD, please scope these changes just to HEAD unless you know for sure otherwise.
That's not true,
We only want to reconfigure bootstrapping when it's necessary for some option or HEAD. Please keep it scoped to that. |
Sorry for the confusion. At the top level there are two changes: adding the documentation builder, and removing the "skip bootstrap" build step, which is currently conditional on
I'm interested in why you say that, but that's totally separate from this PR. I will ship an update in the next ~15min that reduces changes down to just manpages and the 100% aside from this PR: I think that it's best to have a single build process, and to avoid telling Homebrew to skip bootstrapping/use pre-built config/makefiles as a sort of "asset cache" if not building at It is 100% possible/likely that I'm missing something dumb, though; I'm not very experienced at this. |
depends_on "xmlto" => :build | ||
|
||
# Docbook is a dependency of xmlto, but the XML_CATALOG_FILES env-set in | ||
# doccbook is a dependency of xmlto, but the XML_CATALOG_FILES env-set in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one c
|
||
# Docbook is a dependency of xmlto, but the XML_CATALOG_FILES env-set in | ||
# install() uses files created by docbook, so best to be explicit in case | ||
# the install process for docbook ever stops creating those files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's drop this entire comment and the explicit docbook dependency. ascii, deheader, pgbouncer, reposurgeon, and shadowsocks-libev all have the same situation and none declares a docbook dependency.
@@ -36,13 +44,17 @@ class Dbus < Formula | |||
def install | |||
# Fix the TMPDIR to one D-Bus doesn't reject due to odd symbols | |||
ENV["TMPDIR"] = "/tmp" | |||
|
|||
# Manpages won't build without a current docbook catalog. This should exist |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment is not needed. There are 29 cases just like this in core.
@@ -37,12 +45,16 @@ def install | |||
# Fix the TMPDIR to one D-Bus doesn't reject due to odd symbols | |||
ENV["TMPDIR"] = "/tmp" | |||
|
|||
# Manpages won't build without a current docbook catalog. This should exist | |||
# if xmlto and docbook (build dependencies of this package) are installed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment is not needed. There are 29 cases just like this in core.
I removed the comment, but I have to admit I can't see why I'm getting the |
Thanks again for your contribution to Homebrew! Without people like you submitting PRs we couldn't run this project. You rock!
This was a bug and can be ignored. |
Sorry for all the back-and-forth @MikeMcQuaid @ilovezfs; thanks! |
@zbentley No apologies needed, thanks! |
brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingbrew install <formula>
)?There are a few problems with the
dbus
formula:HEAD
(and possibly elsewhere) requiresautoconf-archive
, which is not listed as a dependency, and the build fails as a result.--build-from-source
is totally broken, since all of the build toolchain dependencies are inside ahead
block, preventing the toolchain from being available unless building atHEAD
.HEAD
. This prevents documentation from building, and, aside from another ~6sec of build time (which isn't bad, considering what DBus is), is a totally unnecessary behavior fork. However, if there's good reason to leave this override in place, I am happy to undo this change.Ordinarily I'd fix some of those in separate PRs, but they all block my ability to add the manpages (the real goal), so I'll fix 'em all in this PR.