On 08/07/2012 06:48 AM, jupiter wrote:
Hi, I don't want rpm to check dependencies, I don't specify anything on requires tag on spec, but the rpm installation still check the dependencies (I know I can run --nodeps, but I don't want to add any additional tag for others to install). I've read the document in section of turn off automatic dependency generation, and I tried to add "%define __find_requires %{nil}" to the spec, but package is still check dependencies. I even commented out check dependencies on /usr/lib/rpm/find-requires, not work either. Appreciate any help for how to turn off rpm dependency check. Thank you.
Disabling dependency generation is almost always a bad idea. Rpm doesn't invent those dependencies out of the blue: they are required for running the software, and swiping them under the carpet wont make the software work without them. Eliminating/fixing specific problematic generated dependencies is what you want to do instead, generally.
Generated dependencies can be disabled per-package with "AutoReq: 0" in the spec, but the real question is: why do you want to do this?
- Panu - _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxxxxx http://lists.rpm.org/mailman/listinfo/rpm-list