qi.html 62 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- This user guide is for Qi (version 2.4-rc3,
  4. 04 Feb 2021), which is a simple but well-integrated package manager.
  5. Copyright (C) 2019-2021 Matias Andres Fonzo, Santiago del Estero,
  6. Argentina.
  7. Permission is granted to copy, distribute and/or modify this document
  8. under the terms of the GNU Free Documentation License, Version 1.3 or
  9. any later version published by the Free Software Foundation; with no
  10. Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
  11. Texts. A copy of the license is included in the section entitled
  12. "GNU Free Documentation License". -->
  13. <!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
  14. <head>
  15. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  16. <title>Qi user guide</title>
  17. <meta name="description" content="Qi user guide">
  18. <meta name="keywords" content="Qi user guide">
  19. <meta name="resource-type" content="document">
  20. <meta name="distribution" content="global">
  21. <meta name="Generator" content="makeinfo">
  22. <link href="#Top" rel="start" title="Top">
  23. <link href="#Index" rel="index" title="Index">
  24. <link href="#SEC_Contents" rel="contents" title="Table of Contents">
  25. <link href="dir.html#Top" rel="up" title="(dir)">
  26. <style type="text/css">
  27. <!--
  28. a.summary-letter {text-decoration: none}
  29. blockquote.indentedblock {margin-right: 0em}
  30. blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
  31. blockquote.smallquotation {font-size: smaller}
  32. div.display {margin-left: 3.2em}
  33. div.example {margin-left: 3.2em}
  34. div.lisp {margin-left: 3.2em}
  35. div.smalldisplay {margin-left: 3.2em}
  36. div.smallexample {margin-left: 3.2em}
  37. div.smalllisp {margin-left: 3.2em}
  38. kbd {font-style: oblique}
  39. pre.display {font-family: inherit}
  40. pre.format {font-family: inherit}
  41. pre.menu-comment {font-family: serif}
  42. pre.menu-preformatted {font-family: serif}
  43. pre.smalldisplay {font-family: inherit; font-size: smaller}
  44. pre.smallexample {font-size: smaller}
  45. pre.smallformat {font-family: inherit; font-size: smaller}
  46. pre.smalllisp {font-size: smaller}
  47. span.nolinebreak {white-space: nowrap}
  48. span.roman {font-family: initial; font-weight: normal}
  49. span.sansserif {font-family: sans-serif; font-weight: normal}
  50. ul.no-bullet {list-style: none}
  51. -->
  52. </style>
  53. </head>
  54. <body lang="en">
  55. <h1 class="settitle" align="center">Qi user guide</h1>
  56. <a name="SEC_Contents"></a>
  57. <h2 class="contents-heading">Table of Contents</h2>
  58. <div class="contents">
  59. <ul class="no-bullet">
  60. <li><a name="toc-Introduction-to-Qi-1" href="#Introduction-to-Qi">1 Introduction to Qi</a></li>
  61. <li><a name="toc-Invoking-qi-1" href="#Invoking-qi">2 Invoking qi</a></li>
  62. <li><a name="toc-The-qirc-file-1" href="#The-qirc-file">3 The qirc file</a></li>
  63. <li><a name="toc-Packages-1" href="#Packages">4 Packages</a>
  64. <ul class="no-bullet">
  65. <li><a name="toc-Package-conflicts" href="#Package-conflicts">4.1 Package conflicts</a></li>
  66. <li><a name="toc-Installing-packages" href="#Installing-packages">4.2 Installing packages</a></li>
  67. <li><a name="toc-Removing-packages" href="#Removing-packages">4.3 Removing packages</a></li>
  68. <li><a name="toc-Upgrading-packages" href="#Upgrading-packages">4.4 Upgrading packages</a>
  69. <ul class="no-bullet">
  70. <li><a name="toc-Package-blacklist" href="#Package-blacklist">4.4.1 Package blacklist</a></li>
  71. </ul></li>
  72. </ul></li>
  73. <li><a name="toc-Recipes-1" href="#Recipes">5 Recipes</a>
  74. <ul class="no-bullet">
  75. <li><a name="toc-Variables" href="#Variables">5.1 Variables</a></li>
  76. <li><a name="toc-Special-variables" href="#Special-variables">5.2 Special variables</a></li>
  77. <li><a name="toc-Writing-recipes" href="#Writing-recipes">5.3 Writing recipes</a></li>
  78. <li><a name="toc-Building-packages" href="#Building-packages">5.4 Building packages</a></li>
  79. <li><a name="toc-Variables-from-the-environment" href="#Variables-from-the-environment">5.5 Variables from the environment</a></li>
  80. <li><a name="toc-The-meta-file" href="#The-meta-file">5.6 The meta file</a></li>
  81. </ul></li>
  82. <li><a name="toc-Order-files-1" href="#Order-files">6 Order files</a></li>
  83. <li><a name="toc-Creating-packages-1" href="#Creating-packages">7 Creating packages</a></li>
  84. <li><a name="toc-Examining-packages-1" href="#Examining-packages">8 Examining packages</a></li>
  85. <li><a name="toc-Qi-exit-status-1" href="#Qi-exit-status">9 Qi exit status</a></li>
  86. <li><a name="toc-Index-1" href="#Index">Index</a></li>
  87. </ul>
  88. </div>
  89. <a name="Top"></a>
  90. <div class="header">
  91. <p>
  92. Next: <a href="#Introduction-to-Qi" accesskey="n" rel="next">Introduction to Qi</a>, Up: <a href="dir.html#Top" accesskey="u" rel="up">(dir)</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
  93. </div>
  94. <a name="SEC_Top"></a>
  95. <p>This user guide is for Qi (version 2.4-rc3,
  96. 04 Feb 2021).
  97. </p>
  98. <table class="menu" border="0" cellspacing="0">
  99. <tr><td align="left" valign="top">&bull; <a href="#Introduction-to-Qi" accesskey="1">Introduction to Qi</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Description and features of qi
  100. </td></tr>
  101. <tr><td align="left" valign="top">&bull; <a href="#Invoking-qi" accesskey="2">Invoking qi</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Command-line options
  102. </td></tr>
  103. <tr><td align="left" valign="top">&bull; <a href="#The-qirc-file" accesskey="3">The qirc file</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Configuration file
  104. </td></tr>
  105. <tr><td align="left" valign="top">&bull; <a href="#Packages" accesskey="4">Packages</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Managing packages
  106. </td></tr>
  107. <tr><td align="left" valign="top">&bull; <a href="#Recipes" accesskey="5">Recipes</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Building packages
  108. </td></tr>
  109. <tr><td align="left" valign="top">&bull; <a href="#Order-files" accesskey="6">Order files</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Handling build order
  110. </td></tr>
  111. <tr><td align="left" valign="top">&bull; <a href="#Creating-packages" accesskey="7">Creating packages</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Making Qi packages
  112. </td></tr>
  113. <tr><td align="left" valign="top">&bull; <a href="#Examining-packages" accesskey="8">Examining packages</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Debugging purposes
  114. </td></tr>
  115. <tr><td align="left" valign="top">&bull; <a href="#Qi-exit-status" accesskey="9">Qi exit status</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Exit codes
  116. </td></tr>
  117. <tr><td align="left" valign="top">&bull; <a href="#Index">Index</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">
  118. </td></tr>
  119. </table>
  120. <br>
  121. <p>Copyright (C) 2019-2021 Matias Fonzo.
  122. </p>
  123. <p>Qi&rsquo;s home page can be found at <a href="https://www.dragora.org">https://www.dragora.org</a>.
  124. Send&nbsp;bug&nbsp;reports&nbsp;or&nbsp;suggestions&nbsp;to&nbsp;<a href="mailto:dragora-users@nongnu.org"><span class="nolinebreak">dragora-users</span>@nongnu.org</a>.<!-- /@w -->
  125. </p>
  126. <hr>
  127. <a name="Introduction-to-Qi"></a>
  128. <div class="header">
  129. <p>
  130. Next: <a href="#Invoking-qi" accesskey="n" rel="next">Invoking qi</a>, Previous: <a href="#Top" accesskey="p" rel="prev">Top</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
  131. </div>
  132. <a name="Introduction-to-Qi-1"></a>
  133. <h2 class="chapter">1 Introduction to Qi</h2>
  134. <a name="index-introduction-to-qi"></a>
  135. <p>Qi is a simple but well-integrated package manager. It can create,
  136. install, remove, and upgrade software packages. Qi produces binary
  137. packages using recipes, which are files containing specific instructions
  138. to build each package from source. Qi can manage multiple packages
  139. under a single directory hierarchy. This method allows to maintain a set
  140. of packages and multiple versions of them. This means that Qi could be
  141. used as the main package manager or complement the existing one.
  142. </p>
  143. <p>Qi offers a friendly command line interface, a global configuration
  144. file, a simple recipe layout to deploy software packages; also works
  145. with binary packages in parallel, speeding up installations and packages
  146. in production. The format used for packages is a simplified but safe
  147. POSIX pax archive compressed with lzip.
  148. </p>
  149. <p>Qi is a modern (POSIX-compliant) shell script released under the
  150. terms of the GNU General Public License. There are only two major
  151. dependencies for the magic: graft(1) and tarlz(1), the rest is expected
  152. to be found in any Unix-like system.
  153. </p>
  154. <hr>
  155. <a name="Invoking-qi"></a>
  156. <div class="header">
  157. <p>
  158. Next: <a href="#The-qirc-file" accesskey="n" rel="next">The qirc file</a>, Previous: <a href="#Introduction-to-Qi" accesskey="p" rel="prev">Introduction to Qi</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
  159. </div>
  160. <a name="Invoking-qi-1"></a>
  161. <h2 class="chapter">2 Invoking qi</h2>
  162. <a name="index-invocation"></a>
  163. <p>This chapter describes the synopsis for invoking Qi.
  164. </p>
  165. <div class="example">
  166. <pre class="example">Usage: qi COMMAND [<var>OPTION</var>...] [<var>FILE</var>]...
  167. </pre></div>
  168. <p>One mandatory command specifies the operation that &lsquo;<samp>qi</samp>&rsquo; should
  169. perform, options are meant to detail how this operation should be
  170. performed during or after the process.
  171. </p>
  172. <p>Qi supports the following commands:
  173. </p>
  174. <dl compact="compact">
  175. <dt><code>warn</code></dt>
  176. <dd><p>Warn about files that will be installed.
  177. </p>
  178. </dd>
  179. <dt><code>install</code></dt>
  180. <dd><p>Install packages.
  181. </p>
  182. </dd>
  183. <dt><code>remove</code></dt>
  184. <dd><p>Remove packages.
  185. </p>
  186. </dd>
  187. <dt><code>upgrade</code></dt>
  188. <dd><p>Upgrade packages.
  189. </p>
  190. </dd>
  191. <dt><code>extract</code></dt>
  192. <dd><p>Extract packages for debugging purposes.
  193. </p>
  194. </dd>
  195. <dt><code>create</code></dt>
  196. <dd><p>Create a .tlz package from directory.
  197. </p>
  198. </dd>
  199. <dt><code>build</code></dt>
  200. <dd><p>Build packages using recipe names.
  201. </p>
  202. </dd>
  203. <dt><code>order</code></dt>
  204. <dd><p>Resolve build order through .order files
  205. </p></dd>
  206. </dl>
  207. <p>Options when installing, removing, or upgrading software packages:
  208. </p>
  209. <dl compact="compact">
  210. <dt><code>-f</code></dt>
  211. <dt><code>--force</code></dt>
  212. <dd><p>Force upgrade of pre-existing packages.
  213. </p>
  214. </dd>
  215. <dt><code>-k</code></dt>
  216. <dt><code>--keep</code></dt>
  217. <dd><p>Keep directories when build/remove/upgrade.
  218. </p>
  219. <p>Keep (don&rsquo;t delete) the package directory when using remove/upgrade command.
  220. </p>
  221. <p>This will also try to preserve the directories &lsquo;<samp>${srcdir}</samp>&rsquo; and
  222. &lsquo;<samp>${destdir}</samp>&rsquo; when using build command. Its effect is available in
  223. recipes as &lsquo;<samp>${keep_srcdir}</samp>&rsquo; and &lsquo;<samp>${keep_destdir}</samp>&rsquo;. See
  224. <a href="#Recipes">Special variables</a> for details.
  225. </p>
  226. </dd>
  227. <dt><code>-p</code></dt>
  228. <dt><code>--prune</code></dt>
  229. <dd><p>Prune conflicts.
  230. </p>
  231. </dd>
  232. <dt><code>-P</code></dt>
  233. <dt><code>--packagedir=&lt;dir&gt;</code></dt>
  234. <dd><p>Set directory for package installations.
  235. </p>
  236. </dd>
  237. <dt><code>-t</code></dt>
  238. <dt><code>--targetdir=&lt;dir&gt;</code></dt>
  239. <dd><p>Set target directory for symbolic links.
  240. </p>
  241. </dd>
  242. <dt><code>-r</code></dt>
  243. <dt><code>--rootdir=&lt;dir&gt;</code></dt>
  244. <dd><p>Use the fully qualified named directory as the root directory for all qi
  245. operations.
  246. </p>
  247. <p>Note: the target directory and the package directory will be
  248. relative to the specified directory, excepting the graft log file.
  249. </p></dd>
  250. </dl>
  251. <p>Options when building software packages using recipes:
  252. </p>
  253. <dl compact="compact">
  254. <dt><code>-a</code></dt>
  255. <dt><code>--architecture</code></dt>
  256. <dd><p>Set architecture name for the package.
  257. </p>
  258. </dd>
  259. <dt><code>-j</code></dt>
  260. <dt><code>--jobs</code></dt>
  261. <dd><p>Parallel jobs for the compiler.
  262. </p>
  263. <p>This option sets the variable &lsquo;<samp>${jobs}</samp>&rsquo;. If not specified, default
  264. sets to 1.
  265. </p>
  266. </dd>
  267. <dt><code>-S</code></dt>
  268. <dt><code>--skip-questions</code></dt>
  269. <dd><p>Skip questions on completed recipes.
  270. </p>
  271. </dd>
  272. <dt><code>-1</code></dt>
  273. <dt><code>--increment</code></dt>
  274. <dd><p>Increment release number (&lsquo;<samp>${release}</samp>&rsquo; + 1).
  275. </p>
  276. <p>The effect of this option will be omitted if &ndash;no-package is being used.
  277. </p>
  278. </dd>
  279. <dt><code>-n</code></dt>
  280. <dt><code>--no-package</code></dt>
  281. <dd><p>Do not create a .tlz package.
  282. </p>
  283. </dd>
  284. <dt><code>-i</code></dt>
  285. <dt><code>--install</code></dt>
  286. <dd><p>Install package after the build.
  287. </p>
  288. </dd>
  289. <dt><code>-u</code></dt>
  290. <dt><code>--upgrade</code></dt>
  291. <dd><p>Upgrade package after the build.
  292. </p>
  293. </dd>
  294. <dt><code>-o</code></dt>
  295. <dt><code>--outdir=&lt;dir&gt;</code></dt>
  296. <dd><p>Where the packages produced will be written.
  297. </p>
  298. <p>This option sets the variable &lsquo;<samp>${outdir}</samp>&rsquo;.
  299. </p>
  300. </dd>
  301. <dt><code>-w</code></dt>
  302. <dt><code>--worktree=&lt;dir&gt;</code></dt>
  303. <dd><p>Where archives, patches, recipes are expected.
  304. </p>
  305. <p>This option sets the variable &lsquo;<samp>${worktree}</samp>&rsquo;.
  306. </p>
  307. </dd>
  308. <dt><code>-s</code></dt>
  309. <dt><code>--sourcedir=&lt;dir&gt;</code></dt>
  310. <dd><p>Where compressed sources will be found.
  311. </p>
  312. <p>This option sets the variable &lsquo;<samp>${tardir}</samp>&rsquo;.
  313. </p></dd>
  314. </dl>
  315. <p>Other options:
  316. </p>
  317. <dl compact="compact">
  318. <dt><code>-v</code></dt>
  319. <dt><code>--verbose</code></dt>
  320. <dd><p>Be verbose (an extra -v gives more).
  321. </p>
  322. <p>It sets the verbosity level, default sets to 0.
  323. </p>
  324. <p>The value 1 is used for more verbosity while the value 2 is too detailed.
  325. Although at the moment it is limited to graft(1) verbosity.
  326. </p>
  327. </dd>
  328. <dt><code>-N</code></dt>
  329. <dt><code>--no-rc</code></dt>
  330. <dd><p>Do not read the configuration file.
  331. </p>
  332. <p>This will ignore reading the qirc file.
  333. </p>
  334. </dd>
  335. <dt><code>-L</code></dt>
  336. <dt><code>--show-location</code></dt>
  337. <dd><p>Print default directory locations and exit.
  338. </p>
  339. <p>This will print the target directory, package directory, working tree,
  340. the directory for sources, and the output directory for the packages
  341. produced.
  342. </p>
  343. </dd>
  344. <dt><code>-h</code></dt>
  345. <dt><code>--help</code></dt>
  346. <dd><p>Display the usage and exit.
  347. </p>
  348. </dd>
  349. <dt><code>-V</code></dt>
  350. <dt><code>--version</code></dt>
  351. <dd>
  352. <p>This will print the (short) version information and then exit.
  353. </p>
  354. <p>The same can be achieved if Qi is invoked as &lsquo;<samp>qi version</samp>&rsquo;.
  355. </p></dd>
  356. </dl>
  357. <p>When FILE is -, qi can read from the standard input. See examples from
  358. the <a href="#Packages">Packages</a> section.
  359. </p>
  360. <p>Exit status: 0 for a normal exit, 1 for minor common errors (help usage,
  361. support not available, etc), 2 to indicate a command execution error;
  362. 3 for integrity check error on compressed files, 4 for empty, not
  363. regular, or expected files, 5 for empty or not defined variables,
  364. 6 when a package already exist, 10 for network manager errors.
  365. For more details, see the <a href="#Qi-exit-status">Qi exit status</a> section.
  366. </p>
  367. <hr>
  368. <a name="The-qirc-file"></a>
  369. <div class="header">
  370. <p>
  371. Next: <a href="#Packages" accesskey="n" rel="next">Packages</a>, Previous: <a href="#Invoking-qi" accesskey="p" rel="prev">Invoking qi</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
  372. </div>
  373. <a name="The-qirc-file-1"></a>
  374. <h2 class="chapter">3 The qirc file</h2>
  375. <a name="index-configuration-file"></a>
  376. <p>The global <samp>qirc</samp> file offers a way to define variables and tools
  377. (such as a download manager) for default use. This file is used by qi
  378. at runtime, e.g., to build, install, remove or upgrade packages.
  379. </p>
  380. <p>Variables and their possible values must be declared as any other
  381. variable in the shell.
  382. </p>
  383. <p>The command line options related to the package directory and target
  384. directory and some of the command line options used for the build command,
  385. have the power to override the values declared on <samp>qirc</samp>.
  386. See <a href="#Invoking-qi">Invoking qi</a>.
  387. </p>
  388. <p>The order in which qi looks for this file is:
  389. </p>
  390. <ol>
  391. <li> <code>${HOME}/.qirc</code>
  392. Effective user.
  393. </li><li> &lsquo;<samp>${sysconfdir}/qirc</samp>&rsquo;
  394. System-wide.
  395. </li></ol>
  396. <p>If you intend to run qi as effective user, the file
  397. &lsquo;<samp>${sysconfdir}/qirc</samp>&rsquo; could be copied to <code>${HOME}/.qirc</code>
  398. setting the paths for &lsquo;<samp>${packagedir}</samp>&rsquo; and &lsquo;<samp>${targetdir}</samp>&rsquo;
  399. according to the <code>$HOME</code>.
  400. </p>
  401. <hr>
  402. <a name="Packages"></a>
  403. <div class="header">
  404. <p>
  405. Next: <a href="#Recipes" accesskey="n" rel="next">Recipes</a>, Previous: <a href="#The-qirc-file" accesskey="p" rel="prev">The qirc file</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
  406. </div>
  407. <a name="Packages-1"></a>
  408. <h2 class="chapter">4 Packages</h2>
  409. <a name="index-managing-packages"></a>
  410. <p>A package is a suite of programs usually distributed in binary form
  411. which may also contain manual pages, documentation, or any other file
  412. associated to a specific software.
  413. </p>
  414. <p>The package format used by qi is a simplified POSIX pax archive
  415. compressed using lzip<a name="DOCF1" href="#FOOT1"><sup>1</sup></a>. The
  416. file extension for packages ends in &lsquo;<samp>.tlz</samp>&rsquo;.
  417. </p>
  418. <p>Both package installation and package de-installation are managed using
  419. two important (internal) variables: &lsquo;<samp>${packagedir}</samp>&rsquo; and
  420. &lsquo;<samp>${targetdir}</samp>&rsquo;, these values can be changed in the
  421. configuration file or via options.
  422. </p>
  423. <p>&lsquo;<samp>${packagedir}</samp>&rsquo; is a common directory tree where the package
  424. contents will be decompressed (will reside).
  425. </p>
  426. <p>&lsquo;<samp>${targetdir}</samp>&rsquo; is a target directory where the links will be
  427. made by graft(1) taking &lsquo;<samp>${packagedir}/package_name</samp>&rsquo; into account.
  428. </p>
  429. <p>Packages are installed in self-contained directory trees and symbolic
  430. links from a common area are made to the package files. This allows
  431. multiple versions of the same package to coexist on the same system.
  432. </p>
  433. <a name="Package-conflicts"></a>
  434. <h3 class="section">4.1 Package conflicts</h3>
  435. <a name="index-package-conflicts"></a>
  436. <p>All the links to install or remove a package are handled by graft(1).
  437. Since multiple packages can be installed or removed at the same time,
  438. certain conflicts may arise between the packages.
  439. </p>
  440. <p>graft<a name="DOCF2" href="#FOOT2"><sup>2</sup></a>
  441. defines a CONFLICT as one of the following conditions:
  442. </p>
  443. <ul>
  444. <li> If the package object is a directory and the target object exists but is
  445. not a directory.
  446. </li><li> If the package object is not a directory and the target object exists
  447. and is not a symbolic link.
  448. </li><li> If the package object is not a directory and the target object exists
  449. and is a symbolic link to something other than the package object.
  450. </li></ul>
  451. <p>The default behavior of qi for an incoming package is to ABORT if a
  452. conflict arises. When a package is going to be deleted, qi tells to
  453. graft(1) to remove those parts that are not in conflict, leaving the
  454. links to the belonging package. This behavior can be forced if the
  455. &ndash;prune option is given.
  456. </p>
  457. <a name="Installing-packages"></a>
  458. <h3 class="section">4.2 Installing packages</h3>
  459. <a name="index-package-installation"></a>
  460. <p>To install a single package, simply type:
  461. </p>
  462. <div class="example">
  463. <pre class="example">qi install coreutils_8.30_i586-1@tools.tlz
  464. </pre></div>
  465. <p>To install multiple packages at once, type:
  466. </p>
  467. <div class="example">
  468. <pre class="example">qi install gcc_8.3.0_i586-1@devel.tlz rafaela_2.2_i586-1@legacy.tlz ...
  469. </pre></div>
  470. <p>Warn about the files that will be linked:
  471. </p>
  472. <div class="example">
  473. <pre class="example">qi warn bash_5.0_i586-1@shells.tlz
  474. </pre></div>
  475. <p>This is to verify the content of a package before installing it.
  476. </p>
  477. <p>See the process of an installation:
  478. </p>
  479. <div class="example">
  480. <pre class="example">qi install --verbose mariana_3.0_i586-1@woman.tlz
  481. </pre></div>
  482. <p>A second &ndash;verbose or -v option gives more (very verbose).
  483. </p>
  484. <p>Installing package in a different location:
  485. </p>
  486. <div class="example">
  487. <pre class="example">qi install --rootdir=/media/floppy lzip_1.21_i586-1@compressors.tlz
  488. </pre></div>
  489. <p>Important: the &ndash;rootdir option assumes &lsquo;<samp>${targetdir}</samp>&rsquo; and
  490. &lsquo;<samp>${packagedir}</samp>&rsquo;. See the following example:
  491. </p>
  492. <div class="example">
  493. <pre class="example">qi install --rootdir=/home/selk lzip_1.21_i586-1@compressors.tlz
  494. </pre></div>
  495. <p>The content of &quot;lzip_1.21_i586-1@compressors.tlz&quot; will be decompressed
  496. into &lsquo;<samp>/home/selk/pkgs/lzip_1.21_i586-1@compressors</samp>&rsquo;.
  497. Assuming that the main binary for lzip is under
  498. &lsquo;<samp>/home/selk/pkgs/lzip_1.21_i586-1@compressors/usr/bin/</samp>&rsquo;
  499. the target for &quot;usr/bin&quot; will be created at &lsquo;<samp>/home/selk</samp>&rsquo;. Considering
  500. that you have exported the <code>PATH</code> as &lsquo;<samp>${HOME}/usr/bin</samp>&rsquo;, now the
  501. system is able to see the recent lzip command.
  502. </p>
  503. <p>Installing from a list of packages using standard input:
  504. </p>
  505. <div class="example">
  506. <pre class="example">qi install - &lt; PACKAGELIST.txt
  507. </pre></div>
  508. <p>Or in combination with another tool:
  509. </p><div class="example">
  510. <pre class="example">sort -u PACKAGELIST.txt | qi install -
  511. </pre></div>
  512. <p>The sort command will read and sorts the list of declared packages,
  513. while trying to have unique entries for each statement. The output
  514. produced is captured by Qi to install each package.
  515. </p>
  516. <p>An example of a list containing package names is:
  517. </p><div class="example">
  518. <pre class="example">/var/cache/qi/packages/amd64/tcl_8.6.9_amd64-1@devel.tlz
  519. /var/cache/qi/packages/amd64/tk_8.6.9.1_amd64-1@devel.tlz
  520. /var/cache/qi/packages/amd64/vala_0.42.3_amd64-1@devel.tlz
  521. </pre></div>
  522. <a name="Removing-packages"></a>
  523. <h3 class="section">4.3 Removing packages</h3>
  524. <a name="index-package-de_002dinstallation"></a>
  525. <p>To remove a package, simply type:
  526. </p>
  527. <div class="example">
  528. <pre class="example">qi remove xz_5.2.4_i586-1@compressors.tlz
  529. </pre></div>
  530. <p>Remove command will match the package name using &lsquo;<samp>${packagedir}</samp>&rsquo; as
  531. prefix. For example, if the value of &lsquo;<samp>${packagedir}</samp>&rsquo; has been
  532. set to /usr/pkg, this will be equal to:
  533. </p>
  534. <div class="example">
  535. <pre class="example">qi remove /usr/pkg/xz_5.2.4_i586-1@compressors
  536. </pre></div>
  537. <p>Detailed output:
  538. </p>
  539. <div class="example">
  540. <pre class="example">qi remove --verbose /usr/pkg/xz_5.2.4_i586-1@compressors
  541. </pre></div>
  542. <p>A second &ndash;verbose or -v option gives more (very verbose).
  543. </p>
  544. <p>By default the remove command does not preserve a package directory after
  545. removing its links from &lsquo;<samp>${targetdir}</samp>&rsquo;, but this behavior can be
  546. changed if the &ndash;keep option is passed:
  547. </p>
  548. <div class="example">
  549. <pre class="example">qi remove --keep /usr/pkg/lzip_1.21_i586-1@compressors
  550. </pre></div>
  551. <p>This means that the links to the package can be reactivated, later:
  552. </p>
  553. <div class="example">
  554. <pre class="example">cd /usr/pkg &amp;&amp; graft -i lzip_1.21_i586-1@compressors
  555. </pre></div>
  556. <p>Removing package from a different location:
  557. </p>
  558. <div class="example">
  559. <pre class="example">qi remove --rootdir=/home/cthulhu xz_5.2.4_i586-1@compressors
  560. </pre></div>
  561. <p>Removing a package using standard input:
  562. </p>
  563. <div class="example">
  564. <pre class="example">echo vala_0.42.3_amd64-1@devel | qi remove -
  565. </pre></div>
  566. <p>This will match with the package directory.
  567. </p>
  568. <a name="Upgrading-packages"></a>
  569. <h3 class="section">4.4 Upgrading packages</h3>
  570. <a name="index-package-upgrade"></a>
  571. <p>The upgrade command inherits the properties of the installation and removal
  572. process. To make sure that a package is updated, the package is installed
  573. in a temporary directory taking &lsquo;<samp>${packagedir}</samp>&rsquo; into account. Once
  574. the incoming package is pre-installed, qi can proceed to search and delete
  575. packages that have the same name (considered as previous ones). Finally,
  576. the package is re-installed at its final location and the temporary
  577. directory is removed.
  578. </p>
  579. <p>Since updating a package can be crucial and so to perform a successful
  580. upgrade, from start to finish, you will want to ignore some important
  581. system signals during the upgrade process, those signals are SIGHUP,
  582. SIGINT, SIGQUIT, SIGABRT, and SIGTERM.
  583. </p>
  584. <p>To upgrade a package, just type:
  585. </p>
  586. <div class="example">
  587. <pre class="example">qi upgrade gcc_9.0.1_i586-1@devel.tlz
  588. </pre></div>
  589. <p>This will proceed to upgrade &quot;gcc_9.0.1_i586-1@devel&quot; removing any other
  590. version of &quot;gcc&quot; (if any).
  591. </p>
  592. <p>If you want to keep the package directories of versions found during the
  593. upgrade process, just pass:
  594. </p>
  595. <div class="example">
  596. <pre class="example">qi upgrade --keep gcc_9.0.1_i586-1@devel.tlz
  597. </pre></div>
  598. <p>To see the upgrade process:
  599. </p>
  600. <div class="example">
  601. <pre class="example">qi upgrade --verbose gcc_9.0.1_i586-1@devel.tlz
  602. </pre></div>
  603. <p>A second &ndash;verbose or -v option gives more (very verbose).
  604. </p>
  605. <p>To force the upgrade of an existing package:
  606. </p>
  607. <div class="example">
  608. <pre class="example">qi upgrade --force gcc_9.0.1_i586-1@devel.tlz
  609. </pre></div>
  610. <a name="Package-blacklist"></a>
  611. <h4 class="subsection">4.4.1 Package blacklist</h4>
  612. <a name="index-package-blacklist"></a>
  613. <p>To implement general package facilities, either to install, remove or
  614. maintain the hierarchy of packages in a clean manner, qi makes use of the
  615. pruning operation via graft(1) by default:
  616. </p>
  617. <p>There is a risk if those are crucial packages for the proper functioning
  618. of the system, because it implies the deactivation of symbolic from the
  619. target directory, <em>especially</em> when transitioning an incoming package
  620. into its final location during an upgrade.
  621. </p>
  622. <p>A blacklist of package names has been devised for the case where
  623. a user decides to upgrade all the packages in the system, or
  624. just the crucial ones, such as the C library.
  625. </p>
  626. <p>The blacklist is related to the upgrade command only, consists in installing
  627. a package instead of updating it or removing previous versions of it;
  628. the content of the package will be updated over the existing content at
  629. &lsquo;<samp>${packagedir}</samp>&rsquo;, while the existing links from
  630. &lsquo;<samp>${targetdir}</samp>&rsquo; will be preserved. A pruning of links will be
  631. carried out in order to re-link possible differences with the recent
  632. content, this helps to avoid leaving dead links in the target directory.
  633. </p>
  634. <p>Package names for the blacklist to be declared must be set from the
  635. configuration file.
  636. </p>
  637. <hr>
  638. <a name="Recipes"></a>
  639. <div class="header">
  640. <p>
  641. Next: <a href="#Order-files" accesskey="n" rel="next">Order files</a>, Previous: <a href="#Packages" accesskey="p" rel="prev">Packages</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
  642. </div>
  643. <a name="Recipes-1"></a>
  644. <h2 class="chapter">5 Recipes</h2>
  645. <a name="index-recipes"></a>
  646. <p>A recipe is a file telling qi what to do. Most often, the recipe tells
  647. qi how to build a binary package from a source tarball.
  648. </p>
  649. <p>A recipe has two parts: a list of variable definitions and a list of
  650. sections. By convention, the syntax of a section is:
  651. </p>
  652. <div class="example">
  653. <pre class="example">section_name()
  654. {
  655. section lines
  656. }
  657. </pre></div>
  658. <p>The section name is followed by parentheses, one newline and an opening
  659. brace. The line finishing the section contains just a closing brace.
  660. The section names or the function names currently recognized are
  661. &lsquo;<samp>build</samp>&rsquo;.
  662. </p>
  663. <p>The &lsquo;<samp>build</samp>&rsquo; section (or <strong>shell function</strong>) is an augmented
  664. shell script that contains the main instructions for building a software
  665. source.
  666. </p>
  667. <a name="Variables"></a>
  668. <h3 class="section">5.1 Variables</h3>
  669. <a name="index-variables"></a>
  670. <p>A &quot;variable&quot; is a <strong>shell variable</strong> defined either in <samp>qirc</samp>
  671. or in a recipe to represent a string of text, called the variable&rsquo;s
  672. &quot;value&quot;. These values are substituted by explicit request in the
  673. definitions of other variables or in calls to external commands.
  674. </p>
  675. <p>Variables can represent lists of file names, options to pass to
  676. compilers, programs to run, directories to look in for source files,
  677. directories to write output to, or anything else you can imagine.
  678. </p>
  679. <p>Definitions of variables in qi have four levels of precedence.
  680. Options which define variables from the command-line override those
  681. specified in the <samp>qirc</samp> file, while variables defined in the recipe
  682. override those specified in <samp>qirc</samp>, taking priority over those
  683. variables set by command-line options. Finally, the variables have
  684. default values if they are not defined anywhere.
  685. </p>
  686. <p>Options that set variables through the command-line can only reference
  687. variables defined in <samp>qirc</samp> and variables with default values.
  688. </p>
  689. <p>Definitions of variables in <samp>qirc</samp> can only reference variables
  690. previously defined in <samp>qirc</samp> and variables with default values.
  691. </p>
  692. <p>Definitions of variables in the recipe can only reference variables
  693. set by the command-line, variables previously defined in the recipe,
  694. variables defined in <samp>qirc</samp>, and variables with default values.
  695. </p>
  696. <a name="Special-variables"></a>
  697. <h3 class="section">5.2 Special variables</h3>
  698. <a name="index-special-variables"></a>
  699. <p>There are variables which can only be set using the command line options or
  700. via <samp>qirc</samp>, there are other special variables which can be defined or
  701. redefined in a recipe. See the following definitions:
  702. </p>
  703. <p>&lsquo;<samp>outdir</samp>&rsquo; is the directory where the packages produced are written.
  704. This variable can be redefined per-recipe. Default sets to
  705. &lsquo;<samp>/var/cache/qi/packages</samp>&rsquo;.
  706. </p>
  707. <p>&lsquo;<samp>worktree</samp>&rsquo; is the working tree where archives, patches, and recipes
  708. are expected. This variable can not be redefined in the recipe. Default
  709. sets to &lsquo;<samp>/usr/src/qi</samp>&rsquo;.
  710. </p>
  711. <p>&lsquo;<samp>tardir</samp>&rsquo; is defined in the recipe to the directory where the tarball
  712. containing the source can be found. The full name of the tarball is
  713. composed as &lsquo;<samp>${tardir}/$tarname</samp>&rsquo;. Its value is available in the
  714. recipe as &lsquo;<samp>${tardir}</samp>&rsquo;; a value of . for &lsquo;<samp>tardir</samp>&rsquo; sets it to
  715. the value of CWD (Current Working Directory), this is where the recipe
  716. lives.
  717. </p>
  718. <p>&lsquo;<samp>arch</samp>&rsquo; is the architecture to compose the package name. Its value is
  719. available in the recipe as &lsquo;<samp>${arch}</samp>&rsquo;. Default value is the one
  720. that was set in the Qi configuration.
  721. </p>
  722. <p>&lsquo;<samp>jobs</samp>&rsquo; is the number of parallel jobs to pass to the compiler. Its
  723. value is available in the recipe as &lsquo;<samp>${jobs}</samp>&rsquo;. The default value
  724. is 1.
  725. </p>
  726. <p>The two variables &lsquo;<samp>${srcdir}</samp>&rsquo; and &lsquo;<samp>${destdir}</samp>&rsquo; can be
  727. set in the recipe, as any other variable, but if they are not, qi uses
  728. default values for them when building a package.
  729. </p>
  730. <p>&lsquo;<samp>srcdir</samp>&rsquo; contains the source code to be compiled, and defaults to
  731. &lsquo;<samp>${program}-${version}</samp>&rsquo;. &lsquo;<samp>destdir</samp>&rsquo; is the place where the
  732. built package will be installed, and defaults to
  733. &lsquo;<samp>${TMPDIR}/package-${program}</samp>&rsquo;.
  734. </p>
  735. <p>If &lsquo;<samp>pkgname</samp>&rsquo; is left undefined, the special variable &lsquo;<samp>program</samp>&rsquo;
  736. is assigned by default. If &lsquo;<samp>pkgversion</samp>&rsquo; is left undefined, the
  737. special variable &lsquo;<samp>version</samp>&rsquo; is assigned by default.
  738. </p>
  739. <p>&lsquo;<samp>pkgname</samp>&rsquo; and &lsquo;<samp>pkgversion</samp>&rsquo; along with: &lsquo;<samp>version</samp>&rsquo;, &lsquo;<samp>arch</samp>&rsquo;,
  740. &lsquo;<samp>release</samp>&rsquo;, and (optionally) &lsquo;<samp>pkgcategory</samp>&rsquo; are used to produce the
  741. package name in the form:
  742. &lsquo;<samp>${pkgname}_${pkgversion}_${arch}-${release}[@${pkgcategory}].tlz</samp>&rsquo;
  743. </p>
  744. <p>&lsquo;<samp>pkgcategory</samp>&rsquo; is an optional special variable that can be defined on the
  745. recipe to categorize the package name. If it is defined, then the
  746. package output will be composed as
  747. &lsquo;<samp>${pkgname}_${pkgversion}_${arch}-${release}[@${pkgcategory}.tlz</samp>&rsquo;.
  748. Automatically, the value of &lsquo;<samp>pkgcategory</samp>&rsquo; will be prefixed using the
  749. &lsquo;<samp>@</samp>&rsquo; (at) symbol which will be added to the last part of the package name.
  750. </p>
  751. <p>A special variable called &lsquo;<samp>replace</samp>&rsquo; can be used to declare package names
  752. that will be replaced at installation time.
  753. </p>
  754. <p>The special variables &lsquo;<samp>keep_srcdir</samp>&rsquo; and &lsquo;<samp>keep_destdir</samp>&rsquo; are provided
  755. in order to preserve the directories &lsquo;<samp>${srcdir}</samp>&rsquo; or &lsquo;<samp>${destdir}</samp>&rsquo;,
  756. if those exists as such. Note: The declaration of these variables are subject
  757. to manual deactivation; its purpose in recipes is to preserve the directories
  758. that relate to the package&rsquo;s build (source) and destination directory, that is
  759. so that another recipe can get a new package (or meta package) from there. For
  760. example, the declarations can be done as:
  761. </p>
  762. <div class="example">
  763. <pre class="example">keep_srcdir=keep_srcdir
  764. keep_destdir=keep_destdir
  765. </pre></div>
  766. <p>Then from another recipe you would proceed to copy the necessary files that
  767. will compose the meta package, from the main function you must deactivate
  768. the variables at the end:
  769. </p>
  770. <div class="example">
  771. <pre class="example">unset keep_srcdir
  772. unset keep_destdir
  773. </pre></div>
  774. <p>This will leave the &rsquo;keep_srcdir&rsquo; and &rsquo;keep_destdir&rsquo; variables blank to
  775. continue with the rest of the recipes.
  776. </p>
  777. <p>A typical recipe contains the following variables:
  778. </p>
  779. <ul>
  780. <li> &lsquo;<samp>program</samp>&rsquo;: Software name.
  781. <p>It matches the source name. It is also used to compose the name of the
  782. package if &lsquo;<samp>${pkgname}</samp>&rsquo; is not specified.
  783. </p>
  784. </li><li> &lsquo;<samp>version</samp>&rsquo;: Software version.
  785. <p>It matches the source name. It is also used to compose the version of the
  786. package if &lsquo;<samp>${pkgversion}</samp>&rsquo; is not specified.
  787. </p>
  788. </li><li> &lsquo;<samp>arch</samp>&rsquo;: Software architecture.
  789. <p>It is used to compose the architecture of the package in which it is
  790. build.
  791. </p>
  792. </li><li> &lsquo;<samp>release</samp>&rsquo;: Release number.
  793. <p>This is used to reflect the release number of the package. It is
  794. recommended to increase this number after any significant change in
  795. the recipe or post-install script.
  796. </p>
  797. </li><li> &lsquo;<samp>pkgcategory</samp>&rsquo;: Package category.
  798. <p>Optional but recommended variable to categorize the package name when it is
  799. created.
  800. </p></li></ul>
  801. <p>Obtaining sources over the network must be declared in the recipe using
  802. the &lsquo;<samp>fetch</samp>&rsquo; variable.
  803. </p>
  804. <p>The variables &lsquo;<samp>netget</samp>&rsquo; and &lsquo;<samp>rsync</samp>&rsquo; can be defined in <samp>qirc</samp>
  805. to establish a network downloader in order to get the sources. If they
  806. are not defined, qi uses default values:
  807. </p>
  808. <p>&lsquo;<samp>netget</samp>&rsquo; is the general network downloader tool, defaults sets to
  809. &lsquo;<samp>wget -c -w1 -t3 --no-check-certificate</samp>&rsquo;.
  810. </p>
  811. <p>&lsquo;<samp>rsync</samp>&rsquo; is the network tool for sources containing the prefix for
  812. the RSYNC protocol, default sets to
  813. &lsquo;<samp>rsync -v -a -L -z -i --progress</samp>&rsquo;.
  814. </p>
  815. <p>The variable &lsquo;<samp>description</samp>&rsquo; is used to print the package description
  816. when a package is installed.
  817. </p>
  818. <p>A description has two parts: a brief description, and a long description.
  819. By convention, the syntax of &lsquo;<samp>description</samp>&rsquo; is:
  820. </p>
  821. <div class="example">
  822. <pre class="example">description=&quot;
  823. Brief description.
  824. Long description.
  825. &quot;
  826. </pre></div>
  827. <p>The first line of the value represented is a brief description of the
  828. software (called &quot;blurb&quot;). A blank line separates the <em>brief
  829. description</em> from the <em>long description</em>, which should contain a more
  830. descriptive description of the software.
  831. </p>
  832. <p>An example looks like:
  833. </p>
  834. <div class="example">
  835. <pre class="example">description=&quot;
  836. The GNU core utilities.
  837. The GNU core utilities are the basic file, shell and text manipulation
  838. utilities of the GNU operating system. These are the core utilities
  839. which are expected to exist on every operating system.
  840. &quot;
  841. </pre></div>
  842. <p>Please consider a length limit of 78 characters as maximum, because the same
  843. one would be used on the meta file creation. See
  844. <a href="#Recipes">The meta file</a> section.
  845. </p>
  846. <p>The &lsquo;<samp>homepage</samp>&rsquo; variable is used to declare the main site or home page:
  847. </p>
  848. <div class="example">
  849. <pre class="example">homepage=http://www.gnu.org/software/gcc
  850. </pre></div>
  851. <p>The variable &lsquo;<samp>license</samp>&rsquo; is used for license information<a name="DOCF3" href="#FOOT3"><sup>3</sup></a>.
  852. Some code in the program can be covered by license A, license B, or
  853. license C. For &quot;separate licensing&quot; or &quot;heterogeneous licensing&quot;, we
  854. suggest using <strong>|</strong> for a disjunction, <strong>&amp;</strong> for a conjunction
  855. (if that ever happens in a significant way), and comma for heterogeneous
  856. licensing. Comma would have lower precedence, plus added special terms.
  857. </p>
  858. <div class="example">
  859. <pre class="example">license=&quot;LGPL, GPL | Artistic - added permission&quot;
  860. </pre></div>
  861. <a name="Writing-recipes"></a>
  862. <h3 class="section">5.3 Writing recipes</h3>
  863. <a name="index-writing-recipes"></a>
  864. <p>Originally, Qi was designed for the version 3 of Dragora GNU/Linux; this
  865. doesn&rsquo;t mean you can&rsquo;t use it in another distribution, just that if you do,
  866. you&rsquo;ll have to try it out for yourself. To help with this, here are some
  867. references to well-written recipes:
  868. </p>
  869. <ul>
  870. <li> <a href="http://git.savannah.nongnu.org/cgit/dragora.git/tree/recipes">http://git.savannah.nongnu.org/cgit/dragora.git/tree/recipes</a>
  871. </li><li> <a href="http://notabug.org/dragora/dragora/src/master/recipes">http://notabug.org/dragora/dragora/src/master/recipes</a>
  872. </li><li> <a href="http://notabug.org/dragora/dragora-extras/src/master/recipes">http://notabug.org/dragora/dragora-extras/src/master/recipes</a>
  873. </li><li> <a href="http://git.savannah.nongnu.org/cgit/dragora/dragora-extras.git/tree/recipes">http://git.savannah.nongnu.org/cgit/dragora/dragora-extras.git/tree/recipes</a>
  874. </li></ul>
  875. <a name="Building-packages"></a>
  876. <h3 class="section">5.4 Building packages</h3>
  877. <a name="index-package-build"></a>
  878. <p>A recipe is any valid regular file. Qi sets priorities for reading a
  879. recipe, the order in which qi looks for a recipe is:
  880. </p>
  881. <ol>
  882. <li> Current working directory.
  883. </li><li> If the specified path name does not contain &quot;recipe&quot; as the last
  884. component. Qi will complete it by adding &quot;recipe&quot; to the path name.
  885. </li><li> If the recipe is not in the current working directory, it will be
  886. searched under &lsquo;<samp>${worktree}/recipes</samp>&rsquo;. The last component will be
  887. completed adding &quot;recipe&quot; to the specified path name.
  888. </li></ol>
  889. <p>To build a single package, type:
  890. </p>
  891. <div class="example">
  892. <pre class="example">qi build x-apps/xterm
  893. </pre></div>
  894. <p>Multiple jobs can be passed to the compiler to speed up the build process:
  895. </p>
  896. <div class="example">
  897. <pre class="example">qi build --jobs 3 x-apps/xterm
  898. </pre></div>
  899. <p>Update or install the produced package (if not already installed) when the
  900. build command ends:
  901. </p>
  902. <div class="example">
  903. <pre class="example">qi build -j3 --upgrade x-apps/xterm
  904. </pre></div>
  905. <p>Only process a recipe but do not create the binary package:
  906. </p>
  907. <div class="example">
  908. <pre class="example">qi build --no-package dict/aspell
  909. </pre></div>
  910. <p>The options &ndash;install or &ndash;upgrade have no effect when &ndash;no-package
  911. is given.
  912. </p>
  913. <p>This is useful to inspect the build process of the above recipe:
  914. </p>
  915. <p>qi build &ndash;keep &ndash;no-package dict/aspell 2&gt;&amp;1 | tee aspell-log.txt
  916. </p>
  917. <p>The &ndash;keep option could preserve the source directory and the destination
  918. directory for later inspection. A log file of the build process will be
  919. created redirecting both, standard error and standard output to tee(1).
  920. </p>
  921. <a name="Variables-from-the-environment"></a>
  922. <h3 class="section">5.5 Variables from the environment</h3>
  923. <a name="index-environment-variables"></a>
  924. <p>Qi has environment variables which can be used at build time:
  925. </p>
  926. <p>The variable <code>TMPDIR</code> sets the temporary directory for sources, which is
  927. used for package extractions (see <a href="#Examining-packages">Examining packages</a>) and is
  928. prepended to the value of &lsquo;<samp>${srcdir}</samp>&rsquo; and &lsquo;<samp>${destdir}</samp>&rsquo; in
  929. build command. By convention its default value is equal to
  930. &lsquo;<samp>/usr/src/qi/build</samp>&rsquo;.
  931. </p>
  932. <p>The variables <code>QICFLAGS</code>, <code>QICXXFLAGS</code>, <code>QILDFLAGS</code>, and
  933. <code>QICPPFLAGS</code> have no effect by default. The environment variables
  934. such as <code>CFLAGS</code>, <code>CXXFLAGS</code>, <code>LDFLAGS</code>, and <code>CPPFLAGS</code>
  935. are unset at compile time:
  936. </p>
  937. <p>Recommended practice is to set variables in the command line of
  938. &lsquo;<samp>configure</samp>&rsquo; or <em>make(1)</em> instead of exporting to the
  939. environment. As follows:
  940. </p>
  941. <p><a href="http://www.gnu.org/software/make/manual/html_node/Environment.html">http://www.gnu.org/software/make/manual/html_node/Environment.html</a>
  942. </p><blockquote>
  943. <p>It is not wise for makefiles to depend for their functioning on environment
  944. variables set up outside their control, since this would cause different
  945. users to get different results from the same makefile. This is against the
  946. whole purpose of most makefiles.
  947. </p></blockquote>
  948. <p>Setting environment variables for configure is deprecated because running
  949. configure in varying environments can be dangerous.
  950. </p>
  951. <p><a href="http://gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Defining-Variables.html">http://gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Defining-Variables.html</a>
  952. </p><blockquote>
  953. <p>Variables not defined in a site shell script can be set in the environment
  954. passed to configure. However, some packages may run configure again
  955. during the build, and the customized values of these variables may be
  956. lost. In order to avoid this problem, you should set them in the
  957. configure command line, using &lsquo;<samp>VAR=value</samp>&rsquo;. For example:
  958. </p>
  959. <p><code>./configure CC=/usr/local2/bin/gcc</code>
  960. </p></blockquote>
  961. <p><a href="http://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Setting-Output-Variables.html">http://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Setting-Output-Variables.html</a>
  962. </p><blockquote>
  963. <p>If for instance the user runs &lsquo;<samp>CC=bizarre-cc ./configure</samp>&rsquo;, then the cache,
  964. config.h, and many other output files depend upon bizarre-cc being the C
  965. compiler. If for some reason the user runs ./configure again, or if it is
  966. run via &lsquo;<samp>./config.status --recheck</samp>&rsquo;, (See Automatic Remaking, and see
  967. config.status Invocation), then the configuration can be inconsistent,
  968. composed of results depending upon two different compilers.
  969. [...]
  970. Indeed, while configure can notice the definition of CC in &lsquo;<samp>./configure
  971. CC=bizarre-cc</samp>&rsquo;, it is impossible to notice it in &lsquo;<samp>CC=bizarre-cc
  972. ./configure</samp>&rsquo;, which, unfortunately, is what most users do.
  973. [...]
  974. configure: error: changes in the environment can compromise the build.
  975. </p></blockquote>
  976. <p>If the <code>SOURCE_DATE_EPOCH</code> environment variable is set to a UNIX timestamp
  977. (defined as the number of seconds, excluding leap seconds, since 01 Jan 1970
  978. 00:00:00 UTC.); then the given timestamp will be used to overwrite any newer
  979. timestamps on the package contents (when it is created). More information
  980. about this can be found at
  981. <a href="https://reproducible-builds.org/specs/source-date-epoch/">https://reproducible-builds.org/specs/source-date-epoch/</a>.
  982. </p>
  983. <a name="The-meta-file"></a>
  984. <h3 class="section">5.6 The meta file</h3>
  985. <a name="index-the-meta-file"></a>
  986. <p>The &quot;meta file&quot; is a regular file created during the build command, it
  987. contains information about the package such as package name, package
  988. version, architecture, release, fetch address, description, and other
  989. minor data extracted from processed recipes. The name of the file is
  990. generated as &lsquo;<samp>${full_pkgname}.tlz.txt</samp>&rsquo;, and its purpose is to
  991. reflect essential information to the user without having to look inside
  992. the package content. The file format is also intended to be used by
  993. other scripts or by common Unix tools.
  994. </p>
  995. <p>The content of a meta file looks like:
  996. </p>
  997. <div class="example">
  998. <pre class="example">#
  999. # Pattern scanning and processing language.
  1000. #
  1001. # The awk utility interprets a special-purpose programming language
  1002. # that makes it possible to handle simple data-reformatting jobs
  1003. # with just a few lines of code. It is a free version of 'awk'.
  1004. #
  1005. # GNU awk implements the AWK utility which is part of
  1006. # IEEE Std 1003.1 Shell and Utilities (XCU).
  1007. #
  1008. QICFLAGS=&quot;-O2&quot;
  1009. QICXXFLAGS=&quot;-O2&quot;
  1010. QILDFLAGS=&quot;&quot;
  1011. pkgname=gawk
  1012. pkgversion=5.0.1
  1013. arch=amd64
  1014. release=1
  1015. pkgcategory=&quot;tools&quot;
  1016. full_pkgname=gawk_5.0.1_amd64-1@tools
  1017. blurb=&quot;Pattern scanning and processing language.&quot;
  1018. homepage=&quot;http://www.gnu.org/software/gawk&quot;
  1019. license=&quot;GPLv3+&quot;
  1020. fetch=&quot;http://ftp.gnu.org/gnu/gawk/gawk-5.0.1.tar.lz&quot;
  1021. replace=&quot;&quot;
  1022. </pre></div>
  1023. <p>Package descriptions are extracted from the variable &lsquo;<samp>description</samp>&rsquo;
  1024. where each line is interpreted literally and pre-formatted to fit in
  1025. (exactly) <strong>80 columns</strong>, plus the character &lsquo;<samp>#</samp>&rsquo; and a blank
  1026. space is prefixed to every line (shell comments).
  1027. </p>
  1028. <p>In addition to the Special variables, there are implicit variables such as
  1029. &lsquo;<samp>blurb</samp>&rsquo;:
  1030. </p>
  1031. <p>The &lsquo;<samp>blurb</samp>&rsquo; variable is related to the special variable
  1032. &lsquo;<samp>description</samp>&rsquo;. Its value is made from the first (substantial)
  1033. line of &lsquo;<samp>description</samp>&rsquo;, mentioned as the &quot;brief description&quot;.
  1034. </p>
  1035. <hr>
  1036. <a name="Order-files"></a>
  1037. <div class="header">
  1038. <p>
  1039. Next: <a href="#Creating-packages" accesskey="n" rel="next">Creating packages</a>, Previous: <a href="#Recipes" accesskey="p" rel="prev">Recipes</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
  1040. </div>
  1041. <a name="Order-files-1"></a>
  1042. <h2 class="chapter">6 Order files</h2>
  1043. <a name="index-handling-build-order"></a>
  1044. <p>The order command has the purpose of resolving the build order through
  1045. .order files. An order file contains a list of recipe names, by default
  1046. does not perform any action other than to print a resolved list in
  1047. descending order. For example, if <strong>a</strong> depends on <strong>b</strong> and
  1048. <strong>c</strong>, and <strong>c</strong> depends on <strong>b</strong> as well, the file might
  1049. look like:
  1050. </p>
  1051. <div class="example">
  1052. <pre class="example">a: c b
  1053. b:
  1054. c: b
  1055. </pre></div>
  1056. <p>Each letter represents a recipe name, complete dependencies for
  1057. the first recipe name are listed in descending order, which is
  1058. printed from right to left, and removed from left to right:
  1059. </p>
  1060. <p><small>OUTPUT</small>
  1061. </p>
  1062. <div class="example">
  1063. <pre class="example">b
  1064. c
  1065. a
  1066. </pre></div>
  1067. <p>Blank lines, colons and parentheses are simply ignored. Comment lines
  1068. beginning with &lsquo;<samp>#</samp>&rsquo; are allowed.
  1069. </p>
  1070. <p>An order file could be used to build a series of packages, for example,
  1071. if the content is:
  1072. </p>
  1073. <div class="example">
  1074. <pre class="example"># Image handling libraries
  1075. libs/libjpeg-turbo: devel/nasm
  1076. x-libs/jasper: libs/libjpeg-turbo
  1077. libs/tiff: libs/libjpeg-turbo
  1078. </pre></div>
  1079. <p>To proceed with each recipe, we can type:
  1080. </p>
  1081. <div class="example">
  1082. <pre class="example">qi order imglibs.order | qi build --install -
  1083. </pre></div>
  1084. <p>The output of &lsquo;<samp>qi order imglibs.order</samp>&rsquo; tells to qi in which order it
  1085. should build the recipes:
  1086. </p>
  1087. <div class="example">
  1088. <pre class="example">devel/nasm
  1089. libs/libjpeg-turbo
  1090. x-libs/jasper
  1091. libs/tiff
  1092. </pre></div>
  1093. <hr>
  1094. <a name="Creating-packages"></a>
  1095. <div class="header">
  1096. <p>
  1097. Next: <a href="#Examining-packages" accesskey="n" rel="next">Examining packages</a>, Previous: <a href="#Order-files" accesskey="p" rel="prev">Order files</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
  1098. </div>
  1099. <a name="Creating-packages-1"></a>
  1100. <h2 class="chapter">7 Creating packages</h2>
  1101. <a name="index-package-creation"></a>
  1102. <p>The creation command is an internal function of qi to make new Qi
  1103. compatible packages. A package is produced using the contents of
  1104. the Current Working Directory and the package file is written out.
  1105. </p>
  1106. <div class="example">
  1107. <pre class="example">Usage: qi create [<var>Output/PackageName.tlz</var>]...
  1108. </pre></div>
  1109. <p>The argument for the file name to be written must contain a fully
  1110. qualified named directory as the output directory where the package
  1111. produced will be written. The file name should be composed using the
  1112. full name: name-version-architecture-release[@pkgcategory].tlz
  1113. </p>
  1114. <p><small>EXAMPLE</small>
  1115. </p>
  1116. <div class="example">
  1117. <pre class="example">cd /usr/pkg
  1118. cd claws-mail_3.17.1_amd64-1@x-apps
  1119. qi create /var/cache/qi/packages/claws-mail_3.17.1_amd64-1@x-apps
  1120. </pre></div>
  1121. <p>In this case, the package &quot;claws-mail_3.17.1_amd64-1@x-apps&quot; will be
  1122. written into &lsquo;<samp>/var/cache/qi/packages/</samp>&rsquo;.
  1123. </p>
  1124. <p>All packages produced are complemented by a checksum file (.sha256).
  1125. </p>
  1126. <hr>
  1127. <a name="Examining-packages"></a>
  1128. <div class="header">
  1129. <p>
  1130. Next: <a href="#Qi-exit-status" accesskey="n" rel="next">Qi exit status</a>, Previous: <a href="#Creating-packages" accesskey="p" rel="prev">Creating packages</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
  1131. </div>
  1132. <a name="Examining-packages-1"></a>
  1133. <h2 class="chapter">8 Examining packages</h2>
  1134. <a name="index-package-examination"></a>
  1135. <p>The extraction command serves to examine binary packages for debugging
  1136. purposes. It decompresses a package into a single directory, verifying
  1137. its integrity and preserving all of it properties (owner and permission).
  1138. </p>
  1139. <div class="example">
  1140. <pre class="example">Usage: qi extract [<var>packagename.tlz</var>]...
  1141. </pre></div>
  1142. <p><small>EXAMPLE</small>
  1143. </p>
  1144. <div class="example">
  1145. <pre class="example">qi extract mksh_R56c_amd64-1@shells.tlz
  1146. </pre></div>
  1147. <p>This action will put the content of &quot;mksh_R56c_amd64-1@shells.tlz&quot; into a
  1148. single directory, this is a private directory for the user who requested
  1149. the action, creation operation will be equal to <strong>u=rwx,g=,o= (0700)</strong>.
  1150. The package content will reside on this location, default mask to deploy
  1151. the content will be equal to <strong>u=rwx,g=rwx,o=rwx (0000)</strong>.
  1152. </p>
  1153. <p>Note: the creation of the custom directory is influenced by the value
  1154. of the <code>TMPDIR</code> variable.
  1155. </p>
  1156. <hr>
  1157. <a name="Qi-exit-status"></a>
  1158. <div class="header">
  1159. <p>
  1160. Next: <a href="#Index" accesskey="n" rel="next">Index</a>, Previous: <a href="#Examining-packages" accesskey="p" rel="prev">Examining packages</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
  1161. </div>
  1162. <a name="Qi-exit-status-1"></a>
  1163. <h2 class="chapter">9 Qi exit status</h2>
  1164. <a name="index-exit-codes"></a>
  1165. <p>All the exit codes are described in this chapter.
  1166. </p>
  1167. <dl compact="compact">
  1168. <dt>&lsquo;<samp>0</samp>&rsquo;</dt>
  1169. <dd><p>Successful completion (no errors).
  1170. </p>
  1171. </dd>
  1172. <dt>&lsquo;<samp>1</samp>&rsquo;</dt>
  1173. <dd><p>Minor common errors:
  1174. </p>
  1175. <ul>
  1176. <li> Help usage on illegal options or required arguments.
  1177. </li><li> Program needed by qi (prerequisite) is not available.
  1178. </li></ul>
  1179. </dd>
  1180. <dt>&lsquo;<samp>2</samp>&rsquo;</dt>
  1181. <dd><p>Command execution error:
  1182. </p>
  1183. <p>This code is used to return the evaluation of an external command or shell
  1184. arguments in case of failure.
  1185. </p>
  1186. </dd>
  1187. <dt>&lsquo;<samp>3</samp>&rsquo;</dt>
  1188. <dd><p>Integrity check error for compressed files.
  1189. </p>
  1190. <p>Compressed files means:
  1191. </p>
  1192. <ul>
  1193. <li> A tarball file from tar(1).
  1194. Supported extensions: .tar, .tar.gz, .tgz, .tar.Z, .tar.bz2, .tbz2, .tbz,
  1195. .tar.xz, .txz
  1196. </li><li> A tarball file from tarlz(1).
  1197. Supported extensions: .tar.lz, .tlz
  1198. </li><li> Zip files from unzip(1).
  1199. Supported extensions: .zip, .ZIP
  1200. </li><li> Gzip files from gzip(1).
  1201. Supported extensions: .gz, .Z
  1202. </li><li> Bzip2 files from bzip2(1).
  1203. Supported extension: .bz2
  1204. </li><li> Lzip files from lzip(1).
  1205. Supported extension: .lz
  1206. </li><li> Xz files from xz(1).
  1207. Supported extension: .xz
  1208. </li></ul>
  1209. </dd>
  1210. <dt>&lsquo;<samp>4</samp>&rsquo;</dt>
  1211. <dd><p>File empty, not regular, or expected.
  1212. </p>
  1213. <p>It&rsquo;s commonly expected:
  1214. </p>
  1215. <ul>
  1216. <li> An argument for giving commands.
  1217. </li><li> A regular file or readable directory.
  1218. </li><li> An expected extension: .tlz, .sha256, .order.
  1219. </li><li> A protocol supported by the network downloader tool.
  1220. </li></ul>
  1221. </dd>
  1222. <dt>&lsquo;<samp>5</samp>&rsquo;</dt>
  1223. <dd><p>Empty or not defined variable:
  1224. </p>
  1225. <p>This code is used to report empty or undefined variables (usually
  1226. variables coming from a recipe or assigned arrays that are tested).
  1227. </p>
  1228. </dd>
  1229. <dt>&lsquo;<samp>6</samp>&rsquo;</dt>
  1230. <dd><p>Package already installed:
  1231. </p>
  1232. <p>The package directory for an incoming .tlz package already exists.
  1233. </p>
  1234. </dd>
  1235. <dt>&lsquo;<samp>10</samp>&rsquo;</dt>
  1236. <dd><p>Network manager error:
  1237. </p>
  1238. <p>This code is used if the network downloader tool fails for some reason.
  1239. </p></dd>
  1240. </dl>
  1241. <hr>
  1242. <a name="Index"></a>
  1243. <div class="header">
  1244. <p>
  1245. Previous: <a href="#Qi-exit-status" accesskey="p" rel="prev">Qi exit status</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
  1246. </div>
  1247. <a name="Index-1"></a>
  1248. <h2 class="unnumbered">Index</h2>
  1249. <table><tr><th valign="top">Jump to: &nbsp; </th><td><a class="summary-letter" href="#Index_cp_letter-C"><b>C</b></a>
  1250. &nbsp;
  1251. <a class="summary-letter" href="#Index_cp_letter-E"><b>E</b></a>
  1252. &nbsp;
  1253. <a class="summary-letter" href="#Index_cp_letter-H"><b>H</b></a>
  1254. &nbsp;
  1255. <a class="summary-letter" href="#Index_cp_letter-I"><b>I</b></a>
  1256. &nbsp;
  1257. <a class="summary-letter" href="#Index_cp_letter-M"><b>M</b></a>
  1258. &nbsp;
  1259. <a class="summary-letter" href="#Index_cp_letter-P"><b>P</b></a>
  1260. &nbsp;
  1261. <a class="summary-letter" href="#Index_cp_letter-R"><b>R</b></a>
  1262. &nbsp;
  1263. <a class="summary-letter" href="#Index_cp_letter-S"><b>S</b></a>
  1264. &nbsp;
  1265. <a class="summary-letter" href="#Index_cp_letter-T"><b>T</b></a>
  1266. &nbsp;
  1267. <a class="summary-letter" href="#Index_cp_letter-V"><b>V</b></a>
  1268. &nbsp;
  1269. <a class="summary-letter" href="#Index_cp_letter-W"><b>W</b></a>
  1270. &nbsp;
  1271. </td></tr></table>
  1272. <table class="index-cp" border="0">
  1273. <tr><td></td><th align="left">Index Entry</th><td>&nbsp;</td><th align="left"> Section</th></tr>
  1274. <tr><td colspan="4"> <hr></td></tr>
  1275. <tr><th><a name="Index_cp_letter-C">C</a></th><td></td><td></td></tr>
  1276. <tr><td></td><td valign="top"><a href="#index-configuration-file">configuration file</a>:</td><td>&nbsp;</td><td valign="top"><a href="#The-qirc-file">The qirc file</a></td></tr>
  1277. <tr><td colspan="4"> <hr></td></tr>
  1278. <tr><th><a name="Index_cp_letter-E">E</a></th><td></td><td></td></tr>
  1279. <tr><td></td><td valign="top"><a href="#index-environment-variables">environment variables</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recipes">Recipes</a></td></tr>
  1280. <tr><td></td><td valign="top"><a href="#index-exit-codes">exit codes</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Qi-exit-status">Qi exit status</a></td></tr>
  1281. <tr><td colspan="4"> <hr></td></tr>
  1282. <tr><th><a name="Index_cp_letter-H">H</a></th><td></td><td></td></tr>
  1283. <tr><td></td><td valign="top"><a href="#index-handling-build-order">handling build order</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Order-files">Order files</a></td></tr>
  1284. <tr><td colspan="4"> <hr></td></tr>
  1285. <tr><th><a name="Index_cp_letter-I">I</a></th><td></td><td></td></tr>
  1286. <tr><td></td><td valign="top"><a href="#index-introduction-to-qi">introduction to qi</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Introduction-to-Qi">Introduction to Qi</a></td></tr>
  1287. <tr><td></td><td valign="top"><a href="#index-invocation">invocation</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Invoking-qi">Invoking qi</a></td></tr>
  1288. <tr><td colspan="4"> <hr></td></tr>
  1289. <tr><th><a name="Index_cp_letter-M">M</a></th><td></td><td></td></tr>
  1290. <tr><td></td><td valign="top"><a href="#index-managing-packages">managing packages</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Packages">Packages</a></td></tr>
  1291. <tr><td colspan="4"> <hr></td></tr>
  1292. <tr><th><a name="Index_cp_letter-P">P</a></th><td></td><td></td></tr>
  1293. <tr><td></td><td valign="top"><a href="#index-package-blacklist">package blacklist</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Packages">Packages</a></td></tr>
  1294. <tr><td></td><td valign="top"><a href="#index-package-build">package build</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recipes">Recipes</a></td></tr>
  1295. <tr><td></td><td valign="top"><a href="#index-package-conflicts">package conflicts</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Packages">Packages</a></td></tr>
  1296. <tr><td></td><td valign="top"><a href="#index-package-creation">package creation</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Creating-packages">Creating packages</a></td></tr>
  1297. <tr><td></td><td valign="top"><a href="#index-package-de_002dinstallation">package de-installation</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Packages">Packages</a></td></tr>
  1298. <tr><td></td><td valign="top"><a href="#index-package-examination">package examination</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Examining-packages">Examining packages</a></td></tr>
  1299. <tr><td></td><td valign="top"><a href="#index-package-installation">package installation</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Packages">Packages</a></td></tr>
  1300. <tr><td></td><td valign="top"><a href="#index-package-upgrade">package upgrade</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Packages">Packages</a></td></tr>
  1301. <tr><td colspan="4"> <hr></td></tr>
  1302. <tr><th><a name="Index_cp_letter-R">R</a></th><td></td><td></td></tr>
  1303. <tr><td></td><td valign="top"><a href="#index-recipes">recipes</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recipes">Recipes</a></td></tr>
  1304. <tr><td colspan="4"> <hr></td></tr>
  1305. <tr><th><a name="Index_cp_letter-S">S</a></th><td></td><td></td></tr>
  1306. <tr><td></td><td valign="top"><a href="#index-special-variables">special variables</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recipes">Recipes</a></td></tr>
  1307. <tr><td colspan="4"> <hr></td></tr>
  1308. <tr><th><a name="Index_cp_letter-T">T</a></th><td></td><td></td></tr>
  1309. <tr><td></td><td valign="top"><a href="#index-the-meta-file">the meta file</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recipes">Recipes</a></td></tr>
  1310. <tr><td colspan="4"> <hr></td></tr>
  1311. <tr><th><a name="Index_cp_letter-V">V</a></th><td></td><td></td></tr>
  1312. <tr><td></td><td valign="top"><a href="#index-variables">variables</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recipes">Recipes</a></td></tr>
  1313. <tr><td colspan="4"> <hr></td></tr>
  1314. <tr><th><a name="Index_cp_letter-W">W</a></th><td></td><td></td></tr>
  1315. <tr><td></td><td valign="top"><a href="#index-writing-recipes">writing recipes</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recipes">Recipes</a></td></tr>
  1316. <tr><td colspan="4"> <hr></td></tr>
  1317. </table>
  1318. <table><tr><th valign="top">Jump to: &nbsp; </th><td><a class="summary-letter" href="#Index_cp_letter-C"><b>C</b></a>
  1319. &nbsp;
  1320. <a class="summary-letter" href="#Index_cp_letter-E"><b>E</b></a>
  1321. &nbsp;
  1322. <a class="summary-letter" href="#Index_cp_letter-H"><b>H</b></a>
  1323. &nbsp;
  1324. <a class="summary-letter" href="#Index_cp_letter-I"><b>I</b></a>
  1325. &nbsp;
  1326. <a class="summary-letter" href="#Index_cp_letter-M"><b>M</b></a>
  1327. &nbsp;
  1328. <a class="summary-letter" href="#Index_cp_letter-P"><b>P</b></a>
  1329. &nbsp;
  1330. <a class="summary-letter" href="#Index_cp_letter-R"><b>R</b></a>
  1331. &nbsp;
  1332. <a class="summary-letter" href="#Index_cp_letter-S"><b>S</b></a>
  1333. &nbsp;
  1334. <a class="summary-letter" href="#Index_cp_letter-T"><b>T</b></a>
  1335. &nbsp;
  1336. <a class="summary-letter" href="#Index_cp_letter-V"><b>V</b></a>
  1337. &nbsp;
  1338. <a class="summary-letter" href="#Index_cp_letter-W"><b>W</b></a>
  1339. &nbsp;
  1340. </td></tr></table>
  1341. <div class="footnote">
  1342. <hr>
  1343. <h4 class="footnotes-heading">Footnotes</h4>
  1344. <h3><a name="FOOT1" href="#DOCF1">(1)</a></h3>
  1345. <p>For more details about tarlz and the
  1346. lzip format, visit <a href="https://lzip.nongnu.org/tarlz.html">https://lzip.nongnu.org/tarlz.html</a>.</p>
  1347. <h3><a name="FOOT2" href="#DOCF2">(2)</a></h3>
  1348. <p>The official guide for Graft can be found at
  1349. <a href="http://peters.gormand.com.au/Home/tools/graft/graft.html">http://peters.gormand.com.au/Home/tools/graft/graft.html</a>.</p>
  1350. <h3><a name="FOOT3" href="#DOCF3">(3)</a></h3>
  1351. <p>The proposal for &lsquo;<samp>license</samp>&rsquo; was made by Richard M. Stallman at
  1352. <a href="http://lists.gnu.org/archive/html/gnu-linux-libre/2016-05/msg00003.html">http://lists.gnu.org/archive/html/gnu-linux-libre/2016-05/msg00003.html</a>.</p>
  1353. </div>
  1354. <hr>
  1355. </body>
  1356. </html>