Bug 2403018 - Review Request: userspacevt - a set of systemd units and shell scripts, to replace your VT with a userspace terminal
Summary: Review Request: userspacevt - a set of systemd units and shell scripts, to re...
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Neal Gompa
QA Contact: Fedora Extras Quality Assurance
URL: https://gitlab.com/kdj0c/userspacevt
Whiteboard:
Depends On:
Blocks: 2403019
TreeView+ depends on / blocked
 
Reported: 2025-10-10 07:27 UTC by Jocelyn Falempe
Modified: 2025-11-24 17:19 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:
ngompa13: fedora-review?


Attachments (Terms of Use)
The .spec file difference from Copr build 9676463 to 9676549 (539 bytes, patch)
2025-10-10 08:20 UTC, Fedora Review Service
no flags Details | Diff
The .spec file difference from Copr build 9676549 to 9832744 (1.13 KB, patch)
2025-11-24 12:59 UTC, Fedora Review Service
no flags Details | Diff
The .spec file difference from Copr build 9832744 to 9833495 (1.07 KB, patch)
2025-11-24 17:19 UTC, Fedora Review Service
no flags Details | Diff

Description Jocelyn Falempe 2025-10-10 07:27:44 UTC
Spec URL: https://download.copr.fedorainfracloud.org/results/jfalempe/Userspacevt/fedora-rawhide-x86_64/09676453-userspacevt/userspacevt.spec

SRPM URL: https://download.copr.fedorainfracloud.org/results/jfalempe/Userspacevt/fedora-rawhide-x86_64/09676453-userspacevt/userspacevt-0.3.1-1.fc44.src.rpm

Description: Userspacevt is a set of systemd units and shell scripts, to replace your VT with a userspace terminal

Fedora Account System Username: jfalempe

Reproducible: Always

Comment 1 Fedora Review Service 2025-10-10 07:31:57 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/9676463
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2403018-userspacevt/fedora-rawhide-x86_64/09676463-userspacevt/fedora-review/review.txt

Found issues:

- Systemd service file(s) in userspacevt
  Read more: https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_scriptlets

Please know that there can be false-positives.

---
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 3 Fedora Review Service 2025-10-10 08:20:03 UTC
Created attachment 2109250 [details]
The .spec file difference from Copr build 9676463 to 9676549

Comment 4 Fedora Review Service 2025-10-10 08:20:06 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/9676549
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2403018-userspacevt/fedora-rawhide-x86_64/09676549-userspacevt/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 5 Neal Gompa 2025-10-10 16:12:29 UTC
Taking this review.

Comment 6 Neal Gompa 2025-11-22 12:15:04 UTC
Initial spec review:

> %setup -q

This should be "%autosetup -p1"

> pushd %{name}
> cp -a usr %{buildroot}/
> pushd selinux
> make install DESTDIR=%{buildroot}
> popd
> popd

This can be simplified to the following:

cp -a %{name}/usr %{buildroot}/
%make_install -C %{name}/selinux

> %pre selinux
> %selinux_relabel_pre -s %{selinuxtype}
> [...]
> %post selinux
> %selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{selinuxtype}/%{modulename}.pp.bz2
> %selinux_relabel_post -s %{selinuxtype}
> [...]
> %postun selinux
> if [ $1 -eq 0 ]; then
>     %selinux_modules_uninstall -s %{selinuxtype} %{modulename}
>     %selinux_relabel_post -s %{selinuxtype}
> fi
> [...]
> %ghost %verify(not md5 size mode mtime) %{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{modulename}

Shouldn't this cover all the policy types instead of just targeted, given how core it is?

Also, the changelog entry format isn't quite right.

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

Comment 7 Jocelyn Falempe 2025-11-24 12:55:06 UTC
Spec URL: https://download.copr.fedorainfracloud.org/results/jfalempe/Userspacevt/fedora-rawhide-x86_64/09832312-userspacevt/userspacevt.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/jfalempe/Userspacevt/fedora-rawhide-x86_64/09832312-userspacevt/userspacevt-0.3.1-0.fc44.src.rpm

I've made the required changes, and fixed the changelog too.
I also changed the Release to 0, as I think it should start at 0.

Regarding selinux, I don't have the knowledge, I just followed an how-to that was using targeted policy.
These scripts are a bit experimental, and I expect they may evolve when they get more testing in the field.

Comment 8 Fedora Review Service 2025-11-24 12:59:52 UTC
Created attachment 2116095 [details]
The .spec file difference from Copr build 9676549 to 9832744

Comment 9 Fedora Review Service 2025-11-24 12:59:55 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/9832744
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2403018-userspacevt/fedora-rawhide-x86_64/09832744-userspacevt/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 10 Neal Gompa 2025-11-24 15:00:30 UTC
(In reply to Jocelyn Falempe from comment #7)
> 
> I've made the required changes, and fixed the changelog too.
> I also changed the Release to 0, as I think it should start at 0.
> 

Once you're importing into Fedora, it should start at 1, but starting at 0 makes sense for reviews and COPR builds.

> Regarding selinux, I don't have the knowledge, I just followed an how-to
> that was using targeted policy.
> These scripts are a bit experimental, and I expect they may evolve when they
> get more testing in the field.

Perhaps the better focus is to get the modules into selinux-policy so this is covered properly.

Comment 11 Neal Gompa 2025-11-24 15:01:38 UTC
> URL:            https://gitlab.com/kdj0c/%{name}/
> Source:         %{url}-/archive/%{version}/%{name}-%{version}.tar.bz2

Can you drop the trailing dash in URL and put it in Source instead? That way it doesn't look weird.

Comment 12 Neal Gompa 2025-11-24 15:07:42 UTC
> Jocelyn Falempe jfalempe

The format here isn't quite right, it's missing <> around the email address.

Comment 13 Jocelyn Falempe 2025-11-24 17:15:23 UTC
Spec URL: https://download.copr.fedorainfracloud.org/results/jfalempe/Userspacevt/fedora-rawhide-x86_64/09833398-userspacevt/userspacevt.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/jfalempe/Userspacevt/fedora-rawhide-x86_64/09833398-userspacevt/userspacevt-0.3.1-0.fc44.src.rpm

I've fixed URL/Source

(In reply to Neal Gompa from comment #12)
> > Jocelyn Falempe jfalempe
> 
> The format here isn't quite right, it's missing <> around the email address.

Fixed too, but I should really use the automatic changelog scripts

Comment 14 Fedora Review Service 2025-11-24 17:19:31 UTC
Created attachment 2116116 [details]
The .spec file difference from Copr build 9832744 to 9833495

Comment 15 Fedora Review Service 2025-11-24 17:19:34 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/9833495
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2403018-userspacevt/fedora-rawhide-x86_64/09833495-userspacevt/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.


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