qi.html 56 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410
  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 1.3,
  4. 10 Sep 2019), which is a simple but well-integrated package manager.
  5. Copyright (C) 2019 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-1" href="#Introduction">1 Introduction</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-Exit-status-1" href="#Exit-status">9 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" accesskey="n" rel="next">Introduction</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 1.3,
  96. 10 Sep 2019).
  97. </p>
  98. <table class="menu" border="0" cellspacing="0">
  99. <tr><td align="left" valign="top">&bull; <a href="#Introduction" accesskey="1">Introduction</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="#Exit-status" accesskey="9">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 Matias Fonzo.
  122. </p>
  123. <p>Qi&rsquo;s home page can be found at <a href="http://www.dragora.org">http://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"></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-1"></a>
  133. <h2 class="chapter">1 Introduction</h2>
  134. <a name="index-introduction"></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" accesskey="p" rel="prev">Introduction</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 and command line options for
  164. invoke Qi.
  165. </p>
  166. <div class="example">
  167. <pre class="example">Usage: qi [<var>OPTION</var>]... [<var>FILE</var>]...
  168. </pre></div>
  169. <p>One mandatory option specifies the operation that &lsquo;<samp>qi</samp>&rsquo; should
  170. perform, other options are meant to detail how this operation should be
  171. performed.
  172. </p>
  173. <p>qi supports the following options to operate:
  174. </p>
  175. <dl compact="compact">
  176. <dt><code>-b</code></dt>
  177. <dd><p>Build package using recipe names.
  178. </p>
  179. </dd>
  180. <dt><code>-c</code></dt>
  181. <dd><p>Create .tlz package from directory.
  182. </p>
  183. </dd>
  184. <dt><code>-d</code></dt>
  185. <dd><p>Delete packages.
  186. </p>
  187. </dd>
  188. <dt><code>-i</code></dt>
  189. <dd><p>Install packages.
  190. </p>
  191. </dd>
  192. <dt><code>-o</code></dt>
  193. <dd><p>Resolve build order through .order files.
  194. </p>
  195. </dd>
  196. <dt><code>-u</code></dt>
  197. <dd><p>Update packages (implies -i, -d and -p options).
  198. </p>
  199. </dd>
  200. <dt><code>-w</code></dt>
  201. <dd><p>Warn about files that will be linked.
  202. </p>
  203. </dd>
  204. <dt><code>-x</code></dt>
  205. <dd><p>Extract a package for debugging purposes.
  206. </p></dd>
  207. </dl>
  208. <p>There are common options between modes:
  209. </p>
  210. <dl compact="compact">
  211. <dt><code>-N</code></dt>
  212. <dd><p>Do not read the configuration file.
  213. </p>
  214. <p>This will ignore any value in the qirc file.
  215. </p>
  216. </dd>
  217. <dt><code>-P &lt;DIR&gt;</code></dt>
  218. <dd><p>Package directory for installations.
  219. </p>
  220. <p>This option sets &lsquo;<samp>${packagedir}</samp>&rsquo;.
  221. </p>
  222. <p>Only valid for -i, -d, or -u options.
  223. </p>
  224. </dd>
  225. <dt><code>-f</code></dt>
  226. <dd><p>Force option.
  227. </p>
  228. <p>This option can force the build of a recipe, or force the update of a
  229. pre-existing package.
  230. </p>
  231. <p>Only valid for -b, -u options.
  232. </p>
  233. </dd>
  234. <dt><code>-t &lt;DIR&gt;</code></dt>
  235. <dd><p>Target directory for symbolic links.
  236. </p>
  237. <p>This option sets &lsquo;<samp>${targetdir}</samp>&rsquo;.
  238. </p>
  239. <p>Only valid for -i, -d, or -u options.
  240. </p>
  241. </dd>
  242. <dt><code>-k</code></dt>
  243. <dd><p>Keep (don&rsquo;t delete) &lsquo;<samp>${srcdir}</samp>&rsquo; or &lsquo;<samp>${destdir}</samp>&rsquo; in build
  244. mode, keep (don&rsquo;t delete) package directory in delete mode.
  245. </p>
  246. <p>Only valid for -b, -d or -u options.
  247. </p>
  248. </dd>
  249. <dt><code>-p</code></dt>
  250. <dd><p>Prune conflicts on package installations.
  251. </p>
  252. <p>This option may proceed with the package installation if one or more
  253. conflicts occur.
  254. </p>
  255. </dd>
  256. <dt><code>-r /rootdir</code></dt>
  257. <dd><p>Use the fully qualified named directory as the root directory for all qi
  258. operations. The target directory and package directory will be relative
  259. to the specified directory, including the log file for graft.
  260. </p>
  261. </dd>
  262. <dt><code>-v</code></dt>
  263. <dd><p>Be verbose (a 2nd -v gives more).
  264. </p></dd>
  265. </dl>
  266. <p>Options for build mode (-b):
  267. </p>
  268. <dl compact="compact">
  269. <dt><code>-O &lt;DIR&gt;</code></dt>
  270. <dd><p>Where the packages produced are written.
  271. </p>
  272. <p>This option sets &lsquo;<samp>${outdir}</samp>&rsquo;.
  273. </p>
  274. </dd>
  275. <dt><code>-W &lt;DIR&gt;</code></dt>
  276. <dd><p>Where archives, patches, and recipes are expected.
  277. </p>
  278. <p>This option sets &lsquo;<samp>${worktree}</samp>&rsquo;.
  279. </p>
  280. </dd>
  281. <dt><code>-Z &lt;DIR&gt;</code></dt>
  282. <dd><p>Where (compressed) sources will be found.
  283. </p>
  284. <p>This option sets &lsquo;<samp>${tardir}</samp>&rsquo;.
  285. </p>
  286. </dd>
  287. <dt><code>-a</code></dt>
  288. <dd><p>Architecture to use.
  289. </p>
  290. <p>Default value is obtained via uname(1) as &lsquo;<samp>uname -m</samp>&rsquo;.
  291. </p>
  292. </dd>
  293. <dt><code>-j</code></dt>
  294. <dd><p>Parallel jobs for the compiler.
  295. </p>
  296. <p>If not specified, default sets to 1.
  297. </p>
  298. </dd>
  299. <dt><code>-1</code></dt>
  300. <dd><p>Increment release number (&lsquo;<samp>${release}</samp>&rsquo; + 1).
  301. </p>
  302. <p>It will be omitted if the -n option is being used.
  303. </p>
  304. </dd>
  305. <dt><code>-n</code></dt>
  306. <dd><p>Don&rsquo;t create a .tlz package.
  307. </p>
  308. </dd>
  309. <dt><code>-S</code></dt>
  310. <dd><p>Selects the option to skip completed recipes.
  311. </p>
  312. <p>This means, in interactive mode, when the dialog
  313. to summarize recipes is shown.
  314. </p></dd>
  315. </dl>
  316. <p>Informative options:
  317. </p>
  318. <dl compact="compact">
  319. <dt><code>-L</code></dt>
  320. <dd><p>Print default directory locations.
  321. </p>
  322. <p>This will print the target directory, package directory, working tree,
  323. the directory for tarballs, and the output directory for the packages
  324. produced.
  325. </p>
  326. </dd>
  327. <dt><code>-h</code></dt>
  328. <dd><p>Display the help describing the options and then exit.
  329. </p>
  330. </dd>
  331. <dt><code>-V</code></dt>
  332. <dd><p>Print the version number and license information.
  333. The version number should be included in all bug reports.
  334. </p></dd>
  335. </dl>
  336. <p>Expected non-option arguments are package directories and regular files:
  337. recipes or files ending in .tlz, .order. When FILE is -, qi can read from
  338. the standard input. See examples in <a href="#Packages">Packages</a>.
  339. </p>
  340. <hr>
  341. <a name="The-qirc-file"></a>
  342. <div class="header">
  343. <p>
  344. 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>
  345. </div>
  346. <a name="The-qirc-file-1"></a>
  347. <h2 class="chapter">3 The qirc file</h2>
  348. <a name="index-configuration-file"></a>
  349. <p>The global <samp>qirc</samp> file offers a way to define variables and tools
  350. (such as a download manager) for default use. This file is used by qi
  351. at runtime, e.g., to build, install, remove or upgrade packages.
  352. </p>
  353. <p>It has the following rules:
  354. </p>
  355. <ul>
  356. <li> Variables must be declared as &lsquo;<samp>name=value</samp>&rsquo;.
  357. </li><li> Declaration of values should only take one line, no line break.
  358. </li><li> For security reasons, assignments like &lsquo;<samp>name=$var</samp>&rsquo; are only
  359. interpreted as literal.
  360. </li></ul>
  361. <p>The command line options related to the package directory and target
  362. directory plus some of the options used for the build mode can override
  363. some values in <samp>qirc</samp>. See <a href="#Invoking-qi">Invoking qi</a>.
  364. </p>
  365. <p>The order in which qi looks for this file is:
  366. </p>
  367. <ol>
  368. <li> <code>${HOME}/.qirc</code>
  369. Effective user.
  370. </li><li> &lsquo;<samp>${sysconfdir}/qirc</samp>&rsquo;
  371. System-wide.
  372. </li></ol>
  373. <p>If you intend to run qi as effective user, the file
  374. &lsquo;<samp>${sysconfdir}/qirc</samp>&rsquo; could be copied to <code>${HOME}/.qirc</code>
  375. setting the paths for &lsquo;<samp>${packagedir}</samp>&rsquo; and &lsquo;<samp>${targetdir}</samp>&rsquo;
  376. according to the <code>$HOME</code>.
  377. </p>
  378. <hr>
  379. <a name="Packages"></a>
  380. <div class="header">
  381. <p>
  382. 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>
  383. </div>
  384. <a name="Packages-1"></a>
  385. <h2 class="chapter">4 Packages</h2>
  386. <a name="index-managing-packages"></a>
  387. <p>A package is a suite of programs usually distributed in binary form
  388. which may also contain manual pages, documentation, or any other file
  389. associated to a specific software.
  390. </p>
  391. <p>The package format used by qi is a simplified POSIX pax archive
  392. compressed with lzip. The file extension for packages is &lsquo;<samp>.tlz</samp>&rsquo;.
  393. </p>
  394. <p>Both package installation and package de-installation are managed using
  395. two important (internal) variables: &lsquo;<samp>${packagedir}</samp>&rsquo; and
  396. &lsquo;<samp>${targetdir}</samp>&rsquo;, these values can be changed in the
  397. configuration file or via options.
  398. </p>
  399. <p>&lsquo;<samp>${packagedir}</samp>&rsquo; is a common directory tree where the package
  400. contents will be decompressed (will reside).
  401. </p>
  402. <p>&lsquo;<samp>${targetdir}</samp>&rsquo; is a target directory where the links will be
  403. made by graft(1) taking &lsquo;<samp>${packagedir}/package_name</samp>&rsquo; into account.
  404. </p>
  405. <p>Packages are installed in self-contained directory trees and symbolic
  406. links from a common area are made to the package files. This allows
  407. multiple versions of the same package to coexist on the same system.
  408. </p>
  409. <a name="Package-conflicts"></a>
  410. <h3 class="section">4.1 Package conflicts</h3>
  411. <a name="index-package-conflicts"></a>
  412. <p>All the links to install or remove a package are handled by graft(1).
  413. Since multiple packages can be installed or removed at the same time,
  414. certain conflicts may arise between the packages.
  415. </p>
  416. <p>graft<a name="DOCF1" href="#FOOT1"><sup>1</sup></a>
  417. defines a CONFLICT as one of the following conditions:
  418. </p>
  419. <ul>
  420. <li> If the package object is a directory and the target object exists but is
  421. not a directory.
  422. </li><li> If the package object is not a directory and the target object exists
  423. and is not a symbolic link.
  424. </li><li> If the package object is not a directory and the target object exists
  425. and is a symbolic link to something other than the package object.
  426. </li></ul>
  427. <p>The default behavior of qi for an incoming package is to ABORT if a
  428. conflict arises. When a package is going to be deleted, qi tells to
  429. graft(1) to remove those parts that are not in conflict, leaving the
  430. links to the belonging package. This behavior can be forced if the
  431. -p option is given.
  432. </p>
  433. <a name="Installing-packages"></a>
  434. <h3 class="section">4.2 Installing packages</h3>
  435. <a name="index-package-installation"></a>
  436. <p>To install a single package, simply type:
  437. </p>
  438. <div class="example">
  439. <pre class="example">qi -i coreutils-8.30-i586+1.tlz
  440. </pre></div>
  441. <p>To install multiple packages at once, type:
  442. </p>
  443. <div class="example">
  444. <pre class="example">qi -i gcc-8.3.0-i586+1.tlz rafaela-2.2-i586+1.tlz ...
  445. </pre></div>
  446. <p>Warn about the files that will be linked:
  447. </p>
  448. <div class="example">
  449. <pre class="example">qi -w bash-5.0-i586+1.tlz
  450. </pre></div>
  451. <p>This is to verify the content of a package before installing it.
  452. </p>
  453. <p>See the process of an installation (very verbose):
  454. </p>
  455. <div class="example">
  456. <pre class="example">qi -i -v mariana-3.0-i586+1.tlz
  457. </pre></div>
  458. <p>A second -v gives more.
  459. </p>
  460. <p>Installing package in a different location:
  461. </p>
  462. <div class="example">
  463. <pre class="example">qi -r /media/floppy -i lzip-1.21-i586+1.tlz
  464. </pre></div>
  465. <p>The -r option assumes &lsquo;<samp>${targetdir}</samp>&rsquo; and &lsquo;<samp>${packagedir}</samp>&rsquo;.
  466. See:
  467. </p>
  468. <div class="example">
  469. <pre class="example">qi -r /home/selk -P /pkgs -t / -i lzip-1.21-i586+1.tlz
  470. </pre></div>
  471. <p>In this case the content of &quot;lzip-1.21-i586+1.tlz&quot; will be decompressed
  472. into &lsquo;<samp>/home/selk/pkgs/lzip-1.21-i586+1</samp>&rsquo;. Assuming that the main
  473. binary for lzip is under &lsquo;<samp>/home/selk/pkgs/lzip-1.21-i586+1/usr/bin/</samp>&rsquo;
  474. the target for &quot;usr/bin&quot; will be created at &lsquo;<samp>/home/selk</samp>&rsquo;. Considering
  475. that you have exported the <code>PATH</code> as &lsquo;<samp>${HOME}/usr/bin</samp>&rsquo;, now the
  476. system is able to see the recent lzip.
  477. </p>
  478. <p>Installing from a list of packages using standard input:
  479. </p>
  480. <div class="example">
  481. <pre class="example">cat FILELIST.txt | qi -i -
  482. </pre></div>
  483. <p>The list of packages must contain full path names to be passed in the
  484. installation, e.g.:
  485. /var/cache/qi/packages/x86_64/devel/tcl-8.6.9-x86_64+1.tlz
  486. /var/cache/qi/packages/x86_64/devel/tk-8.6.9.1-x86_64+1.tlz
  487. /var/cache/qi/packages/x86_64/devel/vala-0.42.3-x86_64+1.tlz
  488. </p>
  489. <a name="Removing-packages"></a>
  490. <h3 class="section">4.3 Removing packages</h3>
  491. <a name="index-package-de_002dinstallation"></a>
  492. <p>To remove a package, simply type:
  493. </p>
  494. <div class="example">
  495. <pre class="example">qi -d xz-5.2.4-i586+1.tlz
  496. </pre></div>
  497. <p>Delete mode will match the package name using &lsquo;<samp>${packagedir}</samp>&rsquo; as
  498. prefix. For example, if the value of &lsquo;<samp>${packagedir}</samp>&rsquo; is set to
  499. /usr/local/pkgs, this will be equal to:
  500. </p>
  501. <div class="example">
  502. <pre class="example">qi -d /usr/local/pkgs/xz-5.2.4-i586+1
  503. </pre></div>
  504. <p>Detailed output (very verbose):
  505. </p>
  506. <div class="example">
  507. <pre class="example">qi -d -v /usr/local/pkgs/xz-5.2.4-i586+1
  508. </pre></div>
  509. <p>A second -v gives more.
  510. </p>
  511. <p>By default the delete mode does not preserve a package directory after
  512. removing its links from &lsquo;<samp>${targetdir}</samp>&rsquo;, but this behavior can be
  513. changed if the -k option is passed:
  514. </p>
  515. <div class="example">
  516. <pre class="example">qi -d -k /usr/local/pkgs/lzip-1.21-i586+1
  517. </pre></div>
  518. <p>This means that the links to the package can be reactivated, later:
  519. </p>
  520. <div class="example">
  521. <pre class="example">cd /usr/local/pkgs &amp;&amp; graft -i lzip-1.21-i586+1
  522. </pre></div>
  523. <p>Removing package from a different location:
  524. </p>
  525. <div class="example">
  526. <pre class="example">qi -r /home/cthulhu -P /pkgs -t / -d xz-5.2.4-i586+1
  527. </pre></div>
  528. <p>Removing a package using standard input:
  529. </p>
  530. <div class="example">
  531. <pre class="example">echo &quot;vala-0.42.3-x86_64+1&quot; | qi -d -
  532. </pre></div>
  533. <p>This will match with the package directory.
  534. </p>
  535. <a name="Upgrading-packages"></a>
  536. <h3 class="section">4.4 Upgrading packages</h3>
  537. <a name="index-package-upgrade"></a>
  538. <p>The upgrade mode inherits the properties of the installation and removal
  539. process. To make sure that a package is updated, the package is installed
  540. in a temporary directory taking &lsquo;<samp>${packagedir}</samp>&rsquo; into account. Once
  541. the incoming package is pre-installed, qi can proceed to search and delete
  542. packages that have the same name (considered as previous ones). Finally,
  543. the package is re-installed at its final location and the temporary
  544. directory is removed.
  545. </p>
  546. <p>To upgrade a package, just type:
  547. </p>
  548. <div class="example">
  549. <pre class="example">qi -u gcc-9.0.1-i586+1.tlz
  550. </pre></div>
  551. <p>This will proceed to update &quot;gcc-9.0.1-i586+1&quot; removing other versions
  552. of &quot;gcc&quot; (if any).
  553. </p>
  554. <p>If you want to keep the package directories of versions found during the
  555. upgrade process, just pass:
  556. </p>
  557. <div class="example">
  558. <pre class="example">qi -u -k gcc-9.0.1-i586+1.tlz
  559. </pre></div>
  560. <p>To see the upgrade process (very verbose):
  561. </p>
  562. <div class="example">
  563. <pre class="example">qi -u -v gcc-9.0.1-i586+1.tlz
  564. </pre></div>
  565. <p>A second -v gives more.
  566. </p>
  567. <p>To force the upgrade of an existing package:
  568. </p>
  569. <div class="example">
  570. <pre class="example">qi -u -f gcc-9.0.1-i586+1.tlz
  571. </pre></div>
  572. <a name="Package-blacklist"></a>
  573. <h4 class="subsection">4.4.1 Package blacklist</h4>
  574. <a name="index-package-blacklist"></a>
  575. <p>To implement general package facilities, either to install, remove or
  576. maintain the hierarchy of packages in a clean manner, qi makes use of the
  577. pruning operation via graft(1):
  578. </p>
  579. <p>There is a risk if those are crucial packages for the proper functioning
  580. of the system, because it implies the deactivation of symbolic from the
  581. target directory, <em>especially</em> when transitioning an incoming package
  582. into its final location during upgrade.
  583. </p>
  584. <p>A blacklist of package names has been devised for the case where
  585. a user decides to upgrade all packages in the system, or
  586. just the crucial ones, such as the C library.
  587. </p>
  588. <p>The blacklist is related to the upgrade mode only, consists in installing
  589. a package instead of updating it or removing previous versions of it;
  590. the content of the package will be updated over the existing content at
  591. &lsquo;<samp>${packagedir}</samp>&rsquo;, while the existing links from
  592. &lsquo;<samp>${targetdir}</samp>&rsquo; will be preserved. A pruning of links will be
  593. carried out in order to re-link possible differences with the recent
  594. content, this helps to avoid leaving dead links in the target directory.
  595. </p>
  596. <p>Since the upgrade mode is also used to install a new package, the mechanism
  597. for blacklist is to install a declared package if it does not already
  598. exist. If it already exists, it is verified that the binary package is
  599. newer than the package directory in order to perform an update.
  600. </p>
  601. <p>Package names for the blacklist can be set from the configuration file.
  602. </p>
  603. <hr>
  604. <a name="Recipes"></a>
  605. <div class="header">
  606. <p>
  607. 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>
  608. </div>
  609. <a name="Recipes-1"></a>
  610. <h2 class="chapter">5 Recipes</h2>
  611. <a name="index-recipes"></a>
  612. <p>A recipe is a file telling qi what to do. Most often, the recipe tells
  613. qi how to build a binary package from a source tarball.
  614. </p>
  615. <p>A recipe has two parts: a list of variable definitions and a list of
  616. sections. By convention, the syntax of a section is:
  617. </p>
  618. <div class="example">
  619. <pre class="example">section_name()
  620. {
  621. section lines
  622. }
  623. </pre></div>
  624. <p>The section name is followed by parentheses, one newline and an opening
  625. brace. The line finishing the section contains just a closing brace.
  626. The section names or the function names currently recognized are
  627. &lsquo;<samp>build</samp>&rsquo;.
  628. </p>
  629. <p>The &lsquo;<samp>build</samp>&rsquo; section is an augmented shell script. This is the main
  630. section (or <strong>shell function</strong>) which contains the instructions to
  631. build and produce a package.
  632. </p>
  633. <a name="Variables"></a>
  634. <h3 class="section">5.1 Variables</h3>
  635. <a name="index-variables"></a>
  636. <p>A &quot;variable&quot; is a <strong>shell variable</strong> defined either in <samp>qirc</samp>
  637. or in a recipe to represent a string of text, called the variable&rsquo;s
  638. &quot;value&quot;. These values are substituted by explicit request in the
  639. definitions of other variables or in calls to external commands.
  640. </p>
  641. <p>Variables can represent lists of file names, options to pass to
  642. compilers, programs to run, directories to look in for source files,
  643. directories to write output to, or anything else you can imagine.
  644. </p>
  645. <p>Definitions of variables in qi have four levels of precedence.
  646. Options which define variables from the command-line override those
  647. specified in the <samp>qirc</samp> file, while variables defined in the recipe
  648. override those specified in <samp>qirc</samp>, taking priority over those
  649. variables set by command-line options. Finally, the variables have
  650. default values if they are not defined anywhere.
  651. </p>
  652. <p>Options that set variables through the command-line can only reference
  653. variables defined in <samp>qirc</samp> and variables with default values.
  654. </p>
  655. <p>Definitions of variables in <samp>qirc</samp> can only reference variables
  656. previously defined in <samp>qirc</samp> and variables with default values.
  657. </p>
  658. <p>Definitions of variables in the recipe can only reference variables
  659. set by the command-line, variables previously defined in the recipe,
  660. variables defined in <samp>qirc</samp>, and variables with default values.
  661. </p>
  662. <a name="Special-variables"></a>
  663. <h3 class="section">5.2 Special variables</h3>
  664. <a name="index-special-variables"></a>
  665. <p>There are variables which can only be set using the command line options or
  666. via <samp>qirc</samp>, there are other special variables which can be defined or
  667. redefined in a recipe. See the following definitions:
  668. </p>
  669. <p>&lsquo;<samp>outdir</samp>&rsquo; is the directory where the packages produced are written.
  670. This variable can not be redefined in the recipe. Default sets to
  671. &lsquo;<samp>/var/cache/qi/packages</samp>&rsquo;.
  672. </p>
  673. <p>&lsquo;<samp>worktree</samp>&rsquo; is the working tree where archives, patches, and recipes
  674. are expected. This variable can not be redefined in the recipe. Default
  675. sets to &lsquo;<samp>/usr/src/qi</samp>&rsquo;.
  676. </p>
  677. <p>&lsquo;<samp>tardir</samp>&rsquo; is defined in the recipe to the directory where the tarball
  678. containing the source can be found. The full name of the tarball is
  679. composed as &lsquo;<samp>${tardir}/$tarname</samp>&rsquo;. Its value is available in the
  680. recipe as &lsquo;<samp>${tardir}</samp>&rsquo;; a value of . for &lsquo;<samp>tardir</samp>&rsquo; sets it to
  681. the value of CWD (Current Working Directory), this is where the recipe
  682. lives.
  683. </p>
  684. <p>&lsquo;<samp>arch</samp>&rsquo; is the architecture to compose the package name. Its value is
  685. available in the recipe as &lsquo;<samp>${arch}</samp>&rsquo;. Default value is the output
  686. of &lsquo;<samp>uname -m</samp>&rsquo;.
  687. </p>
  688. <p>&lsquo;<samp>jobs</samp>&rsquo; is the number of parallel jobs to pass to the compiler. Its
  689. value is available in the recipe as &lsquo;<samp>${jobs}</samp>&rsquo;. The default value
  690. is 1.
  691. </p>
  692. <p>The two variables &lsquo;<samp>${srcdir}</samp>&rsquo; and &lsquo;<samp>${destdir}</samp>&rsquo; can be
  693. set in the recipe, as any other variable, but if they are not, qi uses
  694. default values for them when building a package.
  695. </p>
  696. <p>&lsquo;<samp>srcdir</samp>&rsquo; contains the source code to be compiled, and defaults to
  697. &lsquo;<samp>${program}-${version}</samp>&rsquo;. &lsquo;<samp>destdir</samp>&rsquo; is the place where the
  698. built package will be installed, and defaults to
  699. &lsquo;<samp>${TMPDIR}/package-${program}</samp>&rsquo;.
  700. </p>
  701. <p>If &lsquo;<samp>pkgname</samp>&rsquo; is left undefined, the special variable &lsquo;<samp>program</samp>&rsquo;
  702. is assigned by default. If &lsquo;<samp>pkgversion</samp>&rsquo; is left undefined, the
  703. special variable &lsquo;<samp>version</samp>&rsquo; is assigned by default.
  704. </p>
  705. <p>&lsquo;<samp>pkgname</samp>&rsquo; and &lsquo;<samp>pkgversion</samp>&rsquo; along with: &lsquo;<samp>version</samp>&rsquo;, &lsquo;<samp>arch</samp>&rsquo;,
  706. and &lsquo;<samp>release</samp>&rsquo; are used to produce the name of the package in the form:
  707. &lsquo;<samp>${pkgname}-${pkgversion}-${arch}+${release}.tlz</samp>&rsquo;
  708. </p>
  709. <p>A special variable called &lsquo;<samp>replace</samp>&rsquo; can be used to declare package
  710. names that will be replaced at the time of installation.
  711. </p>
  712. <p>A typical recipe contains the following variables:
  713. </p>
  714. <ul>
  715. <li> &lsquo;<samp>program</samp>&rsquo;: software name.
  716. <p>It matches the source name. It is also used to compose the name of the
  717. package if &lsquo;<samp>${pkgname}</samp>&rsquo; is not specified.
  718. </p>
  719. </li><li> &lsquo;<samp>version</samp>&rsquo;: software version.
  720. <p>It matches the source name. It is also used to compose the version of the
  721. package if &lsquo;<samp>${pkgversion}</samp>&rsquo; is not specified.
  722. </p>
  723. </li><li> &lsquo;<samp>arch</samp>&rsquo;: software architecture.
  724. <p>It is used to compose the architecture of the package in which it is
  725. build.
  726. </p>
  727. </li><li> &lsquo;<samp>release</samp>&rsquo;: release number.
  728. <p>This is used to reflect the release number of the package. It is
  729. recommended to increase this number after any significant change in
  730. the recipe or post-install script.
  731. </p></li></ul>
  732. <p>Obtaining sources over the network must be declared in the recipe using
  733. the &lsquo;<samp>fetch</samp>&rsquo; variable. Use double quotes for separated values.
  734. </p>
  735. <p>The variables &lsquo;<samp>netget</samp>&rsquo; and &lsquo;<samp>rsync</samp>&rsquo; can be defined in <samp>qirc</samp>
  736. to establish a network downloader in order to get the sources. If they
  737. are not defined, qi uses default values:
  738. </p>
  739. <p>&lsquo;<samp>netget</samp>&rsquo; is the general network downloader tool, defaults sets to
  740. &lsquo;<samp>wget -c -w1 -t3 --no-check-certificate</samp>&rsquo;.
  741. </p>
  742. <p>&lsquo;<samp>rsync</samp>&rsquo; is the network tool for sources containing the prefix for
  743. the RSYNC protocol, default sets to
  744. &lsquo;<samp>rsync -v -a -L -z -i --progress</samp>&rsquo;.
  745. </p>
  746. <p>The variable &lsquo;<samp>description</samp>&rsquo; is used to print the package description
  747. when a package is installed.
  748. </p>
  749. <p>A description has two parts: a brief description, and a long description.
  750. By convention, the syntax of &lsquo;<samp>description</samp>&rsquo; is:
  751. </p>
  752. <div class="example">
  753. <pre class="example">description=&quot;
  754. Brief description.
  755. Long description.
  756. &quot;
  757. </pre></div>
  758. <p>The first line of the value represented is a brief description of the
  759. software (called &quot;blurb&quot;). A blank line separates the <em>brief
  760. description</em> from the <em>long description</em>, which should contain a more
  761. descriptive description of the software.
  762. </p>
  763. <p>An example looks like:
  764. </p>
  765. <div class="example">
  766. <pre class="example">description=&quot;
  767. The GNU core utilities.
  768. The GNU core utilities are the basic file, shell and text manipulation
  769. utilities of the GNU operating system. These are the core utilities
  770. which are expected to exist on every operating system.
  771. &quot;
  772. </pre></div>
  773. <p>Please consider a length limit of 78 characters as maximum, because the same
  774. one would be used on the meta file creation. See
  775. <a href="#Recipes">The meta file</a> section.
  776. </p>
  777. <p>The &lsquo;<samp>homepage</samp>&rsquo; variable is used to declare the main site or home page:
  778. </p>
  779. <div class="example">
  780. <pre class="example">homepage=http://www.gnu.org/software/gcc
  781. </pre></div>
  782. <p>The variable &lsquo;<samp>license</samp>&rsquo; is used for license information<a name="DOCF2" href="#FOOT2"><sup>2</sup></a>.
  783. Some code in the program can be covered by license A, license B, or
  784. license C. For &quot;separate licensing&quot; or &quot;heterogeneous licensing&quot;, we
  785. suggest using <strong>|</strong> for a disjunction, <strong>&amp;</strong> for a conjunction
  786. (if that ever happens in a significant way), and comma for heterogeneous
  787. licensing. Comma would have lower precedence, plus added special terms.
  788. </p>
  789. <div class="example">
  790. <pre class="example">license=&quot;LGPL, GPL | Artistic + added permission&quot;
  791. </pre></div>
  792. <a name="Writing-recipes"></a>
  793. <h3 class="section">5.3 Writing recipes</h3>
  794. <a name="index-writing-recipes"></a>
  795. <p>Originally, qi was designed for the version 3 of Dragora GNU/Linux (this
  796. does not mean that you can&rsquo;t use it in another distribution, just that
  797. if you do you will need to test it for your selves). To aid this here
  798. are some references to well written recipes:
  799. </p>
  800. <p><a href="http://git.savannah.nongnu.org/cgit/dragora.git/tree/recipes">http://git.savannah.nongnu.org/cgit/dragora.git/tree/recipes</a>.
  801. <a href="http://notabug.org/dragora/dragora/src/master/recipes">http://notabug.org/dragora/dragora/src/master/recipes</a>.
  802. </p>
  803. <p>You can also check the &quot;doc&quot; directory in the distribution sources of qi
  804. for some examples.
  805. </p>
  806. <a name="Building-packages"></a>
  807. <h3 class="section">5.4 Building packages</h3>
  808. <a name="index-package-build"></a>
  809. <p>A recipe is any valid regular file. Qi sets priorities for reading a
  810. recipe, the order in which qi looks for a recipe is:
  811. </p>
  812. <ol>
  813. <li> Current working directory.
  814. </li><li> If the specified path name does not contain &quot;recipe&quot; as the last
  815. component. Qi will complete it by adding &quot;recipe&quot; to the path name.
  816. </li><li> If the recipe is not in the current working directory, it will be
  817. searched under &lsquo;<samp>${worktree}/recipes</samp>&rsquo;. The last component will be
  818. completed adding &quot;recipe&quot; to the specified path name.
  819. </li></ol>
  820. <p>To build a single package, type:
  821. </p>
  822. <div class="example">
  823. <pre class="example">qi -b x-apps/xterm
  824. </pre></div>
  825. <p>Multiple jobs can be passed to the compiler to speed up the build process:
  826. </p>
  827. <div class="example">
  828. <pre class="example">qi -b -j3 x-apps/xterm
  829. </pre></div>
  830. <p>Update or install the package produced (if it is not already installed)
  831. when finish:
  832. </p>
  833. <div class="example">
  834. <pre class="example">qi -b -j3 -u x-apps/xterm
  835. </pre></div>
  836. <p>Only process a recipe but do not create the binary package:
  837. </p>
  838. <div class="example">
  839. <pre class="example">qi -b -n dict/aspell
  840. </pre></div>
  841. <p>The options -i or -u have no effect when -n is given.
  842. </p>
  843. <p>This can be useful to inspect the build process of recipe:
  844. </p>
  845. <p>qi -b -k -n dict/aspell 2&gt;&amp;1 | tee aspell-buildlog.txt
  846. </p>
  847. <p>The -k option could preserve the source directory and the destination
  848. directory for later inspection. A log file of the build process will be
  849. created redirecting both, standard error and standard output to tee(1).
  850. </p>
  851. <a name="Variables-from-the-environment"></a>
  852. <h3 class="section">5.5 Variables from the environment</h3>
  853. <a name="index-environment-variables"></a>
  854. <p>Qi has environment variables which can be used at build time:
  855. </p>
  856. <p>The variable <code>TMPDIR</code> sets the temporary directory for sources, which is
  857. used for package extractions (see <a href="#Examining-packages">Examining packages</a>) and is
  858. prepended to the value of &lsquo;<samp>${srcdir}</samp>&rsquo; and &lsquo;<samp>${destdir}</samp>&rsquo; in
  859. build mode. By convention its default value is equal to
  860. &lsquo;<samp>/usr/src/qi/build</samp>&rsquo;.
  861. </p>
  862. <p>The variables <code>QICFLAGS</code>, <code>QICXXFLAGS</code>, and <code>QILDFLAGS</code> have
  863. no effect by default. The environment variables such as <code>CFLAGS</code>,
  864. <code>CXXFLAGS</code>, and <code>LDFLAGS</code> are unset at compile time:
  865. </p>
  866. <p>Recommended practice is to set variables in the command line of
  867. &lsquo;<samp>configure</samp>&rsquo; or <em>make(1)</em> instead of exporting to the
  868. environment. As follows:
  869. </p>
  870. <blockquote>
  871. <p>Variables not defined in a site shell script can be set in the environment
  872. passed to configure. However, some packages may run configure again
  873. during the build, and the customized values of these variables may be
  874. lost. In order to avoid this problem, you should set them in the
  875. configure command line, using &lsquo;<samp>VAR=value</samp>&rsquo;. For example:
  876. </p>
  877. <p><code>./configure CC=/usr/local2/bin/gcc</code>
  878. </p>
  879. <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>
  880. </p></blockquote>
  881. <blockquote>
  882. <p>Indeed, while configure can notice the definition of CC in
  883. &lsquo;<samp>./configure CC=bizarre-cc</samp>&rsquo;, it is impossible to notice it in
  884. &lsquo;<samp>CC=bizarre-cc ./configure</samp>&rsquo;, which, unfortunately, is what most
  885. users do.
  886. </p>
  887. <p>[...]
  888. </p>
  889. <p>configure: error: changes in the environment can compromise the build.
  890. </p>
  891. <p><a href="http://gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Setting-Output-Variables.html">http://gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Setting-Output-Variables.html</a>
  892. </p></blockquote>
  893. <blockquote>
  894. <p>It is not wise for makefiles to depend for their functioning on
  895. environment variables set up outside their control, since this would cause
  896. different users to get different results from the same makefile. This is
  897. against the whole purpose of most makefiles.
  898. </p>
  899. <p><a href="http://gnu.org/software/make/manual/make.html#Environment">http://gnu.org/software/make/manual/make.html#Environment</a>
  900. </p></blockquote>
  901. <a name="The-meta-file"></a>
  902. <h3 class="section">5.6 The meta file</h3>
  903. <a name="index-the-meta-file"></a>
  904. <p>The &quot;meta file&quot; is a regular file created during the build mode, it
  905. contains information about the package such as package name, package
  906. version, architecture, release, fetch address, description, and other
  907. minor data extracted from processed recipes. The name of the file is
  908. generated as &lsquo;<samp>${full_pkgname}.tlz.txt</samp>&rsquo;, and its purpose is to
  909. reflect essential information to the user without having to look inside
  910. the package content. The file format is also intended to be imported
  911. from other scripts.
  912. </p>
  913. <p>The content of a meta file looks like:
  914. </p>
  915. <div class="example">
  916. <pre class="example">#
  917. # The Bourne Again SHell.
  918. #
  919. # Bash is an sh-compatible shell that incorporates useful features from
  920. # the Korn shell (ksh) and C shell (csh). It is intended to conform to
  921. # the IEEE POSIX P1003.2/ISO 9945.2 shell and tools standard.
  922. #
  923. # It offers functional improvements over sh for both programming and
  924. # interactive use.
  925. #
  926. QICFLAGS=&quot;-g0 -Os -mtune=generic -pipe&quot;
  927. QICXXFLAGS=&quot;-g0 -Os -mtune=generic -pipe&quot;
  928. QILDFLAGS=&quot;-s&quot;
  929. pkgname=bash
  930. pkgversion=5.0
  931. arch=x86_64
  932. release=1
  933. blurb=&quot;The Bourne Again SHell.&quot;
  934. homepage=&quot;http://www.gnu.org/software/bash&quot;
  935. license=&quot;GPLv3+&quot;
  936. fetch=&quot;ftp://ftp.gnu.org/gnu/bash/bash-5.0.tar.gz&quot;
  937. replace=&quot;&quot;
  938. </pre></div>
  939. <p>Package descriptions are extracted from the variable &lsquo;<samp>description</samp>&rsquo;
  940. where each line is interpreted literally and pre-formatted to fit in
  941. (exactly) <strong>80 columns</strong>, plus the character &lsquo;<samp>#</samp>&rsquo; and a space
  942. is prefixed to every line.
  943. </p>
  944. <p>In addition to the Special variables, there are implicit variables such as
  945. &lsquo;<samp>blurb</samp>&rsquo;:
  946. </p>
  947. <p>The &lsquo;<samp>blurb</samp>&rsquo; variable is related to the special variable
  948. &lsquo;<samp>description</samp>&rsquo;. Its value is composed using the first (substantial)
  949. line of &lsquo;<samp>description</samp>&rsquo;, mentioned as the &quot;brief description&quot;.
  950. </p>
  951. <hr>
  952. <a name="Order-files"></a>
  953. <div class="header">
  954. <p>
  955. 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>
  956. </div>
  957. <a name="Order-files-1"></a>
  958. <h2 class="chapter">6 Order files</h2>
  959. <a name="index-handling-build-order"></a>
  960. <p>The order mode has the purpose of resolving the build order through
  961. .order files. An order file contains a list of recipe names, by default
  962. does not perform any action other than to print a resolved list in
  963. descending order. For example, if <strong>a</strong> depends on <strong>b</strong> and
  964. <strong>c</strong>, and <strong>c</strong> depends on <strong>b</strong> as well, the file might
  965. look like:
  966. </p>
  967. <div class="example">
  968. <pre class="example">a: c b
  969. b:
  970. c: b
  971. </pre></div>
  972. <p>Each letter represents a recipe name, complete dependencies for
  973. the first recipe name are listed in descending order, which is
  974. printed from right to left, and removed from left to right:
  975. </p>
  976. <p><small>OUTPUT</small>
  977. </p>
  978. <div class="example">
  979. <pre class="example">b
  980. c
  981. a
  982. </pre></div>
  983. <p>Blank lines, colons and parentheses are simply ignored. Comment lines
  984. beginning with &lsquo;<samp>#</samp>&rsquo; are allowed.
  985. </p>
  986. <p>An order file could be used to build a series of packages, for example,
  987. if the content is:
  988. </p>
  989. <div class="example">
  990. <pre class="example"># Image handling libraries
  991. libs/libjpeg-turbo: devel/nasm
  992. x-libs/jasper: libs/libjpeg-turbo
  993. libs/tiff: libs/libjpeg-turbo
  994. </pre></div>
  995. <p>To proceed with each recipe, we can type:
  996. </p>
  997. <div class="example">
  998. <pre class="example">qi -o imglibs.order | qi -b -i -
  999. </pre></div>
  1000. <p>The output of &lsquo;<samp>qi -o imglibs.order</samp>&rsquo; tells to qi in which order it
  1001. should build the recipes:
  1002. </p>
  1003. <div class="example">
  1004. <pre class="example">devel/nasm
  1005. libs/libjpeg-turbo
  1006. x-libs/jasper
  1007. libs/tiff
  1008. </pre></div>
  1009. <hr>
  1010. <a name="Creating-packages"></a>
  1011. <div class="header">
  1012. <p>
  1013. 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>
  1014. </div>
  1015. <a name="Creating-packages-1"></a>
  1016. <h2 class="chapter">7 Creating packages</h2>
  1017. <a name="index-package-creation"></a>
  1018. <p>The &quot;creation mode&quot; is an internal function of qi to make new Qi compatible
  1019. compatible packages, the creation mode is selected by the -c option.
  1020. A package is produced using the contents of the Current Directory, and
  1021. the package file is written out.
  1022. </p>
  1023. <div class="example">
  1024. <pre class="example">Usage: qi -c [<var>OUTPUT/packagename.tlz</var>]...
  1025. </pre></div>
  1026. <p>The argument for the file name to be written must contain a fully
  1027. qualified named directory as the output directory where the package
  1028. produced will be written. The file name should be composed using the
  1029. full name: name-version-architecture+release.tlz
  1030. </p>
  1031. <p><small>EXAMPLE</small>
  1032. </p>
  1033. <div class="example">
  1034. <pre class="example">cd /usr/local/pkgs
  1035. cd claws-mail-3.17.1-x86_64+1
  1036. qi -c /var/cache/qi/packages/x86_64/local/claws-mail-3.17.1-x86_64+1.tlz
  1037. </pre></div>
  1038. <p>In this case, the package &quot;claws-mail-3.17.1-x86_64+1.tlz&quot; will be written
  1039. into &lsquo;<samp>/var/cache/qi/packages/x86_64/local/</samp>&rsquo;.
  1040. </p>
  1041. <p>All packages produced are complemented by a checksum file (.sha256).
  1042. </p>
  1043. <hr>
  1044. <a name="Examining-packages"></a>
  1045. <div class="header">
  1046. <p>
  1047. Next: <a href="#Exit-status" accesskey="n" rel="next">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>
  1048. </div>
  1049. <a name="Examining-packages-1"></a>
  1050. <h2 class="chapter">8 Examining packages</h2>
  1051. <a name="index-package-examination"></a>
  1052. <p>The &quot;extraction mode&quot; serves to examine binary packages for debugging
  1053. purposes. The extraction mode is selected by the -x option. It
  1054. decompresses a package into a single directory, verifying its integrity
  1055. and preserving its properties.
  1056. </p>
  1057. <div class="example">
  1058. <pre class="example">Usage: qi -x [<var>packagename.tlz</var>]...
  1059. </pre></div>
  1060. <p><small>EXAMPLE</small>
  1061. </p>
  1062. <div class="example">
  1063. <pre class="example">qi -x mksh-R56c-x86_64+1.tlz
  1064. </pre></div>
  1065. <p>This action will put the content of &quot;mksh-R56c-x86_64+1.tlz&quot; into a
  1066. single directory, this will be a private directory for the user who
  1067. </p>
  1068. <p>requested the action, creation mode will be equal to <strong>u=rwx,g=,o=
  1069. (0700)</strong>. The package content will reside on this location, default
  1070. mask to deploy the content will be equal to
  1071. <strong>u=rwx,g=rwx,o=rwx (0000)</strong>.
  1072. </p>
  1073. <p>The creation of the custom directory is influenced by the value of the
  1074. <code>TMPDIR</code> variable.
  1075. </p>
  1076. <hr>
  1077. <a name="Exit-status"></a>
  1078. <div class="header">
  1079. <p>
  1080. 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>
  1081. </div>
  1082. <a name="Exit-status-1"></a>
  1083. <h2 class="chapter">9 Exit status</h2>
  1084. <a name="index-exit-codes"></a>
  1085. <p>All the exit codes are described in this chapter.
  1086. </p>
  1087. <dl compact="compact">
  1088. <dt>&lsquo;<samp>0</samp>&rsquo;</dt>
  1089. <dd><p>Successful completion (no errors).
  1090. </p>
  1091. </dd>
  1092. <dt>&lsquo;<samp>1</samp>&rsquo;</dt>
  1093. <dd><p>Minor common errors:
  1094. </p>
  1095. <ul class="no-bullet">
  1096. <li>- Help usage on illegal options or required arguments.
  1097. </li><li>- Program needed by qi (prerequisite) is not available.
  1098. </li></ul>
  1099. </dd>
  1100. <dt>&lsquo;<samp>2</samp>&rsquo;</dt>
  1101. <dd><p>Command execution error:
  1102. </p>
  1103. <p>This code is used to return the evaluation of external commands and shell
  1104. arguments in case of error.
  1105. </p>
  1106. </dd>
  1107. <dt>&lsquo;<samp>3</samp>&rsquo;</dt>
  1108. <dd><p>Integrity check error for compressed files.
  1109. </p>
  1110. <p>Compressed files means:
  1111. </p>
  1112. <ul class="no-bullet">
  1113. <li>- Tarball files from tar(1).
  1114. Supported extensions: .tar, .tar.gz, .tgz, .tar.Z, .tar.bz2, .tbz2, .tbz,
  1115. .tar.xz, .txz
  1116. </li><li>- Tarball files from tarlz(1).
  1117. Supported extensions: .tar.lz, .tlz
  1118. </li><li>- Zip files from unzip(1).
  1119. Supported extensions: .zip, .ZIP
  1120. </li><li>- Gzip files from gzip(1).
  1121. Supported extensions: .gz, .Z
  1122. </li><li>- Bzip2 files from bzip2(1).
  1123. Supported extensions: .bz2
  1124. </li><li>- Lzip files from lzip(1).
  1125. Supported extensions: .lz
  1126. </li><li>- Xz files from xz(1).
  1127. Supported extensions: .xz
  1128. </li></ul>
  1129. </dd>
  1130. <dt>&lsquo;<samp>4</samp>&rsquo;</dt>
  1131. <dd><p>File empty, not regular, or expected.
  1132. </p>
  1133. <p>Commonly, it is expected:
  1134. </p>
  1135. <ul class="no-bullet">
  1136. <li>- An argument for the mode of operation.
  1137. </li><li>- A readable file or directory.
  1138. </li><li>- A binary package (.tlz).
  1139. </li><li>- A valid recipe.
  1140. </li><li>- An order file (.order).
  1141. </li><li>- A protocol supported by the network downloader tool.
  1142. </li><li>- A checksum file (.sha256).
  1143. </li></ul>
  1144. </dd>
  1145. <dt>&lsquo;<samp>5</samp>&rsquo;</dt>
  1146. <dd><p>Empty or not defined variable:
  1147. </p>
  1148. <p>This code is used to report empty or undefined variables; usually,
  1149. variables coming from a recipe or assigned arrays that are tested.
  1150. </p>
  1151. </dd>
  1152. <dt>&lsquo;<samp>6</samp>&rsquo;</dt>
  1153. <dd><p>Package already installed:
  1154. </p>
  1155. <p>The package directory for an incoming .tlz package already exists.
  1156. </p>
  1157. </dd>
  1158. <dt>&lsquo;<samp>10</samp>&rsquo;</dt>
  1159. <dd><p>Network manager error:
  1160. </p>
  1161. <p>This code is used if the network downloader tool fails for some reason.
  1162. </p></dd>
  1163. </dl>
  1164. <hr>
  1165. <a name="Index"></a>
  1166. <div class="header">
  1167. <p>
  1168. Previous: <a href="#Exit-status" accesskey="p" rel="prev">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>
  1169. </div>
  1170. <a name="Index-1"></a>
  1171. <h2 class="unnumbered">Index</h2>
  1172. <table><tr><th valign="top">Jump to: &nbsp; </th><td><a class="summary-letter" href="#Index_cp_letter-C"><b>C</b></a>
  1173. &nbsp;
  1174. <a class="summary-letter" href="#Index_cp_letter-E"><b>E</b></a>
  1175. &nbsp;
  1176. <a class="summary-letter" href="#Index_cp_letter-H"><b>H</b></a>
  1177. &nbsp;
  1178. <a class="summary-letter" href="#Index_cp_letter-I"><b>I</b></a>
  1179. &nbsp;
  1180. <a class="summary-letter" href="#Index_cp_letter-M"><b>M</b></a>
  1181. &nbsp;
  1182. <a class="summary-letter" href="#Index_cp_letter-P"><b>P</b></a>
  1183. &nbsp;
  1184. <a class="summary-letter" href="#Index_cp_letter-R"><b>R</b></a>
  1185. &nbsp;
  1186. <a class="summary-letter" href="#Index_cp_letter-S"><b>S</b></a>
  1187. &nbsp;
  1188. <a class="summary-letter" href="#Index_cp_letter-T"><b>T</b></a>
  1189. &nbsp;
  1190. <a class="summary-letter" href="#Index_cp_letter-V"><b>V</b></a>
  1191. &nbsp;
  1192. <a class="summary-letter" href="#Index_cp_letter-W"><b>W</b></a>
  1193. &nbsp;
  1194. </td></tr></table>
  1195. <table class="index-cp" border="0">
  1196. <tr><td></td><th align="left">Index Entry</th><td>&nbsp;</td><th align="left"> Section</th></tr>
  1197. <tr><td colspan="4"> <hr></td></tr>
  1198. <tr><th><a name="Index_cp_letter-C">C</a></th><td></td><td></td></tr>
  1199. <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>
  1200. <tr><td colspan="4"> <hr></td></tr>
  1201. <tr><th><a name="Index_cp_letter-E">E</a></th><td></td><td></td></tr>
  1202. <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>
  1203. <tr><td></td><td valign="top"><a href="#index-exit-codes">exit codes</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Exit-status">Exit status</a></td></tr>
  1204. <tr><td colspan="4"> <hr></td></tr>
  1205. <tr><th><a name="Index_cp_letter-H">H</a></th><td></td><td></td></tr>
  1206. <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>
  1207. <tr><td colspan="4"> <hr></td></tr>
  1208. <tr><th><a name="Index_cp_letter-I">I</a></th><td></td><td></td></tr>
  1209. <tr><td></td><td valign="top"><a href="#index-introduction">introduction</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Introduction">Introduction</a></td></tr>
  1210. <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>
  1211. <tr><td colspan="4"> <hr></td></tr>
  1212. <tr><th><a name="Index_cp_letter-M">M</a></th><td></td><td></td></tr>
  1213. <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>
  1214. <tr><td colspan="4"> <hr></td></tr>
  1215. <tr><th><a name="Index_cp_letter-P">P</a></th><td></td><td></td></tr>
  1216. <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>
  1217. <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>
  1218. <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>
  1219. <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>
  1220. <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>
  1221. <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>
  1222. <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>
  1223. <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>
  1224. <tr><td colspan="4"> <hr></td></tr>
  1225. <tr><th><a name="Index_cp_letter-R">R</a></th><td></td><td></td></tr>
  1226. <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>
  1227. <tr><td colspan="4"> <hr></td></tr>
  1228. <tr><th><a name="Index_cp_letter-S">S</a></th><td></td><td></td></tr>
  1229. <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>
  1230. <tr><td colspan="4"> <hr></td></tr>
  1231. <tr><th><a name="Index_cp_letter-T">T</a></th><td></td><td></td></tr>
  1232. <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>
  1233. <tr><td colspan="4"> <hr></td></tr>
  1234. <tr><th><a name="Index_cp_letter-V">V</a></th><td></td><td></td></tr>
  1235. <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>
  1236. <tr><td colspan="4"> <hr></td></tr>
  1237. <tr><th><a name="Index_cp_letter-W">W</a></th><td></td><td></td></tr>
  1238. <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>
  1239. <tr><td colspan="4"> <hr></td></tr>
  1240. </table>
  1241. <table><tr><th valign="top">Jump to: &nbsp; </th><td><a class="summary-letter" href="#Index_cp_letter-C"><b>C</b></a>
  1242. &nbsp;
  1243. <a class="summary-letter" href="#Index_cp_letter-E"><b>E</b></a>
  1244. &nbsp;
  1245. <a class="summary-letter" href="#Index_cp_letter-H"><b>H</b></a>
  1246. &nbsp;
  1247. <a class="summary-letter" href="#Index_cp_letter-I"><b>I</b></a>
  1248. &nbsp;
  1249. <a class="summary-letter" href="#Index_cp_letter-M"><b>M</b></a>
  1250. &nbsp;
  1251. <a class="summary-letter" href="#Index_cp_letter-P"><b>P</b></a>
  1252. &nbsp;
  1253. <a class="summary-letter" href="#Index_cp_letter-R"><b>R</b></a>
  1254. &nbsp;
  1255. <a class="summary-letter" href="#Index_cp_letter-S"><b>S</b></a>
  1256. &nbsp;
  1257. <a class="summary-letter" href="#Index_cp_letter-T"><b>T</b></a>
  1258. &nbsp;
  1259. <a class="summary-letter" href="#Index_cp_letter-V"><b>V</b></a>
  1260. &nbsp;
  1261. <a class="summary-letter" href="#Index_cp_letter-W"><b>W</b></a>
  1262. &nbsp;
  1263. </td></tr></table>
  1264. <div class="footnote">
  1265. <hr>
  1266. <h4 class="footnotes-heading">Footnotes</h4>
  1267. <h3><a name="FOOT1" href="#DOCF1">(1)</a></h3>
  1268. <p>The official guide for Graft can be found at
  1269. <a href="http://peters.gormand.com.au/Home/tools/graft/graft.html">http://peters.gormand.com.au/Home/tools/graft/graft.html</a>.</p>
  1270. <h3><a name="FOOT2" href="#DOCF2">(2)</a></h3>
  1271. <p>The proposal for &lsquo;<samp>license</samp>&rsquo; was made by Richard M. Stallman at
  1272. <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>
  1273. </div>
  1274. <hr>
  1275. </body>
  1276. </html>