NetBSD Problem Report #45169
From lukem@mewburn.net Sat Jul 23 14:46:30 2011
Return-Path: <lukem@mewburn.net>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 76FAD63BC69
for <gnats-bugs@gnats.NetBSD.org>; Sat, 23 Jul 2011 14:46:30 +0000 (UTC)
Message-Id: <20110723144628.1EC2D4828F@home.mewburn.net>
Date: Sun, 24 Jul 2011 00:46:28 +1000 (EST)
From: lukem@netbsd.org
Reply-To: lukem@netbsd.org
To: gnats-bugs@gnats.NetBSD.org
Subject: devel/lua-stdlib needs (missing) lrexlib
X-Send-Pr-Version: 3.95
>Number: 45169
>Category: pkg
>Synopsis: devel/lua-stdlib needs (missing) lrexlib
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: cheusov
>State: closed
>Class: sw-bug
>Submitter-Id: unknown
>Arrival-Date: Sat Jul 23 14:50:00 +0000 2011
>Closed-Date: Mon Jul 25 20:42:39 +0000 2011
>Last-Modified: Mon Jul 25 20:42:39 +0000 2011
>Originator: Luke Mewburn
>Release: NetBSD 5.0_STABLE
>Organization:
NetBSD
>Environment:
Architecture: i386
Machine: i386
>Description:
Trying to use the 'std' module provided by devel/lua-stdlib
results in a traceback about a missing 'lrexlib'.
>How-To-Repeat:
% lua
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
> require 'std'
/usr/pkg/share/lua/5.1/rex.lua:7: module 'rex_pcre' not found:
no field package.preload['rex_pcre']
no file './rex_pcre.lua'
no file '/usr/pkg/share/lua/5.1/rex_pcre.lua'
no file '/usr/pkg/share/lua/5.1/rex_pcre/init.lua'
no file '/usr/pkg/lib/lua/5.1/rex_pcre.lua'
no file '/usr/pkg/lib/lua/5.1/rex_pcre/init.lua'
no file './rex_pcre.so'
no file '/usr/pkg/lib/lua/5.1/rex_pcre.so'
no file '/usr/pkg/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
/usr/pkg/share/lua/5.1/rex.lua:7: in main chunk
[C]: in function 'require'
/usr/pkg/share/lua/5.1/xml.lua:6: in main chunk
[C]: in function 'require'
/usr/pkg/share/lua/5.1/std.lua:23: in main chunk
[C]: in function 'require'
stdin:1: in main chunk
[C]: ?
lua
>Fix:
Provide a package for lrexlib and provide a dependency
in lua-stdlib to it?
http://rrthomas.github.com/lrexlib/
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->cheusov
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Sun, 24 Jul 2011 02:08:49 +0000
Responsible-Changed-Why:
Over to maintainer.
From: Aleksey Cheusov <cheusov@tut.by>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/45169: devel/lua-stdlib needs (missing) lrexlib
Date: Sun, 24 Jul 2011 12:02:01 +0300
> Trying to use the 'std' module provided by devel/lua-stdlib
> results in a traceback about a missing 'lrexlib'.
>>How-To-Repeat:
>
> % lua
> Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
> > require 'std'
> /usr/pkg/share/lua/5.1/rex.lua:7: module 'rex_pcre' not found:
> no field package.preload['rex_pcre']
I've just imported lrexlib packages to pkgsrc/devel.
Does the following patch fix the problem with lua-stdlib?
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/devel/lua-stdlib/Makefile,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 Makefile
--- Makefile 12 Feb 2009 01:45:01 -0000 1.1.1.1
+++ Makefile 24 Jul 2011 08:57:19 -0000
@@ -3,9 +3,10 @@
.include "../../devel/lua-stdlib/Makefile.common"
PKGNAME= ${DISTNAME:S/stdlib/${LUA_PKGPREFIX}-stdlib/}
-
+PKGREVISION= 1
COMMENT= Standard library for Lua programming language
+DEPENDS+= lua-lrexlib-pcre-[0-9]*:../../devel/lua-lrexlib-pcre
INSTALLATION_DIRS+= ${LUA_LDIR}
.include "../../lang/lua/module.mk"
--
Best regards, Aleksey Cheusov.
From: Luke Mewburn <lukem@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: cheusov@NetBSD.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,
lukem@netbsd.org
Subject: Re: pkg/45169: devel/lua-stdlib needs (missing) lrexlib
Date: Mon, 25 Jul 2011 22:59:12 +1000
--0zDq8CFkxn2hi9iJ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Sun, Jul 24, 2011 at 09:05:04AM +0000, Aleksey Cheusov wrote:
| From: Aleksey Cheusov <cheusov@tut.by>
| To: gnats-bugs@NetBSD.org
| Cc:=20
| Subject: Re: pkg/45169: devel/lua-stdlib needs (missing) lrexlib
| Date: Sun, 24 Jul 2011 12:02:01 +0300
|=20
| > Trying to use the 'std' module provided by devel/lua-stdlib
| > results in a traceback about a missing 'lrexlib'.
| >>How-To-Repeat:
| > =09
| > % lua
| > Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
| > > require 'std'
| > /usr/pkg/share/lua/5.1/rex.lua:7: module 'rex_pcre' not found:
| > no field package.preload['rex_pcre']
| =20
| I've just imported lrexlib packages to pkgsrc/devel.
| Does the following patch fix the problem with lua-stdlib?
Yes, thanks.
Please commit (and crank the nbversion?)
cheers,
Luke.
--0zDq8CFkxn2hi9iJ
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (NetBSD)
iEYEARECAAYFAk4taJ8ACgkQpBhtmn8zJHJxwwCfcRqGGMaR7n3cdH8eV+l2V+F7
p0oAn3cc6yGEBGxIAg/Lunf1ixPFurI3
=BX/8
-----END PGP SIGNATURE-----
--0zDq8CFkxn2hi9iJ--
From: "Aleksey Cheusov" <cheusov@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/45169 CVS commit: pkgsrc/devel/lua-stdlib
Date: Mon, 25 Jul 2011 20:10:50 +0000
Module Name: pkgsrc
Committed By: cheusov
Date: Mon Jul 25 20:10:50 UTC 2011
Modified Files:
pkgsrc/devel/lua-stdlib: Makefile
Log Message:
Dependency on lua-lrexlib-pcre was added.
This fixes PR 45169 by Luke Mewburn.
Approved by lukem@
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 pkgsrc/devel/lua-stdlib/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: cheusov@NetBSD.org
State-Changed-When: Mon, 25 Jul 2011 20:42:39 +0000
State-Changed-Why:
fixed. Thanks for the PR
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.