NetBSD Problem Report #24219
Received: (qmail 9171 invoked by uid 605); 24 Jan 2004 20:51:22 -0000
Message-Id: <20040124204609.912B69202@panser>
Date: Sat, 24 Jan 2004 20:46:09 +0000 (UTC)
From: pancake@phreaker.net
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: pancake@phreaker.net
To: gnats-bugs@gnats.NetBSD.org
Subject: Lua5 must install bin2c (to compile external modules)
X-Send-Pr-Version: 3.95
>Number: 24219
>Category: pkg
>Synopsis: Lua5 does not builds/installs the bin2c program
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jan 24 20:52:00 +0000 2004
>Closed-Date: Sun Jan 25 10:53:39 +0000 2004
>Last-Modified: Sun Jan 25 10:53:39 +0000 2004
>Originator:
>Release: NetBSD 1.6ZH
>Organization:
>Environment:
System: NetBSD pl2 1.6ZH NetBSD 1.6ZH (pancake-laptop) #7: Sun Jan 18 18:44:52 CET 2004 root@panser:/usr/src/sys/arch/i386/compile/PANCAKE_LAPTOP i386
Architecture: i386
Machine: i386
>Description:
lua5 does not builds/installs the etc/bin2c.c program, this program
is needed for building other modules for lua5 (for example:
luasocket that gives socket features to lua5).
>How-To-Repeat:
download and install luasocket :) it's impossible. "bin2c" not found.
I want to make this pkg. and upload to wip.
>Fix:
Just add this patches to the pkgsrc: lang/lua/
--- Makefile.orig 2004-01-24 20:33:00.000000000 +0000
+++ Makefile 2004-01-24 20:39:26.000000000 +0000
@@ -30,7 +30,11 @@
${CP} ${WRKSRC}/doc/lua.1 ${BUILD_DIRS}/lua
${CP} ${WRKSRC}/doc/luac.1 ${BUILD_DIRS}/luac
+post-build:
+ ${CC} ${WRKSRC}/etc/bin2c.c -o ${WRKSRC}/etc/bin2c
+
post-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/etc/bin2c ${PREFIX}/bin/bin2c
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/lua
cd ${WRKSRC}; ${INSTALL_DATA} README COPYRIGHT \
HISTORY ${PREFIX}/share/doc/lua
--- PLIST.orig 2004-01-24 20:40:29.000000000 +0000
+++ PLIST 2004-01-24 20:40:43.000000000 +0000
@@ -1,6 +1,7 @@
@comment $NetBSD: PLIST,v 1.3 2003/04/29 23:33:56 jtb Exp $
bin/lua
bin/luac
+bin/bin2c
include/lauxlib.h
include/lua.h
include/lualib.h
>Release-Note:
>Audit-Trail:
From: Quentin Garnier <cube@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: pr/24219 CVS commit: pkgsrc/lang/lua
Date: Sun, 25 Jan 2004 10:48:21 +0000 (UTC)
Module Name: pkgsrc
Committed By: cube
Date: Sun Jan 25 10:48:21 UTC 2004
Modified Files:
pkgsrc/lang/lua: Makefile PLIST distinfo
pkgsrc/lang/lua/patches: patch-aa
Added Files:
pkgsrc/lang/lua/patches: patch-af
Log Message:
Compile and install etc/bin2c, which is expected by some modules. Fixes
PR 24219 by pancake at phreaker dot net. Bump PKGREVISION.
To generate a diff of this commit:
cvs rdiff -r1.9 -r1.10 pkgsrc/lang/lua/Makefile
cvs rdiff -r1.3 -r1.4 pkgsrc/lang/lua/PLIST
cvs rdiff -r1.4 -r1.5 pkgsrc/lang/lua/distinfo
cvs rdiff -r1.3 -r1.4 pkgsrc/lang/lua/patches/patch-aa
cvs rdiff -r0 -r1.1 pkgsrc/lang/lua/patches/patch-af
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: cube
State-Changed-When: Sun Jan 25 10:50:31 UTC 2004
State-Changed-Why:
bin2c is now compiled and installed in lua-5.0.1nb1.
Though, dependency in buildlink2.mk file was not changed, you
must use BUILDLINK_DEPENDS.lua= lua>=5.0.1nb1 to require it.
>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.