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

java-pkg-simple.eclass: MANIFEST.MF show Gentoo in "Created-By: " #29801

Closed
wants to merge 1 commit into from

Conversation

vaukai
Copy link
Contributor

@vaukai vaukai commented Feb 26, 2023

Presently, MANIFEST.MF can receive upstream's "Created-By:" if such line is found in a predefined META-INF/MANIFEST.MF in ${JAVA_RESOURCE_DIRS}. This change removes such line before the jar command creates the final MANIFEST.MF putting "Created-By: (GEntoo)"

Closes: https://bugs.gentoo.org/897786

@fordfrog

@gentoo-bot
Copy link

Pull Request assignment

Submitter: @vaukai
Areas affected: eclasses
Packages affected: (none)

@gentoo/github

Linked bugs

Bugs linked: 897786

New packages

This Pull Request appears to be introducing new packages only. Due to limited manpower, adding new packages is considered low priority. This does not mean that your Pull Request will not receive any attention, however, it might take quite some time for it to be reviewed. In the meantime, your new ebuild might find a home in the GURU project repository: the ebuild repository maintained collaboratively by Gentoo users. GURU offers your ebuild a place to be reviewed and improved by other Gentoo users, while making it easy for Gentoo users to install it and enjoy the software it adds.


In order to force reassignment and/or bug reference scan, please append [please reassign] to the pull request title.

Docs: Code of ConductCopyright policy (expl.) ● DevmanualGitHub PRsProxy-maint guide

@gentoo-bot gentoo-bot added need assignment It was impossible to assign the PR correctly. Please assign it manually. bug linked Bug/Closes found in footer, and cross-linked with the PR. labels Feb 26, 2023
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2023-02-26 09:23 UTC
Newest commit scanned: 4af2231
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/9d6af8f848/output.html

@@ -417,6 +417,7 @@ java-pkg-simple_src_compile() {
# package
local jar_args
if [[ -e ${classes}/META-INF/MANIFEST.MF ]]; then
sed '/Created-By: /d' -i ${classes}/META-INF/MANIFEST.MF
Copy link
Contributor

Choose a reason for hiding this comment

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

i found an info that headers in the manifest file, though should use first letters capital, are case insensitive, so we should make the regex case insensitive, to be sure it catches even some corner cases.

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 found an info that headers in the manifest file, though should use first letters capital, are case insensitive, so we should make the regex case insensitive, to be sure it catches even some corner cases.

/Id does the trick.

Presently, MANIFEST.MF can receive upstream's "Created-By:" if such line
is found in a predefined META-INF/MANIFEST.MF in ${JAVA_RESOURCE_DIRS}.
This change removes such line before the jar command creates the final
MANIFEST.MF putting "Created-By: (Gentoo)"

Closes: https://bugs.gentoo.org/897786
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2023-02-27 08:33 UTC
Newest commit scanned: 7cb9469
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/c398359f04/output.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug linked Bug/Closes found in footer, and cross-linked with the PR. need assignment It was impossible to assign the PR correctly. Please assign it manually.
Projects
None yet
4 participants