pkgsrc-Bugs archive

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

pkg/43224: sysutils/cvsreport: is_alive()-function needs to be patched to the correct /proc-path (linux-emulation)



>Number:         43224
>Category:       pkg
>Synopsis:       sysutils/cvsreport: is_alive()-function needs to be patched to 
>the correct /proc-path (linux-emulation)
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 29 08:50:00 +0000 2010
>Originator:     Volkmar Seifert
>Release:        NetBSD 5
>Organization:
>Environment:
NetBSD unknown.nifelheim.info 5.0_RC4 NetBSD 5.0_RC4 (GENERIC) #3: Wed Apr 22 
11:23:42 CEST 2009  
build@ymir:/usr/build/src/sys/arch/i386/compile/obj.i386/GENERIC i386

>Description:
After installing and configuring sysutils/cvsreport, I noticed that it did not 
work as it should. It stopped with the following error:

"is_alive has no implementation on this system"

Looking into the code I noticed that cvsreport had a "is_alive"-function, which 
tried to access /proc/1 as a check whether this approach of monitoring a 
process does work or not.

My system mounts /proc on start-up, but without content. /emul/linux/proc is 
mounted as well, since I have installed linux-emulation, and after changing the 
path to /emul/linux/proc, cvsreport finally worked.

This patching should probably be done during make install?
>How-To-Repeat:
Simply install sysutils/cvsreport, and run it from a CVSROOT/commitinfo upon 
commit of a file with --debug activated (There might be a simpler way, but this 
is how I discovered it), and then to a 

cat /tmp/cvsreport.log

The error will be in that log.
>Fix:
Patch the "is_alive"-function upon install from "/proc" the system's 
linux-emulation-proc-path (most likely "/emul/linux/proc" unless someone has 
set up something extra-ordinary)



Home | Main Index | Thread Index | Old Index