[Bug 849423] [NEW] "apt-get source" should warn when sources cannot be built using debuild or dpkg-buildpackage.

Bob Vincent bobvin at pillars.net
Tue Sep 13 20:56:04 UTC 2011


Public bug reported:

For context see comments 10, 11, 12, 13, 17, 18, and 21 of:
    https://bugs.launchpad.net/ubuntu/oneiric/+source/packagekit/+bug/847591

In lines 2425-2435 of cmdline/apt-get.cc I see:

         ioprintf(c1out, _("NOTICE: '%s' packaging is maintained in "
                           "the '%s' version control system at:\n"
                           "%s\n"),
                  Src.c_str(), vcs.c_str(), uri.c_str());
         if(vcs == "Bzr")
            ioprintf(c1out,_("Please use:\n"
                             "bzr branch %s\n"
                             "to retrieve the latest (possibly unreleased) "
                             "updates to the package.\n"),
                     uri.c_str());
         break;

So when running "apt-get source SOMEPACKAGE" I am sometimes warned to
use "bzr branch" instead.

Sometimes I am warned to use "git clone" or "svn checkout", but I can't
find the code for this in the apt package; maybe it is located
elsewhere?

At any rate, I was recently advised that for packages stored in git
repositories, I should (sometimes) use "git-buildpackage" instead of
"debuild binary" or "dpkg-buildpackage" to build from source.

At the risk of making Ubuntu dangerously user-friendly, I suggest that
the same code that warns to check out from a repository should also
advise that non-standard build tools may be needed, or at least point to
a documentation page somewhere that lists the various possibilities.

** Affects: apt (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/849423

Title:
  "apt-get source" should warn when sources cannot be built using
  debuild or dpkg-buildpackage.

Status in “apt” package in Ubuntu:
  New

Bug description:
  For context see comments 10, 11, 12, 13, 17, 18, and 21 of:
      https://bugs.launchpad.net/ubuntu/oneiric/+source/packagekit/+bug/847591

  In lines 2425-2435 of cmdline/apt-get.cc I see:

           ioprintf(c1out, _("NOTICE: '%s' packaging is maintained in "
                             "the '%s' version control system at:\n"
                             "%s\n"),
                    Src.c_str(), vcs.c_str(), uri.c_str());
           if(vcs == "Bzr")
              ioprintf(c1out,_("Please use:\n"
                               "bzr branch %s\n"
                               "to retrieve the latest (possibly unreleased) "
                               "updates to the package.\n"),
                       uri.c_str());
           break;

  So when running "apt-get source SOMEPACKAGE" I am sometimes warned to
  use "bzr branch" instead.

  Sometimes I am warned to use "git clone" or "svn checkout", but I
  can't find the code for this in the apt package; maybe it is located
  elsewhere?

  At any rate, I was recently advised that for packages stored in git
  repositories, I should (sometimes) use "git-buildpackage" instead of
  "debuild binary" or "dpkg-buildpackage" to build from source.

  At the risk of making Ubuntu dangerously user-friendly, I suggest that
  the same code that warns to check out from a repository should also
  advise that non-standard build tools may be needed, or at least point
  to a documentation page somewhere that lists the various
  possibilities.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/849423/+subscriptions




More information about the foundations-bugs mailing list