Skip to content

Conversation

@aninda-al
Copy link
Contributor

@aninda-al aninda-al commented Dec 18, 2025

Merge Checklist

All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)

  • The toolchain has been rebuilt successfully (or no changes were made to it)
  • The toolchain/worker package manifests are up-to-date
  • Any updated packages successfully build (or no packages were changed)
  • Packages depending on static components modified in this PR (Golang, *-static subpackages, etc.) have had their Release tag incremented.
  • Package tests (%check section) have been verified with RUN_CHECK=y for existing SPEC files, or added to new SPEC files
  • All package sources are available
  • cgmanifest files are up-to-date and sorted (./cgmanifest.json, ./toolkit/scripts/toolchain/cgmanifest.json, .github/workflows/cgmanifest.json)
  • LICENSE-MAP files are up-to-date (./LICENSES-AND-NOTICES/SPECS/data/licenses.json, ./LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md, ./LICENSES-AND-NOTICES/SPECS/LICENSE-EXCEPTIONS.PHOTON)
  • All source files have up-to-date hashes in the *.signatures.json files
  • sudo make go-tidy-all and sudo make go-test-coverage pass
  • Documentation has been updated to match any changes to the build system
  • Ready to merge

Summary

What does the PR accomplish, why was it needed?
Fixes javacc build issue by setting javac to use version 1.8
Fixes license warning for javacc and apache-commons-jexl

Change Log
  • modified: SPECS-EXTENDED/javacc/javacc.spec
  • modified: SPECS-EXTENDED/apache-commons-jexl/apache-commons-jexl.spec
Does this affect the toolchain?

NO

Associated issues
Links to CVEs
Test Methodology
  • local build
image

apache-commons-jexl-2.1.1-3.azl3.src.rpm.log
javacc-7.0.4-4.azl3.src.rpm.log

@microsoft-github-policy-service microsoft-github-policy-service bot added Packaging specs-extended PR to fix SPECS-EXTENDED 3.0-dev PRs Destined for AzureLinux 3.0 labels Dec 18, 2025
@aninda-al aninda-al force-pushed the fix-javacc-build-issue branch from 450743b to 1e7aefa Compare December 18, 2025 03:42
@aninda-al aninda-al marked this pull request as ready for review December 18, 2025 04:09
@aninda-al aninda-al requested a review from a team as a code owner December 18, 2025 04:09
@aninda-al aninda-al force-pushed the fix-javacc-build-issue branch from 1e7aefa to a4b791e Compare December 19, 2025 03:07
@sandeepkarambelkar
Copy link
Contributor

sandeepkarambelkar commented Dec 21, 2025

@sandeepkarambelkar
Copy link
Contributor

There are license check failures

##[warning]License issues found.
WARN: (apache-commons-jexl-2.1.1-3.azl3.noarch.rpm) has license warnings:
bad %doc files:
/usr/share/doc/apache-commons-jexl/NOTICE.txt
WARN: (apache-commons-jexl-javadoc-2.1.1-3.azl3.noarch.rpm) has license warnings:
bad %doc files:
/usr/share/doc/apache-commons-jexl-javadoc/NOTICE.txt
/usr/share/javadoc/apache-commons-jexl/jexl2-compat/legal/ADDITIONAL_LICENSE_INFO
/usr/share/javadoc/apache-commons-jexl/legal/ADDITIONAL_LICENSE_INFO
duplicated license files:
/usr/share/javadoc/apache-commons-jexl/jexl2-compat/legal/LICENSE
/usr/share/javadoc/apache-commons-jexl/legal/LICENSE
WARN: (javacc-javadoc-7.0.4-4.azl3.noarch.rpm) has license warnings:
bad %doc files:
/usr/share/javadoc/javacc/legal/ADDITIONAL_LICENSE_INFO
duplicated license files:
/usr/share/javadoc/javacc/legal/LICENSE

@aninda-al
Copy link
Contributor Author

There are license check failures

##[warning]License issues found. WARN: (apache-commons-jexl-2.1.1-3.azl3.noarch.rpm) has license warnings: bad %doc files: /usr/share/doc/apache-commons-jexl/NOTICE.txt WARN: (apache-commons-jexl-javadoc-2.1.1-3.azl3.noarch.rpm) has license warnings: bad %doc files: /usr/share/doc/apache-commons-jexl-javadoc/NOTICE.txt /usr/share/javadoc/apache-commons-jexl/jexl2-compat/legal/ADDITIONAL_LICENSE_INFO /usr/share/javadoc/apache-commons-jexl/legal/ADDITIONAL_LICENSE_INFO duplicated license files: /usr/share/javadoc/apache-commons-jexl/jexl2-compat/legal/LICENSE /usr/share/javadoc/apache-commons-jexl/legal/LICENSE WARN: (javacc-javadoc-7.0.4-4.azl3.noarch.rpm) has license warnings: bad %doc files: /usr/share/javadoc/javacc/legal/ADDITIONAL_LICENSE_INFO duplicated license files: /usr/share/javadoc/javacc/legal/LICENSE

@sandeepkarambelkar I believe I fixed the issue, could you please trigger another buddy build? Thanks!

@sandeepkarambelkar
Copy link
Contributor

@sandeepkarambelkar
Copy link
Contributor

License warnings still exist -

##[warning]License issues found.
WARN: (apache-commons-jexl-javadoc-2.1.1-4.azl3.noarch.rpm) has license warnings:
duplicated license files:
/usr/share/javadoc/apache-commons-jexl/jexl2-compat/legal/ADDITIONAL_LICENSE_INFO
/usr/share/javadoc/apache-commons-jexl/jexl2-compat/legal/LICENSE
/usr/share/javadoc/apache-commons-jexl/legal/ADDITIONAL_LICENSE_INFO
/usr/share/javadoc/apache-commons-jexl/legal/LICENSE
WARN: (javacc-javadoc-7.0.4-4.azl3.noarch.rpm) has license warnings:
duplicated license files:
/usr/share/javadoc/javacc/legal/ADDITIONAL_LICENSE_INFO
/usr/share/javadoc/javacc/legal/LICENSE

@aninda-al
Copy link
Contributor Author

License warnings still exist -

##[warning]License issues found. WARN: (apache-commons-jexl-javadoc-2.1.1-4.azl3.noarch.rpm) has license warnings: duplicated license files: /usr/share/javadoc/apache-commons-jexl/jexl2-compat/legal/ADDITIONAL_LICENSE_INFO /usr/share/javadoc/apache-commons-jexl/jexl2-compat/legal/LICENSE /usr/share/javadoc/apache-commons-jexl/legal/ADDITIONAL_LICENSE_INFO /usr/share/javadoc/apache-commons-jexl/legal/LICENSE WARN: (javacc-javadoc-7.0.4-4.azl3.noarch.rpm) has license warnings: duplicated license files: /usr/share/javadoc/javacc/legal/ADDITIONAL_LICENSE_INFO /usr/share/javadoc/javacc/legal/LICENSE

@sandeepkarambelkar I made some additional changes for the license issue and verified locally that the problems are resolved. Could you please trigger another buddybuild? Thanks!

@sandeepkarambelkar
Copy link
Contributor

@aninda-al
Copy link
Contributor Author

aninda-al commented Dec 24, 2025

Copy link
Contributor

@sandeepkarambelkar sandeepkarambelkar left a comment

Choose a reason for hiding this comment

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

Please address rpmbuild warnings

if [ -f %{buildroot}%{_javadocdir}/%{name}/legal/LICENSE ]; then
mkdir -p %{buildroot}%{_javadocdir}/%{name}/jexl2-compat/legal
ln -sf /usr/share/javadoc/%{name}/legal/LICENSE %{buildroot}%{_javadocdir}/%{name}/jexl2-compat/legal/LICENSE
ln -sf ../legal/LICENSE %{buildroot}%{_javadocdir}/%{name}/jexl2-compat/legal/LICENSE
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we address the rpm build warnings and following errors -

time="2025-12-24T14:52:47Z" level=debug msg=" File not found: /usr/src/azl/BUILDROOT/apache-commons-jexl-2.1.1-4.azl3.x86_64/usr/share/javadoc/apache-commons-jexl/**/ADDITIONAL_LICENSE_INFO"
time="2025-12-24T14:52:47Z" level=debug msg=" File not found: /usr/src/azl/BUILDROOT/apache-commons-jexl-2.1.1-4.azl3.x86_64/usr/share/javadoc/apache-commons-jexl/ADDITIONAL_LICENSE_INFO"
time="2025-12-24T14:52:47Z" level=debug msg=" absolute symlink: /usr/share/javadoc/apache-commons-jexl/jexl2-compat/jquery-ui.overrides.css -> /usr/share/javadoc/apache-commons-jexl/jquery-ui.overrides.css"
time="2025-12-24T14:52:47Z" level=debug
time="2025-12-24T14:52:47Z" level=debug msg="RPM build warnings:"
time="2025-12-24T14:52:47Z" level=debug msg=" absolute symlink: /usr/share/javadoc/apache-commons-jexl/jexl2-compat/legal/ASSEMBLY_EXCEPTION -> /usr/share/javadoc/apache-commons-jexl/legal/ASSEMBLY_EXCEPTION"
time="2025-12-24T14:52:47Z" level=debug msg=" absolute symlink: /usr/share/javadoc/apache-commons-jexl/jexl2-compat/legal/jquery.md -> /usr/share/javadoc/apache-commons-jexl/legal/jquery.md"
time="2025-12-24T14:52:47Z" level=debug msg=" absolute symlink: /usr/share/javadoc/apache-commons-jexl/jexl2-compat/legal/jqueryUI.md -> /usr/share/javadoc/apache-commons-jexl/legal/jqueryUI.md"
time="2025-12-24T14:52:47Z" level=debug msg=" absolute symlink: /usr/share/javadoc/apache-commons-jexl/jexl2-compat/module-search-index.js -> /usr/share/javadoc/apache-commons-jexl/module-search-index.js"
time="2025-12-24T14:52:47Z" level=debug msg=" absolute symlink: /usr/share/javadoc/apache-commons-jexl/jexl2-compat/resources/glass.png -> /usr/share/javadoc/apache-commons-jexl/resources/glass.png"
time="2025-12-24T14:52:47Z" level=debug msg=" absolute symlink: /usr/share/javadoc/apache-commons-jexl/jexl2-compat/resources/x.png -> /usr/share/javadoc/apache-commons-jexl/resources/x.png"
time="2025-12-24T14:52:47Z" level=debug msg=" absolute symlink: /usr/share/javadoc/apache-commons-jexl/jexl2-compat/script-dir/jquery-3.6.1.min.js -> /usr/share/javadoc/apache-commons-jexl/script-dir/jquery-3.6.1.min.js"
time="2025-12-24T14:52:47Z" level=debug msg=" absolute symlink: /usr/share/javadoc/apache-commons-jexl/jexl2-compat/script-dir/jquery-ui.min.css -> /usr/share/javadoc/apache-commons-jexl/script-dir/jquery-ui.min.css"
time="2025-12-24T14:52:47Z" level=debug msg=" absolute symlink: /usr/share/javadoc/apache-commons-jexl/jexl2-compat/script-dir/jquery-ui.min.js -> /usr/share/javadoc/apache-commons-jexl/script-dir/jquery-ui.min.js"
time="2025-12-24T14:52:47Z" level=debug msg=" absolute symlink: /usr/share/javadoc/apache-commons-jexl/jexl2-compat/script.js -> /usr/share/javadoc/apache-commons-jexl/script.js"
time="2025-12-24T14:52:47Z" level=debug msg=" absolute symlink: /usr/share/javadoc/apache-commons-jexl/jexl2-compat/search.js -> /usr/share/javadoc/apache-commons-jexl/search.js"
time="2025-12-24T14:52:47Z" level=debug msg=" absolute symlink: /usr/share/javadoc/apache-commons-jexl/jexl2-compat/stylesheet.css -> /usr/share/javadoc/apache-commons-jexl/stylesheet.css"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sandeepkarambelkar Fixed the symlink warning issue for apache-commons-jexl package

cp -pr target/javadoc/* %{buildroot}%{_javadocdir}/%{name}/
# remove any stray ADDITIONAL_LICENSE_INFO files under javadoc legal/ dirs
find %{buildroot}%{_javadocdir} -type f -name 'ADDITIONAL_LICENSE_INFO' -exec rm -f {} \; || true

Copy link
Contributor

Choose a reason for hiding this comment

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

Also there is one warning for javacc -

time="2025-12-24T14:52:18Z" level=debug msg=" absolute symlink: /usr/bin/javacc.sh -> /usr/bin/javacc"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sandeepkarambelkar Fixed the symlink warning issue.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sandeepkarambelkar The buddybuild result looks good

@aninda-al aninda-al force-pushed the fix-javacc-build-issue branch from ef9b835 to 13eeb03 Compare December 26, 2025 14:04
@sandeepkarambelkar
Copy link
Contributor

Copy link
Contributor

@sandeepkarambelkar sandeepkarambelkar left a comment

Choose a reason for hiding this comment

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

Changes LGTM

@sandeepkarambelkar sandeepkarambelkar merged commit c6d277e into microsoft:3.0-dev Dec 31, 2025
17 checks passed
sandeepkarambelkar pushed a commit that referenced this pull request Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.0-dev PRs Destined for AzureLinux 3.0 Packaging specs-extended PR to fix SPECS-EXTENDED

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants