2

I was building a package from SRPM on Fedora:

$ rpmbuild --rebuild *.src.rpm

...
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
...

The package was built but there were many such mockbuild does not exist warnings. There doesn't seem to be such an account on my system, even though I have package mock installed. Are there any other packages I'm missing? Is this a fault on the package or my system? How to eliminate these warnings?

4

You don't, and they don't do anything anyways. They are an artifact of the package having been built in the Fedora buildsystem.

  • So where can I find the details about where these artifacts come from and why they must exist? The koji page doesn't mention user/group mockbuild, and I'm building on my machine not on koji. I'm not really good at remembering which warnings are harmful and which are false alarms so I prefer they get fixed somehow. – Cyker Jul 30 '18 at 16:02
  • Even SRPMs must be built. And they are being built as mockbuild. – Ignacio Vazquez-Abrams Jul 30 '18 at 16:02
  • My understanding is that you can build with any user/group so I don't think it should warn me with a specific one. If rpmbuild must use user/group mockbuild to build SRPM, then I can add this user/group. But it's better to understand what's happening before modifying the system. – Cyker Jul 30 '18 at 16:05
  • Files in a RPM are owned by a specific user and group. In a SRPM from Fedora's buildsystem they are owned by mockbuild. Adding a local user called mockbuild won't help, since normal users can't chown files regardless. – Ignacio Vazquez-Abrams Jul 30 '18 at 16:09
  • 1
    It spits out those warnings because those are the SRPM file owners. – Ignacio Vazquez-Abrams Jul 30 '18 at 17:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.