Subject: pkg/34673: lang/lua package: problem with POPEN not defined under DragonFly 1.6.1
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <soytimofonico@yahoo.es>
List: pkgsrc-bugs
Date: 09/30/2006 13:30:02
>Number:         34673
>Category:       pkg
>Synopsis:       lang/lua package: problem with POPEN not defined under DragonFly 1.6.1
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 30 13:30:02 +0000 2006
>Originator:     timofonic
>Release:        DragonFly 1.6.1-RELEASE i386
>Organization:
none
>Environment:
DragonFly timofonic.sh.nu 1.6.1-RELEASE DragonFly 1.6.1-RELEASE #0: Fri Aug  4 17:23:51 CEST 2006     root@timofonic.sh.nu:/usr/obj/usr/src/sys/TIMOBOX  i386
>Description:
POPEN function is used on many packages requering LUA, such as www/ion3-devel package. The absence of this avoids the full corectly run of certain apps (like ion).

USE_POPEN function must be activated manually on lua Makefile on certain operating systems.

Error of wm/ion3-devel on my system:

Ion startup error log:
>> Errors starting ion-statusd:
   /usr/pkg/lib/ion3/bin/ion-statusd: statusd_load.lua:43: 'popen' not supported


On a Makefile this appeared, maybe it can be useful for solving the problem:

    # If your system is not POSIX but has popen and pclose, define USE_POPEN=1.
    # If you don't want to support pipes, define USE_POPEN=0.
    #


This seems a known "bug" on this pkgsrc package, as show on the following urls:
http://cvsweb.de.netbsd.org/cgi-bin/cvsweb.cgi/pkgsrc/lang/lua/Makefile (find popen)
http://lists.freebsd.org/pipermail/freebsd-ports-bugs/2005-July/061289.html



>How-To-Repeat:
Build www/ion3-devel and using it will show the problem, not remember about other apps giving the same error.
>Fix: