How do I include a wget in a source-package or reciepe?

Asked by Anders Wallenquist on 2010-08-27

I have a wget in my rules-file. This works when I localy builds binary packages with debuild -b but gives me this error when building at launchpad:

wget -q -r -A .pdf,.zip -X /pub/sourceforge/b/project/bo/bots/OldFiles --no-parent -nH --cut-dirs=6 http://ftp.heanet.ie/pub/sourceforge/b/project/bo/bots/
make: *** [build] Error 4
dpkg-buildpackage: error: debian/rules build gave error exit status 2
******************************************************************************
Build finished at 20100825-2040
FAILED [dpkg-buildpackage died]

http://launchpadlibrarian.net/54400216/buildlog_ubuntu-lucid-amd64.bots_2.0.1-1ppa10_FAILEDTOBUILD.txt.gz

debian/rules:
build:
        mkdir -p etc/bots
        cp -r bots/config/* etc/bots
        wget -q -r -A .pdf,.zip -X /pub/sourceforge/b/project/bo/bots/OldFiles --no-parent -nH --cut-dirs=6 http://ftp.heanet.ie/pub/sourceforge/b/project/bo/bots/
        mv grammars\ for\ edifact grammars_for_edifact
        mv grammars\ for\ x12 grammars_for_x12
        mv bots\ open\ source\ edi\ software bots_open_source_edi_software
        mv user\ contributed\ plugins user_contributed_plugins

 bots - 2.0.1-1ppa10 @ https://edge.launchpad.net/~aw/+archive/ppa/+packages

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
Michael Nelson
Solved:
2010-08-30
Last query:
2010-08-30
Last reply:
2010-08-30

I don't really understand what you want to download, but if these files are also available in svn you can make a branch import of the svn location and nest it into your build.

Anders Wallenquist (aw) said : #2

No, in this case its 10 to 30 zip-files with edi-grammar for the /usr/share/doc/bots/example-directory. They are uploaded at sourceforge and the package are to deliver the latest bunch.

The launchpad builders do not have access to the outside world. The can access other PPAs and the archive.

I'm not certain, but your best solution might be to instead include a post-inst script that (optionally) downloads and installs these examples instead of including them in the package itself. (or just refering to them from the docs in the package).

Anders Wallenquist (aw) said : #4

Thanks Michael Nelson, that solved my question.