pkgsrc-Users archive

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

Re: strange failure: Unwrapping files-to-be-installed



> On Sat, 29 Mar 2008 15:12:41 +0200
> Aleksey Cheusov <cheusov%tut.by@localhost> wrote:

 >> Can anybody explain the following failure?

 >>    ===> Building for xtris-1.15nb2

 >> + echo '# PERMS: bin/xtris 555 555 bin/xtbot'

> That looks wrong. (See mk/pkginstall/perms)

I know. I've already found that it should be a list of 4-tuples.

-------------------------------------------------------------------------
bsd.pkginstall.mk:
  # SPECIAL_PERMS are lists that look like:
  #               file user group mode

-------------------------------------------------------------------------
It looks like it fails here

bsd.pkginstall.mk:
${_INSTALL_PERMS_DATAFILE}:
        ${RUN}${MKDIR} ${.TARGET:H}
        ${RUN}${_FUNC_STRIP_PREFIX};                                    \
        set -- dummy ${SPECIAL_PERMS}; shift;                           \
        exec 1>>${.TARGET};                                             \
        while ${TEST} $$# -gt 0; do                                     \
                file="$$1"; owner="$$2"; group="$$3"; mode="$$4";       \
                shift; shift; shift; shift;                             \
                file=`strip_prefix "$$file"`;                           \
                ${ECHO} "# PERMS: $$file $$mode $$owner $$group";       \
        done

-------------------------------------------------------------------------
xtris/Makefile:
  SPECIAL_PERMS+= bin/xtris ${SETGID_GAMES_PERMS}
  SPECIAL_PERMS+= bin/xtbot ${SETGID_GAMES_PERMS}
  SPECIAL_PERMS+= bin/xtserv ${SETGID_GAMES_PERMS}

-------------------------------------------------------------------------
bsd.pkginstall.mk:
  SETGID_GAMES_PERMS?=    ${GAMES_USER} ${GAMES_GROUP} ${GAMEMODE}

-------------------------------------------------------------------------
cheusov@syn-proc>
0 xtris>bmake show-vars VARNAMES='SETGIDGAME GAMES_USER GAMES_GROUP'
yes



cheusov@syn-proc>
0 xtris>

-------------------------------------------------------------------------
defaults/mk.conf:
  SETGIDGAME?=    no 

I don't set SETGIDGAME to yes in mk.conf or environment.
I don't know why it is YES

-------------------------------------------------------------------------
platform/Linux.mk:
# If games are to be installed setgid, then SETGIDGAME is set to 'yes'
# (it defaults to 'no' as per defaults/mk.conf).
# Set the group and mode to meaningful values in that case (defaults to
# BINOWN, BINGRP and BINMODE as per defaults/mk.conf).
# FIXME: Adjust to work on this system and enable the lines below.
#.if !(empty(SETGIDGAME:M[yY][eE][sS]))
#GAMES_USER=            games
#GAMES_GROUP=           games
#GAMEOWN=               ${GAMES_USER}
#GAMEGRP=               ${GAMES_GROUP}
#GAMEMODE=              2555
#GAMEDIRMODE=           0775
#.endif

Why this section is commented?
-------------------------------------------------------------------------

> How does the code determine if a SPECIAL_PERMS fragment specifies
> user/group (four args) or not (two args)?

-- 
Best regards, Aleksey Cheusov.


Home | Main Index | Thread Index | Old Index