Installer un générateur de paquet Debian ?

Bonjour tous le monde,

Ne parvenant pas à ouvrir un logiciel pour remplir ma déclaration d’impôts, j’ai l’intention d’installer« un générateur de paquets Debian pour VaudTax 2014 ». Les commandes proposées sont ici : https://github.com/OdyX/vaudtax-debian

Je suis sous jessie. Le logiciel (VaudTax 2014) est proposé par le canton de Vaud en Suisse, à cette adresse : http://www.vd.ch/themes/etat-droit-finances/impots/vaudtax/vaudtax-2014/telecharger-vaudtax-2014/

Je n’arrive pas à comprendre le sens des lignes de commandes. De plus si j’ai bien compris, il s’agirait de construire un dépôt, alors qu’il est recommandé d’utiliser les dépôts Debian seulement.

Ma question : puis-je appliquer la procédure proposée ? A quel risque ?

D’avance, merci !

Il suffit de télécharger et d’extraire vaudtax-dl.vd.ch/vaudtax2014/te … 014.tar.gz

Clic droit executer sur vaudtax-2014 suffit à le lancer

lut.im/jg1mh4Ru/Qv0zyaOs

[quote=“angelique”]Il suffit de télécharger et d’extraire vaudtax-dl.vd.ch/vaudtax2014/te … 014.tar.gz

Clic droit executer sur vaudtax-2014 suffit à le lancer[/quote]

C’est vrai mais ça n’en fait pas un paquet debian contrairement à la solution proposée.

[quote=“soifranc”]Je n’arrive pas à comprendre le sens des lignes de commandes. De plus si j’ai bien compris, il s’agirait de construire un dépôt, alors qu’il est recommandé d’utiliser les dépôts Debian seulement.

Ma question : puis-je appliquer la procédure proposée ? A quel risque ?[/quote]

Version courte : pour faire d’un logiciel libre (ou open source) un paquet debian, il “suffit” d’un répertoire debian.

Ce que propose la solution :

  1. installer les paquets nécessaires à la construction du paquet à venir
  2. télécharger le logiciel (.tar.gz)
  3. fabriquer un paquet debian (.deb)
  4. l’installer

Le risque ?

Le programme ne se lance pas correctement.

[strike]Est-ce debian 7 aka “wheezy” ou debian 8 aka “jessie” ou autre ?[/strike]
J’ai mal lu, c’est jessie.

EDIT

Il s’agit de créer un paquet et non pas un dépôt.

Merci angelique pour ta réponse détaillée. Mon problème c’est que j’avais déjà appliqué cette solution (aussi les années précédentes). Je vais donc préciser mon problème spécifique avec VaudTax 2014.

J’ai installé java et obtiens :java -version java version "1.7.0_79" OpenJDK Runtime Environment (IcedTea 2.5.5) (7u79-2.5.5-1~deb8u1) OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)
J’ai aussi installé (sur conseil de VaudTax) : libwebkitgtk-1.0-0, libwebkitgtk-1.0-common, livwebkitgtk-3.0-0, libwebkitgtk-3.0-common.
Quand j’ouvre VaudTax 2014 j’obtiens le message : [code]#!/bin/bash
JAVA_NOT_FOUND_MSG=“Aucun interpréteur Java n’a pu être trouvé sur la ligne de commande.
Merci d’installer Java à l’aide du gestionnaire de paquet de votre distribution,
ou sur http://www.java.com/fr/download

classpath=‘lib/dvbern-lib-update.jar’

if [ ! -f ///$classpath ] ; then
cd dirname $0
else
cd //
fi

type java &> /dev/null
if [ “$?” -ne “0” ] ; then
echo $JAVA_NOT_FOUND_MSG
which zenity &> /dev/null && zenity --no-wrap --no-markup --warning --window-icon=error --text="$JAVA_NOT_FOUND_MSG"
exit 1
fi

java -cp $classpath ch.dvbern.lib.update.Launcher[/code]

Chez toi l’ouverture va se soi ce qui me fait déduire que je n’ai pas encore réussi à identifier le problème. Peut-être devrais-je ouvrir un nouveau message avec un titre en relation avec VaudTax ?

OK jcsm33 et merci. Tes explications m’aident à me repérer et je vais donc tenter l’opération. Je donnerai des nouvelles !

L’installation du paquet ne semble pas possible : debian/rules get-orig-source bash: debian/rules: Aucun fichier ou dossier de ce type root@francois:/home/francois# quilt push -af Fichier de série non trouvé root@francois:/home/francois# debuild -b debuild: fatal error at line 633: cannot find readable debian/changelog anywhere! Are you in the source code tree?

Devrais-je persévérer dans cette voie dans le but d’installer (si c’est possible ?) le paquet debian VaudTax 2014 ?

Ou alors redéfinir ma question comme étant la " disparition de java " annoncée à ma tentative d’ouverture de VaudTax alors que j’ai java d’installé ? Je me sens en plein brouillard…

essaie à tout hasard voir ce qu’il te renvoit via le terminal , il se lance chez moi via le terminal

tu te met dans le répertoire ou est vaudtax-2014

exemple:

angel@debian:~/Documents$ ls
Mecanique_gratuite.pdf
Canneds firmwaredg834gt recherche travail
firmwaredg834gV2 VaudTax_2014-1.3.0-production
FRST vrac
gnu zen
angel@debian:~/Documents$ cd VaudTax_2014-1.3.0-production/
angel@debian:~/Documents/VaudTax_2014-1.3.0-production$ ls
config lib readme.txt vaudtax-2014 version.xml
angel@debian:~/Documents/VaudTax_2014-1.3.0-production$ vaudtax-2014

angel@debian:~/Documents/VaudTax_2014-1.3.0-production$ sh vaudtax-2014
java is /usr/bin/java
4 juin 2015 11:35:42 ch.dvbern.lib.update.Launcher main
INFO: Lib-update starting on Linux i386. targetDir: /home/angel/Documents/VaudTax_2014-1.3.0-production userHome: /home/angel runElevated: false bootstrapUpdate: false appArgs: []
4 juin 2015 11:35:42 ch.dvbern.lib.update.Launcher main
INFO: Target application VaudTax 2014 1.3
4 juin 2015 11:35:42 ch.dvbern.lib.update.Launcher processUpdates
FIN: Checking directory /home/angel/VaudTax2014/version_update_complete for updates
4 juin 2015 11:35:42 ch.dvbern.lib.update.Launcher processUpdates
INFO: No update to apply: /home/angel/VaudTax2014/version_update_complete
4 juin 2015 11:35:42 ch.dvbern.lib.update.Launcher main
INFO: Proceeding with normal startup.
4 juin 2015 11:35:42 ch.dvbern.lib.update.Launcher prepareClasspath
FIN: Added /home/angel/Documents/VaudTax_2014-1.3.0-production/lib/vaudtax-2014.jar (version: 1.3.0) to classpath with 1th level classpath entries: ./dvbtax-common-cd.jar(version: 7.0.10) ./dvbern-lib-update.jar(version: 2.6.6) ./jaxb-api.jar(version: na) ./jsr173_api.jar(version: na) ./jaxb-impl.jar(version: 2.2.5.1) ./activation.jar(version: 1.1.1) ./dvbern-lib-construct.jar(version: 2.0.0) ./jsr305.jar(version: na) ./commons-codec.jar(version: 1.6) ./proxy-vole.jar(version: 20121203) ./org.eclipse.jface.jar(version: na) ./org.eclipse.equinox.common.jar(version: na) ./org.eclipse.core.commands.jar(version: na) ./lucene.jar(version: na) ./jdom.jar(version: na) ./annotations.jar(version: na) ./weld-se-core.jar(version: 2014-05-09 12:21) ./weld-spi.jar(version: 20140507-1716) ./javax.inject.jar(version: na) ./weld-api.jar(version: 20140507-1716) ./jboss-logging.jar(version: 3.1.3.GA) ./weld-core-impl.jar(version: 2014-05-09 12:21) ./jboss-classfilewriter.jar(version: 1.0.4.Final) ./guava.jar(version: na) ./jboss-el-api_3.0_spec.jar(version: 1.0.0.Alpha1) ./jboss-interceptors-api_1.2_spec.jar(version: 1.0.0.Alpha3) ./cdi-api.jar(version: 20140411-1123) ./jboss-annotations-api_1.2_spec.jar(version: 1.0.0.Alpha1) ./groovy-all.jar(version: 2.1.8) ./dvbtax-common-shared.jar(version: 7.0.10) ./simple-java-mail.jar(version: na) ./mail.jar(version: 1.4.1) ./commons-collections.jar(version: 3.2.1) ./commons-configuration.jar(version: 1.9) ./commons-logging.jar(version: 1.1.1) ./commons-lang.jar(version: 2.6) ./jamonapi.jar(version: na) ./dvbern-lib-datatypes.jar(version: 0.0.5) ./swt-win32-x86.jar(error in opening zip file) ./swt-win32-x86_64.jar(error in opening zip file) ./swt-gtk-linux-x86.jar(error in opening zip file) ./swt-gtk-linux-x86_64.jar(error in opening zip file) ./swt-cocoa-macosx.jar(error in opening zip file) ./swt-cocoa-macosx-x86_64.jar(error in opening zip file) ./slf4j-api.jar(version: 1.7.7) ./log4j-over-slf4j.jar(version: 1.7.7) ./jcl-over-slf4j.jar(version: 1.7.7) ./logback-classic.jar(version: na) ./logback-core.jar(version: na) ./commons-io.jar(version: 2.4) ./commons-lang3.jar(version: 3.3.2) ./httpcore.jar(version: 4.3.2) ./httpclient.jar(version: 4.3.2) ./httpmime.jar(version: 4.3.2) ./itext.jar(version: na) ./bcmail-jdk14.jar(version: 1.38.0) ./bcprov-jdk14.jar(version: 1.38.0) ./bctsp-jdk14.jar(version: 1.38.0) ./bcprov-jdk14.jar(version: 1.38.0) ./bcmail-jdk14.jar(version: 1.38.0)
4 juin 2015 11:35:42 ch.dvbern.lib.update.Launcher prepareClasspath
FIN: Added /home/angel/Documents/VaudTax_2014-1.3.0-production/lib/native/swt_32.jar (version: na) to classpath
4 juin 2015 11:35:42 ch.dvbern.lib.update.Launcher launchApplication
INFO: Invoking target application now: ch.dvbern.tax.vd.presentation.cd.TaxmeVdLauncher with args []
785 [main] DEBUG c.d.t.c.i.c.ApplicationConfigProvider - Querying application config provider ch.dvbern.tax.vd.presentation.cd.util.VdCdApplicationConfigProvider@a9219a: ch.dvbern.tax.vd.presentation.cd.util.VdCdApplicationConfig@1dd2285
793 [main] INFO c.d.t.c.i.conf.ApplicationConfig - Loaded configuration instance: ch.dvbern.tax.vd.presentation.cd.util.VdCdApplicationConfig@1dd2285
798 [main] INFO c.d.t.c.p.cd.TaxmeLauncher - Application is starting.
799 [main] DEBUG c.d.t.c.p.cd.TaxmeLauncher - System infos:
Operating System: Linux 3.2.0-4-686-pae
JVM Name: OpenJDK Client VM
JVM Vendor: Sun Microsystems Inc.
JVM Version: 23.25-b01
SWT Version: 4332-gtk
Java Home: /usr/lib/jvm/java-6-openjdk-i386/jre
Default Timezone: Europe/Paris
Default Locale: fr_FR
Classpath: lib/dvbern-lib-update.jar
872 [main] INFO org.jboss.weld.Version - WELD-000900: 2.2.1 (Final)
1247 [main] INFO org.jboss.weld.Bootstrap - WELD-000101: Transactional services not available. Injection of @Inject UserTransaction not available. Transactional observers will be invoked synchronously.
1507 [main] WARN org.jboss.weld.Interceptor - WELD-001700: Interceptor annotation class javax.ejb.PostActivate not found, interception based on it is not enabled
1509 [main] WARN org.jboss.weld.Interceptor - WELD-001700: Interceptor annotation class javax.ejb.PrePassivate not found, interception based on it is not enabled
4878 [weld-worker-1] INFO org.jboss.weld.Bootstrap - WELD-000119: Not generating any bean definitions from ch.dvbern.tax.common.entities.dao.base.DaoBean because of underlying class loading error: Type javax.persistence.EntityManager not found. If this is unexpected, enable DEBUG logging to see the full error.
4892 [weld-worker-1] INFO org.jboss.weld.Bootstrap - WELD-000119: Not generating any bean definitions from ch.dvbern.tax.common.entities.dao.base.GenericDao because of underlying class loading error: Type javax.persistence.EntityManager not found. If this is unexpected, enable DEBUG logging to see the full error.
4898 [weld-worker-1] INFO org.jboss.weld.Bootstrap - WELD-000119: Not generating any bean definitions from ch.dvbern.tax.common.entities.dao.base.DaoBeanAbstract because of underlying class loading error: Type javax.persistence.EntityManager not found. If this is unexpected, enable DEBUG logging to see the full error.
6892 [main] INFO c.d.t.c.p.cd.util.ConnectionUtil - Applying proxy configuration from saved settings: ProxyConfig[proxyEnabled=false,systemSettingsEnabled=false,host=,port=80]
8712 [main] DEBUG c.d.t.c.e.w.items.Button - BUTTON: uri=/link.cmd, name=label.button.open.link.independant.avec, dmk=null, dmkValue=null, target=independant_avec_compta.pdf, reRender=, viewID: null, styleClass=null
8712 [main] DEBUG c.d.t.c.e.w.items.Button - BUTTON: uri=/link.cmd, name=label.button.open.link.independant.sans, dmk=null, dmkValue=null, target=independant_sans_compta.pdf, reRender=, viewID: null, styleClass=null
8713 [main] DEBUG c.d.t.c.e.w.items.Button - BUTTON: uri=/link.cmd, name=label.button.open.link.independant.avec, dmk=null, dmkValue=null, target=independant_avec_compta.pdf, reRender=, viewID: null, styleClass=null
8713 [main] DEBUG c.d.t.c.e.w.items.Button - BUTTON: uri=/link.cmd, name=label.button.open.link.independant.sans, dmk=null, dmkValue=null, target=independant_sans_compta.pdf, reRender=, viewID: null, styleClass=null
8754 [main] DEBUG c.d.t.c.e.w.items.Button - BUTTON: uri=/open.url.cmd, name=label.estv.admin.ch, dmk=http://www.ictax.admin.ch/2014/fr/index.html, dmkValue=null, target=null, reRender=, viewID: null, styleClass=null
8756 [main] DEBUG c.d.t.c.e.w.items.Button - BUTTON: uri=/open.url.cmd, name=label.estv.admin.ch, dmk=http://www.ictax.admin.ch/2014/fr/index.html, dmkValue=null, target=null, reRender=, viewID: null, styleClass=null
8759 [main] DEBUG c.d.t.c.e.w.items.Button - BUTTON: uri=/link.cmd, name=label.titre.participation.bouton.comptedistinct, dmk=null, dmkValue=null, target=compte_distinct.xls, reRender=, viewID: null, styleClass=null
8759 [main] DEBUG c.d.t.c.e.w.items.Button - BUTTON: uri=/open.url.cmd, name=label.estv.admin.ch, dmk=http://www.ictax.admin.ch/2014/fr/index.html, dmkValue=null, target=null, reRender=, viewID: null, styleClass=null
8761 [main] DEBUG c.d.t.c.e.w.items.Button - BUTTON: uri=/open.url.cmd, name=label.estv.admin.ch, dmk=http://www.ictax.admin.ch/2014/fr/index.html, dmkValue=null, target=null, reRender=, viewID: null, styleClass=null
8765 [main] DEBUG c.d.t.c.e.w.items.Button - BUTTON: uri=/open.url.cmd, name=label.estv.admin.ch, dmk=http://www.ictax.admin.ch/2014/fr/index.html, dmkValue=null, target=null, reRender=, viewID: null, styleClass=null
8767 [main] DEBUG c.d.t.c.e.w.items.Button - BUTTON: uri=/open.url.cmd, name=label.estv.admin.ch, dmk=http://www.ictax.admin.ch/2014/fr/index.html, dmkValue=null, target=null, reRender=, viewID: null, styleClass=null
8770 [main] DEBUG c.d.t.c.e.w.items.Button - BUTTON: uri=/open.url.cmd, name=label.titre.da1.avoir.taux.button, dmk=http://www.estv.admin.ch/intsteuerrecht/themen/01314/01315/index.html?lang=fr, dmkValue=null, target=null, reRender=, viewID: null, styleClass=null
8770 [main] DEBUG c.d.t.c.e.w.items.Button - BUTTON: uri=/open.url.cmd, name=label.estv.admin.ch, dmk=http://www.ictax.admin.ch/2014/fr/index.html, dmkValue=null, target=null, reRender=, viewID: null, styleClass=null
8772 [main] DEBUG c.d.t.c.e.w.items.Button - BUTTON: uri=/open.url.cmd, name=label.titre.da1.action.taux.button, dmk=http://www.estv.admin.ch/intsteuerrecht/themen/01314/01315/index.html?lang=fr, dmkValue=null, target=null, reRender=, viewID: null, styleClass=null
8772 [main] DEBUG c.d.t.c.e.w.items.Button - BUTTON: uri=/open.url.cmd, name=label.estv.admin.ch, dmk=http://www.ictax.admin.ch/2014/fr/index.html, dmkValue=null, target=null, reRender=, viewID: null, styleClass=null
8780 [main] DEBUG c.d.t.c.e.w.items.Button - BUTTON: uri=/open.url.cmd, name=label.titre.da1.obligation.da1.recapitulation.taux.button, dmk=http://www.estv.admin.ch/intsteuerrecht/themen/01314/01315/index.html?lang=fr, dmkValue=null, target=null, reRender=, viewID: null, styleClass=null
8797 [main] DEBUG c.d.t.c.e.w.items.Button - BUTTON: uri=/link.cmd, name=label.button.open.link.prestation.capital, dmk=null, dmkValue=null, target=Declaration_prestations_en_capital.pdf, reRender=, viewID: null, styleClass=null
8801 [main] DEBUG c.d.t.c.e.w.items.Button - BUTTON: uri=/open.accompte.cmd, name=label.button.open.link.acompte, dmk=null, dmkValue=null, target=null, reRender=, viewID: null, styleClass=null
8802 [main] DEBUG c.d.t.c.e.w.items.Button - BUTTON: uri=/envoi.cmd, name=label.button.envoi, dmk=null, dmkValue=null, target=null, reRender=, viewID: null, styleClass=null
8802 [main] DEBUG c.d.t.c.e.w.items.Button - BUTTON: uri=/printCopy.cmd, name=label.button.printCopie, dmk=null, dmkValue=null, target=null, reRender=, viewID: null, styleClass=null
8803 [main] DEBUG c.d.t.c.e.w.items.Button - BUTTON: uri=/print.cmd, name=label.button.print, dmk=null, dmkValue=null, target=null, reRender=, viewID: null, styleClass=null
8809 [main] DEBUG c.d.t.c.e.w.items.Button - BUTTON: uri=/printCopy.cmd, name=label.button.printCopie, dmk=null, dmkValue=null, target=null, reRender=, viewID: null, styleClass=null
9079 [main] WARN c.d.t.c.e.ExpertUpdatePreprocessor - more than one preselection item for Recapitulation.Acomptes
9167 [main] INFO c.d.t.c.p.cd.TaxmeController - Loaded Session class: ch.dvbern.tax.vd.presentation.cd.VdDvbTaxCdSession
9218 [main] DEBUG c.d.t.common.presentation.cd.Taxme - No custom application icon path defined
9219 [main] INFO c.d.t.common.presentation.cd.Taxme - Using default application icon source
10040 [Thread-2] DEBUG c.d.t.c.p.c.u.ImmediatelyCancelable - runner started
4 juin 2015 11:35:54 ch.dvbern.lib.update.UpdateManager isUpdateAvailable
INFO: No update to apply: already at the latest version
11490 [Thread-2] DEBUG c.d.t.c.p.c.u.ImmediatelyCancelable - runner terminated

:wink: Merci angelique, le lancement avec le terminal fonctionne !

Pour remplir la procédure d’ouverture de VaudTax 2014 via le terminal, je me suis référé à cette doc : http://www.swisslinux.org/forum/viewtopic.php?pid=20349 (dont j’avais gardé la référence).

J’ai fait : root@francois:/home/francois# cd VaudTax_2014-1.3.0-production root@francois:/home/francois/VaudTax_2014-1.3.0-production# ./vaudtax-2014

Et le dossier VaudTax s’est ouvert ! Encore merci à tous.

Pas sûr que ce soit une bonne idée de le lancer en tant que root.

A part ça, j’ai tenté la procédure pour générer le paquet debian mais il y a quelques erreurs ou omissions.
C’est possible mais mal expliqué.

Je ne sais pas si c’est possible de partager le paquet debian étant donné que le programme est la propriété du canton de Vaud…
Ce qu’il faudrait, c’est un paquet du genre vaudtax-package sur le modèle de googleearth-package.
Plus propre à tout point de vue (programme et licences) et sans demander l’intervention de l’utilisateur.

Merci pour les clarifications jcsm33. J’ai pris note, je lance le programme sans root ($).

Avec le générateur vaudtax-debian, on obtient ces trois fichiers
vaudtax_2014.1.3-0generator0_all.deb
vaudtax_2014.1.3-0generator0_amd64.build
vaudtax_2014.1.3-0generator0_amd64.changes