Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-3704

Echo in debian/rules cause debuild error

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.17.0-beta2, 1.17.0
    • Affects Version/s: None
    • Component/s: debian
    • None
    • Environment:
      Ubuntu 18.04
    • Fully Compatible

      Fromhttps://github.com/mongodb/mongo-cxx-driver/commit/deb3e38dcccb8ec4074ace9ebfd093237a033d52 which as of today is releases/stable

      In debian/rules

      ifneq (,$(findstring nodoc,$(DEB_BUILD_OPTIONS)))
      echo "Found 'nodoc' in 'DEB_BUILD_OPTIONS'; not building documentation"
      DOCS=OFF
      else
      DOCS=ON
      endif

       
      The echo line causes a compilation error when the specificed nodoc flag is defined. This is resolved by simply removing the echo - which I do not believe to be legal inside a rules file
       
      If it is - then a build dependency is unspecified - the following Dockerfile was used to generate the error
       

       FROM ubuntu:18.04 
      RUN apt-get update && apt-get install -y devscripts equivs
      COPY mongo-c-driver /mongo-c-driverWORKDIR /mongo-c-driver
      RUN DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true mk-build-deps -i --tool "apt-get -o Debug::pkgProblemResolver=no -y"
      RUN DEB_BUILD_OPTIONS="nodoc" debuild -uc -us -b

            Assignee:
            roberto.sanchez@mongodb.com Roberto Sanchez
            Reporter:
            altinners Andrew Lipscomb
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: