- Adjust parser of ocamfind() requires

Take negative predicates in requires() into account, and ignore them.
  This is supposed to avoid dependency cycles due to excessive
  list of dependencies.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=50
This commit is contained in:
Olaf Hering 2021-01-27 19:24:48 +00:00 committed by Git OBS Bridge
parent 63ac6d61e1
commit 6267059f33
3 changed files with 10 additions and 2 deletions

View File

@ -87,7 +87,7 @@ do_work() {
next
}
/^[[:blank:]]*requires(|\([^)]+\))[[:blank:]]*(+=|=)/ {
/^[[:blank:]]*requires(|\([^-][^)]+\))[[:blank:]]*(+=|=)/ {
if(dbg) printf "GOT: %s\n", $0 > "/dev/stderr" ;
done=0
requires_line = ""

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Thu Jan 21 21:21:21 UTC 2021 - ohering@suse.de
- Adjust parser of ocamfind() requires
Take negative predicates in requires() into account, and ignore them.
This is supposed to avoid dependency cycles due to excessive
list of dependencies.
-------------------------------------------------------------------
Thu Jan 14 14:14:14 UTC 2021 - ohering@suse.de

View File

@ -17,7 +17,7 @@
Name: ocaml-rpm-macros
Version: 20210114
Version: 20210121
Release: 0
Summary: RPM macros for building OCaml source packages
License: GPL-2.0-only