Raphael Hertzog a écrit :
> > You are trying to compile WIMS as 'root'!
> > 

> > You should not do that. Compile as 'wims', please.
> Thanks! Georges, is there a good reason explaining why wims is doing that ?

Of course, Raphael, there is a check in the script which compiles wims,
to detect if it has root privilege. If it has such privilege, it throws
the message "You are trying to compile WIMS as 'root'!" and stops.

So the failure to compile the package is completely explicated, and it
cannot be considered as a bug.

I can see one reason why the package should be built as 'wims'
user : if it is to be maintained by a 'wims' user later. As we do a
package for Debian, the files will finally be owned by 'root', so it
does not matter if their are built by 'root'.

Hereafter I write some thoughts about the permissions we should organise
for the public wims tree :

If we do not give back some files and directories to 'wims' at
post-installation time, the server won't be able to synchronize with
other Wims servers (that means: benefit from newer educational modules,
and allow automatic upgrading).

My opinion is that we should allow exchanges of educational modules and
give the relevant directories to 'wims', but that we should not allow the
server to upgrade directly. So the permission schema should not be the
same that the one scheduled in the upstream side. Therefore it does not
matter if we compile it as 'root' : the permissions will be definitely
set by the post-installation script.

> 
> Otherwise, consider removing that check for the next upload.

OK, I do that. Should we upload it shortly, or do we wait for a new
upstream release?

> 
> Note that even "debuild -r sudo" doesn't build as root, it only installs &
> cleans as root. Which explains why I couldn't reproduce the failure.
> 
> Cheers,
> -- 
> Raphaël Hertzog
> 
> Premier livre français sur Debian GNU/Linux :
> http://www.ouaza.com/livre/admin-debian/
> 
> 

-- 
Georges KHAZNADAR et Jocelyne FOURNIER
22 rue des mouettes, 59240 Dunkerque France.
Téléphone +33 (0)3 28 29 17 70

Attachment: signature.asc
Description: Digital signature

Reply via email to