Bug 2091668 - Review Request: oddjob-gpupdate - oddjob helper for pam_oddjob_gpupdate module to apply group policy
Summary: Review Request: oddjob-gpupdate - oddjob helper for pam_oddjob_gpupdate modul...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Andreas Schneider
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-05-30 16:52 UTC by Pavel Filipensky
Modified: 2022-06-29 08:13 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-06-29 08:13:21 UTC
Type: ---
Embargoed:
asn: fedora-review+


Attachments (Terms of Use)

Description Pavel Filipensky 2022-05-30 16:52:18 UTC
Spec URL: https://pfilipen.fedorapeople.org/oddjob-gpupdate/oddjob-gpupdate.spec
SRPM URL: https://pfilipen.fedorapeople.org/oddjob-gpupdate/oddjob-gpupdate-0.2.0-1.fc35.src.rpm
Description: This package contains the oddjob helper which can be used by the pam_oddjob_gpupdate module to apply group policy objects at login-time.
Fedora Account System Username: pfilipen

Comment 1 Andreas Schneider 2022-06-07 12:51:46 UTC
Nalin, could you review the package?

Comment 2 Nalin Dahyabhai 2022-06-07 15:09:55 UTC
The spec file looks sane, and the permissions it sets up for running gpoa look similar to what we set up for the mkdir helper.  I'm not familiar with what gpoa does, though, so I can't speak to that.  I don't think that registering its D-Bus service name as "com.redhat.oddjob_gpupdate" is consistent with recommended practices.

Comment 3 Pavel Filipensky 2022-06-08 13:43:22 UTC
Can you please explain what D-Bus service name instead of "com.redhat.oddjob_gpupdate" would be consistent with recommended practices? The name "com.redhat.oddjob_gpupdate"  is already used by Suse and AltLinux.

Comment 4 Nalin Dahyabhai 2022-06-08 13:59:43 UTC
A dns-domain-name-but-reversed that better reflects the authorship?  The current name implies that the upstream for it is, or is affiliated with, Red Hat.  It's more an upstream issue than a packaging issue, though.

Comment 5 Pavel Filipensky 2022-06-08 16:24:24 UTC
The name change should be done in the upstream first. I will start an upstream change. We should created the Fedora package already now, since we do not know how long it will take to get it accepted.

Comment 6 Pavel Filipensky 2022-06-08 16:25:47 UTC
Nalin, do you have a suggestion for the new name? The upstream package comes from https://github.com/altlinux/oddjob-gpupdate.git.

Comment 7 Nalin Dahyabhai 2022-06-08 21:08:41 UTC
My first guess would be something beginning with "org.altlinux.", but that is _definitely_ a question that upstream should weigh in on.

Comment 8 Andreas Schneider 2022-06-13 12:43:47 UTC
+ autoreconf -if
Can't exec "aclocal": No such file or directory at /usr/share/autoconf/Autom4te/FileUtils.pm line 274.
autoreconf: error: aclocal failed with exit status: 2

Your spec file misses:

BuildRequires:    automake

Comment 9 Pavel Filipensky 2022-06-13 16:06:40 UTC
* Issue for upstream to rename  D-Bus service name "com.redhat.oddjob_gpupdate" was created:
https://github.com/altlinux/oddjob-gpupdate/issues/2

* specfile update for  "BuildRequires:  automake" is blocked by fedorapeople upload issue. Will update once it is fixed.

Comment 10 Pavel Filipensky 2022-06-13 16:26:59 UTC
"BuildRequires:  automake" is added to https://pfilipen.fedorapeople.org/oddjob-gpupdate/oddjob-gpupdate.spec

Comment 11 Pavel Filipensky 2022-06-14 09:26:27 UTC
Spec URL: https://pfilipen.fedorapeople.org/oddjob-gpupdate/oddjob-gpupdate.spec
SRPM URL: https://pfilipen.fedorapeople.org/oddjob-gpupdate/oddjob-gpupdate-0.2.0-1.fc35.src.rpm

* Tue Jun 14 2022 Pavel Filipenský <pfilipen> - 0.2.0-2
- Fix "BuildRequires:  automake"

Comment 12 Andreas Schneider 2022-06-14 09:44:43 UTC
The SRPM URL is incorrect it points to release 1

Comment 13 Pavel Filipensky 2022-06-14 15:02:34 UTC
Spec URL: https://pfilipen.fedorapeople.org/oddjob-gpupdate/oddjob-gpupdate.spec
SRPM URL: https://pfilipen.fedorapeople.org/oddjob-gpupdate/oddjob-gpupdate-0.2.0-2.fc35.src.rpm

* Tue Jun 14 2022 Pavel Filipenský <pfilipen> - 0.2.0-2
- Fix "BuildRequires:  automake"

Comment 14 Andreas Schneider 2022-06-15 05:24:06 UTC
+ autoreconf -if
aclocal: warning: couldn't open directory 'm4': No such file or directory
configure.ac:242: warning: The macro `AC_CONFIG_HEADER' is obsolete.
configure.ac:242: You should run autoupdate.
./lib/autoconf/status.m4:719: AC_CONFIG_HEADER is expanded from...
configure.ac:242: the top level
configure.ac:272: warning: AC_OUTPUT should be used without arguments.
configure.ac:272: You should run autoupdate.
configure.ac:13: error: possibly undefined macro: AC_PROG_LIBTOOL
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf: error: /usr/bin/autoconf failed with exit status: 1


Looks like another BR is missing:

BuildRequires:  libtool

Comment 15 Pavel Filipensky 2022-06-15 07:26:10 UTC
Spec URL: https://pfilipen.fedorapeople.org/oddjob-gpupdate/oddjob-gpupdate.spec
SRPM URL: https://pfilipen.fedorapeople.org/oddjob-gpupdate/oddjob-gpupdate-0.2.0-3.fc35.src.rpm

* Wed Jun 15 2022 Pavel Filipenský <pfilipen> - 0.2.0-3
- Fix "BuildRequires:  libtool"

Comment 16 Andreas Schneider 2022-06-15 08:46:50 UTC
Package Review
==============

Legend:
[x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated
[ ] = Manual review needed

Generic:
[..]
[!]: Patches link to upstream bugs/comments/lists or are otherwise
     justified.

Can you add links as a comment from where you got the patches?


[!]: Package should not use obsolete m4 macros
     Note: Some obsoleted macros found, see the attachment.
     See: https://fedorahosted.org/FedoraReview/wiki/AutoTools


AutoTools: Obsoleted m4s found
------------------------------
  AC_PROG_LIBTOOL found in: oddjob-gpupdate-0.2.0/configure.ac:13

Comment 17 Pavel Filipensky 2022-06-27 07:37:28 UTC
Spec URL: https://pfilipen.fedorapeople.org/oddjob-gpupdate/oddjob-gpupdate.spec
SRPM URL: https://pfilipen.fedorapeople.org/oddjob-gpupdate/oddjob-gpupdate-0.2.1-1.fc35.src.rpm

Note: the Patch3:  0004-Fix-obsoleted-m4s.patch for this specfile is not upstream yet...

Comment 19 Andreas Schneider 2022-06-27 14:22:36 UTC
Package Review
==============

Legend:
[x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated
[ ] = Manual review needed



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

C/C++:
[x]: Package does not contain kernel modules.
[x]: Package contains no static executables.
[x]: Development (unversioned) .so files in -devel subpackage, if present.
     Note: Unversioned so-files in private %_libdir subdirectory (see
     attachment). Verify they are not in ld path.
[x]: If your application is a C or C++ application you must list a
     BuildRequires against gcc, gcc-c++ or clang.
[x]: Header files in -devel subpackage, if present.
[x]: Package does not contain any libtool archives (.la)
[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]: License field in the package spec file matches the actual license.
     Note: Checking patched sources after %prep for licenses. Licenses
     found: "Unknown or generated", "BSD 3-Clause License", "GNU Library
     General Public License v2 or later". 15 files have unknown license.
     Detailed output of licensecheck in
     /home/asn/workspace/package/fedora/REVIEW/2091668-oddjob-
     gpupdate/licensecheck.txt
[x]: License file installed when any subpackage combination is installed.
[x]: Package must own all directories that it creates.
     Note: Directories without known owners: /usr/lib64/security,
     /etc/dbus-1, /etc/dbus-1/system.d
[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
[-]: 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.
[-]: Package is not known to require an ExcludeArch tag.
[-]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 10240 bytes in 2 files.
[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]: 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]: Package requires other packages for directories it uses.
[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]: %config files are marked noreplace or the reason is justified.
[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]: No %config files under /usr.
[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]: 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.
[ ]: Final provides and requires are sane (see attachments).
[ ]: Package functions as described.
[ ]: Latest version is packaged.
[ ]: Package does not include license text files separate from upstream.
[ ]: Patches link to upstream bugs/comments/lists or are otherwise
     justified.
[ ]: Sources are verified with gpgverify first in %prep if upstream
     publishes signatures.
     Note: gpgverify is not used.
[ ]: Package should compile and build into binary rpms on all supported
     architectures.
[ ]: %check is present and all tests pass.
[ ]: 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: There are rpmlint messages (see attachment).
[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]: Package should not use obsolete m4 macros
[x]: Spec file according to URL is the same as in SRPM.

Comment 20 Andreas Schneider 2022-06-27 14:23:53 UTC
Package Review
==============

Legend:
[x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated
[ ] = Manual review needed



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

C/C++:
[x]: Package does not contain kernel modules.
[x]: Package contains no static executables.
[x]: Development (unversioned) .so files in -devel subpackage, if present.
     Note: Unversioned so-files in private %_libdir subdirectory (see
     attachment). Verify they are not in ld path.
[x]: If your application is a C or C++ application you must list a
     BuildRequires against gcc, gcc-c++ or clang.
[x]: Header files in -devel subpackage, if present.
[x]: Package does not contain any libtool archives (.la)
[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]: License field in the package spec file matches the actual license.
     Note: Checking patched sources after %prep for licenses. Licenses
     found: "Unknown or generated", "BSD 3-Clause License", "GNU Library
     General Public License v2 or later". 15 files have unknown license.
     Detailed output of licensecheck in
     /home/asn/workspace/package/fedora/REVIEW/2091668-oddjob-
     gpupdate/licensecheck.txt
[x]: License file installed when any subpackage combination is installed.
[x]: Package must own all directories that it creates.
     Note: Directories without known owners: /usr/lib64/security,
     /etc/dbus-1, /etc/dbus-1/system.d
[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
[-]: 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.
[-]: Package is not known to require an ExcludeArch tag.
[-]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 10240 bytes in 2 files.
[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]: 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]: Package requires other packages for directories it uses.
[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]: %config files are marked noreplace or the reason is justified.
[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]: No %config files under /usr.
[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]: 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.
[x]: Patches link to upstream bugs/comments/lists or are otherwise
     justified.
[x]: 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.
[-]: %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: There are rpmlint messages (see attachment).
[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]: Package should not use obsolete m4 macros
[x]: Spec file according to URL is the same as in SRPM.

Comment 21 Gwyn Ciesla 2022-06-29 00:08:25 UTC
(fedscm-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/oddjob-gpupdate

Comment 22 Fedora Update System 2022-06-29 08:12:41 UTC
FEDORA-2022-f4739d3274 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-f4739d3274

Comment 23 Fedora Update System 2022-06-29 08:13:21 UTC
FEDORA-2022-f4739d3274 has been pushed to the Fedora 37 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.