-
Notifications
You must be signed in to change notification settings - Fork 171
8281814: Debuginfo.diz contains redundant build path after backport JDK-8025936 #26
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
Conversation
|
👋 Welcome back dongbohe! A progress list of the required criteria for merging this PR into |
|
@jerboaa Hi, severin. Can you help me look at this? It looks like the bot can't recognize original issue. |
@dongbohe The original bug is not publicly accessible. I think the way to work around this is to use PR title: |
|
Doesn't seem to work. Use JDK-8281814 and add a |
|
/summary 8u backport of JDK-8035134 |
|
@dongbohe Setting summary to |
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.
LGTM
|
@dongbohe This change now passes all automated pre-integration checks. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 3 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@jerboaa) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
|
Got the push approval. |
|
/sponsor |
|
Going to push as commit 62bbb3e.
Your commit was automatically rebased without conflicts. |
|
@RealFYang @dongbohe Pushed as commit 62bbb3e. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
|
This commit seems to have broken the Mac OS build I'm guessing there is now no argument to @dongbohe while this one looks to have gone in before GHA support was added, and so missed a run on MacOS run, can you make sure you have actions enabled for future PRs? Thanks. |
|
It looks like it is largely reverted again in this 11u commit. I'll look at backporting just the changes to that file, as the rest is intrusive or not relevant. On Mac, It's not clear to me why this |
|
@gnu-andrew I have enabled actions for future PRs and will make sure to pass pre-commit tests before submitting PRs.
thanks for looking into this.
From Contribute to jdk8u, it is recommended to use the patch from the repository of the JDK version closest to 8u to minimise changes, so I used |
|
Hi, @gnu-andrew I have reproduced this problem on a MAC, here is the statements that produced the error: cd /Users/hedongbo/myprojects/openjdk/jdk8u-dev/build/macosx-x86_64-normal-server-release/jdk/objs/libnpt && /usr/bin/zip -q /Users/hedongbo/myprojects/openjdk/jdk8u-dev/build/macosx-x86_64-normal-server-release/jdk/objs/libnpt/libnpt.diz Info.plist libnpt.dylib && /usr/bin/zip -q /Users/hedongbo/myprojects/openjdk/jdk8u-dev/build/macosx-x86_64-normal-server-release/jdk/objs/libnpt/libnpt.diz Info.plist libnpt.dylib
$ cd /Users/hedongbo/myprojects/openjdk/jdk8u-dev/build/macosx-x86_64-normal-server-release/jdk/objs/libnpt
$ pwd
/Users/hedongbo/myprojects/openjdk/jdk8u-dev/build/macosx-x86_64-normal-server-release/jdk/objs/libnpt
$ ls
libnpt.dylib.dSYM npt.d npt.o utf.d utf.o utf_md.d utf_md.o
$ tree libnpt.dylib.dSYM
libnpt.dylib.dSYM
└── Contents
├── Info.plist
└── Resources
└── DWARF
└── libnpt.dylib
3 directories, 2 files
$ /usr/bin/zip -q /Users/hedongbo/myprojects/openjdk/jdk8u-dev/build/macosx-x86_64-normal-server-release/jdk/objs/libjli_static/libjli_static.diz Info.plist libjli_static.dylib
zip error: Nothing to do! (/Users/hedongbo/myprojects/openjdk/jdk8u-dev/build/macosx-x86_64-normal-server-release/jdk/objs/libjli_static/libjli_static.diz)So, I think we can fix this problem with subst, and GHA on mac was successful. diff --git a/make/common/NativeCompilation.gmk b/make/common/NativeCompilation.gmk
index 98af6babc8..d1fc0c93a9 100644
--- a/make/common/NativeCompilation.gmk
+++ b/make/common/NativeCompilation.gmk
@@ -530,7 +530,7 @@ define SetupNativeCompilation
# to be rebuilt properly.
$$($1_DEBUGINFO_ZIP): $$($1_DEBUGINFO_FILES) $$($1_TARGET)
$(CD) $$($1_OBJECT_DIR) \
- && $(ZIP) -q $$@ $$(notdir $$($1_DEBUGINFO_FILES))
+ && $(ZIP) -q $$@ $$(subst $$($1_OBJECT_DIR)/,, $$($1_DEBUGINFO_FILES))
endif
else
ifneq ($$($1_STRIP_POLICY), no_strip)The statements and build result after using subst are as follows: cd /Users/hedongbo/myprojects/openjdk/jdk8u-dev/build/macosx-x86_64-normal-server-release/jdk/objs/libnpt && /usr/bin/zip -q /Users/hedongbo/myprojects/openjdk/jdk8u-dev/build/macosx-x86_64-normal-server-release/jdk/objs/libnpt/libnpt.diz libnpt.dylib.dSYM/Contents/Info.plist libnpt.dylib.dSYM/Contents/Resources/DWARF/libnpt.dylib
$ unzip libnpt.diz
Archive: libnpt.diz
inflating: libnpt.dylib.dSYM/Contents/Info.plist
inflating: libnpt.dylib.dSYM/Contents/Resources/DWARF/libnpt.dylibThis looks ok. What do you think? |
Hi,
I would like to backport 8035134 to fix debuginfo regression, introduced by JDK-8025936.
As discussed on JDK-8281814, we cannot see the details of the original patch.
It is only a different context, no risk.
Testing: worked correctly after patch.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk8u-dev pull/26/head:pull/26$ git checkout pull/26Update a local copy of the PR:
$ git checkout pull/26$ git pull https://git.openjdk.java.net/jdk8u-dev pull/26/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 26View PR using the GUI difftool:
$ git pr show -t 26Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk8u-dev/pull/26.diff