[Mono-bugs] [Bug 325313] mono-find-requires breaks for noarch packages

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Apr 18 13:08:31 EDT 2008


User wberrier at novell.com added comment

--- Comment #7 from Wade Berrier <wberrier at novell.com>  2008-04-18 11:08:31 MST ---
I don't know of any way to automatically provide architecture information to
the mono-find-requires script.

What you could do though is provide an env variable, ie, IGNORE_CONFIG_SCAN,
and we could make that section conditional on that var.

For all my .spec files, I do:

%define __find_provides env sh -c 'filelist=($(grep -v SharpZipLib)) && {
printf "%s\\n" "${filelist[@]}" | /usr/lib/rpm/find-provides && printf "%s\\n"
"${filelist[@]}" | /usr/bin/mono-find-provides ; } | sort | uniq'

%define __find_requires env sh -c 'filelist=($(cat)) && { printf "%s\\n"
"${filelist[@]}" | /usr/lib/rpm/find-requires && printf "%s\\n"
"${filelist[@]}" | /usr/bin/mono-find-requires ; } | sort | uniq'

You may be able to use this in only your noarch .spec files:

%define __find_requires env sh -c 'filelist=($(cat)) && { printf "%s\\n"
"${filelist[@]}" | /usr/lib/rpm/find-requires && printf "%s\\n"
"${filelist[@]}" | IGNORE_CONFIG_SCAN=1 /usr/bin/mono-find-requires ; } | sort
| uniq'

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list