docs(libc): add upstream licence notices to ported math and siglist code #12541
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/12541"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-28T18:57:55Z.
What
Adds the original copyright and licence text, with the upstream file and revision, at the top of the two source files that contain code ported from FreeBSD (including Sun msun code).
core/libs/prx/libc/src/Math.cpp: 30 msun files, in six licence groups (Sun 1993, Sun 2004, Sun 1993 SunSoft, David Schultz 2005 and 2008, plus the Cygnus conversion note). Each group has aDerived fromline naming the upstream file and the release or commit, then the upstream notice verbatim.core/libs/prx/libSceLibcInternal/SignalList.cpp:siglist.c(FreeBSD8c639945a445), University of California BSD notice verbatim.Code is unchanged; the diff is 147 added lines in header comments and no deleted or modified lines. The "comments only for technical debt" rule does not apply to licence notices (owner decision, 28 Oct), so
check_conventionsreports itscommenterror on exactly these header lines and nothing else.qsort,mergesortandheapsortinFileAndHeap.cppare original code (no shared text with the FreeBSD files), so they get no notice.Math.cppmixes ported and original functions; only the ported files are listed.Math.cpplib/msun/src/e_powf.crelease/9.0.0Math.cpps_expm1.c,s_log1p.c,e_atan2f.c,s_atanf.c,e_logf.c,e_acosf.c,e_asinf.c,s_tanh.c,s_logb.c,s_logbf.c,e_fmodf.c,s_cbrtf.c,k_sinf.c,k_cosf.c,e_rem_pio2f.c(alllib/msun/src/)release/11.4.0Math.cpps_expm1f.c,s_log1pf.c,e_expf.c,e_atanhf.c59bc2f095289Math.cppe_sinhf.c,e_coshf.c,e_acoshf.c5aa554c7e5b6Math.cpps_cbrt.c,k_tanf.c,s_exp2f.c,k_rem_pio2.c,e_sinh.crelease/11.4.0Math.cppe_asinl.c,lib/msun/ld80/invtrig.c9f0432041b8fSignalList.cpplib/libc/gen/siglist.c8c639945a445Tested
Head
17c8f56021on maincc672fdfc6, Linux, Release build. Selected tests:public_headers,guest_math,guest_math_exact,guest_strtod_subnormal,guest_qsort,guest_errors,guest_error_dialog,guest_err,guest_getopt,guest_signal_list.17c8f56021No behaviour changes (comments only), so no game or GPU run.
Checklist
main; no other open PR implements the same functions.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T19:24:52Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
The licence notices need an accepted path through the repository's conventions check, and the patch currently also fails
git diff --checkon one added line.What I ran
Reviewed head
bb4132a403a2dbfcbffad96e024c777db77d7165against currentmain319621ba2e578bd053b0baba2877fe70520e0737; the merge tree is clean. Environment: Debian 12 x86_64, Python 3.11, Git. I inspected the changed notices, current contribution/convention rules, hosted job log, and current checks.Results
mainMath.cppline 58Raw output
The local conventions command ended with:
The hosted log ended with:
Negative control
No test or code mutation was run for this documentation/licence-only change.
Findings
Blocking: The current
CONTRIBUTING.mdsays the conventions check runs for every PR and fails when a rule is broken. The hosted check rejects the added source comments and the unchecked checklist item. The PR description mentions an owner decision but does not link to a recorded exception, and no such decision appears in this PR's discussion. Please provide the maintainer-approved exception in a form the repository checks recognize, or coordinate an accepted policy/checker update; then mark the checklist consistently and rerun conventions.Blocking:
git diff --checkreports trailing whitespace atcore/libs/prx/libc/src/Math.cpp:58. Remove the trailing space and rerun the diff check.Non-blocking: I have not yet compared every inserted notice against its cited upstream revision; this review does not certify the notice-to-source mapping.
Sources
Not verified
I did not build the project or run the author-reported selected tests. I did not independently validate the upstream copyright and licence text across all cited source revisions. Hosted macOS jobs remain queued, and the Linux product job was skipped.
To get this to a good state
Resolve the conventions failure through the repository-approved process, fix the trailing whitespace, and rerun conventions plus
git diff --check. Please provide links to any maintainer decision that authorizes the exception. I will rerun these same checks against the updated head.Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-29T07:18:35Z.
Review: COMMENTED
Reviewed
17c8f5602121654420da67a62d52f6810824ee00againstcc672fdfc684966d478a9913bde7d90370985c23. Both files change only attribution/license comments; token comparison after removing C/C++ comments confirms the noncomment content is identical. Representative cited FreeBSD siglist, e_sinh and invtrig headers were retrieved and checked for their notices. No executable-code finding.Validation: complete comment diff and source-token comparison; no runtime test is needed for this comment-only change. git diff --check flags one trailing space in the added Math.cpp notice at line 61, a small cleanup item. The representative header checks do not establish the full provenance of every math routine.
Sources: siglist, e_sinh, invtrig.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T09:41:22Z.
Review: CHANGES_REQUESTED
Re-check — changes requested
The PR description now says the owner approved an exception for source licence notices. I found no linked maintainer decision in this PR's discussion, and the required hosted
conventionscheck still fails on the current head. The exception therefore is not represented in a way the repository's current required check accepts.I also reran
git diff --checkagainst currentmain; it still reports trailing whitespace in the addedMath.cppnotice (line 61 at this head).Please remove the trailing space and use a repository-recognized path for the licence-notice exception: either link the recorded maintainer decision and update the checker/policy so the required check accepts only the approved notice form, or change the notices to an accepted representation. Then rerun conventions and
git diff --check. I have not verified all notice-to-source mappings or run the selected C++ tests.This review covers exact head
17c8f5602121654420da67a62d52f6810824ee00. The hosted report shows the conventions check failing; Linux product tests are skipped. No functional test is relevant to the comment-only change.