[cups.bugs] [HIGH] STR #1429: CUPS has hard-coded "chgrp" in Makefiles -> No RPM building as normal user possible

Till Kamppeter till.kamppeter at gmx.net
Fri Feb 17 05:45:52 PST 2006


[STR New]

In the following Makefiles

scheduler/Makefile
conf/Makefile

there are several occurences of hard-coded "chgrp" commands in the
"install" targets. These commands can only be executed as root and not as
normal user, even if the BUILDROOT is somewhere in the user's home
directory. Therefore "make install" breaks with an error when building an
RPM as a normal user.

To fix this, the "chgrp" should be replaced by a variable, like
"$(CHGRP)", so that one could do something like

make CHGRP=':' BUILDROOT='~/somewhere' install

in the %install section and the groups one sets in the %files section of
the RPM.

Link: http://www.cups.org/str.php?L1429
Version: 1.2-current





More information about the cups-devel mailing list