DAHDI-Linux
  1. DAHDI-Linux
  2. DAHLIN-57

'Use of uninitialized value $ENV{"XBUS_NAME"}' if stderr from make redirected to a file

    Details

    • Type: Bug Bug
    • Status: Closed
    • Severity: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Target Release Version/s: None
    • Component/s: Astribank (xpp)
    • Labels:
      None
    • Mantis ID:
      13832
    • Regression:
      No

      Description

      The init scripts of the xpp drivers (drivers/dahdi/xpp/init_card_X_30) should be run from a context that sets a number of environment variables.

      init_card_2_30 can also be run from the command-line for verification purpose. The script tests that it is run from the command line using the following test:

      if (-t STDERR) {

      That is: if the standard error is a terminal. This test will fail is several automated build environments. Or even by a casual run of: 'make 2>log'

      Workaround: if the test fails, generate the flag file that shows it was successful and assume that is was

      touch drivers/dahdi/xpp/init_fxo_modes
      touch drivers/dahdi/xpp/init_fxo_modes.verified

      (Reported by I-MOD on #asterisk-dev)

        Activity

        Hide
        Digium Subversion added a comment -

        Repository: dahdi
        Revision: 5288

        U linux/trunk/drivers/dahdi/xpp/init_card_2_30

        ------------------------------------------------------------------------
        r5288 | tzafrir | 2008-11-10 14:37:47 -0600 (Mon, 10 Nov 2008) | 4 lines

        xpp init_card_2_30: no need to check environment in verify mode.

        Fixes DAHLIN-57 in DAHDI.

        ------------------------------------------------------------------------

        http://svn.digium.com/view/dahdi?view=rev&revision=5288

        Show
        Digium Subversion added a comment - Repository: dahdi Revision: 5288 U linux/trunk/drivers/dahdi/xpp/init_card_2_30 ------------------------------------------------------------------------ r5288 | tzafrir | 2008-11-10 14:37:47 -0600 (Mon, 10 Nov 2008) | 4 lines xpp init_card_2_30: no need to check environment in verify mode. Fixes DAHLIN-57 in DAHDI. ------------------------------------------------------------------------ http://svn.digium.com/view/dahdi?view=rev&revision=5288
        Hide
        Digium Subversion added a comment -

        Repository: zaptel
        Revision: 4578

        U branches/1.4/kernel/xpp/init_card_2_30

        ------------------------------------------------------------------------
        r4578 | tzafrir | 2008-11-10 14:41:49 -0600 (Mon, 10 Nov 2008) | 4 lines

        xpp init_card_2_30: no need to check environment in verify mode.

        Fixes DAHLIN-57 in Zaptel.

        ------------------------------------------------------------------------

        http://svn.digium.com/view/zaptel?view=rev&revision=4578

        Show
        Digium Subversion added a comment - Repository: zaptel Revision: 4578 U branches/1.4/kernel/xpp/init_card_2_30 ------------------------------------------------------------------------ r4578 | tzafrir | 2008-11-10 14:41:49 -0600 (Mon, 10 Nov 2008) | 4 lines xpp init_card_2_30: no need to check environment in verify mode. Fixes DAHLIN-57 in Zaptel. ------------------------------------------------------------------------ http://svn.digium.com/view/zaptel?view=rev&revision=4578

          People

          • Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development