From vova@express.ru  Thu Jul 25 03:23:31 2002
Return-Path: <vova@express.ru>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id E34A037B400; Thu, 25 Jul 2002 03:23:31 -0700 (PDT)
Received: from vbook.express.ru (asplinux.ru [195.133.213.194])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id 5BDC843E42; Thu, 25 Jul 2002 03:23:29 -0700 (PDT)
	(envelope-from vova@express.ru)
Received: from vova by vbook.express.ru with local (Exim 3.36 #1)
	id 17XfmJ-00017Q-00; Thu, 25 Jul 2002 14:23:27 +0400
Message-Id: <E17XfmJ-00017Q-00@vbook.express.ru>
Date: Thu, 25 Jul 2002 14:23:27 +0400
From: Vladimir B.Grebenschikov <vova@sw.ru>
Sender: "Vladimir B. Grebenschikov,Moscow,408-7227,123-4567,Some-info" <vova@express.ru>
Reply-To: Vladimir B.Grebenschikov <vova@sw.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc: freebsd-emulation@FreeBSD.org
Subject: Invalid behavior of emulators/rtc on -CURRENT, both build and run time.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         40973
>Category:       ports
>Synopsis:       Invalid behavior of emulators/rtc on -CURRENT, both build and run time.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-emulation
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 25 03:30:01 PDT 2002
>Closed-Date:    Fri Apr 04 14:05:58 PST 2003
>Last-Modified:  Fri Apr 04 14:05:58 PST 2003
>Originator:     Vladimir B. Grebenschikov
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
SWsoft
>Environment:
System: FreeBSD vbook.express.ru 5.0-CURRENT FreeBSD 5.0-CURRENT #20: Tue Jul 23 17:08:59 MSD 2002 root@walder.asplinux.ru:/usr/obj/ext/current/src/sys/VBOOK i386

rtc from fresh ports.

>Description:

First problem: 

 Port simply don't duilds on -CURRENT due to invalid module
 depenance defines.

/usr/ports/emulators/rtc# make
I don't fetch anything...
===>  Extracting for rtc-2001.09.16.1
>How-To-Repeat:

on -CURRENT:

1:

# cd /usr/ports/emulators/rtc
# make
...
"/sys/conf/kmod.mk", line 66: "Do not use KMODDEPS on 5.0+, use
MODULE_VERSION/MODULE_DEPEND"
*** Error code 1


2:

# ls -l /dev/rtc
ls: /dev/rtc: No such file or directory
# kldstat | fgrep rtc
16    1 0xc3a87000 2000     rtc.ko
#

>Fix:

1:

RCS file: /ext/ncvs/ports/emulators/rtc/files/Makefile,v
retrieving revision 1.2
diff -u -r1.2 Makefile
--- files/Makefile      10 Sep 2000 15:06:55 -0000      1.2
+++ files/Makefile      21 May 2002 09:46:51 -0000
@@ -28,7 +28,7 @@
 SYS?=          /sys
 NOMAN=         YES
 KMOD=          rtc
-KMODDEPS=      linux
+MODULE_DEPEND= linux
 CDEV_MAJOR?=   202
 DEVNAME=       ${KMOD}
 SRCS=          rtc.c rtc_linux.c vnode_if.h

2:

I have no
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->freebsd-emulation 
Responsible-Changed-By: lioux 
Responsible-Changed-When: Sun Aug 4 10:53:51 PDT 2002 
Responsible-Changed-Why:  
Over to maintainers 

http://www.freebsd.org/cgi/query-pr.cgi?pr=40973 
State-Changed-From-To: open->analyzed 
State-Changed-By: nork 
State-Changed-When: Wed Mar 19 09:14:22 PST 2003 
State-Changed-Why:  


http://www.freebsd.org/cgi/query-pr.cgi?pr=40973 

From: Norikatsu Shigemura <nork@FreeBSD.org>
To: Mark Santcroos <marks@ripe.net>
Cc: vova@sw.ru, freebsd-emulation@FreeBSD.org,
	FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: ports/40973: Invalid behavior of emulators/rtc on -CURRENT,
 both build and run time.
Date: Fri, 21 Mar 2003 21:22:31 +0900

 On Thu, 20 Mar 2003 07:11:56 +0100
 Mark Santcroos <marks@ripe.net> wrote:
 > Don't know if you are aware but there is a patch posted on current@ that
 > fixes this.
 
 	Thanks, Mark.
 	I didn't hear a problem of it until now:-).  So, I'll able to
 	commit it.
 
 > On Wed, Mar 19, 2003 at 09:15:17AM -0800, Norikatsu Shigemura wrote:
 > > Synopsis: Invalid behavior of emulators/rtc on -CURRENT, both build and run time.
 > > 
 > > State-Changed-From-To: open->analyzed
 > > State-Changed-By: nork
 > > State-Changed-When: Wed Mar 19 09:14:22 PST 2003
 > > State-Changed-Why: 
 > > 
 > > http://www.freebsd.org/cgi/query-pr.cgi?pr=40973
 > > 
 > > To Unsubscribe: send mail to majordomo@FreeBSD.org
 > > with "unsubscribe freebsd-emulation" in the body of the message
 > 
 > -- 
 > Mark Santcroos                    RIPE Network Coordination Centre
 > http://www.ripe.net/home/mark/    New Projects Group/TTM
State-Changed-From-To: analyzed->closed 
State-Changed-By: nork 
State-Changed-When: Fri Apr 4 14:05:40 PST 2003 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=40973 
>Unformatted:
 >> No MD5 checksum file.
 ===>  Patching for rtc-2001.09.16.1
 ===>  Configuring for rtc-2001.09.16.1
 ===>  Building for rtc-2001.09.16.1
 "/sys/conf/kmod.mk", line 66: "Do not use KMODDEPS on 5.0+, use
 MODULE_VERSION/MODULE_DEPEND"
 *** Error code 1
 /usr/ports/emulators/rtc#
 
 Fix for this problem attached (don't ever test it on -STABLE)
 
 Second problem: 
 
   There are no /dev/rtc device on -CURRENT's devfs. I understand that this
 ports is mostly used for Linux-compatibility, but as I understand - 
 rtc device work well not only for Linux's binaries, so we need device on 
 -CURRENT devfs, isn't it ?
 
 
