Merci pour l'idée de compilation sans le %{?_smp_mflags} :-D
J'ai corrigé beaucoup de problèmes ! Je soumets le nouveau spec qui compile !!! Bon à mon avis il va y avoir des trucs à changer...
Voici
psicode.spec
C'est la première fois que je fais un fichier devel j'espère que c'est bon.
J'ai du sed pas mal de trucs à cause des fprintf. C'est bon ou il vaut mieux faire un patch ?
Pour le sed dans lib/ruby/Makefile.in ils ont oublié d'ajouter le DESTDIR du coup ça marchait pas...
Dans la section %build : ça construit si je mets juste
make mais pas en
make %{?_smp_mflags}. C'est plus long mais je vois pas pourquoi il s'arrête comme ça...
psicode-3.4.0-1.fc16.src.rpm
$ rpmlint psicode-3.4.0-1.fc16.src.rpm
1 packages and 0 specfiles checked; 0 errors, 0 warnings.
J'ai corrigé des erreurs comme unversioned-explicit-provides dans la section devel en fouillant dans les informations du site de packaging.
psicode-3.4.0-1.fc16.x86_64.rpm
$ rpmlint psicode-3.4.0-1.fc16.x86_64.rpm
psicode.x86_64: W: spurious-executable-perm /usr/share/man/man1/tocprint.1.gz
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/tocprint.1.gz 6: warning: macro `#' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/tocprint.1.gz 382: warning: macro `Lv' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/tocprint.1.gz 387: warning: macro `.' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/tocprint.1.gz 422: warning: macro `iS' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/tocprint.1.gz 545: warning: macro `]D' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/tocprint.1.gz 545: warning: macro `]L' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/tocprint.1.gz 545: warning: macro `PN' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/tocprint.1.gz 545: warning: macro `}C' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/tocprint.1.gz 556: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/tocprint.1.gz 572: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/transqt.1.gz 6: warning: macro `#' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/transqt.1.gz 382: warning: macro `Lv' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/transqt.1.gz 387: warning: macro `.' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/transqt.1.gz 422: warning: macro `iS' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/transqt.1.gz 545: warning: macro `]D' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/transqt.1.gz 545: warning: macro `]L' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/transqt.1.gz 545: warning: macro `PN' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/transqt.1.gz 545: warning: macro `}C' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/transqt.1.gz 554: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/transqt.1.gz 557: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/transqt.1.gz 559: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/transqt.1.gz 561: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/transqt.1.gz 563: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/transqt.1.gz 590: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/transqt.1.gz 591: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/transqt.1.gz 592: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/transqt.1.gz 593: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/transqt.1.gz 594: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/transqt.1.gz 595: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/transqt.1.gz 599: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/transqt.1.gz 600: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/transqt.1.gz 601: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/transqt.1.gz 627: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/transqt.1.gz 803: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/transqt.1.gz 812: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/input.1.gz 1: warning: macro `]D' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/input.1.gz 12: warning: macro `pN' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/input.1.gz 118: warning: macro `sL' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/input.1.gz 120: warning: macro `eL' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/clag.1.gz 5: warning: macro `#' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/clag.1.gz 381: warning: macro `Lv' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/clag.1.gz 386: warning: macro `.' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/clag.1.gz 421: warning: macro `iS' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/clag.1.gz 546: warning: macro `]D' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/clag.1.gz 546: warning: macro `]L' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/clag.1.gz 546: warning: macro `PN' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/clag.1.gz 546: warning: macro `}C' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/clag.1.gz 572: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/clag.1.gz 573: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/clag.1.gz 574: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/clag.1.gz 575: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/clag.1.gz 576: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/clag.1.gz 580: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/clag.1.gz 581: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/clag.1.gz 587: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/detci.1.gz 91: warning: macro `pN' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/stable.1.gz 44: warning: macro `pN' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/cints.1.gz 5: warning: macro `#' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/cints.1.gz 381: warning: macro `Lv' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/cints.1.gz 386: warning: macro `.' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/cints.1.gz 421: warning: macro `iS' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/cints.1.gz 546: warning: macro `]D' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/cints.1.gz 546: warning: macro `]L' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/cints.1.gz 546: warning: macro `PN' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/cints.1.gz 546: warning: macro `}C' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/cints.1.gz 570: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/cints.1.gz 571: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/cints.1.gz 572: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/cints.1.gz 576: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/cints.1.gz 580: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/cints.1.gz 581: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/cints.1.gz 582: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/cints.1.gz 587: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/cscf.1.gz 1: warning: macro `]W' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/cscf.1.gz 1: warning: macro `]D' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/cscf.1.gz 118: warning: macro `sL' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/cscf.1.gz 119: warning: macro `pN' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/cscf.1.gz 122: warning: macro `eL' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/psi3.1.gz 6: warning: macro `#' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/psi3.1.gz 382: warning: macro `Lv' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/psi3.1.gz 387: warning: macro `.' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/psi3.1.gz 422: warning: macro `iS' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/psi3.1.gz 545: warning: macro `]D' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/psi3.1.gz 545: warning: macro `]L' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/psi3.1.gz 545: warning: macro `PN' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/psi3.1.gz 545: warning: macro `}C' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/psi3.1.gz 568: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/psi3.1.gz 569: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/psi3.1.gz 738: warning: macro `DS' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/psi3.1.gz 746: warning: macro `DE' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/oeprop.1.gz 1: warning: macro `]W' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/oeprop.1.gz 1: warning: macro `]D' not defined
psicode.x86_64: E: incorrect-fsf-address /usr/share/doc/psicode-3.4.0/LICENSE
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/mp2r12.1.gz 6: warning: macro `#' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/mp2r12.1.gz 382: warning: macro `Lv' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/mp2r12.1.gz 387: warning: macro `.' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/mp2r12.1.gz 422: warning: macro `iS' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/mp2r12.1.gz 545: warning: macro `]D' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/mp2r12.1.gz 545: warning: macro `]L' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/mp2r12.1.gz 545: warning: macro `PN' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/mp2r12.1.gz 545: warning: macro `}C' not defined
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/mp2r12.1.gz 588: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/mp2r12.1.gz 589: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/mp2r12.1.gz 590: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/mp2r12.1.gz 591: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/mp2r12.1.gz 592: warning: numeric expression expected (got `n')
psicode.x86_64: W: manual-page-warning /usr/share/man/man1/mp2r12.1.gz 596: warning: numeric expression expected (got `n')
psicode.x86_64: W: no-manual-page-for-binary psi2molden
psicode.x86_64: W: no-manual-page-for-binary cclambda
psicode.x86_64: W: no-manual-page-for-binary intder
psicode.x86_64: W: no-manual-page-for-binary cphf
psicode.x86_64: W: no-manual-page-for-binary localize
psicode.x86_64: W: no-manual-page-for-binary cctriples
psicode.x86_64: W: no-manual-page-for-binary ccresponse
psicode.x86_64: W: no-manual-page-for-binary ccsort
psicode.x86_64: W: no-manual-page-for-binary ccdensity
psicode.x86_64: W: no-manual-page-for-binary transqt2
psicode.x86_64: W: no-manual-page-for-binary nonbonded
psicode.x86_64: W: no-manual-page-for-binary psimrcc
psicode.x86_64: W: no-manual-page-for-binary mcscf
psicode.x86_64: W: no-manual-page-for-binary extrema
psicode.x86_64: W: no-manual-page-for-binary response
psicode.x86_64: W: no-manual-page-for-binary cchbar
psicode.x86_64: W: no-manual-page-for-binary cis
1 packages and 0 specfiles checked; 1 errors, 124 warnings.
Pour les erreurs sur les manpages j'en ai aucune idée de si c'est possible de corriger ça ?
spurious-executable-perm /usr/share/man/man1/tocprint.1.gz : j'ai vu que c'était parce que le fichier était exécutable. Je peux le chmod a-x ?
incorrect-fsf-address /usr/share/doc/psicode-3.4.0/LICENSE : c'est pas la bonne adresse dans le fichier de licence (trop vieux). J'ai vu qu'il suffisait de notifier upstream. J'en profiterai pour parler des arrêts de compilation et du dossier ruby
psicode-devel-3.4.0-1.fc16.x86_64.rpm
$ rpmlint psicode-devel-3.4.0-1.fc16.x86_64.rpm
psicode-devel.x86_64: W: summary-not-capitalized C psicode development files
psicode-devel.x86_64: W: no-documentation
1 packages and 0 specfiles checked; 0 errors, 2 warnings.
Vu ma description c'est normal de pas mettre la majuscule. Je pense pas qu'une doc soit nécessaire pour ce paquet.
psicode-debuginfo-3.4.0-1.fc16.x86_64.rpm
$ rpmlint psicode-debuginfo-3.4.0-1.fc16.x86_64.rpm
psicode-debuginfo.x86_64: E: debuginfo-without-sources
1 packages and 0 specfiles checked; 1 errors, 0 warnings.
Est-ce que ça peut-être du au fait que je n'ajoute pas le bon make ? Il faudrait ajouter le flag -g à la compilation peut-être ?
Enfin je me base sur :
rpmlint -I debuginfo-without-sources
debuginfo-without-sources:
This debuginfo package appears to contain debug symbols but no source files.
This is often a sign of binaries being unexpectedly stripped too early during
the build, or being compiled without compiler debug flags (which again often
is a sign of distro's default compiler flags ignored which might have security
consequences), or other compiler flags which result in rpmbuild's debuginfo
extraction not working as expected. Verify that the binaries are not
unexpectedly stripped and that the intended compiler flags are used.
Voila merci d'avance pour tout commentaire. J'envoie un mail a upstream d'ici demain.