Hi It's commonly advised that if .spec file doesn't support `--without check`, then to skip the check phase run rpmbuild with `--define 'check exit 0'`. But if I do so, some packages fail with:
debugfiles.list: No such file or directory
That's because `find-debuginfo.sh` not run after %install phase.
Is it possible to skip the check without breaking generation of debugfiles.list and without editing the .spec file?
Basin Ilya basinilya@gmail.com writes:
It's commonly advised that if .spec file doesn't support `--without check`, then to skip the check phase run rpmbuild with `--define 'check exit 0'`.
I don't know who would commonly advise that, because... it doesn't work in general. It just appends "exit 0" to whatever section happens to come before the %check section. If another RPM macro also appends commands to that section, like %spec_install_post does, then.... those commands don't get run.
Is it possible to skip the check without breaking generation of debugfiles.list and without editing the .spec file?
I'm pretty sure there's a deeply magical way to do this, involving defining %check to "cat << XXX" and then redefining %spec_install_post to something that prefixes the current value with XXX. Enterprising people can probably come up with something slightly cleaner.
- J<
packaging@lists.fedoraproject.org