Bug 1758499
| Summary: | Review Request: procdump - Process coredumps based on performance triggers | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Matej Grabovsky <mgrabovs> |
| Component: | Package Review | Assignee: | Miroslav Suchý <msuchy> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | rawhide | CC: | msuchy, ngompa13, package-review |
| Target Milestone: | --- | Flags: | msuchy:
fedora-review+
|
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-10-24 10:50:45 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Matej Grabovsky
2019-10-04 10:19:45 UTC
Just found hardening is enabled by default, so I've updated the spec. Updated spec URL: https://copr-be.cloud.fedoraproject.org/results/mgrabovs/procdump/fedora-31-x86_64/01045608-procdump/procdump.spec Updated SRPM URL: https://copr-be.cloud.fedoraproject.org/results/mgrabovs/procdump/fedora-31-x86_64/01045608-procdump/procdump-1.0.1-1.fc31.src.rpm Updated Koji build: https://koji.fedoraproject.org/koji/taskinfo?taskID=38047549 Hello Matěj, there are automated tools, like https://pagure.io/FedoraReview/ that parse bugzilla comments for this: Spec URL: https://copr-be.cloud.fedoraproject.org/results/mgrabovs/procdump/fedora-31-x86_64/01045608-procdump/procdump.spec SRPM URL: https://copr-be.cloud.fedoraproject.org/results/mgrabovs/procdump/fedora-31-x86_64/01045608-procdump/procdump-1.0.1-1.fc31.src.rpm So when you actually change the links, please always post them in this form. Any particular reason to use -p0 with %autosetup? Since the upstream is in a git repo, you will most likely get -p1 patches when backporting stuff. I am going to take this. Thanks, stepping out. (In reply to Miro Hrončok from comment #2) > Hello Matěj, there are automated tools, like https://pagure.io/FedoraReview/ > that parse bugzilla comments for this: Oops, sorry about that. I had no idea. (In reply to Miro Hrončok from comment #3) > Any particular reason to use -p0 with %autosetup? Since the upstream is in a > git repo, you will most likely get -p1 patches when backporting stuff. Will fix. That's most likely a relic from my previous experiments with the package. > Source: %{url}/archive/%{version}.tar.gz This should be "%{url}/archive/%{version}/%{repo_name}-%{version}.tar.gz" > %build > %make_build The upstream spec file indicates that this won't work: https://github.com/microsoft/ProcDump-for-Linux/blob/master/dist/procdump.spec.in#L40-L41 (In reply to Neal Gompa from comment #7) > This should be "%{url}/archive/%{version}/%{repo_name}-%{version}.tar.gz" Thanks for chiming in! And thank you for the suggestion. I was having some trouble with the GitHub URL. > The upstream spec file indicates that this won't work: > https://github.com/microsoft/ProcDump-for-Linux/blob/master/dist/procdump. > spec.in#L40-L41 Since you're the author, can you please explain why? "This won't work" is quite a strong statement which I have successfully disproved above. I have never encountered any problems with parallel builds and from a quick glance at the makefile, I can't infer why that would be a problem. I'd be happy to correct my conclusions if you find them incorrect. 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]: 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: There is no build directory. Running licensecheck on vanilla
upstream sources. No licenses found. Please check the source files for
licenses manually.
[x]: License file installed when any subpackage combination is installed.
[x]: Package does not own files or directories owned by other packages.
[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.
[-]: 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 51200 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 must own all directories that it creates.
[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]: 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]: 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.
[-]: Sources are verified with gpgverify first in %prep if upstream
publishes signatures.
Note: gpgverify is not used.
[-]: Description and summary sections in the package spec file contains
translations for supported Non-English languages, if available.
[?]: 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: 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.
The parallel make can be tracked separately.
APPROVED
(In reply to Matej Grabovsky from comment #8) > (In reply to Neal Gompa from comment #7) > > The upstream spec file indicates that this won't work: > > https://github.com/microsoft/ProcDump-for-Linux/blob/master/dist/procdump. > > spec.in#L40-L41 > > Since you're the author, can you please explain why? "This won't work" is > quite a strong statement which I have successfully disproved above. I have > never encountered any problems with parallel builds and from a quick glance > at the makefile, I can't infer why that would be a problem. I'd be happy to > correct my conclusions if you find them incorrect. The ordering of the files and compilation units for building wound up being randomly broken for me when I was doing this a while ago. It was easier to not do it than it was to do it. That said, if it always works now, just make sure you change it to the following: > %make_build CFLAGS="%{optflags}" (In reply to Neal Gompa from comment #10) > That said, if it always works now, just make sure you change it to the > following: > > > %make_build CFLAGS="%{optflags}" Thanks. I've now updated the spec file to reflect the suggested changes. Spec URL: https://copr-be.cloud.fedoraproject.org/results/mgrabovs/procdump/fedora-31-x86_64/01051412-procdump/procdump.spec SRPM URL: https://copr-be.cloud.fedoraproject.org/results/mgrabovs/procdump/fedora-31-x86_64/01051412-procdump/procdump-1.0.1-1.fc31.src.rpm Koji: https://koji.fedoraproject.org/koji/taskinfo?taskID=38166862(In reply to Neal Gompa from comment #10) (fedscm-admin): The Pagure repository was created at https://src.fedoraproject.org/rpms/procdump FEDORA-2019-9f8bec0668 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-9f8bec0668 FEDORA-2019-b143e81bf9 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2019-b143e81bf9 procdump-1.0.1-1.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-9f8bec0668 The package is now in F30 and Rawhide stable, and testing for F31. Closing. procdump-1.0.1-1.fc31 has been pushed to the Fedora 31 stable repository. If problems still persist, please make note of it in this bug report. |