Menu

#5491 Solaris: Error "`verleneach=$' unexpected" when executing postinstall script

1.979
open
nobody
solaris (1)
5
2021-06-21
2021-06-17
Joes Garage
No

On a Solaris system the package installation fails partially due to some error in the postinstall script:

Executing postinstall script.

Executing postinstall script ..
./setup.sh: syntax error at line 32: `verleneach=$' unexpected
pkgadd: ERROR: postinstall script did not complete successfully

Installation of <wswebmin> partially failed.</wswebmin>

Discussion

  • Ilia

    Ilia - 2021-06-17

    What Solaris version is that?

     
  • Joes Garage

    Joes Garage - 2021-06-18

    Solaris 8 7/01, - to be frank ;-)

     
  • Ilia

    Ilia - 2021-06-18

    Ilia, I think we should undo that commit ... it uses shell features that aren't always available, and it's not worth breaking the install just to improve the formatting.

    I could do it. Although, perhaps it would be better to avoid using new shell features selectively?

     
  • Jamie Cameron

    Jamie Cameron - 2021-06-18

    Since we have to support non-Linux distros that may be using non-bash shells, it's best to use only only classic /bin/sh features.

     
    👍
    1
  • Ilia

    Ilia - 2021-06-19

    Joes, could you try this patch and see if it works for you?

     
  • Joes Garage

    Joes Garage - 2021-06-21

    Hi Ilia, as setup.sh is part of the postinstall routine I do not see a (simple) way to test that script standalone. I have the same opion as Jamie: please keep scripts compatible to any Unix/Linux distro by sticking to /bin/sh features.

     
  • Ilia

    Ilia - 2021-06-21

    Alright, as Jamie advised to remove my initial commit to make it compatible with all shells, I have done so and simply removed wrapping * to make sure things don't look broken when upgrading using update script.

     

Log in to post a comment.