artefactual-labs / am-packbuild

Archivematica package building scripts
GNU General Public License v2.0
4 stars 6 forks source link

Problem: siegfried - %defattr directive doesn't work as expected #151

Open jpellman opened 6 years ago

jpellman commented 6 years ago

When installing archivematica-mcp-client with yum under CentOS 7, archivematica-mcp-client pulls in the siegfried package defined here. As this occurs, I'm presented with the following warning messages:

  Installing : siegfried-1.7.6-1.el7.centos.x86_64                                                    115/177
warning: user 1000 does not exist - using root
warning: group 1000 does not exist - using root
warning: user 1000 does not exist - using root
warning: group 1000 does not exist - using root
...
warning: user 1000 does not exist - using root
warning: group 1000 does not exist - using root
warning: user 1000 does not exist - using root
warning: group 1000 does not exist - using root
  Installing : pcre-devel-8.32-17.el7.x86_64

This can be traced back to the %defattr directive on line 33 of the specfile. According to the RPM docs here:

The user and group identifiers must be non-numeric.

If there's a specific user/group that /usr/share/siegfried should belong to, you should use the plain text name apparently. Otherwise, it'll try to change ownership to a user with the string literal '1000' for a name.

(Not tagging this for phase 1 since it's only a warning and thus far, I have not noticed any ill effects that would prevent an end-user from processing data)

scollazo commented 6 years ago

In order to get this installed in current 1.7.x systems, we need to change the Release number in the package.spec., so the new package version will be 1.7.6-2. Can you do it?