NetBSD Problem Report #44503

From www@NetBSD.org  Wed Feb  2 18:36:42 2011
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 8D4E763B8BA
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  2 Feb 2011 18:36:42 +0000 (UTC)
Message-Id: <20110202183641.7A5EC63B883@www.NetBSD.org>
Date: Wed,  2 Feb 2011 18:36:41 +0000 (UTC)
From: ftigeot@wolfpond.org
Reply-To: ftigeot@wolfpond.org
To: gnats-bugs@NetBSD.org
Subject: math/lp_solve uses the user shell to run a Bourne shell script
X-Send-Pr-Version: www-1.0

>Number:         44503
>Category:       pkg
>Synopsis:       math/lp_solve uses the user shell to run a Bourne shell script
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 02 18:40:00 +0000 2011
>Closed-Date:    Thu Feb 03 11:31:31 +0000 2011
>Last-Modified:  Thu Feb 03 11:35:01 +0000 2011
>Originator:     Francois Tigeot
>Release:        DragonFly 2.9-DEVELOPMENT
>Organization:
>Environment:
DragonFly akane.zefyris.com 2.9-DEVELOPMENT DragonFly v2.9.1.543.gc6fd64-DEVELOPMENT #8: Thu Jan 27 12:15:51 CET 2011     ftigeot@akane.zefyris.com:/usr/obj/usr/src/sys/X86_64_GENERIC_SMP  x86_64
>Description:
math/lp_solve uses the user shell to run a Bourne shell script

It runs fine as long as the user uses a Bourne or Bourne-compatible shell such as sh or bash, but fails if this condition is not met:

[user shell is /bin/csh]

# bmake
[...]
===> Building for lp_solve-5.5.2.0
=> Substituting "dl" in lp_solve/ccc lpsolve55/ccc demo/ccc
cd /pkgsrc/math/lp_solve/work/lp_solve_5.5/lp_solve && /bin/csh ccc
src=../lp_MDO.c ../shared/commonlib.c ../colamd/colamd.c ../shared/mmio.c ../shared/myblas.c ../ini.c ../fortify.c ../lp_rlp.c ../lp_crash.c ../bfp/bfp_LUSOL/lp_LUSOL.c ../bfp/bfp_LUSOL/LUSOL/lusol.c ../lp_Hash.c ../lp_lib.c ../lp_wlp.c ../lp_matrix.c ../lp_mipbb.c ../lp_MPS.c ../lp_params.c ../lp_presolve.c ../lp_price.c ../lp_pricePSE.c ../lp_report.c ../lp_scale.c ../lp_simplex.c lp_solve.c ../lp_SOS.c ../lp_utils.c ../yacc_read.c: Command not found.
c=cc: Command not found.
Invalid null command.
*** Error code 1


>How-To-Repeat:
Use /bin/csh as your shell and try to install math/lp_solve
>Fix:
Apply this patch to math/lp_solve/Makefile

--- Makefile.orig       2010-10-16 15:35:08 +0000
+++ Makefile    2011-02-02 18:19:50 +0000
@@ -37,9 +37,9 @@
 INSTALLATION_DIRS=     bin include/lpsolve lib

 do-build:
-       cd ${WRKSRC}/lp_solve && ${SHELL} ccc
-       cd ${WRKSRC}/lpsolve55 && ${SHELL} ccc
-       cd ${WRKSRC}/demo && ${SHELL} ccc
+       cd ${WRKSRC}/lp_solve && ${SH} ccc
+       cd ${WRKSRC}/lpsolve55 && ${SH} ccc
+       cd ${WRKSRC}/demo && ${SH} ccc

 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/lp_solve/bin/${LPSOLVE_ARCH}/lp_solve \

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Thu, 03 Feb 2011 11:31:31 +0000
State-Changed-Why:
Fixed, thanks.


From: "Thomas Klausner" <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/44503 CVS commit: pkgsrc/math/lp_solve
Date: Thu, 3 Feb 2011 11:30:54 +0000

 Module Name:	pkgsrc
 Committed By:	wiz
 Date:		Thu Feb  3 11:30:54 UTC 2011

 Modified Files:
 	pkgsrc/math/lp_solve: Makefile

 Log Message:
 Use SH instead of SHELL, from Francois Tigeot in PR 44503.


 To generate a diff of this commit:
 cvs rdiff -u -r1.1.1.1 -r1.2 pkgsrc/math/lp_solve/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.