From yasu@home.utahime.org  Wed Jun 11 11:36:41 2003
Return-Path: <yasu@home.utahime.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B1A7937B401
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 11 Jun 2003 11:36:41 -0700 (PDT)
Received: from utahime.as.wakwak.ne.jp (utahime.as.wakwak.ne.jp [61.205.238.40])
	by mx1.FreeBSD.org (Postfix) with ESMTP id A43E343FCB
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 11 Jun 2003 11:36:40 -0700 (PDT)
	(envelope-from yasu@home.utahime.org)
Received: from eastasia.home.utahime.org (eastasia.home.utahime.org [192.168.174.1])
	by utahime.as.wakwak.ne.jp (Postfix) with ESMTP id E8A3A194
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 12 Jun 2003 03:36:38 +0900 (JST)
Received: from 127.0.0.1 (localhost.home.utahime.org [127.0.0.1])
	by localhost-backdoor.home.utahime.org (Postfix) with SMTP id BE9A25526
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 12 Jun 2003 03:36:38 +0900 (JST)
Received: from sugar.home.utahime.org (sugar.home.utahime.org [192.168.174.2])
	by eastasia.home.utahime.org (Postfix) with ESMTP id 7ED5254FF
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 12 Jun 2003 03:36:38 +0900 (JST)
Received: by sugar.home.utahime.org (Postfix, from userid 1000)
	id E91415D3A; Thu, 12 Jun 2003 03:34:37 +0900 (JST)
Message-Id: <20030611183437.E91415D3A@sugar.home.utahime.org>
Date: Thu, 12 Jun 2003 03:34:37 +0900 (JST)
From: KIMURA Yasuhiro <yasu@utahime.org>
Reply-To: KIMURA Yasuhiro <yasu@utahime.org>
To: FreeBSD-gnats-submit@freebsd.org
Subject: emulators/vmware3 tries to install emulators/rtc even when it is already installed
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         53214
>Category:       ports
>Synopsis:       emulators/vmware3 tries to install emulators/rtc even when it is already installed
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 11 11:40:10 PDT 2003
>Closed-Date:    Sat Nov 01 17:11:48 PST 2003
>Last-Modified:  Sat Nov 01 17:11:48 PST 2003
>Originator:     KIMURA Yasuhiro
>Release:        FreeBSD 5.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD sugar.home.utahime.org 5.1-RELEASE FreeBSD 5.1-RELEASE #0: Wed Jun 11 03:10:14 JST 2003 yasu@sugar.home.utahime.org:/usr/obj/am/eastasia/usr1/cvsup/releng_5_1/src/sys/SUGAR i386


	
>Description:

Installation of emulators/vmware3 fails when emulator/rtc is already installed.

sugar# pkg_info -I 'rtc*'
rtc-2002.03.05.2_2  Kernel module which provides /dev/rtc device support
sugar# cd /usr/ports/emulators/vmware3/
sugar# make
===>  Extracting for vmware3-3.2.1-2237_1
(snip)
ld -Bshareable  -d -warn-common -o vmnet.ko vmnet.kld
sugar# make install
===>  Installing for vmware3-3.2.1-2237_1
===>   vmware3-3.2.1-2237_1 depends on file: /compat/linux/dev/rtc - not found
===>    Verifying install for /compat/linux/dev/rtc in /usr/ports/emulators/rtc
I don't fetch anything...
===>  Extracting for rtc-2002.03.05.2_2
>How-To-Repeat:
1. install emulators/rtc
2. cd /usr/ports/emulators/vmware3
3. make
4. make install

>Fix:

Following is the workaround for this problem.

# mkdir /usr/compat/linux/dev
# ln -s /dev/rtc /usr/compat/linux/dev/rtc

But I'm not sure this is real solution.


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Sun Aug 24 04:49:22 PDT 2003 
State-Changed-Why:  
Problem is that /compat/linux/dev/rtc doesn't exist. 
Could it be that you have recently upgraded from linux_base7 to linux_base8? 
In that case you need to rebuild the rtc port (or somehow otherwise 
make a /compat/linux/dev/rtc again). 


http://www.freebsd.org/cgi/query-pr.cgi?pr=53214 
State-Changed-From-To: feedback->closed 
State-Changed-By: kris 
State-Changed-When: Sat Nov 1 17:11:38 PST 2003 
State-Changed-Why:  
Feedback timeout 

http://www.freebsd.org/cgi/query-pr.cgi?pr=53214 
>Unformatted:
 >> No MD5 checksum file.
 ===>  Patching for rtc-2002.03.05.2_2
 ===>  Configuring for rtc-2002.03.05.2_2
 ===>  Building for rtc-2002.03.05.2_2
 "/sys/conf/kmod.mk", line 182: warning: duplicate script for target "@" ignored
 @ -> /sys
 awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -h
 Warning: Object directory not changed from original /usr0/ports/am/eastasia/usr1/cvsup/ports/emulators/rtc/work/files
 machine -> /am/eastasia/usr1/cvsup/releng_5_1/src/sys/i386/include
 cc -O -pipe -mcpu=pentiumpro -mcpu=pentiumpro -I/usr0/ports/am/eastasia/usr1/cvsup/ports/emulators/rtc/work/files -I/sys -DCDEV_MAJOR_=202  -D_KERNEL -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winl ine -Wcast-qual  -fformat-extensions -std=c99 -DKLD_MODULE -nostdinc -I-  -I/usr0/ports/am/eastasia/usr1/cvsup/ports/emulators/rtc/work/files -I/sys -I. -I@ -I@/dev -I@/../include -I/usr/include -fno-common  -mno-align-long-strings -mpreferred-stack-boun dary=2 -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 -c rtc.c
 cc -O -pipe -mcpu=pentiumpro -mcpu=pentiumpro -I/usr0/ports/am/eastasia/usr1/cvsup/ports/emulators/rtc/work/files -I/sys -DCDEV_MAJOR_=202  -D_KERNEL -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winl ine -Wcast-qual  -fformat-extensions -std=c99 -DKLD_MODULE -nostdinc -I-  -I/usr0/ports/am/eastasia/usr1/cvsup/ports/emulators/rtc/work/files -I/sys -I. -I@ -I@/dev -I@/../include -I/usr/include -fno-common  -mno-align-long-strings -mpreferred-stack-boun dary=2 -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 -c rtc_linux.c
 ld  -d -warn-common -r -d -o rtc.kld rtc.o rtc_linux.o
 touch /usr0/ports/am/eastasia/usr1/cvsup/ports/emulators/rtc/work/files/export_syms
 awk -f /sys/conf/kmod_syms.awk rtc.kld  /usr0/ports/am/eastasia/usr1/cvsup/ports/emulators/rtc/work/files/export_syms |  xargs -J% objcopy % rtc.kld
 ld -Bshareable  -d -warn-common -o rtc.ko rtc.kld
 ===>  Installing for rtc-2002.03.05.2_2
 ===>  rtc-2002.03.05.2_2 is already installed - perhaps an older version?
       If so, you may wish to ``make deinstall'' and install
       this port again by ``make reinstall'' to upgrade it properly.
       If you really wish to overwrite the old port of rtc-2002.03.05.2_2
       without deleting it first, set the variable "FORCE_PKG_REGISTER"
       in your environment or the "make install" command line.
 *** Error code 1
 
 Stop in /am/eastasia/usr1/cvsup/ports/emulators/rtc.
 *** Error code 1
 
 Stop in /am/eastasia/usr1/cvsup/ports/emulators/vmware3.
 *** Error code 1
 
 Stop in /am/eastasia/usr1/cvsup/ports/emulators/vmware3.
 sugar# 
 
 
