Ever wanted to search across all Fedora spec files for some pattern?
Now you can!
https://sourcegraph.com/search?q=context:global+r:src.fedoraproject.org+file...
On Thursday, November 25, 2021 5:49:23 PM CET Matthew Miller wrote:
Ever wanted to search across all Fedora spec files for some pattern?
Now you can!
https://sourcegraph.com/search?q=context:global+r:src.fedoraproject.org+file...
Nice, how often that is updated? By some web crawler?
FTR, this is the old way: https://src.fedoraproject.org/lookaside/rpm-specs-latest.tar.xz
Pavel
-- Matthew Miller mattdm@fedoraproject.org Fedora Project Leader _______________________________________________ packaging mailing list -- packaging@lists.fedoraproject.org To unsubscribe send an email to packaging-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/packaging@lists.fedoraproject.... Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
On Thu, Nov 25, 2021 at 07:41:52PM +0100, Pavel Raiskup wrote:
https://sourcegraph.com/search?q=context:global+r:src.fedoraproject.org+file...
Nice, how often that is updated? By some web crawler?
Details here: https://docs.sourcegraph.com/admin/repo/update_frequency
FTR, this is the old way: https://src.fedoraproject.org/lookaside/rpm-specs-latest.tar.xz
Yeah, less good. :)
The next thing I want to do is actually index all of the sources corresponding to each build. That's going to be require some effort on our side, though.
On Thu, 2021-11-25 at 11:49 -0500, Matthew Miller wrote:
Ever wanted to search across all Fedora spec files for some pattern?
Well , we need search for "%if ! 0%{?rhel} >= 8" which is one wrong condictional for not {?rhel} >= 8 , see [1]
I know at least 2 cases :
inkscape https://src.fedoraproject.org/rpms/inkscape/c/21232fceb48a890f0a40d985001eb6...
pstoedit https://src.fedoraproject.org/rpms/pstoedit/c/dfc84e91d392378aa2c365680731ee...
best regards,
[1] %if ! 0%{?rhel} >= 8 is grouped as %if (! 0%{?rhel}) >= 8
which becomes, on Fedora:
%if (! 00) >= 8 %if 1 >= 8
and therefore evaluates false.
Writing
%if ! (0%{?rhel} >= 8)
is the correct
On Thu, Nov 25, 2021 at 10:43:26PM +0000, Sérgio Basto wrote:
On Thu, 2021-11-25 at 11:49 -0500, Matthew Miller wrote:
Ever wanted to search across all Fedora spec files for some pattern?
Well , we need search for "%if ! 0%{?rhel} >= 8" which is one wrong condictional for not {?rhel} >= 8 , see [1]
Yes, that's exactly the kind of thing I was hoping we could use this to help improve.
I know at least 2 cases :
inkscape https://src.fedoraproject.org/rpms/inkscape/c/21232fceb48a890f0a40d985001eb6...
pstoedit https://src.fedoraproject.org/rpms/pstoedit/c/dfc84e91d392378aa2c365680731ee...
Looks like those are the only two with 8, but `ocaml-fileutils` has the same pattern with 7 and `esc` has it with 9.
For that matter, there are also a large number of spec files with macros referring to RHEL 6 or RHEL 5, a handful conditionalizing on RHEL 4, and even one with a RHEL 3 reference (imagefactory-plugins). That could probably be cleaned up!
On Thu, 2021-11-25 at 18:10 -0500, Matthew Miller wrote:
On Thu, Nov 25, 2021 at 10:43:26PM +0000, Sérgio Basto wrote:
On Thu, 2021-11-25 at 11:49 -0500, Matthew Miller wrote:
Ever wanted to search across all Fedora spec files for some pattern?
Well , we need search for "%if ! 0%{?rhel} >= 8" which is one wrong condictional for not {?rhel} >= 8 , see [1]
Yes, that's exactly the kind of thing I was hoping we could use this to help improve.
I know at least 2 cases :
inkscape https://src.fedoraproject.org/rpms/inkscape/c/21232fceb48a890f0a40d985001eb6...
pstoedit https://src.fedoraproject.org/rpms/pstoedit/c/dfc84e91d392378aa2c365680731ee...
Looks like those are the only two with 8, but `ocaml-fileutils` has the same pattern with 7 and `esc` has it with 9.
I searched for : r:src.fedoraproject.org file:.*.spec$ ![^(]?0 [><=]
62 cases
For that matter, there are also a large number of spec files with macros referring to RHEL 6 or RHEL 5, a handful conditionalizing on RHEL 4, and even one with a RHEL 3 reference (imagefactory-plugins). That could probably be cleaned up!
-- Matthew Miller mattdm@fedoraproject.org Fedora Project Leader _______________________________________________ packaging mailing list -- packaging@lists.fedoraproject.org To unsubscribe send an email to packaging-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/packaging@lists.fedoraproject.... Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
packaging@lists.fedoraproject.org