On Thu, 2020-01-09 at 18:00 +1030, Simon Lees wrote:
Hi
On 1/8/20 6:57 AM, Michael Kasimir wrote:
Hello Axel,
Thank you very much for the making the packages available.
I've tried to build the needed .rpm package from the provided .src.rpm source package
https://download.opensuse.org/repositories/home:/DocB:/branches:/hardware/op...
unfortunately one error occured during the process:
linux-4t6d:# rpmbuild -ba --noclean android-udev-rules.spec error: line 31: Unknown tag: %{sysusers_requires} linux-4t6d:#
As a more general note, in most cases it is not possible to build openSUSE packages using rpmbuild, this is because they often use macro's and variables that are defined as part of the project configs. Because of this all packages need to be built with open build service (build.opensuse.org) however you can use the osc command to do local builds.
I don't like objecting to you, but this is only partially true. There are very few macros set in the prjconf - most of the macros people keep on refering to are coming from rpm packages that install relevant macro files into the buildroot. %{sysusers_requires} for example is made available by the sysuser-tools package (the spec file in question would most likely have a BuildRequires on it - so that this package comes into the buildroot being setup by obs and osc build; when using rpmbuild, you would need to have it installed on your own mchine. Cheers, Dominique