I'm trying to understand how these arguments actually work, keeping my
notes here. Probably not interesting to anyone else, but maybe for me
for future reference.

unbuilt-tree
------------
--unbuilt-tree . --binary ../testpkg_1_all.deb → "build needed for binaries", 
builds package, installs adt built deb, ignores provided deb
-B .// ../testpkg_1_all.deb → no package build/build deps, fails to find testpkg

--binary ../testpkg_1_all.deb --unbuilt-tree . → build deps, builds package, 
installs built pkg, NOT given --binary
-B --binary ../testpkg_1_all.deb --unbuilt-tree . → no build, installs local 
testpkg

→ uses binaries built from the source by default (change with -B)
→ binaries for tests must come before source arg

source
------
../testpkg_1_all.deb ../testpkg_1.dsc → builds package, installs adt built deb
-B ../testpkg_1_all.deb ../testpkg_1.dsc → no build, installs provided deb
-B ../testpkg_1.dsc ../testpkg_1_all.deb → does not find testpkg.deb

→ equivalent to --unbuilt-tree, just with a .dsc

built-tree
----------
../testpkg_1_all.deb ./ → no build, installs local testpkg, pass

→ no binaries built from the source by default 
→ binaries for tests must come before source arg

--source/--unbuilt-tree that get built, and --binary arguments cumulate
debs via binaries.register(), and binaries.publish() then enables those.
Thus --binary has to come before the source argument that has the tests
to work, and specifying --binary with a built source makes no sense
unless -B is being used.

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

Title:
  adt-run fulfills dependencies with --built-tree contrary to the
  manpage

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to