[Xapian-tickets] [Xapian] #405: xapian-config doesn't work with Solaris /bin/sh (was: xapian-config contains bash-specific code)

Xapian nobody at xapian.org
Sun Sep 20 09:45:14 BST 2009

#405: xapian-config doesn't work with Solaris /bin/sh
 Reporter:  dmichelsen    |       Owner:  olly    
     Type:  defect        |      Status:  assigned
 Priority:  normal        |   Milestone:  1.1.3   
Component:  Build system  |     Version:  1.0.11  
 Severity:  normal        |    Keywords:          
Blockedby:                |    Platform:  Solaris 
 Blocking:                |  
Changes (by olly):

  * owner:  => olly
  * status:  new => assigned
  * component:  other => Build system
  * milestone:  => 1.1.3


 It's definitely not bash-specific code (/bin/sh on my dev box isn't bash
 for starters, it's dash).

 The problematic shell here is the Solaris one it seems.  All the bourne
 shell implementations I found in Ubuntu jaunty handle it correctly
 (testing with trunk, but this code hasn't changed):

 $ bash ./xapian-config --ltlibs
 $ dash ./xapian-config --ltlibs
 $ ksh ./xapian-config --ltlibs
 $ ksh93 ./xapian-config --ltlibs
 $ posh ./xapian-config --ltlibs
 $ mksh ./xapian-config --ltlibs

 I'm guessing the issue is with $1 and assigning that to a temporary
 variable might help.  Can you try running the attached test script with
 Solaris /bin/sh?

 We recommend installing the .la file, but if you don't xapian-config
 --ltlibs falls back to just giving -lxapian (preceded by a -L option if
 necessary) which works for dynamic linking on many platforms.  If you
 wanted static linking to work, or your platform doesn't pull in dependent
 libraries automatically for dynamic libraries, then ... well, it's your
 policy to not install .la files, so you get to fix the resultant breakage!

 Marking for 1.1.3 for now, assuming we can find a workaround easily.

Ticket URL: <http://trac.xapian.org/ticket/405#comment:1>
Xapian <http://xapian.org/>

More information about the Xapian-tickets mailing list