qi.html 60 KB

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