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

include: Do not generate xbps.h.in #598

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

meator
Copy link
Contributor

@meator meator commented May 23, 2024

xbps.h.in makes no mention of @@VERSION@@, so xbps.h.in gets copied verbatim to xbps.h. This adds unnecessary complexity and indirection.

@@ -4,7 +4,7 @@ INCS = xbps.h

.PHONY: all
all:
sed -e "s|@@VERSION@@|${VERSION}|g" ${INCS}.in > ${INCS}
@:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure if this is the right solution. Removal of the all target would lead to install becoming the default one, which is not desirable. I have replaced sed with the "do nothing" @: statement instead.

@meator
Copy link
Contributor Author

meator commented May 24, 2024

Check error is caused by faulty checks: #595

xbps.h.in makes no mention of @@Version@@, so xbps.h.in gets copied
verbatim to xbps.h. This adds unnecessary complexity and indirection.
@meator meator force-pushed the dont-generate-xbps.h branch from e2c2ad7 to 06108ce Compare May 24, 2024 18:34
meator added a commit to meator/xbps that referenced this pull request Dec 7, 2024
-Werror is dropped, because Meson's werror is more strict than configure
one.

This implementation does not support running tests. The Kyua testsuite
heavily relies on in-source builds. Tests would have to be rewritten
(at least the Kyuafile files, but probably more) to support Meson.

Meson does not support retrieving git info and providing it as a
compiler flag. Meson's vcs_tag() mechanism supports outputting to
a (header or source) file only. This would mean that xbps.h.in would
have to be modified.

No substitution is done on xbps.h.in. See void-linux#598 for explanation.

_DEFAULT_SOURCE is dropped, because _GNU_SOURCE implies _DEFAULT_SOURCE.

-D_FILE_OFFSET_BITS=64 is set automatically by Meson.

Work in progress!
meator added a commit to meator/xbps that referenced this pull request Dec 7, 2024
-Werror is dropped, because Meson's werror is more strict than configure
one.

This implementation does not support running tests. The Kyua testsuite
heavily relies on in-source builds. Tests would have to be rewritten
(at least the Kyuafile files, but probably more) to support Meson.

Meson does not support retrieving git info and providing it as a
compiler flag. Meson's vcs_tag() mechanism supports outputting to
a (header or source) file only. This would mean that xbps.h.in would
have to be modified.

No substitution is done on xbps.h.in. See void-linux#598 for explanation.

_DEFAULT_SOURCE is dropped, because _GNU_SOURCE implies _DEFAULT_SOURCE.

-D_FILE_OFFSET_BITS=64 is set automatically by Meson.

Work in progress!
@meator meator mentioned this pull request Dec 7, 2024
meator added a commit to meator/xbps that referenced this pull request Dec 9, 2024
-Werror is dropped, because Meson's werror is more strict than configure
one.

This implementation does not support running tests. The Kyua testsuite
heavily relies on in-source builds. Tests would have to be rewritten
(at least the Kyuafile files, but probably more) to support Meson.

Meson does not support retrieving git info and providing it as a
compiler flag. Meson's vcs_tag() mechanism supports outputting to
a (header or source) file only. This would mean that xbps.h.in would
have to be modified.

No substitution is done on xbps.h.in. See void-linux#598 for explanation.

_DEFAULT_SOURCE is dropped, because _GNU_SOURCE implies _DEFAULT_SOURCE.

-D_FILE_OFFSET_BITS=64 is set automatically by Meson.

Work in progress!
meator added a commit to meator/xbps that referenced this pull request Dec 11, 2024
-Werror is dropped, because Meson's werror is more strict than configure
one.

This implementation does not support running tests. The Kyua testsuite
heavily relies on in-source builds. Tests would have to be rewritten
(at least the Kyuafile files, but probably more) to support Meson.

Meson does not support retrieving git info and providing it as a
compiler flag. Meson's vcs_tag() mechanism supports outputting to
a (header or source) file only. This would mean that xbps.h.in would
have to be modified.

No substitution is done on xbps.h.in. See void-linux#598 for explanation.

_DEFAULT_SOURCE is dropped, because _GNU_SOURCE implies _DEFAULT_SOURCE.

-D_FILE_OFFSET_BITS=64 is set automatically by Meson.

Work in progress!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant