ports/85047: net-mgmt/cricket install is broken when installing from pkg

Vladimir Kotal vlada at devnull.cz
Wed Aug 17 13:50:16 UTC 2005


>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 at 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:



More information about the freebsd-ports-bugs mailing list