-
Notifications
You must be signed in to change notification settings - Fork 586
Fix/simplify some of our macro definitions #8152
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
base: 3.0-dev
Are you sure you want to change the base?
Conversation
ce6611d
to
152dc9e
Compare
152dc9e
to
5729e7f
Compare
SPECS/mariner-rpm-macros/macros
Outdated
# hardcoded the /usr/src/mariner directory for building. So this | ||
# adopts SUSE's approach, while using our /usr/src/mariner directory | ||
# instead of the traditional /usr/src/packages. | ||
%_topdir %{expand:%%global _topdir %{lua:if posix.access(rpm.expand("/usr/src/mariner"), "w") then print "/usr/src/mariner" else print "%{getenv:HOME}/rpmbuild" end} \ |
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.
We will want to do a few tests on this one, make sure it works as expected. I can try some local tools if you queue a full end-to-end build (I'd turn on the raw toolchain boostrap as well, since that might have some knock on effects).
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.
here's pipeline run:
https://dev.azure.com/mariner-org/mariner/_build/results?buildId=516244&view=results
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.
new pipeline build with latest push https://dev.azure.com/mariner-org/mariner/_build/results?buildId=516306&view=results
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.
Found a few spots its hard-coded in the tools:
build_mariner_toolchain.sh
, build_official_toolchain_rpms.sh
, toolchain.mk
(aside these should probably just be inheriting from each other if they truly need to be hard-coded...) @anphel31
Also the containerized build env. will need a polish up @neha170 .
I'm supportive of getting this change in as well, but at minimum the toolchain bits will need adjusting.
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.
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.
5729e7f
to
aaf0ed3
Compare
aaf0ed3
to
96d189a
Compare
hash for |
ack, i always forget to update it since the files are checked into git and don't really need to be in the 'signatures' file. updated in latest push |
8c37d0c
to
6e4eb2f
Compare
a6f5e13
to
e2f0948
Compare
e2f0948
to
fda7a0c
Compare
another pipeline run after the rebase https://dev.azure.com/mariner-org/mariner/_build/results?buildId=516985&view=results |
Pipeline failed, but I'm not sure it's related to this PR... @anphel31 I've seen this a few times:
I don't see anything in filesystem.spec that would have affected this lately... |
77dccaa
to
0f6e473
Compare
another pipeline run https://dev.azure.com/mariner-org/mariner/_build/results?buildId=518491&view=results @dmcilvaney I think this is just waiting on your review |
These macros are all already provided (and maintained) by the rpm package and should not be defined in our distro-specific macros file. This should not be a functional change since all the removed macros are already identically defined elsewhere.
The %_docdir macro is a builtin inside rpm and should not be redefined; to override the default docdir, the %_defaultdocdir macro should be used instead. Since we currently define it to the same location as %_defaultdocdir we should just drop our definition.
Upstream rpm moved away from root-only rpm builds over 16 years ago, we should do so as well. rpm-software-management/rpm@15f33b3
0f6e473
to
c2533a2
Compare
another rebase, and another pipeline run: https://dev.azure.com/mariner-org/mariner/_build/results?buildId=523385&view=results @dmcilvaney i think this is just waiting on your review? |
+- Remove incorrect code making %check nonfatal (EDIT: this commit removed/deferred)
+- fix %_topdir macro
+- remove %_lib and %_lib64 macros (EDIT: this commit removed/deferred, with added comment to macros file)
+- remove %_docdir
+- remove redundant macros
EDIT: added commit to replace several hardcoded
/usr/src/mariner
uses in the toolkitSee specific commits for details.