Bug 2240336 - Review Request: cvt12 - CVT (Coordinated Video Timings) modeline calculator with CVT v1.2 timings
Summary: Review Request: cvt12 - CVT (Coordinated Video Timings) modeline calculator w...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Artur Frenszek-Iwicki
QA Contact: Fedora Extras Quality Assurance
URL: https://github.com/kevinlekiller/cvt_...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-09-23 09:00 UTC by Dominik 'Rathann' Mierzejewski
Modified: 2024-03-23 00:32 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-03-19 01:09:51 UTC
Type: ---
Embargoed:
fedora: fedora-review+


Attachments (Terms of Use)
The .spec file difference from Copr build 6513049 to 6979730 (1.03 KB, patch)
2024-02-01 14:57 UTC, Fedora Review Service
no flags Details | Diff

Description Dominik 'Rathann' Mierzejewski 2023-09-23 09:00:59 UTC
Spec URL: https://rathann.fedorapeople.org/review/cvt12/cvt12.spec
SRPM URL: https://rathann.fedorapeople.org/review/cvt12/cvt12-0-0.1.20221228git6f66135.fc38.src.rpm
Description:
CVT (Coordinated Video Timings) modeline calculator with CVT v1.2
timings.

This is a modified CVT modeline calculator based on cvt by
erich, which is based on GTF modeline calculator by Andy
Ritger.

This modified version adds support for CVT v1.2 (VESA-2013-3 v1.2).

Fedora Account System Username: rathann

Comment 1 Artur Frenszek-Iwicki 2023-10-09 22:34:12 UTC
> Version: 0
> Release: 0.1.%{date}git%{shortcommit}%{?dist}
The Versioning Guidelines now recommend to put the date-git-commit part
as part of Version, using the caret notation: "Version: 0^%{date}git%{shortcommit}".
https://docs.fedoraproject.org/en-US/packaging-guidelines/Versioning/#_handling_non_sorting_versions_with_tilde_dot_and_caret

> %build
> %set_build_flags
Starting with Fedora 36, the build flags are set automatically and calling %set_build_flags manually is no longer needed.
https://fedoraproject.org/wiki/Changes/SetBuildFlagsBuildCheck

Comment 2 Dominik 'Rathann' Mierzejewski 2023-10-10 10:37:08 UTC
Spec URL: https://rathann.fedorapeople.org/review/cvt12/cvt12.spec
SRPM URL: https://rathann.fedorapeople.org/review/cvt12/cvt12-0%5e20221228git6f66135-1.fc38.src.rpm

* Tue Oct 10 2023 Dominik Mierzejewski <dominik> 0^20221228git6f66135-1
- change versioning scheme to caret notation
- drop redundant set_build_flags macro call

Thanks for the comments!

Comment 3 Fedora Review Service 2023-10-10 10:42:48 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/6513049
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2240336-cvt12/fedora-rawhide-x86_64/06513049-cvt12/fedora-review/review.txt

Please take a look if any issues were found.

---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 4 Artur Frenszek-Iwicki 2023-10-12 16:57:52 UTC
rpmlint complains:
> cvt12.x86_64: W: position-independent-executable-suggested /usr/bin/cvt12
Looking at the build log, while Fedora's CFLAGS are used during the build, this is not the case with LDFLAGS.
You can use CFLAGS="$CFLAGS $LDFLAGS" in the %make_build invocation, or - looking at how simplistic
the upstream Makefile is - you could just call gcc directly.

By the way, since upstream does not ship a separate license file, you can use the following awk snippet
to extract the opening comment, which contains the license text, from the source code:
> awk '1;/\*\//{exit}' < cvt12.c > LICENSE

Comment 5 Dominik 'Rathann' Mierzejewski 2024-02-01 14:53:25 UTC
(In reply to Artur Frenszek-Iwicki from comment #4)
> rpmlint complains:
> > cvt12.x86_64: W: position-independent-executable-suggested /usr/bin/cvt12
> Looking at the build log, while Fedora's CFLAGS are used during the build,
> this is not the case with LDFLAGS.
> You can use CFLAGS="$CFLAGS $LDFLAGS" in the %make_build invocation, or -
> looking at how simplistic
> the upstream Makefile is - you could just call gcc directly.

Done.

> By the way, since upstream does not ship a separate license file, you can
> use the following awk snippet
> to extract the opening comment, which contains the license text, from the
> source code:
> > awk '1;/\*\//{exit}' < cvt12.c > LICENSE

This is not required and the file this produces still has C comments in it.

Spec URL: https://rathann.fedorapeople.org/review/cvt12/cvt12.spec
SRPM URL: https://rathann.fedorapeople.org/review/cvt12/cvt12-0%5e20221228git6f66135-2.fc38.src.rpm

* Thu Feb 01 2024 Dominik Mierzejewski <dominik> 0^20221228git6f66135-2
- ensure Fedora LDFLAGS are also used during build

Thanks for the tips. Is there anything else preventing this package from being approved?

Comment 6 Fedora Review Service 2024-02-01 14:57:35 UTC
Created attachment 2014379 [details]
The .spec file difference from Copr build 6513049 to 6979730

Comment 7 Fedora Review Service 2024-02-01 14:57:37 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/6979730
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2240336-cvt12/fedora-rawhide-x86_64/06979730-cvt12/fedora-review/review.txt

Please take a look if any issues were found.


---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 8 Dominik 'Rathann' Mierzejewski 2024-02-27 09:20:06 UTC
Ping.

Comment 9 Artur Frenszek-Iwicki 2024-03-08 08:31:58 UTC
Sorry for no response. It seems fedora-review is currently broken: https://pagure.io/FedoraReview/issue/510
I'll try to do the review manually tomorrow.

Comment 10 Artur Frenszek-Iwicki 2024-03-09 12:51:54 UTC
Package approved.

Personally I still encourage you to use the proposed awk trick to get the license info
in a separate file, as otherwise the binary RPM ships only with an executable
and without the actual license text - but reading through the Packaging Guidelines,
doing this isn't required. So I guess it's okay like this.



Package Review
==============

Legend:
[x] = Pass
[!] = Fail
[-] = Not applicable
[?] = Not evaluated


===== MUST items =====

C/C++:
[-]: Provides: bundled(gnulib) in place as required.
     Note: Sources not installed
[x]: Package does not contain kernel modules.
[x]: If your application is a C or C++ application you must list a
     BuildRequires against gcc, gcc-c++ or clang.
[x]: Package does not contain any libtool archives (.la)
[x]: Package contains no static executables.
[x]: Rpath absent or only used for internal libs.

Generic:
[x]: Package is licensed with an open-source compatible license and meets
     other legal requirements as defined in the legal section of Packaging
     Guidelines.
[x]: If (and only if) the source package includes the text of the
     license(s) in its own file, then that file, containing the text of the
     license(s) for the package is included in %license.
[x]: License field in the package spec file matches the actual license.
     Note: Checking patched sources after %prep for licenses. No licenses
     found. Please check the source files for licenses manually.
[-]: License file installed when any subpackage combination is installed.
[x]: %build honors applicable compiler flags or justifies otherwise.
[x]: Package contains no bundled libraries without FPC exception.
[x]: Changelog in prescribed format.
[x]: Sources contain only permissible code or content.
[-]: Package contains desktop file if it is a GUI application.
[-]: Development files must be in a -devel package
[x]: Package uses nothing in %doc for runtime.
[x]: Package consistently uses macros (instead of hard-coded directory
     names).
[x]: Package is named according to the Package Naming Guidelines.
[x]: Package does not generate any conflict.
[x]: Package obeys FHS, except libexecdir and /usr/target.
[-]: If the package is a rename of another package, proper Obsoletes and
     Provides are present.
[x]: Requires correct, justified where necessary.
[x]: Spec file is legible and written in American English.
[-]: Package contains systemd file(s) if in need.
[x]: Useful -debuginfo package or justification otherwise.
[x]: Package is not known to require an ExcludeArch tag.
[x]: Package complies to the Packaging Guidelines
[x]: Package successfully compiles and builds into binary rpms on at least
     one supported primary architecture.
[x]: Package installs properly.
[x]: Rpmlint is run on all rpms the build produces.
     Note: There are rpmlint messages (see attachment).
[x]: The License field must be a valid SPDX expression.
[x]: Package requires other packages for directories it uses.
[x]: Package must own all directories that it creates.
[x]: Package does not own files or directories owned by other packages.
[x]: Package uses either %{buildroot} or $RPM_BUILD_ROOT
[x]: Package does not run rm -rf %{buildroot} (or $RPM_BUILD_ROOT) at the
     beginning of %install.
[x]: Macros in Summary, %description expandable at SRPM build time.
[x]: Dist tag is present.
[x]: Package does not contain duplicates in %files.
[x]: Permissions on files are set properly.
[x]: Package must not depend on deprecated() packages.
[x]: Package use %makeinstall only when make install DESTDIR=... doesn't
     work.
[x]: Package is named using only allowed ASCII characters.
[x]: Package does not use a name that already exists.
[x]: Package is not relocatable.
[x]: Sources used to build the package match the upstream source, as
     provided in the spec URL.
[x]: Spec file name must match the spec package %{name}, in the format
     %{name}.spec.
[x]: File names are valid UTF-8.
[x]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 1261 bytes in 1 files.
[x]: Packages must not store files under /srv, /opt or /usr/local

===== SHOULD items =====

Generic:
[-]: If the source package does not include license text(s) as a separate
     file from upstream, the packager SHOULD query upstream to include it.
[x]: Final provides and requires are sane (see attachments).
[x]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[-]: Sources are verified with gpgverify first in %prep if upstream
     publishes signatures.
     Note: gpgverify is not used.
[x]: Package should compile and build into binary rpms on all supported
     architectures.
     Link to successful scratch build in koji:
     https://koji.fedoraproject.org/koji/taskinfo?taskID=114710658
[-]: %check is present and all tests pass.
[x]: Packages should try to preserve timestamps of original installed
     files.
[x]: Reviewer should test that the package builds in mock.
[x]: Buildroot is not present
[x]: Package has no %clean section with rm -rf %{buildroot} (or
     $RPM_BUILD_ROOT)
[x]: No file requires outside of /etc, /bin, /sbin, /usr/bin, /usr/sbin.
[x]: Fully versioned dependency in subpackages if applicable.
[x]: Packager, Vendor, PreReq, Copyright tags should not be in spec file
[x]: Sources can be downloaded from URI in Source: tag
[x]: SourceX is a working URL.
[x]: Spec use %global instead of %define unless justified.

===== EXTRA items =====

Generic:
[x]: Rpmlint is run on debuginfo package(s).
     Note: No rpmlint messages.
[x]: Rpmlint is run on all installed packages.
     Note: There are rpmlint messages (see attachment).
[x]: Large data in /usr/share should live in a noarch subpackage if package
     is arched.
[x]: Spec file according to URL is the same as in SRPM.


Rpmlint
-------
Checking: cvt12-0^20221228git6f66135-2.fc41.x86_64.rpm
          cvt12-debuginfo-0^20221228git6f66135-2.fc41.x86_64.rpm
          cvt12-debugsource-0^20221228git6f66135-2.fc41.x86_64.rpm
          cvt12-0^20221228git6f66135-2.fc41.src.rpm
============== rpmlint session starts =============
rpmlint: 2.5.0
configuration:
    /usr/lib/python3.12/site-packages/rpmlint/configdefaults.toml
    /etc/xdg/rpmlint/fedora-legacy-licenses.toml
    /etc/xdg/rpmlint/fedora-spdx-licenses.toml
    /etc/xdg/rpmlint/fedora.toml
    /etc/xdg/rpmlint/scoring.toml
    /etc/xdg/rpmlint/users-groups.toml
    /etc/xdg/rpmlint/warn-on-functions.toml
rpmlintrc: [PosixPath('/tmp/tmp1hjlz2z3')]
checks: 32, packages: 4

cvt12.src: E: spelling-error ('modeline', 'Summary(en_US) modeline -> modeling, mode line, mode-line')
cvt12.src: E: spelling-error ('modeline', '%description -l en_US modeline -> modeling, mode line, mode-line')
cvt12.x86_64: E: spelling-error ('modeline', 'Summary(en_US) modeline -> modeling, mode line, mode-line')
cvt12.x86_64: E: spelling-error ('modeline', '%description -l en_US modeline -> modeling, mode line, mode-line')
cvt12.x86_64: W: no-manual-page-for-binary cvt12
====== 4 packages and 0 specfiles checked; 4 errors, 1 warnings, 16 filtered, 4 badness; has taken 0.8 s ======




Rpmlint (debuginfo)
-------------------
Checking: cvt12-debuginfo-0^20221228git6f66135-2.fc41.x86_64.rpm
============== rpmlint session starts =============
rpmlint: 2.5.0
configuration:
    /usr/lib/python3.12/site-packages/rpmlint/configdefaults.toml
    /etc/xdg/rpmlint/fedora-legacy-licenses.toml
    /etc/xdg/rpmlint/fedora-spdx-licenses.toml
    /etc/xdg/rpmlint/fedora.toml
    /etc/xdg/rpmlint/scoring.toml
    /etc/xdg/rpmlint/users-groups.toml
    /etc/xdg/rpmlint/warn-on-functions.toml
rpmlintrc: [PosixPath('/tmp/tmpa9p5ucec')]
checks: 32, packages: 1

================= 1 packages and 0 specfiles checked; 0 errors, 0 warnings, 5 filtered, 0 badness; has taken 0.2 s ======





Rpmlint (installed packages)
----------------------------
============================ rpmlint session starts ============================
rpmlint: 2.5.0
configuration:
    /usr/lib/python3.12/site-packages/rpmlint/configdefaults.toml
    /etc/xdg/rpmlint/fedora-legacy-licenses.toml
    /etc/xdg/rpmlint/fedora-spdx-licenses.toml
    /etc/xdg/rpmlint/fedora.toml
    /etc/xdg/rpmlint/scoring.toml
    /etc/xdg/rpmlint/users-groups.toml
    /etc/xdg/rpmlint/warn-on-functions.toml
checks: 32, packages: 3

cvt12.x86_64: E: spelling-error ('modeline', 'Summary(en_US) modeline -> modeling, mode line, mode-line')
cvt12.x86_64: E: spelling-error ('modeline', '%description -l en_US modeline -> modeling, mode line, mode-line')
cvt12.x86_64: W: no-manual-page-for-binary cvt12
 3 packages and 0 specfiles checked; 2 errors, 1 warnings, 13 filtered, 2 badness; has taken 0.6 s 



Source checksums
----------------
https://github.com/kevinlekiller/cvt_modeline_calculator_12/archive/6f66135104dc50425c904898822d49c50e130751/cvt12-6f66135.tar.gz :
  CHECKSUM(SHA256) this package     : f76d2c7712234629e88cf629204ee2def26c842fe5fdf2df3db500397f3d0283
  CHECKSUM(SHA256) upstream package : f76d2c7712234629e88cf629204ee2def26c842fe5fdf2df3db500397f3d0283


Requires
--------
cvt12 (rpmlib, GLIBC filtered):
    libc.so.6()(64bit)
    libm.so.6()(64bit)
    rtld(GNU_HASH)

cvt12-debuginfo (rpmlib, GLIBC filtered):

cvt12-debugsource (rpmlib, GLIBC filtered):



Provides
--------
cvt12:
    cvt12
    cvt12(x86-64)

cvt12-debuginfo:
    cvt12-debuginfo
    cvt12-debuginfo(x86-64)
    debuginfo(build-id)

cvt12-debugsource:
    cvt12-debugsource
    cvt12-debugsource(x86-64)



Generated by fedora-review 0.10.0 (e79b66b) last change: 2023-07-24
Command line :/usr/bin/fedora-review -b 2240336
Buildroot used: fedora-rawhide-x86_64
Active plugins: Shell-api, Generic, C/C++
Disabled plugins: PHP, Ocaml, Python, fonts, R, Perl, Haskell, Java, SugarActivity
Disabled flags: EXARCH, EPEL6, EPEL7, DISTTAG, BATCH

Comment 11 Fedora Admin user for bugzilla script actions 2024-03-10 06:17:45 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/cvt12

Comment 12 Fedora Update System 2024-03-10 06:54:23 UTC
FEDORA-2024-7817e3166e (cvt12-0^20221228git6f66135-2.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-7817e3166e

Comment 13 Fedora Update System 2024-03-10 06:54:23 UTC
FEDORA-2024-8e4dce8d0b (cvt12-0^20221228git6f66135-2.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-8e4dce8d0b

Comment 14 Fedora Update System 2024-03-11 00:43:48 UTC
FEDORA-2024-8e4dce8d0b has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-8e4dce8d0b \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-8e4dce8d0b

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 15 Fedora Update System 2024-03-11 01:39:22 UTC
FEDORA-2024-7817e3166e has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-7817e3166e \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-7817e3166e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 16 Fedora Update System 2024-03-19 01:09:51 UTC
FEDORA-2024-7817e3166e (cvt12-0^20221228git6f66135-2.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 17 Fedora Update System 2024-03-23 00:32:31 UTC
FEDORA-2024-8e4dce8d0b (cvt12-0^20221228git6f66135-2.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.