-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Distro packaging for SMFC #34
Comments
Hi @emansom, sounds great. What is the kernel version you work with at RHEL? |
Currently don't have access to any RHEL 9 boxes to verify, however: Rocky Linux 9 ships with kernel version Given Rocky Linux 9 and RHEL 9 are using the same SRPMs and remain bug-for-bug compatible, I presume it's the same kernel build config and version on RHEL 9. For a detection algorithm I think simply checking if the paths to the drive hwmon files exists would suffice, this would handle all cases where:
|
Fedora package review requested: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=2274274 |
Related PR #35 opened |
Hi @emansom, The effort you put into this is really impressive, thanks for that.
Would it be possible with Currently there is an issue with Peter |
One additional comment that I'm also thinking on a central version number and central updater solution. |
And that command-line parameter can then be passed via
Probably not. I will dig thru the documentation to see if paths can be changed. |
Opened #36 to address feedback from Fedora packager. |
Fedora packager @NeilHanlon mentioned rpmautospec which may be able to automate this.
Setting up an Open Build Service instance could be a solution, combined with a CI/CD tool that integrates with multiple distro/OS-specific packaging definition files would ease this. I currently lack sufficient resources for this, so only AUR, PPA and Copr (Fedora repo and EPEL in the future) would be feasible from my end for the time being. |
A way to generate man pages automatically is also needed per the guidelines, as Update: found this project: argparse-manpage. It fits the need, but does requires some code modification: namely a static |
Heya folks! Happy to help on this. I think it would be really helpful for the Fedora Server Working group, and of course for RHEL systems as well. Have you looked into using packit, perhaps? This can take care of a lot of the "dirty" work in Fedora packaging--including and especially things like version bumps, etc |
fwiw, this is not a strict requirement for the manpages to be automatically generated; though of course having them be as up-to-date as possible would be beneficial (and is why the policy says maintainers should work with upstream and use those manpages where available) |
Hi @NeilHanlon, welcome. |
Hi @emansom, I see you tried to convert
I have done this in another repo: https://github.com/petersulyok/diskinfo |
This was done for the tests to run successfully in the RPM package chroot. Fedora's Python RPM package macros make some assumptions about the Python environment and requires it to be exposed as a package by pyproject for the smfc namespace/package to be available when the tests are invoked.
It does not add any extra runtime dependencies, only during the RPM package building and package testing phases are the extra tooling (setuptools, pyproject, pytest) required.
Good catch. I read over this part in the guidelines. Yes, this is required to mitigate security concerns: where a novice user might be tricked into This will require some modification to the RPM definition file (smfc.spec) to fetch from PyPi instead, as well as some extra tooling (GitHub action) to be added to publish to PyPi on new release.
This is the job of Fedora's Python RPM package build macros (and deb equivalent in the future), it invokes This RPM file can then be distributed across distro repositories, making it end user installable via |
I've got an idea how could we divide the tasks and step further in RPM packaging. Since the Python packaging is fundamental and it effects everything (including installation and unit testing etc.), I would do that. |
Hi @emansom and @NeilHanlon, I just finished the
|
I'm in the process of creating an .spec file here to be used in conjunction with tito for RPM release management.
This will allow publishing to Copr for easy package testing (currently testing here), and eventual upstreaming to EPEL for wider package availability to the EL community at large.
Once the .spec file conforms to all Fedora and EL packaging rules, i'll open up a PR here to merge it in.
However, one of the hurdles I ran into with SMFC while testing on EL: is that the default kernel that ships with RHEL 9, Rocky Linux 9 and CentOS Stream 9 does not have the
drivetemp
kernel module built-in. This can be worked around withhddtemp
to success, but it should not be broken on package installation.Further the requirement to modify the
hd_names
variable first before it's functional is tedious and further complicates a functional state from the get go.It would help the out-of-the-box experience for EL users to have SMFC automatically discover HDDs when e.g.
hd_names
is set toauto
and to have SMFC fall-back/default tohddtemp
for temperature.The text was updated successfully, but these errors were encountered: