Menu

#410 Disable USB interface for Windows/Cygwin by default

version-1.8.17
closed-fixed
None
5
2016-02-04
2016-01-18
No

USB interface fails to build under Windows/Cygwin. Instead of manually disabling it via configure parameter, disable it by default unde Windows/Cygwin.

Related

Bugs (use GitHub instead): #410

Discussion

  • Zdenek Styblik

    Zdenek Styblik - 2016-01-19

    This doesn't look right. If I understand it correctly, it removes the default value. Isn't setting it to 'no' under 'cygwin' enough? Also, help text doesn't reflect this change.

     
    • Dmitry Bazhenov

      Dmitry Bazhenov - 2016-01-20

      Hello, Zdenek,

      The default value is "yes", see line #62 of the configure.ac.
      I just make it "no" by default for Cygwin, and don't enable it, if "--enable-intf-usb" is not specified.
      So, the patch is correct, unless there are more arguments to consider.

      Regards,
      Dmitry

       
      • Zdenek Styblik

        Zdenek Styblik - 2016-01-20

        Dmitry, let me rephrase. There are two parts of the patch. The first part,
        setting default value for Cygwin, I agree with. The second part, I don't,
        because I think it is unnecessary and might break things.

        Z.
        On 20 Jan 2016 4:59 am, "Dmitry Bazhenov" dbazhenov@users.sf.net wrote:

        Hello, Zdenek,

        The default value is "yes", see line #62 of the configure.ac.
        I just make it "no" by default for Cygwin, and don't enable it, if
        "--enable-intf-usb" is not specified.
        So, the patch is correct, unless there are more arguments to consider.

        Regards,
        Dmitry


        Status: open
        Group: version-1.8.17
        Created: Mon Jan 18, 2016 07:43 AM UTC by Dmitry Bazhenov
        Last Updated: Tue Jan 19, 2016 07:31 PM UTC
        Owner: nobody

        USB interface fails to build under Windows/Cygwin. Instead of manually
        disabling it via configure parameter, disable it by default unde
        Windows/Cygwin.


        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/ipmitool/bugs/410/

        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/

         

        Related

        Bugs (use GitHub instead): #410

        • Dmitry Bazhenov

          Dmitry Bazhenov - 2016-01-20

          Zdenek, I understand your concern. But, it is indeed necessary, because otherwise, when the parameter is omitted, the USB driver will be enabled disregarding the default value.
          So, the second part of my patch removes this redundant "enable".

           
          • Zdenek Styblik

            Zdenek Styblik - 2016-01-24

            Hello Dmitry,

            attached is a patch that should address the second part of the problem. Please, give it a try.

            Thanks.

             
            • Dmitry Bazhenov

              Dmitry Bazhenov - 2016-02-01

              Will try. Should work I think.

               
            • Dmitry Bazhenov

              Dmitry Bazhenov - 2016-02-01

              Done. Works on Cygwin64 and Linux x86_64 as appropriate.

               
              • Zdenek Styblik

                Zdenek Styblik - 2016-02-01

                Great! I'll merge these two patches then, resp. will apply appropriate parts, and give it a commit later.

                 
  • Zdenek Styblik

    Zdenek Styblik - 2016-02-01
    • status: open --> open-accepted
    • assigned_to: Zdenek Styblik
     
  • Zdenek Styblik

    Zdenek Styblik - 2016-02-04
    • status: open-accepted --> closed-fixed
     
  • Zdenek Styblik

    Zdenek Styblik - 2016-02-04

    Committed to git. Thanks.

     

Log in to post a comment.