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

Fix rpmbuild warnings #644

Merged
merged 3 commits into from
Jan 17, 2025
Merged

Fix rpmbuild warnings #644

merged 3 commits into from
Jan 17, 2025

Conversation

f-galland
Copy link
Member

Description

This PR fixes the rpm package assembly stage warnings about missing build-ids and duplicated objects.

Related Issues

Resolves #88

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

@f-galland f-galland self-assigned this Jan 16, 2025
@f-galland
Copy link
Member Author

The build-id warnings are gone with the following .spec statement:

%define _build_id_links none

The following still remain:

fede@tyner:~/src/wazuh-indexer/docker/builder (88-fix-rpm-warnings *+)
$ docker logs wazuh-indexer-builder_5.0.0 2>&1 | grep -Ei 'RPM build warnings:' -A 12
RPM build warnings:
    bogus date in %changelog: Tue Feb 20 2025 support <[email protected]> - 4.10.2
    File listed twice: /etc/wazuh-indexer/opensearch-security/action_groups.yml
    File listed twice: /etc/wazuh-indexer/opensearch-security/allowlist.yml
    File listed twice: /etc/wazuh-indexer/opensearch-security/audit.yml
    File listed twice: /etc/wazuh-indexer/opensearch-security/config.yml
    File listed twice: /etc/wazuh-indexer/opensearch-security/internal_users.yml
    File listed twice: /etc/wazuh-indexer/opensearch-security/nodes_dn.yml
    File listed twice: /etc/wazuh-indexer/opensearch-security/opensearch.yml.example
    File listed twice: /etc/wazuh-indexer/opensearch-security/roles.yml
    File listed twice: /etc/wazuh-indexer/opensearch-security/roles_mapping.yml
    File listed twice: /etc/wazuh-indexer/opensearch-security/tenants.yml
    File listed twice: /etc/wazuh-indexer/opensearch-security/whitelist.yml

@f-galland
Copy link
Member Author

After the latest commit, no rpmbuild related warnings show in the docker build:

Build log warnings
fede@tyner:~/src/wazuh-indexer/docker/builder (88-fix-rpm-warnings *)
$ docker logs wazuh-indexer-builder_5.0.0 2>&1 | grep -Ei 'warning'
WARNING: COMPAT locale provider will be removed in a future release
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.BootstrapForTesting (file:/home/wazuh-indexer/.gradle/caches/modules-2/files-2.1/org.opensearch.test/framework/2.18.0-SNAPSHOT/84ab0741ecfc70dbbc7d11340fe527d9e160d91d/framework-2.18.0-SNAPSHOT.jar)
WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.BootstrapForTesting
WARNING: System::setSecurityManager will be removed in a future release
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.gradle.api.internal.tasks.testing.worker.TestWorker (file:/home/wazuh-indexer/.gradle/wrapper/dists/gradle-8.10-all/3ym48ijgw9iixtry4iwty4ydy/gradle-8.10/lib/plugins/gradle-testing-base-infrastructure-8.10.jar)
WARNING: Please consider reporting this to the maintainers of org.gradle.api.internal.tasks.testing.worker.TestWorker
WARNING: System::setSecurityManager will be removed in a future release
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.BootstrapForTesting (file:/home/wazuh-indexer/.gradle/caches/modules-2/files-2.1/org.opensearch.test/framework/2.18.0-SNAPSHOT/84ab0741ecfc70dbbc7d11340fe527d9e160d91d/framework-2.18.0-SNAPSHOT.jar)
WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.BootstrapForTesting
WARNING: System::setSecurityManager will be removed in a future release
WARNING: COMPAT locale provider will be removed in a future release
WARNING: COMPAT locale provider will be removed in a future release
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.BootstrapForTesting (file:/home/wazuh-indexer/.gradle/caches/modules-2/files-2.1/org.opensearch.test/framework/2.18.0-SNAPSHOT/84ab0741ecfc70dbbc7d11340fe527d9e160d91d/framework-2.18.0-SNAPSHOT.jar)
WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.BootstrapForTesting
WARNING: System::setSecurityManager will be removed in a future release
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.gradle.api.internal.tasks.testing.worker.TestWorker (file:/home/wazuh-indexer/.gradle/wrapper/dists/gradle-8.10-all/3ym48ijgw9iixtry4iwty4ydy/gradle-8.10/lib/plugins/gradle-testing-base-infrastructure-8.10.jar)
WARNING: Please consider reporting this to the maintainers of org.gradle.api.internal.tasks.testing.worker.TestWorker
WARNING: System::setSecurityManager will be removed in a future release
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.gradle.api.internal.tasks.testing.worker.TestWorker (file:/home/wazuh-indexer/.gradle/wrapper/dists/gradle-8.10-all/3ym48ijgw9iixtry4iwty4ydy/gradle-8.10/lib/plugins/gradle-testing-base-infrastructure-8.10.jar)
WARNING: Please consider reporting this to the maintainers of org.gradle.api.internal.tasks.testing.worker.TestWorker
WARNING: System::setSecurityManager will be removed in a future release
WARNING: COMPAT locale provider will be removed in a future release
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.BootstrapForTesting (file:/home/wazuh-indexer/.gradle/caches/modules-2/files-2.1/org.opensearch.test/framework/2.18.0-SNAPSHOT/84ab0741ecfc70dbbc7d11340fe527d9e160d91d/framework-2.18.0-SNAPSHOT.jar)
WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.BootstrapForTesting
WARNING: System::setSecurityManager will be removed in a future release
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.gradle.api.internal.tasks.testing.worker.TestWorker (file:/home/wazuh-indexer/.gradle/wrapper/dists/gradle-8.10-all/3ym48ijgw9iixtry4iwty4ydy/gradle-8.10/lib/plugins/gradle-testing-base-infrastructure-8.10.jar)
WARNING: Please consider reporting this to the maintainers of org.gradle.api.internal.tasks.testing.worker.TestWorker
WARNING: System::setSecurityManager will be removed in a future release
WARNING: COMPAT locale provider will be removed in a future release
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.BootstrapForTesting (file:/home/wazuh-indexer/.gradle/caches/modules-2/files-2.1/org.opensearch.test/framework/2.18.0-SNAPSHOT/84ab0741ecfc70dbbc7d11340fe527d9e160d91d/framework-2.18.0-SNAPSHOT.jar)
WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.BootstrapForTesting
WARNING: System::setSecurityManager will be removed in a future release
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.gradle.api.internal.tasks.testing.worker.TestWorker (file:/home/wazuh-indexer/.gradle/wrapper/dists/gradle-8.10-all/3ym48ijgw9iixtry4iwty4ydy/gradle-8.10/lib/plugins/gradle-testing-base-infrastructure-8.10.jar)
WARNING: Please consider reporting this to the maintainers of org.gradle.api.internal.tasks.testing.worker.TestWorker
WARNING: System::setSecurityManager will be removed in a future release
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.BootstrapForTesting (file:/home/wazuh-indexer/.gradle/caches/modules-2/files-2.1/org.opensearch.test/framework/2.18.0-SNAPSHOT/84ab0741ecfc70dbbc7d11340fe527d9e160d91d/framework-2.18.0-SNAPSHOT.jar)
WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.BootstrapForTesting
WARNING: System::setSecurityManager will be removed in a future release
WARNING: COMPAT locale provider will be removed in a future release
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.gradle.api.internal.tasks.testing.worker.TestWorker (file:/home/wazuh-indexer/.gradle/wrapper/dists/gradle-8.10-all/3ym48ijgw9iixtry4iwty4ydy/gradle-8.10/lib/plugins/gradle-testing-base-infrastructure-8.10.jar)
WARNING: Please consider reporting this to the maintainers of org.gradle.api.internal.tasks.testing.worker.TestWorker
WARNING: System::setSecurityManager will be removed in a future release
WARNING: COMPAT locale provider will be removed in a future release
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.BootstrapForTesting (file:/home/wazuh-indexer/.gradle/caches/modules-2/files-2.1/org.opensearch.test/framework/2.18.0-SNAPSHOT/84ab0741ecfc70dbbc7d11340fe527d9e160d91d/framework-2.18.0-SNAPSHOT.jar)
WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.BootstrapForTesting
WARNING: System::setSecurityManager will be removed in a future release
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.gradle.api.internal.tasks.testing.worker.TestWorker (file:/home/wazuh-indexer/.gradle/wrapper/dists/gradle-8.8-bin/dl7vupf4psengwqhwktix4v1/gradle-8.8/lib/plugins/gradle-testing-base-8.8.jar)
WARNING: Please consider reporting this to the maintainers of org.gradle.api.internal.tasks.testing.worker.TestWorker
WARNING: System::setSecurityManager will be removed in a future release
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.BootstrapForTesting (file:/home/wazuh-indexer/.gradle/caches/modules-2/files-2.1/org.opensearch.test/framework/2.18.0-SNAPSHOT/84ab0741ecfc70dbbc7d11340fe527d9e160d91d/framework-2.18.0-SNAPSHOT.jar)
WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.BootstrapForTesting
WARNING: System::setSecurityManager will be removed in a future release
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.gradle.api.internal.tasks.testing.worker.TestWorker (file:/home/wazuh-indexer/.gradle/wrapper/dists/gradle-8.8-bin/dl7vupf4psengwqhwktix4v1/gradle-8.8/lib/plugins/gradle-testing-base-8.8.jar)
WARNING: Please consider reporting this to the maintainers of org.gradle.api.internal.tasks.testing.worker.TestWorker
WARNING: System::setSecurityManager will be removed in a future release
WARNING: COMPAT locale provider will be removed in a future release
WARNING: COMPAT locale provider will be removed in a future release
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.BootstrapForTesting (file:/home/wazuh-indexer/.gradle/caches/modules-2/files-2.1/org.opensearch.test/framework/2.18.0-SNAPSHOT/84ab0741ecfc70dbbc7d11340fe527d9e160d91d/framework-2.18.0-SNAPSHOT.jar)
WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.BootstrapForTesting
WARNING: System::setSecurityManager will be removed in a future release
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.gradle.api.internal.tasks.testing.worker.TestWorker (file:/home/wazuh-indexer/.gradle/wrapper/dists/gradle-8.8-bin/dl7vupf4psengwqhwktix4v1/gradle-8.8/lib/plugins/gradle-testing-base-8.8.jar)
WARNING: Please consider reporting this to the maintainers of org.gradle.api.internal.tasks.testing.worker.TestWorker
WARNING: System::setSecurityManager will be removed in a future release
warning: unknown enum constant Status.STABLE
warning: unknown enum constant Status.STABLE
warning: unknown enum constant Status.STABLE
warning: unknown enum constant Status.STABLE
4 warnings
WARNING: COMPAT locale provider will be removed in a future release
WARNING: COMPAT locale provider will be removed in a future release
WARNING: COMPAT locale provider will be removed in a future release
WARNING: COMPAT locale provider will be removed in a future release
WARNING: COMPAT locale provider will be removed in a future release
WARNING: COMPAT locale provider will be removed in a future release
WARNING: COMPAT locale provider will be removed in a future release
WARNING: COMPAT locale provider will be removed in a future release
WARNING: COMPAT locale provider will be removed in a future release
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.5/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
@     WARNING: plugin requires additional permissions     @
@     WARNING: plugin requires additional permissions     @
@     WARNING: plugin requires additional permissions     @
@     WARNING: plugin requires additional permissions     @
@     WARNING: plugin requires additional permissions     @
@     WARNING: plugin requires additional permissions     @
@     WARNING: plugin requires additional permissions     @
@     WARNING: plugin requires additional permissions     @
@     WARNING: plugin requires additional permissions     @
@     WARNING: plugin requires additional permissions     @
@     WARNING: plugin requires additional permissions     @
@     WARNING: plugin requires additional permissions     @
@     WARNING: plugin requires additional permissions     @
@     WARNING: plugin requires additional permissions     @
@     WARNING: plugin requires additional permissions     @
@     WARNING: plugin requires additional permissions     @
@     WARNING: plugin requires additional permissions     @

@f-galland
Copy link
Member Author

The actions don't show the warnings anymore:

@f-galland f-galland marked this pull request as ready for review January 16, 2025 16:10
@AlexRuiz7 AlexRuiz7 merged commit 2e5996b into master Jan 17, 2025
12 checks passed
@AlexRuiz7 AlexRuiz7 deleted the 88-fix-rpm-warnings branch January 17, 2025 11:20
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.

Fix RPM package assembly warnings
2 participants