lieutar / mechanize-userscripts.org

userscripts.org のスクリプトをCLIで更新するためのもの
2 stars 1 forks source link

Error with pristine-tar when using dh-make-perl #4

Closed alexandre-mbm closed 10 years ago

alexandre-mbm commented 10 years ago

Copy backup for our test:

cd ..
cp -r {project} {project}-test
cd {project}-test
rm -rf .git
rm -rf debian

Update apt-file (?):

sudo apt-get install apt-file
sudo apt-file update

Run the dh-make-perl:

dh-make-perl -p post-userscripts-org --source-format 1

Errors:

$ sudo dh-make-perl -p post-userscripts-org --source-format 1
Using META.yml
Found: post-userscripts-org 5.01 (post-userscripts-org arch=all)
No APT contents can be loaded.
Please install 'apt-file' package (at least version 2.5.0) and
run 'apt-file update' as root.
Dependencies not updated.
Using maintainer: root <root@alexandre-desktop>
Found docs: README.en.markdown README.markdown
Using rules: /usr/share/dh-make-perl/rules.dh7.tiny
**********
Copyright information incomplete!

Upstream copyright information could not be automatically determined.

If you are building this package for your personal use, you might disregard
this information; however, if you intend to upload this package to Debian
(or in general, if you plan on distributing it), you must look into the
complete copyright information.

The causes for this warning are:
Licensing information is present, but cannot be parsed
--- Done
Switched to a new branch 'master'
Use of uninitialized value $tarball in system at /usr/share/perl5/DhMakePerl/Command/make.pm line 623.
tar: Old option `f' requires an argument.
Try `tar --help' or `tar --usage' for more information.
: Arquivo ou diretório não encontrado at /usr/share/perl5/Pristine/Tar/Formats.pm line 65.
pristine-tar: failed to generate delta
Lendo listas de pacotes... Pronto
Construindo árvore de dependências       
Lendo informação de estado... Pronto
alexandre$ git status
# On branch master
nothing to commit (working directory clean)
$

Possible causes of the problem:

References

alexandre-mbm commented 10 years ago

Solution to step with pristine-tar:

make dist
mv post-userscripts-org-5.01.tar.gz ../post-userscripts-org_5.01.orig.tar.gz
dh-make-perl -p post-userscripts-org --source-format 1

But before, and I do not know if it had effect:

sudo cpan DhMakePerl

Ref.: http://search.cpan.org/~dam/DhMakePerl/