qi.html 61 KB

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