Spec URL: https://download.copr.fedorainfracloud.org/results/ericedens/gcp-guest-packages/fedora-rawhide-x86_64/01945302-golang-github-googlecloudplatform-guest-agent//golang-github-googlecloudplatform-guest-agent.spec SRPM URL: https://download.copr.fedorainfracloud.org/results/ericedens/gcp-guest-packages/fedora-rawhide-x86_64/01945302-golang-github-googlecloudplatform-guest-agent//golang-github-googlecloudplatform-guest-agent-20201217.02-1.fc34.src.rpm Description: Guest agent for Google Cloud Platform Fedora Account System Username: ericedens - This package depends on golang-github-googlecloudplatform-guest-logging, which is currently being imported: https://pagure.io/releng/fedora-scm-requests/issue/32014 - Tested on Google Cloud Platform (verified SSH and startup script) - fedora-review passes: `fedora-review --copr-build 1945302`
> %{_presetdir}/90-google-guest-agent.preset We cannot ship presets in packages. This needs to requested distro-wide: https://docs.fedoraproject.org/en-US/packaging-guidelines/DefaultServices/#_how_to_enable_a_service_by_default
Interesting, thanks for the link! Added a request: https://bugzilla.redhat.com/show_bug.cgi?id=1926331 Updated: Spec URL: https://download.copr.fedorainfracloud.org/results/ericedens/gcp-guest-packages/fedora-rawhide-x86_64/01954105-golang-github-googlecloudplatform-guest-agent/golang-github-googlecloudplatform-guest-agent.spec SRPM URL: https://download.copr.fedorainfracloud.org/results/ericedens/gcp-guest-packages/fedora-rawhide-x86_64/01954105-golang-github-googlecloudplatform-guest-agent/golang-github-googlecloudplatform-guest-agent-20201217.02-1.fc34.src.rpm Build: https://copr.fedorainfracloud.org/coprs/ericedens/gcp-guest-packages/build/1954105/
> Provides: google-guest-agent = %{version}-%{release} Why aren't we naming the package itself "google-guest-agent"?
> Why aren't we naming the package itself "google-guest-agent"? I'd like to name it "google-guest-agent"; the current name, though, comes from this: "Golang source packages MUST be named after their main import path" https://docs.fedoraproject.org/en-US/packaging-guidelines/Golang/#_naming Or am I misreading this since this package doesn't *provide* Go libraries, it just happens to use Go code.
(In reply to ericedens from comment #4) > > Why aren't we naming the package itself "google-guest-agent"? > > I'd like to name it "google-guest-agent"; the current name, though, comes > from this: "Golang source packages MUST be named after their main import > path" > > https://docs.fedoraproject.org/en-US/packaging-guidelines/Golang/#_naming > > Or am I misreading this since this package doesn't *provide* Go libraries, > it just happens to use Go code. That rule applies to libraries, not applications.
Great! Changed to `google-guest-agent`. `fedora-review --copr-build 1963695` passes. SRPM url: https://download.copr.fedorainfracloud.org/results/ericedens/gcp-guest-packages/fedora-rawhide-x86_64/01963695-google-guest-agent//google-guest-agent-20201217.02-1.fc35.src.rpm Spec url: https://download.copr.fedorainfracloud.org/results/ericedens/gcp-guest-packages/fedora-rawhide-x86_64/01963695-google-guest-agent//google-guest-agent.spec
fedora-review fails because the package cannot be built. The error returned when trying to install the build dependencies: * No matching package to install: 'golang(github.com/GoogleCloudPlatform/guest-logging-go/logger)'
There are no builds of golang-github-googlecloudplatform-guest-logging: https://koji.fedoraproject.org/koji/packageinfo?packageID=33136 You are listed as the maintainer of this library: https://src.fedoraproject.org/rpms/golang-github-googlecloudplatform-guest-logging Please build it for Rawhide so that it actually exists there.
Created attachment 1761850 [details] fedora-review-output.txt - submitted build for golang-github-googlecloudplatform-guest-logging; currently showing live in F35: https://src.fedoraproject.org/rpms/golang-github-googlecloudplatform-guest-logging - Ran `fedora-review -b 1925322 -m fedora-rawhide-x86_64`. The build passed, and the results are attached.
Package Review ============== Legend: [x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated ===== MUST items ===== 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: There is no build directory. Running licensecheck on vanilla upstream sources. Licenses found: "Unknown or generated", "*No copyright* Apache License 2.0", "Apache License 2.0", "BSD 3-clause "New" or "Revised" License", "zlib/libpng license". 24 files have unknown license. Detailed output of licensecheck in /home/ngompa/1925322-google-guest-agent/licensecheck.txt [x]: Package requires other packages for directories it uses. Note: No known owner of /etc/default [x]: Package must own all directories that it creates. Note: Directories without known owners: /etc/default [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. [x]: 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]: Large documentation must go in a -doc subpackage. Large could be size (~1MB) or number of files. Note: Documentation size is 20480 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 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]: systemd_post is invoked in %post, systemd_preun in %preun, and systemd_postun in %postun for Systemd service files. Note: Systemd service file(s) in google-guest-agent [x]: File names are valid UTF-8. [x]: Packages must not store files under /srv, /opt or /usr/local ===== SHOULD items ===== Generic: [x]: 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]: Description and summary sections in the package spec file contains translations for supported Non-English languages, if available. [x]: %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]: 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]: Package should compile and build into binary rpms on all supported architectures. [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: google-guest-agent-20201217.02-1.fc35.x86_64.rpm google-guest-agent-20201217.02-1.fc35.src.rpm google-guest-agent.x86_64: W: spelling-error %description -l en_US init -> unit, int, nit google-guest-agent.x86_64: W: no-manual-page-for-binary google_guest_agent google-guest-agent.x86_64: W: no-manual-page-for-binary google_metadata_script_runner google-guest-agent.src: W: spelling-error %description -l en_US init -> unit, int, nit 2 packages and 0 specfiles checked; 0 errors, 4 warnings. Rpmlint (debuginfo) ------------------- Checking: google-guest-agent-debuginfo-20201217.02-1.fc35.x86_64.rpm 1 packages and 0 specfiles checked; 0 errors, 0 warnings. Rpmlint (installed packages) ---------------------------- google-guest-agent.x86_64: W: spelling-error %description -l en_US init -> unit, int, nit google-guest-agent.x86_64: W: no-manual-page-for-binary google_guest_agent google-guest-agent.x86_64: W: no-manual-page-for-binary google_metadata_script_runner 2 packages and 0 specfiles checked; 0 errors, 3 warnings. Source checksums ---------------- https://github.com/GoogleCloudPlatform/guest-agent/archive/20201217.02/guest-agent-20201217.02.tar.gz : CHECKSUM(SHA256) this package : 7f1fac0a9d8ab0af202950fe6f7b6284c30b093611c7819bfc1e1a87c59390a8 CHECKSUM(SHA256) upstream package : 7f1fac0a9d8ab0af202950fe6f7b6284c30b093611c7819bfc1e1a87c59390a8 Requires -------- google-guest-agent (rpmlib, GLIBC filtered): /bin/sh config(google-guest-agent) libc.so.6()(64bit) libpthread.so.0()(64bit) systemd Provides -------- google-guest-agent: config(google-guest-agent) google-guest-agent google-guest-agent(x86-64) Generated by fedora-review 0.7.6 (b083f91) last change: 2020-11-10 Command line :/usr/bin/fedora-review -b 1925322 -m fedora-rawhide-x86_64 Buildroot used: fedora-rawhide-x86_64 Active plugins: Shell-api, Generic Disabled plugins: R, C/C++, Haskell, Ocaml, fonts, Python, Perl, SugarActivity, PHP, Java Disabled flags: EPEL6, EPEL7, DISTTAG, BATCH, EXARCH
Everything looks good to me. The directory ownership thing with /etc/default doesn't make sense, since that should be owned by filesystem. PACKAGE APPROVED.
Requested a repo: ~ fedpkg request-repo google-guest-agent 1925322 https://pagure.io/releng/fedora-scm-requests/issue/32903 > The directory ownership thing with /etc/default doesn't make sense Referring to the `%install` section? For this, I was taking the guidance of [1] which said "The default file mode is 0644 or 0755. Directories should be mode 0755...". [1] https://docs.fedoraproject.org/en-US/packaging-guidelines/#_file_permissions
(fedscm-admin): The Pagure repository was created at https://src.fedoraproject.org/rpms/google-guest-agent
Package is in repositories, closing.