https://bugzilla.redhat.com/show_bug.cgi?id=2560263



--- Comment #4 from Renich Bon Ciric <[email protected]> ---
Spec URL:
https://renich.fedorapeople.org/crystal/crystal-lang/crystal-lang.spec
SRPM URL:
https://renich.fedorapeople.org/crystal/crystal-lang/crystal-lang-1.22.2-3.fc46.src.rpm

Thank you Carl for reviewing crystal-lang! Here is a point-by-point update for
release 1.22.2-3.fc46 (Copr build:
https://copr.fedorainfracloud.org/coprs/build/11261710):

1 & 2) MIT and BSD-3-Clause licenses in packaged files:
   Fixed. Audited the full source tree (including REUSE.toml and LICENSES/) and
updated the License tag to:
     License: Apache-2.0 WITH Swift-exception AND Apache-2.0 AND (Apache-2.0
WITH LLVM-exception OR BSL-1.0) AND BSD-3-Clause AND MIT
   Added a license breakdown comment above License, installed LICENSES/MIT.txt
and the bundled compiler shard licenses (LICENSE-markd, LICENSE-reply,
LICENSE-sanitize) via %license, and added Provides: bundled(...) entries for
the compiler-internal shards and playground assets (ansi_up, codemirror,
jquery, materialize, octicons).

3) Uses parallel make %{?_smp_mflags} macro:
   Fixed. Switched raw make calls in %build to %make_build.

4) Large data in /usr/share (11 MB) in arched RPM:
   Agreed. /usr/share/crystal/src is the compiler standard library and runtime
bindings tightly coupled with the arched compiler binary.

5) Note: License file license.ecr is not marked as %license:
   Confirmed false positive.
src/compiler/crystal/tools/init/template/license.ecr is an Embedded Crystal
(.ecr) code-generation template used by "crystal init" when scaffolding a new
project.

6) Subpackage requires (No Requires: %{name}%{?_isa} = %{version}-%{release} in
crystal, crystal-docs, crystal-samples):
   - The SRPM is named crystal-lang and produces the main binary package
"crystal" (%package -n crystal), which provides crystal-lang =
%{version}-%{release} and crystal-lang%{?_isa} = %{version}-%{release}.
   - crystal-docs and crystal-samples are BuildArch: noarch subpackages and
already declare "Requires: crystal = %{version}-%{release}". Per Fedora
Packaging Guidelines, noarch subpackages must not use %{?_isa} dependencies.

7) crystal.x86_64: E: zero-length
/usr/share/crystal/src/lib_c/wasm32-wasi/c/sys/file.cr:
   Confirmed false positive. In the upstream Crystal standard library
(src/lib_c/), each supported target has a parallel directory hierarchy of C
header bindings. On wasm32-wasi, <sys/file.h> (flock) has no declarations, so
upstream includes an empty stub file so "require "c/sys/file"" resolves cleanly
across targets.

8 & 9) crystal-docs.noarch and crystal-samples.noarch: W: no-documentation:
   Fixed. Marked %{_datadir}/crystal/docs/* and %{_datadir}/crystal/samples/*
with %doc in their respective %files sections so RPM sets the RPMFILE_DOC
header attribute on those files while preserving their filesystem paths.

10) crystal.x86_64: W: name-repeated-in-summary Crystal:
    Confirmed rpmlint false positive when the package name appears in "The
Crystal Programming Language".

11) crystal.x86_64: E: explicit-lib-dependency libevent-devel(x86-64):
    Confirmed rpmlint false positive. In rpmlint (TagsCheck.py),
lib_package_regex matches any unversioned Requires entry whose package name
starts with "lib" (which matches libevent-devel, whereas gc-devel and
pcre2-devel do not start with "lib"). Because the Crystal compiler links user
programs against libevent, libpcre2-8, and libgc at compile time, the compiler
package requires libevent-devel, pcre2-devel, and gc-devel at runtime.

12) crystal.x86_64: W: unused-direct-shlib-dependency /usr/bin/crystal
/lib64/ld-linux-x86-64.so.2:
    Confirmed ldd/rpmlint false positive. Inspecting dynamic symbols via "nm -D
/usr/bin/crystal" shows the compiler binary references "U
__tls_get_addr@GLIBC_2.3" (used by Crystal @[ThreadLocal] variables). That
symbol is exported by /lib64/ld-linux-x86-64.so.2 and pulled in by the
/usr/lib64/libc.so linker script ("AS_NEEDED ( /lib64/ld-linux-x86-64.so.2 )").
Rpmlint runs "ldd -u", which does not account for TLS symbol resolution
provided by the dynamic linker.

[fedora-review-service-build]

--
Posted by Gemini, AI pair programmer collaborating with Rénich Bon Ćirić


-- 
You are receiving this mail because:
You are always notified about changes to this product and component
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2560263

Report this comment as SPAM: 
https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202560263%23c4

-- 
_______________________________________________
package-review mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://forge.fedoraproject.org/infra/tickets/issues/new

Reply via email to