qi.info 63 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757
  1. This is qi.info, produced by makeinfo version 4.13 from qi.texi.
  2. This manual is for Qi (version 1.0-rc4, 30 Jan 2017), which is a simple
  3. source builder and package manager.
  4. Copyright (C) 2015, 2016, 2017 Matias A. Fonzo, Argentina, Santiago
  5. del Estero.
  6. Permission is granted to copy, distribute and/or modify this
  7. document under the terms of the GNU Free Documentation License,
  8. Version 1.3 or any later version published by the Free Software
  9. Foundation; with no Invariant Sections, with no Front-Cover Texts,
  10. and with no Back-Cover Texts. A copy of the license is included
  11. in the section entitled "GNU Free Documentation License".
  12. INFO-DIR-SECTION Texinfo documentation system
  13. START-INFO-DIR-ENTRY
  14. * Qi: (qi). Source builder and package manager.
  15. END-INFO-DIR-ENTRY
  16. 
  17. File: qi.info, Node: Top, Next: Introduction, Up: (dir)
  18. Qi manual
  19. *********
  20. This manual is for Qi (version 1.0-rc4, 30 Jan 2017).
  21. * Menu:
  22. * Introduction:: Purpose, description
  23. * Invocation:: Command-line interface
  24. * The qirc file:: Configuration file
  25. * Packages:: Managing packages
  26. * Recipes:: Building packages
  27. * Order files:: Handling the build order
  28. * Examine packages:: Debugging purposes
  29. * Messages:: Output messages
  30. * Exit status:: Exit codes
  31. * GNU Free Documentation License::
  32. * Index::
  33. Copyright (C) 2015-2017 Matias A. Fonzo, Argentina, Santiago del
  34. Estero.
  35. The Qi home page can be found at `http://www.dragora.org'.
  36. Send bug reports or suggestions to <dragora-users@nongnu.org>.
  37. 
  38. File: qi.info, Node: Introduction, Next: Invocation, Prev: Top, Up: Top
  39. 1 Introduction
  40. **************
  41. Qi is a source builder and a package manager:
  42. It contains a set of (individual) tools to build, install, remove,
  43. and upgrade software packages. It follows the philosophy of simplicity
  44. without adding too many features, such as those that can be found in
  45. popular package managers. Basically it does two things: builds
  46. packages and manages them.
  47. Qi constructs the sources using recipe names, files that contain
  48. specific instructions to build every source. As result, a binary
  49. package is obtained which can be installed, removed, upgraded, or
  50. inspected in the system.
  51. The packages are managed thanks to an external tool called
  52. _graft(1)_, which provides a mechanism for managing multiple packages
  53. under a single directory hierarchy, it was inspired by both Depot
  54. (Carnegie Mellon University) and Stow (Bob Glickstein). In this
  55. aspect, Qi complements Graft: it can work with packages, check them,
  56. solve conflicts, and more...
  57. 
  58. File: qi.info, Node: Invocation, Next: The qirc file, Prev: Introduction, Up: Top
  59. 2 Invocation
  60. ************
  61. The synopsis to invoke Qi is:
  62. pkg<action> [options] [package|recipe|order] ...
  63. The following commands or actions are supported by Qi:
  64. `pkghelp'
  65. Shows the help.
  66. `pkgadd'
  67. Add the packages to the system using _graft(1)_ for linking.
  68. `pkgremove'
  69. Remove the packages from the system.
  70. `pkgupgrade'
  71. Upgrade software packages.
  72. `pkgbuild'
  73. Build packages using recipe files.
  74. `pkgorder'
  75. Resolves the build order through .order files.
  76. `pkgerupt'
  77. Examine packages for debugging purposes.
  78. *Global options*
  79. There are global or common options for the commands, as well as
  80. specific to each one.
  81. `-h'
  82. Show options for the given command and exit.
  83. *Options for command `pkgadd':*
  84. `-f'
  85. Force package installation (implies -p).
  86. `-P'
  87. Extract package on an installation tree.
  88. This option sets `${packagedir}'.
  89. Default value: _PREFIX/pkg_
  90. `-p'
  91. Prune conflicts.
  92. `-t'
  93. Target directory for linking.
  94. This option sets `${targetdir}'.
  95. Default value: _/_
  96. `-V'
  97. _graft(1)_ very verbose.
  98. `-w'
  99. Warn about the files that will be linked.
  100. *Options for command `pkgremove':*
  101. `-k'
  102. Keep (don't delete) package directory.
  103. `-P'
  104. Remove from an installation tree.
  105. This option sets `${packagedir}'.
  106. Default value: _PREFIX/pkg_
  107. `-p'
  108. Prune conflicts.
  109. `-t'
  110. Target directory for unlinking.
  111. This option sets `${targetdir}'.
  112. Default value: _/_
  113. `-V'
  114. _graft(1)_ very verbose.
  115. *Options for command `pkgupgrade':*
  116. `-k'
  117. Keep (don't delete) package directory.
  118. `-P'
  119. Package installation tree.
  120. This option sets `${packagedir}'.
  121. Default value: _PREFIX/pkg_
  122. `-t'
  123. Target directory.
  124. This option sets `${targetdir}'.
  125. Default value: _/_
  126. `-V'
  127. Enable (very) verbose mode.
  128. `-w'
  129. Warn about packages that will be upgraded.
  130. *Options for command `pkgbuild':*
  131. `-a'
  132. Architecture to use.
  133. This option sets `${arch}'.
  134. Default value is obtained via _uname(1)_ as `uname -m'.
  135. `-i'
  136. Increment release number.
  137. This option increment the release number when a package is
  138. produced.
  139. `-j'
  140. Parallel jobs for the compiler
  141. This option sets `${jobs}'.
  142. Default value: _1_
  143. `-k'
  144. Keep (don't delete) `${srcdir}' and `${destdir}'.
  145. `-n'
  146. Don't create a .tlz package.
  147. `-o'
  148. Where the produced packages are written.
  149. This option sets `${outdir}'.
  150. Default value: _/var/cache/qi/packages_
  151. `-U'
  152. Perform package upgrade after build.
  153. This option calls to `pkgupgrade'.
  154. *Options for command `pkgorder':*
  155. `-x'
  156. Exclude depends file.
  157. 2.1 Environment
  158. ===============
  159. Some influential environment variables:
  160. `QICFLAGS'
  161. C compiler flags for building packages.
  162. Default value: _"-g0 -Os"_
  163. `QICXXFLAGS'
  164. C++ compiler flags for building packages.
  165. Default value: _"-g0 -Os"_
  166. `QILDFLAGS'
  167. Linker flags for building packages.
  168. Default value: _-s_
  169. `DOPOST'
  170. post-install script control variable.
  171. The `DOPOST' variable is currently used for `pkgadd',
  172. `pkgupgrade', `pkgbuild' (when option -U is given).
  173. A different value than "DOPOST" omits the execution of the
  174. post-install script (if any).
  175. `RC'
  176. Runtime configuration file.
  177. A different value than "RC" overrides the configuration file.
  178. This is used by: `pkgadd', `pkgremove', `pkgupgrade', `pkgbuild'.
  179. `TMPDIR'
  180. Temporary directory (by default _/tmp_).
  181. `TMPDIR' is expanded with random numbers for major security.
  182. This is used by: `pkgbuild', `pkgerupt'.
  183. 2.2 Notes
  184. =========
  185. * Command names has been prefixed with `pkg' to facilitate the set
  186. in relation to its purpose.
  187. * The _PREFIX_ reference is related with the installation prefix of
  188. Qi.
  189. * All the options can be mixed. Options specified in the
  190. command-line have priority over the config file `qirc'. If there
  191. are no options, and if `qirc' is not present, default (internal)
  192. values will be used instead.
  193. 
  194. File: qi.info, Node: The qirc file, Next: Packages, Prev: Invocation, Up: Top
  195. 3 The qirc file
  196. ***************
  197. `qirc' is the configuration file for Qi used at runtime during the
  198. installation, removal of a package or when a recipe is built. This
  199. file is optional, and it can be useful to define variables and
  200. configure external tools (such as a download manager) for default use.
  201. * Variables are declared as `name=value'.
  202. * Declaration of values should only take one line, no line break.
  203. * Assignments like `name=$var' are only interpreted as literal.
  204. The options specified in the command-line can override the values
  205. specified in the configuration file. For more information, see *note
  206. Invocation::.
  207. The order in which Qi looks for this file is:
  208. 1. `${HOME}/.qirc' Effective user.
  209. 2. `${sysconfdir}/qirc' System-wide.
  210. If you intend to run Qi for a specific user, you should copy the file
  211. `${sysconfdir}/qirc' to `${HOME}/.qirc' setting `${packagedir}' and
  212. `${targetdir}' for your `$HOME'.
  213. 
  214. File: qi.info, Node: Packages, Next: Recipes, Prev: The qirc file, Up: Top
  215. 4 Packages
  216. **********
  217. A package is a suite of programs usually distributed in binary form
  218. which may also contain manual pages, documentation, or any other file
  219. associated to a specific software.
  220. The Qi package format is a simple redistributable _tar(1)_ archive
  221. compressed with _lzip(1)_. The package extension ends in ".tlz".
  222. Both package installation and package deinstallation are managed using
  223. `${packagedir}' and `${targetdir}':
  224. `${packagedir}' is a common directory tree where the package contents
  225. is decompressed (resides). By default the tree is located at
  226. _PREFIX/pkg_.
  227. `${targetdir}' is a target directory where the links will be made
  228. taking `${packagedir}/package_name' into account.
  229. Packages are installed in self-contained directory trees and symbolic
  230. links from a common area are made to the package files. This allows
  231. multiple versions of the same package to co-exist on the one system.
  232. All the links to install or to remove a package are managed using
  233. _graft(1)_. Since multiple packages can be installed or removed at the
  234. same time, certain conflicts may arise between the packages.
  235. According to the User's Guide of Graft(1), a conflict is defined as
  236. one of the following conditions:
  237. * If the package object is a directory and the target object exists
  238. but is not a directory.
  239. * If the package object is not a directory and the target object
  240. exists and is not a symbolic link.
  241. * If the package object is not a directory and the target object
  242. exists and is a symbolic link to something other than the package
  243. object.
  244. Qi's default behavior is to not proceed with the installation when a
  245. conflict occurs. But when a package that is going to be removed is in
  246. conflict with another package, _graft(1)_ removes those parts that are
  247. not in conflict, leaving the links belonging to the original package.
  248. This behavior can be changed if the option -p is specified (see the
  249. examples below).
  250. 4.1 Adding packages
  251. ===================
  252. This sort order is particularly useful just before the actual package
  253. installation, because it helps to understand how the package
  254. installation works:
  255. 1. Detects and reports if the package is already installed.
  256. 2. Ignores some signals up to completing the installation: HUP INT
  257. QUIT ABRT TERM.
  258. 3. The integrity of the file (package) is checked.
  259. 4. Creates required directory for the package as
  260. `${packagedir}/package_name'.
  261. 5. Decompress the content of the package in
  262. `${packagedir}/package_name'.
  263. 6. A test of the package is performed before completing the
  264. installation to see if there are no conflicts with another package.
  265. This is the default behavior if -p is not supplied.
  266. 7. _graft(1)_ is invoked to install symbolic links from the package
  267. installation directory to the target directory.
  268. 8. If the meta file is readable, the description will be shown for
  269. the package.
  270. 9. Run post install instructions from `post-install', if any.
  271. _Usage:_ pkgadd [-hfpVw] [-P <DIR>] [-t <DIR>] [package.tlz ...]
  272. To install a single package, simply type:
  273. pkgadd coreutils-8.24-x86_64+1.tlz
  274. To install multiple packages at once:
  275. pkgadd gcc-4.9.3-x86_64+1.tlz rafaela-2.2-i586+1.tlz ...
  276. Warn about the files that will be linked:
  277. pkgadd -w gcc-4.9.3-x86_64+1.tlz
  278. * This is to verify the content of a package before installing it.
  279. See what happens when a package is installed (very verbose):
  280. pkgadd -V mariana-3.0-x86_64+1.tlz
  281. * This is for a detailed (long) output.
  282. Installing in a different directory tree and target:
  283. pkgadd -P /tmp/pkgdir -T /tmp/targetdir lzip-1.17-i586+1.tlz
  284. When a package is already installed, `pkgadd' refuses to continue.
  285. This is to keep some control over the database of your packages, if you
  286. really want to force the installation of a package, you can use the -f
  287. option (which implies -p). See below.
  288. *Pruning conflicts*
  289. Remove objects (files, links or directories) from the target
  290. directory that are in conflict with the package directory:
  291. pkgadd -p zutils-1.4-x86_64+1.tlz
  292. When the -p option is used, it proceeds to install the package
  293. normally, but first will try to remove any conflict. Use it with care,
  294. combine this option with -V.
  295. 4.2 Removing packages
  296. =====================
  297. This sort order is particularly useful just before the actual package
  298. deinstallation, because it helps to understand how the package
  299. deinstallation works:
  300. 1. Look for a package name to remove inside of `${packagedir}'.
  301. Package names must be specified using the full package name, such
  302. as "name-version-arch+release.tlz" or specifying the package name
  303. directory.
  304. 2. Ignores some signals up to completing the deinstallation: HUP INT
  305. QUIT ABRT TERM.
  306. 3. _graft(1)_ is invoked to remove symbolic links from the package
  307. installation directory to the target directory:
  308. If a conflict exists with another package, those links that are
  309. not in conflict will be preserved. It's possible to prune all the
  310. conflicts using the -p option.
  311. 4. Remove directories made empty by package deletion. This has
  312. effect on `${targetdir}' but not for `${packagedir}'.
  313. 5. The package directory is deleted if the option -k is not supplied.
  314. _Usage:_ pkgremove [-hkpV] [-P <DIR>] [-t <DIR>] [package_name ...]
  315. To remove a package, just execute the command:
  316. pkgremove xz-5.2.2-x86_64+1
  317. To remove multiple versions of the same package:
  318. pkgremove xz*
  319. To remove multiple packages at once:
  320. pkgremove foo bar baz ...
  321. Detailed output (very verbose):
  322. pkgremove -V xz-5.2.2-x86_64+1
  323. Removing from a different directory tree and target:
  324. pkgremove -P /tmp/pkgdir -T /tmp/targetdir lzip-1.17-x86_64+1
  325. Pruning conflicts:
  326. pkgremove -p -V hunter
  327. 4.3 Upgrading packages
  328. ======================
  329. This sort order is particularly useful just before the actual package
  330. upgrade, because it helps to understand how the package upgrade works:
  331. 1. Prepare temporary location for the incoming package.
  332. 2. Pre-install incoming package into the temporary location.
  333. 3. Remove packages under the same name: this is considered as the old
  334. packages. (Default behaviour if -k is not supplied).
  335. 4. Upgrade or install the package calling to `pkgadd'.
  336. 5. Delete temporary location of the package.
  337. _Usage:_ pkgupgrade [-hkVw] [-P <DIR>] [-t <DIR>] [package.tlz ...]
  338. Upgrading a package is simple as:
  339. pkgupgrade coreutils-8.25-x86_64+1.tlz
  340. `pkgupgrade' uses `pkgadd' and `pkgremove' to upgrade software
  341. packages. So it inherits the properties of each utility, except here,
  342. only the essential options are provided. For example, the option -V
  343. (for a detailed output) belongs to when these utilities are invoked.
  344. The options -P and -t work in the same way as the previous examples for
  345. `pkgadd', `pkgremove'. `pkgupgrade' will try to update the package or
  346. to install it (in case it has not been installed).
  347. To see what packages will be updated (if any), always type:
  348. pkgupgrade -w coreutils-8.25-x86_64+1.tlz
  349. 4.4 Notes
  350. =========
  351. * Some signals like HUP INT QUIT ABRT TERM are ignored on the
  352. package installation or deinstallation. The intention is to ignore
  353. the cancellation while the package is being installed or removed
  354. (e.g. Ctrl+C, terminal window closed, etc.). The installation or
  355. removal of a package can be crucial for the proper functioning of
  356. the system.
  357. * The meta file is read from the directory where the package is
  358. found.
  359. * A post-install script is read from
  360. `${packagedir}/package_name/var/lib/qi/post-install/name.install'.
  361. * Default behavior is to upgrade or install a package removing old
  362. packages, this is "packages found under the same name". If you
  363. want to preserve the multiple versions of the same package, you
  364. must pass the -k option.
  365. ---------- Footnotes ----------
  366. (1) The official guide for Graft can be found at
  367. `http://peters.gormand.com.au/Home/tools/graft/graft.html'.
  368. 
  369. File: qi.info, Node: Recipes, Next: Order files, Prev: Packages, Up: Top
  370. 5 Recipes
  371. *********
  372. A recipe is a file telling qi what to do. Most often, the recipe tells
  373. qi how to build a binary package from a source tarball.
  374. A recipe has two parts: a list of variable definitions and a list of
  375. sections. By convention, the syntax of a section is:
  376. section_name() {
  377. section lines
  378. }
  379. The section name is followed by parentheses, one space and an opening
  380. brace. The line finishing the section contains just a closing brace.
  381. The section names or the function names currently recognized are
  382. `build'.
  383. The `build' section is an augmented shell script. This is the main
  384. section (or *shell function*) which contains the instructions to build
  385. and produce a package.
  386. 5.1 Variables
  387. =============
  388. A "variable" is a *shell variable* defined either in `qirc' or in a
  389. recipe to represent a string of text, called the variable's "value".
  390. These values are substituted by explicit request in the definitions of
  391. other variables or in calls to external commands.
  392. Variables can represent lists of file names, options to pass to
  393. compilers, programs to run, directories to look in for source files,
  394. directories to write output in, or anything else you can imagine.
  395. Definitions of variables in qi have four levels of precedence.
  396. Options which define variables from the command-line override those
  397. specified in the `qirc' file, while variables defined in the recipe
  398. override those specified in `qirc', taking priority over those
  399. variables settled by options via command-line. Finally, some variables
  400. (arch, jobs, outdir, worktree, tardir, netget, rsync) have default
  401. values if they are not defined anywhere.
  402. Options that set variables through the command-line can only
  403. reference variables defined in `qirc' and variables with default values.
  404. Definitions of variables in `qirc' can only reference variables
  405. previously defined in `qirc' and variables with default values.
  406. Definitions of variables in the recipe can only reference variables
  407. settled by command-line, variables previously defined in the recipe,
  408. variables defined in `qirc', and variables with default values.
  409. 5.1.1 Special variables
  410. -----------------------
  411. The three variables `arch', `jobs', and `outdir' can only be set using
  412. command line options or in `qirc'. If not specified, they have default
  413. values.
  414. `arch' is the architecture to compose the package name. Its value
  415. is available in the recipe as `${arch}'. Default value is the output
  416. of `uname -m'.
  417. `jobs' is the number of jobs to pass to the compiler. Its default
  418. value is available in the recipe as `${jobs}'. Defaults to `1'.
  419. `outdir' is the directory where the produced packages are written.
  420. This variable cannot be redefined in the recipe. Defaults to
  421. `/var/cache/qi/packages'.
  422. `worktree' is the working tree where archives, patches, and recipes
  423. are expected. This variable cannot be redefined in the recipe.
  424. Defaults to `/usr/src/qi'.
  425. The variable `tardir' is defined in the recipe to the directory
  426. where the tarball containing the source can be found. The full name of
  427. the tarball is commonly used as `${tardir}/$tarname'. A value of `.'
  428. for `tardir' sets it to the value of the CWD (Current Working
  429. Directory), this means, from where the recipe is located.
  430. The two variables `srcdir' and `destdir' can be defined in the
  431. recipe, as any other variable, but if they are not, Qi uses default
  432. values for them when building the package.
  433. `srcdir' contains the source code to be compiled, and defaults to
  434. `${program}-${version}'.
  435. `destdir' is the place where the built package will be installed,
  436. and defaults to `${TMPDIR}/package-${program}'.
  437. If `pkgname' is left undefined, the special variable `program' is
  438. assigned by default. If `pkgversion' is left undefined, the special
  439. variable `version' is assigned by default.
  440. `pkgname', `pkgversion', along with `version', `arch', and
  441. `release', are used to produce the name of the package in the form
  442. `${pkgname}-${pkgversion}-${arch}+${release}.tlz'. All of them must be
  443. defined in the recipe, excepting `arch', which is optional.
  444. * `program': name of the package.
  445. * `version': version of the package.
  446. * `arch': architecture of the package.
  447. * `release': release number of the package. It is recommended to
  448. increase this number after any significant change in the recipe is
  449. made.
  450. Obtaining sources over the network must be declared in the recipe using
  451. the `fetch' variable. Use double quotes for separated values.
  452. The variables `netget' and `rsync' can be defined in `qirc' to
  453. establish a network downloader in order to get the sources. If they
  454. are not defined, qi uses default values:
  455. `netget' is the general network downloader tool for use, and
  456. defaults to `wget -c -w1 -t3 --no-check-certificate'.
  457. `rsync' is the network tool for sources containing the prefix for
  458. the RSYNC protocol, and defaults to `rsync -v -a -L -z -i --progress'.
  459. There are three important variables to produce meta information of the
  460. package: `description', `homepage', `license'.
  461. The variable `description' is special to write the description of the
  462. package, which will be shown when installed.
  463. A description has two parts: a brief description and a long
  464. description. By convention, the syntax of a description is:
  465. description="
  466. Brief description.
  467. Long description.
  468. "
  469. The first (substantial) line of the value is a brief description of the
  470. software (called the "blurb"). A new (blank) line is followed to
  471. separate the brief description from the long description.
  472. An example looks like:
  473. description="
  474. A source builder and a package manager.
  475. Qi is a source builder and a package manager. It contains a set of
  476. tools to build, install, remove, and upgrade software packages.
  477. Qi follows the philosophy of the simplicity without adding too many
  478. features, such as those that can be found in popular package managers.
  479. Basically it does two things: builds packages and manages them.
  480. "
  481. * Consider a length limit of 78 characters as maximum. *Note The
  482. meta file: Recipes.
  483. The `homepage' variable is used simply to declare the main site or home
  484. of the source, thus:
  485. homepage=http://www.dragora.org
  486. The variable `license' is used for license information(1). Some code
  487. in the program can be covered by license A, license B, or license C.
  488. For "separate licensing" or "heterogeneous licensing", we suggest using
  489. *|* for a disjunction, *&* for a conjunction (if that ever happens in a
  490. significant way), and comma for heterogeneous licensing. Comma would
  491. have lower precedence. Plus added special terms.
  492. license="LGPL, GPL | Artistic, GPL + added permission"
  493. 5.1.2 Variables from the environment
  494. ------------------------------------
  495. The variables `QICFLAGS', `QICXXFLAGS', and `QILDFLAGS' have no effect
  496. by default. The environment variables such as `CFLAGS', `CXXFLAGS',
  497. and `LDFLAGS' are unset at compile time.
  498. Recommended practices is to set variables in front of `configure' or
  499. in front of _make(1)_ instead of exporting to the environment. As
  500. follows:
  501. Variables not defined in a site shell script can be set in the
  502. environment passed to configure. However, some packages may run
  503. configure again during the build, and the customized values of
  504. these variables may be lost. In order to avoid this problem, you
  505. should set them in the configure command line, using `VAR=value'.
  506. For example:
  507. `./configure CC=/usr/local2/bin/gcc'
  508. `http://gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Defining-Variables.html'
  509. Indeed, while configure can notice the definition of CC in
  510. `./configure CC=bizarre-cc', it is impossible to notice it in
  511. `CC=bizarre-cc ./configure', which, unfortunately, is what most
  512. users do.
  513. [...]
  514. configure: error: changes in the environment can compromise the
  515. build.
  516. `http://gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Setting-Output-Variables.html'
  517. It is not wise for makefiles to depend for their functioning on
  518. environment variables set up outside their control, since this
  519. would cause different users to get different results from the same
  520. makefile. This is against the whole purpose of most makefiles.
  521. `http://gnu.org/software/make/manual/make.html#Environment'
  522. 5.2 The meta file
  523. =================
  524. The "meta file" is an external file created by `pkgbuild' when a recipe
  525. is processed and when a package is produced. The file is generated as
  526. `${full_pkgname}.tlz.txt' which contains information about the package
  527. such as `program', `version', `release'. Also definitions of the
  528. special variables `fetch', `description', `homepage', `license'.
  529. A meta file has the purpose to extract information and the purpose to
  530. reflect essential information to the user without having to check
  531. inside the package itself.
  532. The meta file is basically composed as:
  533. # Description
  534. variable=value
  535. ...
  536. The description is extracted from the declared variable `description',
  537. where each line is interpreted literally and where the description is
  538. pre-formatted to fit in (exactly) 80 columns. Plus `# ' is prepend to
  539. each line.
  540. Followed by new line, the rest is composed by variables; the
  541. inclusion of its values, may vary. For example, in addition to the
  542. special variables, there are implicit variables such as `blurb',
  543. `depends'.
  544. The `blurb' variable is related to the special variable
  545. `description'. Always taking the first (substantial) line or "brief
  546. description".
  547. The value of `depends' only will be included if the `depends' file
  548. is a regular file. *Note The depends file: Order files.
  549. Now let's take a look on a real example of a meta file:
  550. # A lossless data compressor based on the LZMA algorithm.
  551. #
  552. # Clzip is a lossless data compressor with a user interface similar to
  553. # the one of gzip or bzip2. Clzip is about as fast as gzip, compresses
  554. # most files more than bzip2, and is better than both from a data
  555. # recovery perspective.
  556. #
  557. # Clzip uses the lzip file format; the files produced by clzip are fully
  558. # compatible with lzip-1.4 or newer, and can be rescued with lziprecover.
  559. #
  560. # Clzip is in fact a C language version of lzip, intended for embedded
  561. # devices or systems lacking a C++ compiler.
  562. QICFLAGS="-g0 -Os"
  563. QICXXFLAGS="-g0 -Os"
  564. QILDFLAGS="-s"
  565. program=clzip
  566. version=1.8
  567. release=1
  568. blurb="A lossless data compressor based on the LZMA algorithm."
  569. homepage="http://lzip.nongnu.org/clzip.html"
  570. license="GPLv2+"
  571. fetch="http://download.savannah.gnu.org/releases/lzip/clzip/clzip-1.8.tar.gz"
  572. depends=" "
  573. Creation of the meta file is made in `${outdir}'.
  574. 5.3 Building packages
  575. =====================
  576. This sort order is particularly useful just before the actual package
  577. build, because it helps to understand how a package is being built:
  578. 1. A recipe is read from the current directory, if not, it will be
  579. looked in `${worktree}/recipes'. Names of recipes can be invoked
  580. relative to `${worktree}/recipes'. The recipe must be a regular
  581. file and must be readable by the user who is running the command.
  582. 2. Checks are made when the recipe is imported (included), essential
  583. variable names cannot be empty: `program', `version', `release'.
  584. Also the main function `build()' must be present.
  585. 3. `pkgbuild' tries to obtain the sources remotely if it does not
  586. exist locally (`${tardir}'). Once the source is already in place,
  587. its timestamp is updated, creating or updating the SHA1 sum.
  588. 4. Required directories are created: `${TMPDIR}/$srcdir',
  589. `${outdir}', `${destdir}/var/lib/qi/recipes'.
  590. 5. Sane ownerships and permissions are applied to the full source
  591. directory: `${TMPDIR}/$srcdir'.
  592. 6. The main function `build()' is called. Exits immediately if a
  593. command exits with a non-zero status.
  594. 7. A package is going to be created under the following conditions:
  595. * If `${destdir}' is not empty.
  596. * If the option -n was not given.
  597. A copy of the recipe (file) is included on
  598. `${destdir}/var/lib/qi/recipes' as `${full_pkgname}.recipe'.
  599. If the `post-install' script is in the current working directory
  600. or from where the recipe name resides, it will be added as
  601. `${destdir}/var/lib/qi/post-install/${full_pkgname}.install'.
  602. The package is produced from the content of `${destdir}'. First,
  603. creating a tarball, and then compressing it using the maximum
  604. level of compression of _lzip(1)_.
  605. 8. By default, directories like `${TMPDIR}/$srcdir' and `${destdir}'
  606. are deleted.
  607. 9. If the option -U is given, `pkgupgrade' is invoked to install or
  608. upgrade the package.
  609. _Usage:_ pkgbuild [-hiknU] [-a <ARCH>] [-j <JOBS>] [-o <DIR>] [recipe
  610. ...]
  611. To build a single package, simply type:
  612. pkgbuild clzip.recipe
  613. Compile passing parallel jobs to the compiler for speed up the
  614. process:
  615. pkgbuild -j4 clzip.recipe
  616. To build and install or upgrade multiple packages at once:
  617. pkgbuild -U clzip.recipe zutils.recipe matias.recipe
  618. Reading recipes and building from the output of a command:
  619. cat depends | pkgbuild -
  620. Incrementing the release number after a significant change in a
  621. recipe:
  622. pkgbuild -i stargazer.recipe
  623. If the recipe name cannot be read from the current directory or from a
  624. specific path name, `${worktree}/recipes' is used for the search:
  625. There is a special case for the names of recipes `recipe'.
  626. `pkgbuild' can complete the recipe name without being required to be
  627. specified in the command-line, only if the name of the recipe is
  628. `recipe'. For example:
  629. pkgbuild devel/gcc
  630. Will complete the search as `${worktree}/recipes/devel/gcc/recipe'.
  631. 5.4 Writing recipes
  632. ===================
  633. 5.4.1 Internal functions
  634. ------------------------
  635. Some internal functions are available to be applied on the recipe:
  636. `unpack()'
  637. The unpack function can decompress multiple (compressed) files
  638. while verifies the integrity. Depending on where the function is
  639. called, the decompression occurs in the current working directory.
  640. Usage: `unpack file(s) ...'
  641. The cases supported for the special extensions are: *.tar, *.tar.*,
  642. *.tgz*, *.tbz*, *.tlz*, *.txz*, *.zip, *.ZIP, *.gz, *.bz2, *.lz.
  643. ---------- Footnotes ----------
  644. (1) The proposal for `license' was made by Richard M. Stallman at
  645. `http://lists.gnu.org/archive/html/gnu-linux-libre/2016-05/msg00003.html'.
  646. 
  647. File: qi.info, Node: Order files, Next: Examine packages, Prev: Recipes, Up: Top
  648. 6 Order files
  649. *************
  650. `pkgorder' has the purpose to resolve the build order through .order
  651. files. In other words, is a good complement for `pkgbuild'.
  652. _Usage:_ pkgorder [-x] [file_name.order ...]
  653. Basically, `pkgorder' reads from a declared file which ends in
  654. ".order". The output is an ordered list of recipe names which can be
  655. passed to `pkgbuild' (via a pipe) to build a number or a series of
  656. packages.
  657. DECLARATION
  658. If 'a' depends on 'b' and 'c', and 'c' depends on 'b' as well, the
  659. file might look like:
  660. a.recipe: c.recipe b.recipe
  661. b.recipe:
  662. c.recipe: b.recipe
  663. Each letter represents a recipe name, complete dependencies for the
  664. first recipe name are listed in descending order, which is printed from
  665. right to left, and removed from left to right:
  666. OUTPUT
  667. b.recipe
  668. c.recipe
  669. a.recipe
  670. * Commented lines starting with a '#' are allowed. Blank lines,
  671. colons, parentheses, and end of line are removed.
  672. 6.1 The depends file
  673. ====================
  674. When `pkgorder' read from an order file; by default, it will proceed to
  675. read the dependencies of each recipe. This behavior can be omitted if
  676. the -x option is given.
  677. The procedure for reading the dependencies of each recipe is
  678. extracting the directory location where the order file resides. Then
  679. it iterates over the declared items extracting its location in search
  680. of the special file `depends'.
  681. * The `depends' file only is read (sequentially) if it is a regular
  682. file and is not empty.
  683. The special file `depends' must contain a list of prerequisites for the
  684. recipe. Prerequisites are names of valid recipes, including its
  685. location. The location must be relative to `${worktree}' (variable
  686. described in *note Recipes::).
  687. Example of a `depends' file declared for _bash.recipe_:
  688. libs/readline/readline.recipe
  689. Then, if _core/bash/bash.recipe_ has been declared on _core.order_,
  690. the output would be:
  691. ...
  692. libs/readline/readline.recipe
  693. core/bash/bash.recipe
  694. ...
  695. Combined in a pipe, _readline_ represents the first dependency of
  696. _bash_:
  697. `pkgorder core.order | pkgbuild -U -'
  698. 
  699. File: qi.info, Node: Examine packages, Next: Messages, Prev: Order files, Up: Top
  700. 7 Examine packages
  701. ******************
  702. `pkgerupt' is a special command to examine packages for debugging
  703. purposes.
  704. _Usage:_ pkgerupt [-h] [package.tlz ...]
  705. When a package name is given `pkgerupt' will create a random
  706. directory for the package. The prefix directory where the random
  707. directory is created is controlled by the `TMPDIR' variable, by default
  708. `TMPDIR' is assigned to _/tmp_. Creation mode is "u=,g=rwx,o=rwx"
  709. (0700).
  710. The extraction to inspecting a package is equivalent to the shell
  711. instruction:
  712. `( umask 000 && cd -- $PRVDIR && lzip -cd - | tar -xf - ) < $file'
  713. The package content is decompressed in the random (private) directory
  714. via pipe. Creation mode is "u=rwx,g=rwx,o=rwx" (0777).
  715. If there is any substantial change, consider increasing the build
  716. number when repackaging: edit the value of the `release' variable
  717. (recipe), compose the output file using the new number.
  718. 
  719. File: qi.info, Node: Messages, Next: Exit status, Prev: Examine packages, Up: Top
  720. 8 Messages
  721. **********
  722. Some symbols are used for output messages to help to identify the
  723. messages shown by the tools in Qi. There are four simple categories
  724. where the symbols are represented:
  725. *Specifics*
  726. This symbols are unique to identify the running tool:
  727. `+'
  728. This symbol belongs to the `pkgadd' tool.
  729. `-'
  730. This symbol belongs to the `pkgremove' tool.
  731. `~'
  732. This symbol belongs to the `pkgupgrade' tool.
  733. `#'
  734. This symbol belongs to the `pkgbuild' tool.
  735. `='
  736. This symbol belongs to the `pkgerupt' tool.
  737. `%'
  738. This symbol is used to scan a package or to warn when the option
  739. is used.
  740. Specific symbols are enclosed between `( )'.
  741. *Preventive*
  742. Preventive symbols are intended to alert the user about unforeseen
  743. or important situations, and to meet requirements before
  744. proceeding:
  745. `*'
  746. Normally used for testing compressed sources, obtain remote
  747. sources, or set system permissions.
  748. Preventive symbols are enclosed between `[ ]'.
  749. *Informative*
  750. Informative symbols are intended to inform users the most essential
  751. tasks during the execution:
  752. `i'
  753. Symbol used when a task is going to be performed or when a task has
  754. been completed.
  755. `!'
  756. This symbol informs about deleting files.
  757. Informative symbols are enclosed between `[ ]'.
  758. *Transitory*
  759. Transitory symbols are part for occasional changes (`@') but no less
  760. important. Also to invoke Qi tools externally (`^').
  761. Transitory symbols are enclosed between `{ }'.
  762. 
  763. File: qi.info, Node: Exit status, Next: GNU Free Documentation License, Prev: Messages, Up: Top
  764. 9 Exit status
  765. *************
  766. All the conditions of exit codes are described in this chapter.
  767. `0'
  768. Successful completion (no errors).
  769. `1'
  770. *Minor common errors:*
  771. - Illegal option.
  772. - Option requires an argument.
  773. - Internal function to load not found.
  774. - Program (prerequisite) is not available.
  775. `2'
  776. *Command execution error*
  777. Evaluation of external commands or shell arguments. If it fails,
  778. returns 2.
  779. `3'
  780. *Integrity check error for compressed files*
  781. Compressed files means:
  782. - All the tarballs supported by _tar(1)_.
  783. - Zip files supported by _unzip(1)_.
  784. - Gzip files supported by _gzip(1)_.
  785. - Bzip2 files supported by _bzip2(1)_.
  786. - Lzip files supported by _lzip(1)_.
  787. `4'
  788. *File empty, not regular, or expected*
  789. Commonly, it is expected:
  790. - A binary package (.tlz).
  791. - An installed package to remove.
  792. - A recipe file.
  793. - A file of order (.order).
  794. `5'
  795. *Empty or not defined variable*
  796. This exit code is used for reporting about empty or undefined
  797. variables. Usually, variables of the recipe or assigned arrays
  798. that are tested.
  799. `6'
  800. *Package already installed*
  801. The package directory for an incoming package already exists.
  802. `10'
  803. *Network manager error*
  804. Exit status from the execution of the network manager tool and its
  805. arguments.
  806. Error messages are reported to the standard error.
  807. 
  808. File: qi.info, Node: GNU Free Documentation License, Next: Index, Prev: Exit status, Up: Top
  809. Appendix A GNU Free Documentation License
  810. *****************************************
  811. Version 1.3, 3 November 2008
  812. Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
  813. `http://fsf.org/'
  814. Everyone is permitted to copy and distribute verbatim copies
  815. of this license document, but changing it is not allowed.
  816. 0. PREAMBLE
  817. The purpose of this License is to make a manual, textbook, or other
  818. functional and useful document "free" in the sense of freedom: to
  819. assure everyone the effective freedom to copy and redistribute it,
  820. with or without modifying it, either commercially or
  821. noncommercially. Secondarily, this License preserves for the
  822. author and publisher a way to get credit for their work, while not
  823. being considered responsible for modifications made by others.
  824. This License is a kind of "copyleft", which means that derivative
  825. works of the document must themselves be free in the same sense.
  826. It complements the GNU General Public License, which is a copyleft
  827. license designed for free software.
  828. We have designed this License in order to use it for manuals for
  829. free software, because free software needs free documentation: a
  830. free program should come with manuals providing the same freedoms
  831. that the software does. But this License is not limited to
  832. software manuals; it can be used for any textual work, regardless
  833. of subject matter or whether it is published as a printed book.
  834. We recommend this License principally for works whose purpose is
  835. instruction or reference.
  836. 1. APPLICABILITY AND DEFINITIONS
  837. This License applies to any manual or other work, in any medium,
  838. that contains a notice placed by the copyright holder saying it
  839. can be distributed under the terms of this License. Such a notice
  840. grants a world-wide, royalty-free license, unlimited in duration,
  841. to use that work under the conditions stated herein. The
  842. "Document", below, refers to any such manual or work. Any member
  843. of the public is a licensee, and is addressed as "you". You
  844. accept the license if you copy, modify or distribute the work in a
  845. way requiring permission under copyright law.
  846. A "Modified Version" of the Document means any work containing the
  847. Document or a portion of it, either copied verbatim, or with
  848. modifications and/or translated into another language.
  849. A "Secondary Section" is a named appendix or a front-matter section
  850. of the Document that deals exclusively with the relationship of the
  851. publishers or authors of the Document to the Document's overall
  852. subject (or to related matters) and contains nothing that could
  853. fall directly within that overall subject. (Thus, if the Document
  854. is in part a textbook of mathematics, a Secondary Section may not
  855. explain any mathematics.) The relationship could be a matter of
  856. historical connection with the subject or with related matters, or
  857. of legal, commercial, philosophical, ethical or political position
  858. regarding them.
  859. The "Invariant Sections" are certain Secondary Sections whose
  860. titles are designated, as being those of Invariant Sections, in
  861. the notice that says that the Document is released under this
  862. License. If a section does not fit the above definition of
  863. Secondary then it is not allowed to be designated as Invariant.
  864. The Document may contain zero Invariant Sections. If the Document
  865. does not identify any Invariant Sections then there are none.
  866. The "Cover Texts" are certain short passages of text that are
  867. listed, as Front-Cover Texts or Back-Cover Texts, in the notice
  868. that says that the Document is released under this License. A
  869. Front-Cover Text may be at most 5 words, and a Back-Cover Text may
  870. be at most 25 words.
  871. A "Transparent" copy of the Document means a machine-readable copy,
  872. represented in a format whose specification is available to the
  873. general public, that is suitable for revising the document
  874. straightforwardly with generic text editors or (for images
  875. composed of pixels) generic paint programs or (for drawings) some
  876. widely available drawing editor, and that is suitable for input to
  877. text formatters or for automatic translation to a variety of
  878. formats suitable for input to text formatters. A copy made in an
  879. otherwise Transparent file format whose markup, or absence of
  880. markup, has been arranged to thwart or discourage subsequent
  881. modification by readers is not Transparent. An image format is
  882. not Transparent if used for any substantial amount of text. A
  883. copy that is not "Transparent" is called "Opaque".
  884. Examples of suitable formats for Transparent copies include plain
  885. ASCII without markup, Texinfo input format, LaTeX input format,
  886. SGML or XML using a publicly available DTD, and
  887. standard-conforming simple HTML, PostScript or PDF designed for
  888. human modification. Examples of transparent image formats include
  889. PNG, XCF and JPG. Opaque formats include proprietary formats that
  890. can be read and edited only by proprietary word processors, SGML or
  891. XML for which the DTD and/or processing tools are not generally
  892. available, and the machine-generated HTML, PostScript or PDF
  893. produced by some word processors for output purposes only.
  894. The "Title Page" means, for a printed book, the title page itself,
  895. plus such following pages as are needed to hold, legibly, the
  896. material this License requires to appear in the title page. For
  897. works in formats which do not have any title page as such, "Title
  898. Page" means the text near the most prominent appearance of the
  899. work's title, preceding the beginning of the body of the text.
  900. The "publisher" means any person or entity that distributes copies
  901. of the Document to the public.
  902. A section "Entitled XYZ" means a named subunit of the Document
  903. whose title either is precisely XYZ or contains XYZ in parentheses
  904. following text that translates XYZ in another language. (Here XYZ
  905. stands for a specific section name mentioned below, such as
  906. "Acknowledgements", "Dedications", "Endorsements", or "History".)
  907. To "Preserve the Title" of such a section when you modify the
  908. Document means that it remains a section "Entitled XYZ" according
  909. to this definition.
  910. The Document may include Warranty Disclaimers next to the notice
  911. which states that this License applies to the Document. These
  912. Warranty Disclaimers are considered to be included by reference in
  913. this License, but only as regards disclaiming warranties: any other
  914. implication that these Warranty Disclaimers may have is void and
  915. has no effect on the meaning of this License.
  916. 2. VERBATIM COPYING
  917. You may copy and distribute the Document in any medium, either
  918. commercially or noncommercially, provided that this License, the
  919. copyright notices, and the license notice saying this License
  920. applies to the Document are reproduced in all copies, and that you
  921. add no other conditions whatsoever to those of this License. You
  922. may not use technical measures to obstruct or control the reading
  923. or further copying of the copies you make or distribute. However,
  924. you may accept compensation in exchange for copies. If you
  925. distribute a large enough number of copies you must also follow
  926. the conditions in section 3.
  927. You may also lend copies, under the same conditions stated above,
  928. and you may publicly display copies.
  929. 3. COPYING IN QUANTITY
  930. If you publish printed copies (or copies in media that commonly
  931. have printed covers) of the Document, numbering more than 100, and
  932. the Document's license notice requires Cover Texts, you must
  933. enclose the copies in covers that carry, clearly and legibly, all
  934. these Cover Texts: Front-Cover Texts on the front cover, and
  935. Back-Cover Texts on the back cover. Both covers must also clearly
  936. and legibly identify you as the publisher of these copies. The
  937. front cover must present the full title with all words of the
  938. title equally prominent and visible. You may add other material
  939. on the covers in addition. Copying with changes limited to the
  940. covers, as long as they preserve the title of the Document and
  941. satisfy these conditions, can be treated as verbatim copying in
  942. other respects.
  943. If the required texts for either cover are too voluminous to fit
  944. legibly, you should put the first ones listed (as many as fit
  945. reasonably) on the actual cover, and continue the rest onto
  946. adjacent pages.
  947. If you publish or distribute Opaque copies of the Document
  948. numbering more than 100, you must either include a
  949. machine-readable Transparent copy along with each Opaque copy, or
  950. state in or with each Opaque copy a computer-network location from
  951. which the general network-using public has access to download
  952. using public-standard network protocols a complete Transparent
  953. copy of the Document, free of added material. If you use the
  954. latter option, you must take reasonably prudent steps, when you
  955. begin distribution of Opaque copies in quantity, to ensure that
  956. this Transparent copy will remain thus accessible at the stated
  957. location until at least one year after the last time you
  958. distribute an Opaque copy (directly or through your agents or
  959. retailers) of that edition to the public.
  960. It is requested, but not required, that you contact the authors of
  961. the Document well before redistributing any large number of
  962. copies, to give them a chance to provide you with an updated
  963. version of the Document.
  964. 4. MODIFICATIONS
  965. You may copy and distribute a Modified Version of the Document
  966. under the conditions of sections 2 and 3 above, provided that you
  967. release the Modified Version under precisely this License, with
  968. the Modified Version filling the role of the Document, thus
  969. licensing distribution and modification of the Modified Version to
  970. whoever possesses a copy of it. In addition, you must do these
  971. things in the Modified Version:
  972. A. Use in the Title Page (and on the covers, if any) a title
  973. distinct from that of the Document, and from those of
  974. previous versions (which should, if there were any, be listed
  975. in the History section of the Document). You may use the
  976. same title as a previous version if the original publisher of
  977. that version gives permission.
  978. B. List on the Title Page, as authors, one or more persons or
  979. entities responsible for authorship of the modifications in
  980. the Modified Version, together with at least five of the
  981. principal authors of the Document (all of its principal
  982. authors, if it has fewer than five), unless they release you
  983. from this requirement.
  984. C. State on the Title page the name of the publisher of the
  985. Modified Version, as the publisher.
  986. D. Preserve all the copyright notices of the Document.
  987. E. Add an appropriate copyright notice for your modifications
  988. adjacent to the other copyright notices.
  989. F. Include, immediately after the copyright notices, a license
  990. notice giving the public permission to use the Modified
  991. Version under the terms of this License, in the form shown in
  992. the Addendum below.
  993. G. Preserve in that license notice the full lists of Invariant
  994. Sections and required Cover Texts given in the Document's
  995. license notice.
  996. H. Include an unaltered copy of this License.
  997. I. Preserve the section Entitled "History", Preserve its Title,
  998. and add to it an item stating at least the title, year, new
  999. authors, and publisher of the Modified Version as given on
  1000. the Title Page. If there is no section Entitled "History" in
  1001. the Document, create one stating the title, year, authors,
  1002. and publisher of the Document as given on its Title Page,
  1003. then add an item describing the Modified Version as stated in
  1004. the previous sentence.
  1005. J. Preserve the network location, if any, given in the Document
  1006. for public access to a Transparent copy of the Document, and
  1007. likewise the network locations given in the Document for
  1008. previous versions it was based on. These may be placed in
  1009. the "History" section. You may omit a network location for a
  1010. work that was published at least four years before the
  1011. Document itself, or if the original publisher of the version
  1012. it refers to gives permission.
  1013. K. For any section Entitled "Acknowledgements" or "Dedications",
  1014. Preserve the Title of the section, and preserve in the
  1015. section all the substance and tone of each of the contributor
  1016. acknowledgements and/or dedications given therein.
  1017. L. Preserve all the Invariant Sections of the Document,
  1018. unaltered in their text and in their titles. Section numbers
  1019. or the equivalent are not considered part of the section
  1020. titles.
  1021. M. Delete any section Entitled "Endorsements". Such a section
  1022. may not be included in the Modified Version.
  1023. N. Do not retitle any existing section to be Entitled
  1024. "Endorsements" or to conflict in title with any Invariant
  1025. Section.
  1026. O. Preserve any Warranty Disclaimers.
  1027. If the Modified Version includes new front-matter sections or
  1028. appendices that qualify as Secondary Sections and contain no
  1029. material copied from the Document, you may at your option
  1030. designate some or all of these sections as invariant. To do this,
  1031. add their titles to the list of Invariant Sections in the Modified
  1032. Version's license notice. These titles must be distinct from any
  1033. other section titles.
  1034. You may add a section Entitled "Endorsements", provided it contains
  1035. nothing but endorsements of your Modified Version by various
  1036. parties--for example, statements of peer review or that the text
  1037. has been approved by an organization as the authoritative
  1038. definition of a standard.
  1039. You may add a passage of up to five words as a Front-Cover Text,
  1040. and a passage of up to 25 words as a Back-Cover Text, to the end
  1041. of the list of Cover Texts in the Modified Version. Only one
  1042. passage of Front-Cover Text and one of Back-Cover Text may be
  1043. added by (or through arrangements made by) any one entity. If the
  1044. Document already includes a cover text for the same cover,
  1045. previously added by you or by arrangement made by the same entity
  1046. you are acting on behalf of, you may not add another; but you may
  1047. replace the old one, on explicit permission from the previous
  1048. publisher that added the old one.
  1049. The author(s) and publisher(s) of the Document do not by this
  1050. License give permission to use their names for publicity for or to
  1051. assert or imply endorsement of any Modified Version.
  1052. 5. COMBINING DOCUMENTS
  1053. You may combine the Document with other documents released under
  1054. this License, under the terms defined in section 4 above for
  1055. modified versions, provided that you include in the combination
  1056. all of the Invariant Sections of all of the original documents,
  1057. unmodified, and list them all as Invariant Sections of your
  1058. combined work in its license notice, and that you preserve all
  1059. their Warranty Disclaimers.
  1060. The combined work need only contain one copy of this License, and
  1061. multiple identical Invariant Sections may be replaced with a single
  1062. copy. If there are multiple Invariant Sections with the same name
  1063. but different contents, make the title of each such section unique
  1064. by adding at the end of it, in parentheses, the name of the
  1065. original author or publisher of that section if known, or else a
  1066. unique number. Make the same adjustment to the section titles in
  1067. the list of Invariant Sections in the license notice of the
  1068. combined work.
  1069. In the combination, you must combine any sections Entitled
  1070. "History" in the various original documents, forming one section
  1071. Entitled "History"; likewise combine any sections Entitled
  1072. "Acknowledgements", and any sections Entitled "Dedications". You
  1073. must delete all sections Entitled "Endorsements."
  1074. 6. COLLECTIONS OF DOCUMENTS
  1075. You may make a collection consisting of the Document and other
  1076. documents released under this License, and replace the individual
  1077. copies of this License in the various documents with a single copy
  1078. that is included in the collection, provided that you follow the
  1079. rules of this License for verbatim copying of each of the
  1080. documents in all other respects.
  1081. You may extract a single document from such a collection, and
  1082. distribute it individually under this License, provided you insert
  1083. a copy of this License into the extracted document, and follow
  1084. this License in all other respects regarding verbatim copying of
  1085. that document.
  1086. 7. AGGREGATION WITH INDEPENDENT WORKS
  1087. A compilation of the Document or its derivatives with other
  1088. separate and independent documents or works, in or on a volume of
  1089. a storage or distribution medium, is called an "aggregate" if the
  1090. copyright resulting from the compilation is not used to limit the
  1091. legal rights of the compilation's users beyond what the individual
  1092. works permit. When the Document is included in an aggregate, this
  1093. License does not apply to the other works in the aggregate which
  1094. are not themselves derivative works of the Document.
  1095. If the Cover Text requirement of section 3 is applicable to these
  1096. copies of the Document, then if the Document is less than one half
  1097. of the entire aggregate, the Document's Cover Texts may be placed
  1098. on covers that bracket the Document within the aggregate, or the
  1099. electronic equivalent of covers if the Document is in electronic
  1100. form. Otherwise they must appear on printed covers that bracket
  1101. the whole aggregate.
  1102. 8. TRANSLATION
  1103. Translation is considered a kind of modification, so you may
  1104. distribute translations of the Document under the terms of section
  1105. 4. Replacing Invariant Sections with translations requires special
  1106. permission from their copyright holders, but you may include
  1107. translations of some or all Invariant Sections in addition to the
  1108. original versions of these Invariant Sections. You may include a
  1109. translation of this License, and all the license notices in the
  1110. Document, and any Warranty Disclaimers, provided that you also
  1111. include the original English version of this License and the
  1112. original versions of those notices and disclaimers. In case of a
  1113. disagreement between the translation and the original version of
  1114. this License or a notice or disclaimer, the original version will
  1115. prevail.
  1116. If a section in the Document is Entitled "Acknowledgements",
  1117. "Dedications", or "History", the requirement (section 4) to
  1118. Preserve its Title (section 1) will typically require changing the
  1119. actual title.
  1120. 9. TERMINATION
  1121. You may not copy, modify, sublicense, or distribute the Document
  1122. except as expressly provided under this License. Any attempt
  1123. otherwise to copy, modify, sublicense, or distribute it is void,
  1124. and will automatically terminate your rights under this License.
  1125. However, if you cease all violation of this License, then your
  1126. license from a particular copyright holder is reinstated (a)
  1127. provisionally, unless and until the copyright holder explicitly
  1128. and finally terminates your license, and (b) permanently, if the
  1129. copyright holder fails to notify you of the violation by some
  1130. reasonable means prior to 60 days after the cessation.
  1131. Moreover, your license from a particular copyright holder is
  1132. reinstated permanently if the copyright holder notifies you of the
  1133. violation by some reasonable means, this is the first time you have
  1134. received notice of violation of this License (for any work) from
  1135. that copyright holder, and you cure the violation prior to 30 days
  1136. after your receipt of the notice.
  1137. Termination of your rights under this section does not terminate
  1138. the licenses of parties who have received copies or rights from
  1139. you under this License. If your rights have been terminated and
  1140. not permanently reinstated, receipt of a copy of some or all of
  1141. the same material does not give you any rights to use it.
  1142. 10. FUTURE REVISIONS OF THIS LICENSE
  1143. The Free Software Foundation may publish new, revised versions of
  1144. the GNU Free Documentation License from time to time. Such new
  1145. versions will be similar in spirit to the present version, but may
  1146. differ in detail to address new problems or concerns. See
  1147. `http://www.gnu.org/copyleft/'.
  1148. Each version of the License is given a distinguishing version
  1149. number. If the Document specifies that a particular numbered
  1150. version of this License "or any later version" applies to it, you
  1151. have the option of following the terms and conditions either of
  1152. that specified version or of any later version that has been
  1153. published (not as a draft) by the Free Software Foundation. If
  1154. the Document does not specify a version number of this License,
  1155. you may choose any version ever published (not as a draft) by the
  1156. Free Software Foundation. If the Document specifies that a proxy
  1157. can decide which future versions of this License can be used, that
  1158. proxy's public statement of acceptance of a version permanently
  1159. authorizes you to choose that version for the Document.
  1160. 11. RELICENSING
  1161. "Massive Multiauthor Collaboration Site" (or "MMC Site") means any
  1162. World Wide Web server that publishes copyrightable works and also
  1163. provides prominent facilities for anybody to edit those works. A
  1164. public wiki that anybody can edit is an example of such a server.
  1165. A "Massive Multiauthor Collaboration" (or "MMC") contained in the
  1166. site means any set of copyrightable works thus published on the MMC
  1167. site.
  1168. "CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0
  1169. license published by Creative Commons Corporation, a not-for-profit
  1170. corporation with a principal place of business in San Francisco,
  1171. California, as well as future copyleft versions of that license
  1172. published by that same organization.
  1173. "Incorporate" means to publish or republish a Document, in whole or
  1174. in part, as part of another Document.
  1175. An MMC is "eligible for relicensing" if it is licensed under this
  1176. License, and if all works that were first published under this
  1177. License somewhere other than this MMC, and subsequently
  1178. incorporated in whole or in part into the MMC, (1) had no cover
  1179. texts or invariant sections, and (2) were thus incorporated prior
  1180. to November 1, 2008.
  1181. The operator of an MMC Site may republish an MMC contained in the
  1182. site under CC-BY-SA on the same site at any time before August 1,
  1183. 2009, provided the MMC is eligible for relicensing.
  1184. ADDENDUM: How to use this License for your documents
  1185. ====================================================
  1186. To use this License in a document you have written, include a copy of
  1187. the License in the document and put the following copyright and license
  1188. notices just after the title page:
  1189. Copyright (C) YEAR YOUR NAME.
  1190. Permission is granted to copy, distribute and/or modify this document
  1191. under the terms of the GNU Free Documentation License, Version 1.3
  1192. or any later version published by the Free Software Foundation;
  1193. with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
  1194. Texts. A copy of the license is included in the section entitled ``GNU
  1195. Free Documentation License''.
  1196. If you have Invariant Sections, Front-Cover Texts and Back-Cover
  1197. Texts, replace the "with...Texts." line with this:
  1198. with the Invariant Sections being LIST THEIR TITLES, with
  1199. the Front-Cover Texts being LIST, and with the Back-Cover Texts
  1200. being LIST.
  1201. If you have Invariant Sections without Cover Texts, or some other
  1202. combination of the three, merge those two alternatives to suit the
  1203. situation.
  1204. If your document contains nontrivial examples of program code, we
  1205. recommend releasing these examples in parallel under your choice of
  1206. free software license, such as the GNU General Public License, to
  1207. permit their use in free software.
  1208. 
  1209. File: qi.info, Node: Index, Prev: GNU Free Documentation License, Up: Top
  1210. Index
  1211. *****
  1212. [index]
  1213. * Menu:
  1214. * .order files: Order files. (line 6)
  1215. * adding packages: Packages. (line 54)
  1216. * building packages: Recipes. (line 284)
  1217. * environment: Invocation. (line 173)
  1218. * examine packages: Examine packages. (line 6)
  1219. * exit codes: Exit status. (line 6)
  1220. * internal functions: Recipes. (line 375)
  1221. * introduction: Introduction. (line 6)
  1222. * invocation: Invocation. (line 6)
  1223. * notes <1>: Packages. (line 216)
  1224. * notes: Invocation. (line 216)
  1225. * output messages: Messages. (line 6)
  1226. * packages: Packages. (line 6)
  1227. * recipes: Recipes. (line 6)
  1228. * removing packages: Packages. (line 128)
  1229. * special variables: Recipes. (line 58)
  1230. * the depends file: Order files. (line 41)
  1231. * the meta file: Recipes. (line 218)
  1232. * the qirc file: The qirc file. (line 6)
  1233. * upgrading packages: Packages. (line 181)
  1234. * variables: Recipes. (line 28)
  1235. * variables from the environment: Recipes. (line 177)
  1236. * writing recipes: Recipes. (line 372)
  1237. 
  1238. Tag Table:
  1239. Node: Top824
  1240. Node: Introduction1715
  1241. Node: Invocation2763
  1242. Node: The qirc file6983
  1243. Node: Packages8008
  1244. Ref: Packages-Footnote-116096
  1245. Node: Recipes16209
  1246. Ref: Recipes-Footnote-130840
  1247. Node: Order files30985
  1248. Node: Examine packages33217
  1249. Node: Messages34220
  1250. Node: Exit status35848
  1251. Node: GNU Free Documentation License37442
  1252. Node: Index62603
  1253. 
  1254. End Tag Table
  1255. 
  1256. Local Variables:
  1257. coding: iso-8859-1
  1258. End: