pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Building ruby packages fails as a non root user



On Sep 15, 2008, at 11:40 AM, Bernd Ernesti wrote:

On Wed, Sep 10, 2008 at 11:36:02PM -0700, Min Sik Kim wrote:
[..]

The attached patch moves targets requiring root to the install stage.

I haven't tested it yet, but looking at the patch it seems that the
compile task is now moved to a stage where it is execued as root.

This seems wrong to me.

That's how gem works. It compiles extensions and installs files with a single command (gem install). To keep the compile task in the pkgsrc "build" target, we would have to modify rubygems itself, or revert to non-gem build.

Btw, the usage of 'pax -rwpe' in rubygem.mk keeps the group and user
id, so a build as a non root user would result in wrong user and group
names in /usr/pkg


Since the patch was applied, I don't think this is the case any more. If I missed something, please let me know.

--
Min Sik Kim







Home | Main Index | Thread Index | Old Index