bugGNU Octave - Bugs: bug #35572, ./configure doesn't test for GNU...

 
 

bug #35572: ./configure doesn't test for GNU sh, but build files depend on it.

Submitted by:  None
Submitted on:  Mon 20 Feb 2012 07:55:49 PM UTC  
 
Category: Configuration and Build SystemSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedAssigned to: None
Originator Name: RickOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 3.4.3
Operating System: Solaris/SunOS

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 23 Feb 2012 08:52:08 PM UTC, comment #4:

I checked in the following changeset:

http://hg.savannah.gnu.org/hgweb/octave/rev/08e48e7a4c8a

John W. Eaton <jwe>
Project Administrator
Thu 23 Feb 2012 06:24:02 AM UTC, comment #3:

The issue is that the output stored in $MX_INC is a newline delimited list. Using 'echo' turns the list into a space-separated list. Any way that accomplishes that action will be good enough. This might be possible back in the original awk script, or you could use sed, or you could use the following kludge:

This gets rids of 'echo -n' which you said was problematic and it converts the list in a separate command rather than embedding it within a double-quoted string.

Rik <rik5>
Project Administrator
Thu 23 Feb 2012 12:55:53 AM UTC, comment #2:

I'm wondering why I wrote

instead of just using

Doesn't the latter work correctly?

I don't think echo -n is portable. There is some discussion of that in the autoconf manual.

John W. Eaton <jwe>
Project Administrator
Wed 22 Feb 2012 09:34:55 PM UTC, comment #1:

I recoded the file in question to avoid the GNU sh construct that I think is causing the problem. Could you test it as I don't have access to a Solaris system?

Steps to take:
1) Replace liboctave/config-ops.sh with the one attached to this bug report
2) In liboctave directory, 'rm op.mk'
3) In top-level directory, './configure --ANY_OPTIONS_YOU_HAVE--'
4) 'make'

(file #25121)

Rik <rik5>
Project Administrator
Mon 20 Feb 2012 07:55:49 PM UTC, original submission:

Build failed at liboctave/config-ops.sh with message:

Unexpected $ in VX_OP_INC = $, line 36

I changed the first line of that file from
#! /bin/sh to

to

#! /path/to/gnu/sh

and the build continued successfully.

Thanks,
Rick

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #25121:  config-ops.sh added by rik5 (3KiB - application/x-sh)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by rik5 (Updated the item)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 23 Feb 2012 08:52:08 PM UTCjweStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Wed 22 Feb 2012 09:34:55 PM UTCrik5Attached File-=>Added config-ops.sh, #25121

    Back to the top


    Powered by Savane 3.1-cleanup1