Bug 2373136 - Review Request: libtsm - DEC-VT terminal emulator state machine
Summary: Review Request: libtsm - DEC-VT terminal emulator state machine
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Neal Gompa
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: Unretirement
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-06-17 10:20 UTC by Jocelyn Falempe
Modified: 2025-10-14 01:41 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-10-14 01:41:59 UTC
Type: ---
Embargoed:
ngompa13: fedora-review+


Attachments (Terms of Use)
changelog entries from suse spec (1.30 KB, text/plain)
2025-07-07 21:25 UTC, Neal Gompa
no flags Details

Description Jocelyn Falempe 2025-06-17 10:20:31 UTC
I would like to unretire libtsm

Spec URL: https://download.copr.fedorainfracloud.org/results/jfalempe/kmscon/fedora-rawhide-x86_64/09238436-libtsm/libtsm.spec

SRPM URL: https://download.copr.fedorainfracloud.org/results/jfalempe/kmscon/fedora-rawhide-x86_64/09238436-libtsm/libtsm-4.1.0-1.fc43.src.rpm

Description:
TSM is a state machine for DEC VT100-VT520 compatible terminal emulators. It tries to support all common standards while keeping compatibility to existing emulators like xterm, gnome-terminal, konsole, ...

Fedora Account System Username: jfalempe

https://src.fedoraproject.org/rpms/libtsm


Reproducible: Always

Comment 1 Neal Gompa 2025-06-17 12:12:07 UTC
Initial spec review:

> Version:        4.0.2^1.git69922bde

This should probably be "4.0.2^1.git%{shortcommit}"

You might want to macroize the "1" so it's easy to spot to update.

> Release:        0

This needs to be set to "1%{?dist}"

Cf. https://docs.fedoraproject.org/en-US/packaging-guidelines/DistTag/

> Group:          Development/Libraries/C and C++

This should be dropped, we don't use the Group tag at all.

> Source:         https://github.com/Aetf/libtsm/archive/%{commit}/%{name}-%{shortcommit}.tar.gz

This can be simplified to "%{url}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz"

> %package -n %{lname}

We don't typically do this in Fedora, this can be folded back into the main "libtsm" package.

> %post -n %{lname} -p /sbin/ldconfig
> %postun -n %{lname} -p /sbin/ldconfig

This is useless in Fedora since Fedora 28 / RHEL 8.

Cf. https://fedoraproject.org/wiki/Changes/Removing_ldconfig_scriptlets

Comment 2 Neal Gompa 2025-06-17 12:12:58 UTC
Hey, is this spec file derived from another distribution's package? It looks like an openSUSE-style package.

If it is, can we please put the openSUSE package changelog entries in here?

Comment 3 Jocelyn Falempe 2025-06-17 12:22:59 UTC
I forked it from Michael Bryant (Shadow53) https://copr.fedorainfracloud.org/coprs/shadow53/kmscon/package/libtsm/

From the git history of his repo, I don't see any reference to an opensuse package.


Thanks for the review of the spec file, I will make the change.

Also I'm trying to make a release upstream, so I don't have to use commit sha.
https://github.com/Aetf/kmscon/issues/114

Comment 4 Neal Gompa 2025-06-18 04:06:53 UTC
Hmm okay. It's weird because the openSUSE spec looks very similar: https://build.opensuse.org/projects/X11:terminals/packages/libtsm/files/libtsm.spec?expand=1

Comment 5 Neal Gompa 2025-06-18 04:08:16 UTC
> Requires:       %{lname} = %{version}-%{release}

This needs should be "%{name}%{?_isa} = %{version}-%{release}" (assuming the library subpackage is folded back into the main package as suggested).

Comment 6 Fedora Review Service 2025-06-18 10:20:19 UTC
The ticket summary is not in the correct format.
Expected:

    Review Request: <main package name here> - <short summary here>

Found:

    Review Request libtsm

As a consequence, the package name cannot be parsed and submitted to
be automatically build. Please modify the ticket summary and trigger a
build by typing [fedora-review-service-build].


---
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 7 Jocelyn Falempe 2025-06-18 13:17:30 UTC
(In reply to Neal Gompa from comment #1)
> 
> > %package -n %{lname}
> 
> We don't typically do this in Fedora, this can be folded back into the main
> "libtsm" package.

I'm sorry, I'm not sure what to do there. Should I just remove the lines with %{lname} ?

I've started a MR with the other requested changes:
https://gitlab.com/kdj0c/copr-fedora/-/merge_requests/1/diffs

Thanks for fixing the bug title.

(In reply to Neal Gompa from comment #4)
> Hmm okay. It's weird because the openSUSE spec looks very similar:
> https://build.opensuse.org/projects/X11:terminals/packages/libtsm/files/
> libtsm.spec?expand=1

Hum, it looks like he has done some copy/paste from Suse when updating to use Aetf's repo.
I can copy the changelogs from here (except the 2025 entry).
https://build.opensuse.org/projects/X11:terminals/packages/libtsm/files/libtsm.changes?expand=1

Comment 8 Jocelyn Falempe 2025-07-04 10:09:45 UTC
[fedora-review-service-build].

Comment 10 Neal Gompa 2025-07-07 21:25:12 UTC
Created attachment 2096391 [details]
changelog entries from suse spec

(In reply to Jocelyn Falempe from comment #7)
> 
> Hum, it looks like he has done some copy/paste from Suse when updating to
> use Aetf's repo.
> I can copy the changelogs from here (except the 2025 entry).
> https://build.opensuse.org/projects/X11:terminals/packages/libtsm/files/
> libtsm.changes?expand=1

Here's the changelog entries correctly formatted for you to inject.

Comment 11 Jocelyn Falempe 2025-07-08 08:25:03 UTC
Thanks, I merged it with the current changelog.

I didn't take the two last entries 2022 and 2025, because it was already diverged from opensuse.

Comment 13 Jocelyn Falempe 2025-07-15 13:19:55 UTC
[fedora-review-service-build]

Comment 14 Neal Gompa 2025-07-16 00:32:52 UTC
> Source:         %{url}/archive/refs/tags/v%{version}.tar.gz


This should use the format "%{url}/archive/v%{version}/%{name}-%{version}.tar.gz"

> Group:          Development/Libraries/C and C++

This should be dropped.

> %autosetup  -n %{name}-%{version} -p1

This can be simplified to "%autosetup -p1"

> %{_libdir}/libtsm.so.*

This needs to have the soversion tracked, like so: "%{_libdir}/libtsm.so.4{,.*}"

Cf. https://docs.fedoraproject.org/en-US/packaging-guidelines/#_listing_shared_library_files

Comment 16 Neal Gompa 2025-07-16 21:11:33 UTC
This looks great to me. At this point I think this package is good to go.

Review notes:

* Package follows Fedora Packaging Guidelines
* Package licensing is correct
* Package builds and installs
* No serious issues from rpmlint

PACKAGE APPROVED.

Comment 17 Jocelyn Falempe 2025-07-31 12:38:41 UTC
Thanks a lot for your review.

What are the next steps?

I'm not a Fedora packager, so I will probably need a sponsor.

Also I've applied the same review comments to the kmscon BZ:
https://bugzilla.redhat.com/show_bug.cgi?id=2373128

So it should be easier to review.

Comment 18 Neal Gompa 2025-08-02 18:54:10 UTC
(In reply to Jocelyn Falempe from comment #17)
> Thanks a lot for your review.
> 
> What are the next steps?
> 
> I'm not a Fedora packager, so I will probably need a sponsor.
> 

I have sponsored you as a packager. So now you need to follow the next steps to import the package into Fedora.

Cf. https://docs.fedoraproject.org/en-US/package-maintainers/Package_Review_Process/#_contributor

Comment 19 Fedora Admin user for bugzilla script actions 2025-08-04 18:52:26 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/libtsm

Comment 20 Fedora Update System 2025-10-05 21:18:25 UTC
FEDORA-2025-54ea3bf478 (libtsm-4.1.0-1.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-54ea3bf478

Comment 21 Fedora Update System 2025-10-06 01:52:01 UTC
FEDORA-2025-54ea3bf478 has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-54ea3bf478 \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-54ea3bf478

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

Comment 22 Fedora Update System 2025-10-14 01:41:59 UTC
FEDORA-2025-54ea3bf478 (libtsm-4.1.0-1.fc42) has been pushed to the Fedora 42 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.