Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Aug 2005 13:41:05 GMT
From:      Vladimir Kotal <vlada@devnull.cz>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/85047: net-mgmt/cricket install is broken when installing from pkg
Message-ID:  <200508171341.j7HDf52M026522@www.freebsd.org>
Resent-Message-ID: <200508171350.j7HDoEd5027528@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         85047
>Category:       ports
>Synopsis:       net-mgmt/cricket install is broken when installing from pkg
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 17 13:50:14 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Vladimir Kotal
>Release:        4.10-RELEASE-p2
>Organization:
>Environment:
FreeBSD worm 4.10-RELEASE-p2 FreeBSD 4.10-RELEASE-p2 #1: Mon Sep 27 11:53:19 CEST 2004     lada@worm:/usr/src/sys/compile/GENERIC  i386
>Description:
      net-mgmt/cricket port creates user and group in do-install phase. However, it passes user/uid, group/gid via enviroment variables which does not work when installing via package.
>How-To-Repeat:
1. update ports tree
2. cd /usr/ports/net-mgmt/cricket
3. make package
4. make deinstall
5. pkg_add cricket-1.0.5_1.tgz

You will notice that the port attempts to create user/group according to the enviroment variables and not the variables defined in Makefile:

wheel:*:0:root,vladak
You already have a group "wheel", so I will use it.
lada:*:1000:1000::0:0:Vladimir Kotal:/home/vladak:/usr/local/bin/bash
You already have a user "vladak", so I will use it.

Instead, user wwwadm(uid:81) and group www(gid:80) should be created accroding to the port's Makefile.

This behavior produces package which is not usable.
>Fix:
      do not pass user/uid, group/gid from Makefile to pkg-install, but use them in pkg-install directly.
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200508171341.j7HDf52M026522>