test-bug-632221-cross-dependency-satisfaction 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  1. #!/bin/sh
  2. set -e
  3. TESTDIR=$(readlink -f $(dirname $0))
  4. . $TESTDIR/framework
  5. setupenvironment
  6. configarchitecture 'amd64' 'armel'
  7. insertinstalledpackage 'build-essential' 'all' '11.5' 'Multi-Arch: foreign'
  8. insertpackage 'unstable' 'doxygen' 'amd64,armel' '1.0' 'Multi-Arch: foreign'
  9. insertpackage 'unstable' 'libc6' 'amd64,armel' '1.0' 'Multi-Arch: same'
  10. insertpackage 'unstable' 'libc6-dev' 'amd64,armel' '1.0' 'Depends: libc6
  11. Multi-Arch: same'
  12. insertpackage 'unstable' 'libfwibble1' 'amd64,armel' '1.0' 'Depends: libc6
  13. Multi-Arch: same'
  14. insertpackage 'unstable' 'libfwibble-dev' 'amd64,armel' '1.0' 'Depends: libfwibble1'
  15. insertpackage 'unstable' 'cool' 'amd64,armel' '1.0' 'Multi-Arch: allowed'
  16. insertpackage 'unstable' 'amdboot' 'amd64' '1.0'
  17. insertpackage 'unstable' 'foreigner' 'amd64,armel' '1.0' 'Multi-Arch: foreign'
  18. insertpackage 'unstable' 'arm-stuff' 'armel' '1.0'
  19. insertpackage 'unstable' 'linux-stuff' 'amd64,armel' '1.0'
  20. insertsource 'unstable' 'apt' 'any' '0.8.15' 'Build-Depends: doxygen, libc6-dev, libc6-dev:native, cool:any, amdboot:amd64, foreigner, libfwibble-dev, arm-stuff [any-armel] | linux-stuff [ linux-any]'
  21. insertsource 'unstable' 'forbidden-none' 'any' '1' 'Build-Depends: amdboot:any'
  22. insertsource 'unstable' 'forbidden-same' 'any' '1' 'Build-Depends: libc6:any'
  23. insertsource 'unstable' 'forbidden-foreign' 'any' '1' 'Build-Depends: doxygen:any'
  24. insertpackage 'unstable' 'specific' 'amd64' '1.0' 'Depends: libc6:amd64'
  25. insertpackage 'unstable' 'specific' 'armel' '1.0' 'Depends: libc6:armel'
  26. insertsource 'unstable' 'source-specific-amd64' 'amd64' '1' 'Build-Depends: specific:amd64'
  27. insertsource 'unstable' 'source-specific-armel' 'armel' '1' 'Build-Depends: specific:armel'
  28. setupaptarchive
  29. testequal "Reading package lists...
  30. Building dependency tree...
  31. E: Build-Depends dependency for forbidden-none can't be satisfied because amdboot:any is not allowed on 'Multi-Arch: none' packages" aptget build-dep forbidden-none -s -a armel
  32. testequal "Reading package lists...
  33. Building dependency tree...
  34. E: Build-Depends dependency for forbidden-same can't be satisfied because libc6:any is not allowed on 'Multi-Arch: same' packages" aptget build-dep forbidden-same -s -a armel
  35. testequal "Reading package lists...
  36. Building dependency tree...
  37. E: Build-Depends dependency for forbidden-foreign can't be satisfied because doxygen:any is not allowed on 'Multi-Arch: foreign' packages" aptget build-dep forbidden-foreign -s -a armel
  38. testequal 'Reading package lists...
  39. Building dependency tree...
  40. The following NEW packages will be installed:
  41. libc6 specific
  42. 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
  43. Inst libc6 (1.0 unstable [amd64])
  44. Inst specific (1.0 unstable [amd64])
  45. Conf libc6 (1.0 unstable [amd64])
  46. Conf specific (1.0 unstable [amd64])' aptget build-dep source-specific-amd64 -s
  47. testequal 'Reading package lists...
  48. Building dependency tree...
  49. The following NEW packages will be installed:
  50. libc6 specific
  51. 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
  52. Inst libc6 (1.0 unstable [amd64])
  53. Inst specific (1.0 unstable [amd64])
  54. Conf libc6 (1.0 unstable [amd64])
  55. Conf specific (1.0 unstable [amd64])' aptget build-dep source-specific-amd64 -s -a armel
  56. testequal 'Reading package lists...
  57. Building dependency tree...
  58. The following NEW packages will be installed:
  59. libc6:armel specific:armel
  60. 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
  61. Inst libc6:armel (1.0 unstable [armel])
  62. Inst specific:armel (1.0 unstable [armel])
  63. Conf libc6:armel (1.0 unstable [armel])
  64. Conf specific:armel (1.0 unstable [armel])' aptget build-dep source-specific-armel -s
  65. testequal 'Reading package lists...
  66. Building dependency tree...
  67. The following NEW packages will be installed:
  68. libc6:armel specific:armel
  69. 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
  70. Inst libc6:armel (1.0 unstable [armel])
  71. Inst specific:armel (1.0 unstable [armel])
  72. Conf libc6:armel (1.0 unstable [armel])
  73. Conf specific:armel (1.0 unstable [armel])' aptget build-dep source-specific-armel -s -a armel
  74. testequal 'Reading package lists...
  75. Building dependency tree...
  76. The following NEW packages will be installed:
  77. amdboot cool doxygen foreigner libc6 libc6-dev libfwibble-dev libfwibble1
  78. linux-stuff
  79. 0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
  80. Inst amdboot (1.0 unstable [amd64])
  81. Inst cool (1.0 unstable [amd64])
  82. Inst doxygen (1.0 unstable [amd64])
  83. Inst foreigner (1.0 unstable [amd64])
  84. Inst libc6 (1.0 unstable [amd64])
  85. Inst libc6-dev (1.0 unstable [amd64])
  86. Inst libfwibble1 (1.0 unstable [amd64])
  87. Inst libfwibble-dev (1.0 unstable [amd64])
  88. Inst linux-stuff (1.0 unstable [amd64])
  89. Conf amdboot (1.0 unstable [amd64])
  90. Conf cool (1.0 unstable [amd64])
  91. Conf doxygen (1.0 unstable [amd64])
  92. Conf foreigner (1.0 unstable [amd64])
  93. Conf libc6 (1.0 unstable [amd64])
  94. Conf libc6-dev (1.0 unstable [amd64])
  95. Conf libfwibble1 (1.0 unstable [amd64])
  96. Conf libfwibble-dev (1.0 unstable [amd64])
  97. Conf linux-stuff (1.0 unstable [amd64])' aptget build-dep apt -s
  98. testequal 'Reading package lists...
  99. Building dependency tree...
  100. The following NEW packages will be installed:
  101. amdboot arm-stuff:armel cool doxygen foreigner libc6 libc6:armel libc6-dev
  102. libc6-dev:armel libfwibble-dev:armel libfwibble1:armel
  103. 0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
  104. Inst amdboot (1.0 unstable [amd64])
  105. Inst arm-stuff:armel (1.0 unstable [armel])
  106. Inst cool (1.0 unstable [amd64])
  107. Inst doxygen (1.0 unstable [amd64])
  108. Inst foreigner (1.0 unstable [amd64])
  109. Inst libc6 (1.0 unstable [amd64])
  110. Inst libc6:armel (1.0 unstable [armel])
  111. Inst libc6-dev (1.0 unstable [amd64])
  112. Inst libc6-dev:armel (1.0 unstable [armel])
  113. Inst libfwibble1:armel (1.0 unstable [armel])
  114. Inst libfwibble-dev:armel (1.0 unstable [armel])
  115. Conf amdboot (1.0 unstable [amd64])
  116. Conf arm-stuff:armel (1.0 unstable [armel])
  117. Conf cool (1.0 unstable [amd64])
  118. Conf doxygen (1.0 unstable [amd64])
  119. Conf foreigner (1.0 unstable [amd64])
  120. Conf libc6 (1.0 unstable [amd64])
  121. Conf libc6:armel (1.0 unstable [armel])
  122. Conf libc6-dev (1.0 unstable [amd64])
  123. Conf libc6-dev:armel (1.0 unstable [armel])
  124. Conf libfwibble1:armel (1.0 unstable [armel])
  125. Conf libfwibble-dev:armel (1.0 unstable [armel])' aptget build-dep apt -s -a armel
  126. configarchitecture 'armel' 'amd64'
  127. testequal 'Reading package lists...
  128. Building dependency tree...
  129. The following NEW packages will be installed:
  130. amdboot:amd64 arm-stuff cool doxygen foreigner libc6 libc6-dev
  131. libfwibble-dev libfwibble1
  132. 0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
  133. Inst amdboot:amd64 (1.0 unstable [amd64])
  134. Inst arm-stuff (1.0 unstable [armel])
  135. Inst cool (1.0 unstable [armel])
  136. Inst doxygen (1.0 unstable [armel])
  137. Inst foreigner (1.0 unstable [armel])
  138. Inst libc6 (1.0 unstable [armel])
  139. Inst libc6-dev (1.0 unstable [armel])
  140. Inst libfwibble1 (1.0 unstable [armel])
  141. Inst libfwibble-dev (1.0 unstable [armel])
  142. Conf amdboot:amd64 (1.0 unstable [amd64])
  143. Conf arm-stuff (1.0 unstable [armel])
  144. Conf cool (1.0 unstable [armel])
  145. Conf doxygen (1.0 unstable [armel])
  146. Conf foreigner (1.0 unstable [armel])
  147. Conf libc6 (1.0 unstable [armel])
  148. Conf libc6-dev (1.0 unstable [armel])
  149. Conf libfwibble1 (1.0 unstable [armel])
  150. Conf libfwibble-dev (1.0 unstable [armel])' aptget build-dep apt -s
  151. testequal 'Reading package lists...
  152. Building dependency tree...
  153. The following NEW packages will be installed:
  154. amdboot:amd64 cool doxygen foreigner libc6:amd64 libc6 libc6-dev:amd64
  155. libc6-dev libfwibble-dev:amd64 libfwibble1:amd64 linux-stuff:amd64
  156. 0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
  157. Inst amdboot:amd64 (1.0 unstable [amd64])
  158. Inst cool (1.0 unstable [armel])
  159. Inst doxygen (1.0 unstable [armel])
  160. Inst foreigner (1.0 unstable [armel])
  161. Inst libc6:amd64 (1.0 unstable [amd64])
  162. Inst libc6 (1.0 unstable [armel])
  163. Inst libc6-dev:amd64 (1.0 unstable [amd64])
  164. Inst libc6-dev (1.0 unstable [armel])
  165. Inst libfwibble1:amd64 (1.0 unstable [amd64])
  166. Inst libfwibble-dev:amd64 (1.0 unstable [amd64])
  167. Inst linux-stuff:amd64 (1.0 unstable [amd64])
  168. Conf amdboot:amd64 (1.0 unstable [amd64])
  169. Conf cool (1.0 unstable [armel])
  170. Conf doxygen (1.0 unstable [armel])
  171. Conf foreigner (1.0 unstable [armel])
  172. Conf libc6:amd64 (1.0 unstable [amd64])
  173. Conf libc6 (1.0 unstable [armel])
  174. Conf libc6-dev:amd64 (1.0 unstable [amd64])
  175. Conf libc6-dev (1.0 unstable [armel])
  176. Conf libfwibble1:amd64 (1.0 unstable [amd64])
  177. Conf libfwibble-dev:amd64 (1.0 unstable [amd64])
  178. Conf linux-stuff:amd64 (1.0 unstable [amd64])' aptget build-dep apt -s -a amd64
  179. configarchitecture 'amd64' 'armel'
  180. insertinstalledpackage 'cool' 'amd64' '0.5'
  181. insertinstalledpackage 'foreigner' 'armel' '0.5'
  182. testequal 'Reading package lists...
  183. Building dependency tree...
  184. The following NEW packages will be installed:
  185. amdboot doxygen libc6 libc6-dev libfwibble-dev libfwibble1 linux-stuff
  186. 0 upgraded, 7 newly installed, 0 to remove and 2 not upgraded.
  187. Inst amdboot (1.0 unstable [amd64])
  188. Inst doxygen (1.0 unstable [amd64])
  189. Inst libc6 (1.0 unstable [amd64])
  190. Inst libc6-dev (1.0 unstable [amd64])
  191. Inst libfwibble1 (1.0 unstable [amd64])
  192. Inst libfwibble-dev (1.0 unstable [amd64])
  193. Inst linux-stuff (1.0 unstable [amd64])
  194. Conf amdboot (1.0 unstable [amd64])
  195. Conf doxygen (1.0 unstable [amd64])
  196. Conf libc6 (1.0 unstable [amd64])
  197. Conf libc6-dev (1.0 unstable [amd64])
  198. Conf libfwibble1 (1.0 unstable [amd64])
  199. Conf libfwibble-dev (1.0 unstable [amd64])
  200. Conf linux-stuff (1.0 unstable [amd64])' aptget build-dep apt -s
  201. testequal 'Reading package lists...
  202. Building dependency tree...
  203. The following NEW packages will be installed:
  204. amdboot arm-stuff:armel doxygen libc6 libc6:armel libc6-dev libc6-dev:armel
  205. libfwibble-dev:armel libfwibble1:armel
  206. 0 upgraded, 9 newly installed, 0 to remove and 2 not upgraded.
  207. Inst amdboot (1.0 unstable [amd64])
  208. Inst arm-stuff:armel (1.0 unstable [armel])
  209. Inst doxygen (1.0 unstable [amd64])
  210. Inst libc6 (1.0 unstable [amd64])
  211. Inst libc6:armel (1.0 unstable [armel])
  212. Inst libc6-dev (1.0 unstable [amd64])
  213. Inst libc6-dev:armel (1.0 unstable [armel])
  214. Inst libfwibble1:armel (1.0 unstable [armel])
  215. Inst libfwibble-dev:armel (1.0 unstable [armel])
  216. Conf amdboot (1.0 unstable [amd64])
  217. Conf arm-stuff:armel (1.0 unstable [armel])
  218. Conf doxygen (1.0 unstable [amd64])
  219. Conf libc6 (1.0 unstable [amd64])
  220. Conf libc6:armel (1.0 unstable [armel])
  221. Conf libc6-dev (1.0 unstable [amd64])
  222. Conf libc6-dev:armel (1.0 unstable [armel])
  223. Conf libfwibble1:armel (1.0 unstable [armel])
  224. Conf libfwibble-dev:armel (1.0 unstable [armel])' aptget build-dep apt -s -a armel
  225. configarchitecture 'armel' 'amd64'
  226. # cool 0.5 is not M-A: allowed, so amd64 is not acceptable
  227. testequal 'Reading package lists...
  228. Building dependency tree...
  229. The following packages will be REMOVED:
  230. cool:amd64
  231. The following NEW packages will be installed:
  232. amdboot:amd64 arm-stuff cool doxygen libc6 libc6-dev libfwibble-dev
  233. libfwibble1
  234. 0 upgraded, 8 newly installed, 1 to remove and 1 not upgraded.
  235. Remv cool:amd64 [0.5]
  236. Inst amdboot:amd64 (1.0 unstable [amd64])
  237. Inst arm-stuff (1.0 unstable [armel])
  238. Inst cool (1.0 unstable [armel])
  239. Inst doxygen (1.0 unstable [armel])
  240. Inst libc6 (1.0 unstable [armel])
  241. Inst libc6-dev (1.0 unstable [armel])
  242. Inst libfwibble1 (1.0 unstable [armel])
  243. Inst libfwibble-dev (1.0 unstable [armel])
  244. Conf amdboot:amd64 (1.0 unstable [amd64])
  245. Conf arm-stuff (1.0 unstable [armel])
  246. Conf cool (1.0 unstable [armel])
  247. Conf doxygen (1.0 unstable [armel])
  248. Conf libc6 (1.0 unstable [armel])
  249. Conf libc6-dev (1.0 unstable [armel])
  250. Conf libfwibble1 (1.0 unstable [armel])
  251. Conf libfwibble-dev (1.0 unstable [armel])' aptget build-dep apt -s
  252. testequal 'Reading package lists...
  253. Building dependency tree...
  254. The following NEW packages will be installed:
  255. amdboot:amd64 doxygen libc6:amd64 libc6 libc6-dev:amd64 libc6-dev
  256. libfwibble-dev:amd64 libfwibble1:amd64 linux-stuff:amd64
  257. 0 upgraded, 9 newly installed, 0 to remove and 2 not upgraded.
  258. Inst amdboot:amd64 (1.0 unstable [amd64])
  259. Inst doxygen (1.0 unstable [armel])
  260. Inst libc6:amd64 (1.0 unstable [amd64])
  261. Inst libc6 (1.0 unstable [armel])
  262. Inst libc6-dev:amd64 (1.0 unstable [amd64])
  263. Inst libc6-dev (1.0 unstable [armel])
  264. Inst libfwibble1:amd64 (1.0 unstable [amd64])
  265. Inst libfwibble-dev:amd64 (1.0 unstable [amd64])
  266. Inst linux-stuff:amd64 (1.0 unstable [amd64])
  267. Conf amdboot:amd64 (1.0 unstable [amd64])
  268. Conf doxygen (1.0 unstable [armel])
  269. Conf libc6:amd64 (1.0 unstable [amd64])
  270. Conf libc6 (1.0 unstable [armel])
  271. Conf libc6-dev:amd64 (1.0 unstable [amd64])
  272. Conf libc6-dev (1.0 unstable [armel])
  273. Conf libfwibble1:amd64 (1.0 unstable [amd64])
  274. Conf libfwibble-dev:amd64 (1.0 unstable [amd64])
  275. Conf linux-stuff:amd64 (1.0 unstable [amd64])' aptget build-dep apt -s -a amd64