NetBSD Problem Report #48869
From www@NetBSD.org Wed Jun 4 17:12:43 2014
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 68A00A65E3
for <gnats-bugs@gnats.NetBSD.org>; Wed, 4 Jun 2014 17:12:43 +0000 (UTC)
Message-Id: <20140604171242.0F88BA6606@mollari.NetBSD.org>
Date: Wed, 4 Jun 2014 17:12:42 +0000 (UTC)
From: ishit@oak.dti.ne.jp
Reply-To: ishit@oak.dti.ne.jp
To: gnats-bugs@NetBSD.org
Subject: lang/lua51/ALTERNATIVES and lang/lua52/ALTERNATIVES are wrong.
X-Send-Pr-Version: www-1.0
>Number: 48869
>Category: pkg
>Synopsis: lang/lua51/ALTERNATIVES and lang/lua52/ALTERNATIVES are wrong.
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Jun 04 17:15:00 +0000 2014
>Closed-Date: Fri Jun 13 18:22:57 +0000 2014
>Last-Modified: Fri Jun 13 18:25:00 +0000 2014
>Originator: ISIHARA Takanori
>Release: pkgsrc-current 2014/6/4
>Organization:
Nagoya *BSD Users' Group :-)
>Environment:
NetBSD ishitPc9.home 6.1_STABLE NetBSD 6.1_STABLE (ISHITPC9) #19: Sun Jun 1 09:06:32 JST 2014 sysbuild@ishitPc9.home:/opt/sysbuild/netbsd-6/obj/i386/sys/arch/i386/compile/ISHITPC9 i386
>Description:
lang/lua51/ALTERNATIVES and lang/lua52/ALTERNATIVES are wrong.
pkg_altinatives rebuild stopped.
>How-To-Repeat:
cd /usr/pkgsrc/lang/lua52
make install clean
cd /usr/pkgsrc/pkgtools/pkg_alternatives
make install clean
pkg_alternatives rebuild
>Fix:
diff -uNr lua51.orig/ALTERNATIVES lua51/ALTERNATIVES
--- lua51.orig/ALTERNATIVES 2014-05-03 22:57:33.000000000 +0900
+++ lua51/ALTERNATIVES 2014-06-05 01:56:13.000000000 +0900
@@ -1,3 +1,2 @@
-bin/lua5.1 @PREFIX@/bin/lua
-bin/luac5.1 @PREFIX@/bin/luac
-lib/pkgconfig/lua-5.1.pc @PREFIX@/lib/pkgconfig/lua.pc
+bin/lua @PREFIX@/bin/lua5.1
+bin/luac @PREFIX@/bin/luac5.1
diff -uNr lua52.orig/ALTERNATIVES lua52/ALTERNATIVES
--- lua52.orig/ALTERNATIVES 2014-05-03 22:57:33.000000000 +0900
+++ lua52/ALTERNATIVES 2014-06-05 01:55:47.000000000 +0900
@@ -1,3 +1,2 @@
-bin/lua5.2 @PREFIX@/bin/lua
-bin/luac5.2 @PREFIX@/bin/luac
-lib/pkgconfig/lua-5.2.pc @PREFIX@/lib/pkgconfig/lua.pc
+bin/lua @PREFIX@/bin/lua5.2
+bin/luac @PREFIX@/bin/luac5.2
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: alnsn@NetBSD.org
State-Changed-When: Sat, 07 Jun 2014 12:35:54 +0000
State-Changed-Why:
Fix is commited. Please confirm it fixes your problem as I don't use
the alternatives framework.
Alex
From: ishit <ishit@oak.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: alnsn@NetBSD.org, pkg-manager@netbsd.org, pkgsrc-bugs@netbsd.org,
gnats-admin@netbsd.org
Subject: Re: pkg/48869 (lang/lua51/ALTERNATIVES and lang/lua52/ALTERNATIVES are wrong.)
Date: Wed, 11 Jun 2014 00:25:34 +0900
> Fix is commited. Please confirm it fixes your problem as I don't use
> the alternatives framework.
> Alex
>
I try make lang/lua52, but already wrong.
# cd /usr/pkgsrc/lang/lua52
# make deinstall
<snip>
# make install
<snip>
=> Checking for missing run-time search paths in lua52-5.2.3nb1
=> Checking for work-directory references in lua52-5.2.3nb1
=> Creating binary package /opt/pkgsrc/lang/lua52/work.i386/.packages/lua52-5.2.3nb1.tgz
===> Install binary package of lua52-5.2.3nb1
pkg_alternatives: wrapper name `lib/pkgconfig/lua.2.pc' is invalid
#
I try fix, It looks fine.
# vi ALTERNATIVES
# cvs diff -u ALTERNATIVES
Index: ALTERNATIVES
===================================================================
RCS file: /cvsroot/pkgsrc/lang/lua52/ALTERNATIVES,v
retrieving revision 1.2
diff -u -r1.2 ALTERNATIVES
--- ALTERNATIVES 6 Jun 2014 17:48:16 -0000 1.2
+++ ALTERNATIVES 10 Jun 2014 15:04:45 -0000
@@ -1,3 +1,2 @@
bin/lua @PREFIX@/bin/lua5.2
bin/luac @PREFIX@/bin/luac5.2
-lib/pkgconfig/lua.2.pc @PREFIX@/lib/pkgconfig/lua-5.2.pc
# make clean
===> Cleaning for lua52-5.2.3nb1
# make deinstall
===> Deinstalling for lua52-5.2.3nb1
Running /usr/pkg/sbin/pkg_delete -K /var/db/pkg lua52-5.2.3nb1
pkg_alternatives: wrapper name `lib/pkgconfig/lua.2.pc' is invalid
# make install
<snip>
=> Checking for missing run-time search paths in lua52-5.2.3nb1
=> Checking for work-directory references in lua52-5.2.3nb1
=> Creating binary package /opt/pkgsrc/lang/lua52/work.i386/.packages/lua52-5.2.3nb1.tgz
===> Install binary package of lua52-5.2.3nb1
#
(no pkg_alternatives error.)
From: Alexander Nasonov <alnsn@yandex.ru>
To: ishit <ishit@oak.dti.ne.jp>
Cc: gnats-bugs@NetBSD.org, alnsn@NetBSD.org, pkg-manager@netbsd.org,
pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org
Subject: Re: pkg/48869 (lang/lua51/ALTERNATIVES and lang/lua52/ALTERNATIVES
are wrong.)
Date: Wed, 11 Jun 2014 21:36:52 +0100
ishit wrote:
> pkg_alternatives: wrapper name `lib/pkgconfig/lua.2.pc' is invalid
Please try again.
Alex
From: Alexander Nasonov <alnsn@yandex.ru>
To: ishit <ishit@oak.dti.ne.jp>
Cc: alnsn@yandex.ru, gnats-bugs@NetBSD.org, alnsn@NetBSD.org,
pkg-manager@netbsd.org, pkgsrc-bugs@netbsd.org,
gnats-admin@netbsd.org
Subject: Re: pkg/48869 (lang/lua51/ALTERNATIVES and lang/lua52/ALTERNATIVES
are wrong.)
Date: Fri, 13 Jun 2014 18:10:31 +0100
ishit wrote:
> The contents of "lib" directory is not supported by "pkg_alternatives", I think.
Hmm, this is strange. Without lua.pc, these two Lua packages are
incomplete. You can use lua and luac binaries but you will not be able
to link to `pkg-config --libs lua`.
I removed .pc files anyway.
Alex
State-Changed-From-To: feedback->closed
State-Changed-By: alnsn@NetBSD.org
State-Changed-When: Fri, 13 Jun 2014 18:22:57 +0000
State-Changed-Why:
The latest commit matches submitter's patch, closing
the ticket.
Alex
From: ishit <ishit@oak.dti.ne.jp>
To: alnsn@yandex.ru
Cc: gnats-bugs@NetBSD.org, alnsn@NetBSD.org, pkg-manager@netbsd.org,
pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org
Subject: Re: pkg/48869 (lang/lua51/ALTERNATIVES and lang/lua52/ALTERNATIVES are wrong.)
Date: Sat, 14 Jun 2014 01:49:56 +0900
At Wed, 11 Jun 2014 21:36:52 +0100, Alexander Nasonov wrote:
> > pkg_alternatives: wrapper name `lib/pkgconfig/lua.2.pc' is invalid
>
> Please try again.
>
> Alex
I try again, but same error.
pkg_alternatives: wrapper name `lib/pkgconfig/lua.pc' is invalid
The contents of "lib" directory is not supported by "pkg_alternatives", I think.
See validate_wrapper() in "pkg_alternatives", please.
# cf./usr/pkgsrc/pkgtools/pkg_alternatives/files/pkg_alternatives.sh
--
ISIHARA Takanori
>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.