Bonjour, Nous sommes en train de développer un paquet qui a besoin de dépendances en pré-requis. Faut-il créer un méta-paquet ? Comment gérer l'ordre d'installation des dépendances ? Merci @+ David MONTAIGNE
Bonjour,
Je pense que la solution est le méta-paquet.
Exemple, je m'en sers pour la liste des logiciels à installer l'ordre d'installation est respecté voir dans la section "depends"
puisque flash par exemple suppose que firefox soit installé, comme java pré-existe de LibreoOffice
C:UsersADMIN>wapt-get show drac-socle Display package control data for drac-socle
package : drac-socle version : 1 architecture : all section : group priority : optional maintainer : Johann LECLERCQ description : Config de base pour tous les postes DRAC PdL Site BAUDRY depends : drac-7zip,drac-firefox,drac-thunderbird,drac-flash,drac-java,drac -libreoffice3.5,drac-xnview,drac-vlc,drac-infrarecorder,drac-pdfcreator,drac-ado bereader_11-0 conflicts : sources : localpath : filename : drac-socle.wapt size : 2506 repo_url : http://wapt/wapt md5sum : xxxxxxxxxxxxxxxxxxxxxxxxxx repo : global
Le 2014-05-19 15:31, Montaigne David a écrit :
Bonjour, Nous sommes en train de développer un paquet qui a besoin de dépendances en pré-requis. Faut-il créer un méta-paquet ? Comment gérer l'ordre d'installation des dépendances ? Merci @+ David MONTAIGNE
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt [1]
Links: ------ [1] http://lists.tranquil.it/listinfo/wapt
---------------------------------------------------------------------- Merci de nous aider à préserver l'environnement en n'imprimant ce courriel et les documents joints que si nécessaire.
Il n'est pas forcément nécessaire de créer un méta paquet si la dépendance est toujours requise, et que le paquet ne sert pas dans un autre contexte où la dépendance n'est pas requise. Exemple : une application qui nécessite java. On met le paquet java directement en dépendance du paquet de l'application.
Les dépendances sont toujours installées avant. Donc si un paquet A a en dépendance un paquet B, le paquet B est installé avant. Si plusieurs dépendances sont mentionnées sur le paquet A, elles sont installées dans l'ordre où elles sont mentionnées dans le champs "depends" du fichier control. (sauf évidemment si une dépendance est déjà installée, auquel cas elle n'est pas réinstallée...)
A noter l'apparition du champs "conflicts" dans le fichier control qui permet de mentionner que l'installation d'un paquet A doit provoquer la désinstallation d'un apquet B si celui ci est installé. (cas de deux paquets installant le même logiciel mais différemment... ou cas d'un version anglaise ou française de firefox)
Pour l'instant, les cas conflictuels où un paquet A déclare un conflit avec B et une dépendance avec C, mais C déclare une dépendance avec B par exmple, ne sont pas gérés : c'est le dernier qui a parlé qui a raison.
Hubert Touvet Tranquil IT systems
Le 19/05/2014 15:31, Montaigne David a écrit :
Bonjour, Nous sommes en train de développer un paquet qui a besoin de dépendances en pré-requis. Faut-il créer un méta-paquet ? Comment gérer l'ordre d'installation des dépendances ? Merci @+ David MONTAIGNE
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt