Hi Andrew,<br>
<br>
Good tool! I tried to use it but I got exactly the same error:<br>
<br>
[sbox-SDK_ARMEL: ~/mud-builder] > ./mud build packages/libhttpfetcher.xml<br>
+++ Trying to build package [libhttpfetcher]<br>
Build dir = [/home/vmware/mud-builder/build/libhttpfetcher/.build]<br>
MUD::Fetch::Debian<br>
Unimplemented _init.<br>
Workdir [/home/vmware/mud-builder/build/libhttpfetcher]<br>
mkdir /home/vmware/mud-builder/build/libhttpfetcher<br>
fakeroot apt-get -y -o Dir::Etc::SourceList=/home/vmware/mud-builder/build/sources.list update<br>
Get:1 <a href="http://ftp.debian.org">http://ftp.debian.org</a> stable Release.gpg [189B]<br>
Get:2 <a href="http://ftp.debian.org">http://ftp.debian.org</a> stable Release [34.6kB]<br>
Ign <a href="http://ftp.debian.org">http://ftp.debian.org</a> stable Release<br>
Ign <a href="http://ftp.debian.org">http://ftp.debian.org</a> stable/main Sources<br>
Ign <a href="http://ftp.debian.org">http://ftp.debian.org</a> stable/main Packages<br>
Get:3 <a href="http://ftp.debian.org">http://ftp.debian.org</a> stable/main Sources [1322kB]<br>
Ign <a href="http://repository.maemo.org">http://repository.maemo.org</a> scirocco Release.gpg<br>
Ign <a href="http://repository.maemo.org">http://repository.maemo.org</a> scirocco Release.gpg<br>
Get:4 <a href="http://catalogue.tableteer.nokia.com">http://catalogue.tableteer.nokia.com</a> mistral Release.gpg [189B]<br>
Get:5 <a href="http://catalogue.tableteer.nokia.com">http://catalogue.tableteer.nokia.com</a> mistral Release.gpg [189B]<br>
Hit <a href="http://repository.maemo.org">http://repository.maemo.org</a> scirocco Release<br>
Get:6 <a href="http://catalogue.tableteer.nokia.com">http://catalogue.tableteer.nokia.com</a> mistral Release [2415B]<br>
Ign <a href="http://catalogue.tableteer.nokia.com">http://catalogue.tableteer.nokia.com</a> mistral Release<br>
Hit <a href="http://repository.maemo.org">http://repository.maemo.org</a> scirocco Release<br>
Err <a href="http://ftp.debian.org">http://ftp.debian.org</a> stable/main Packages<br>
404 Not Found<br>
Get:7 <a href="http://catalogue.tableteer.nokia.com">http://catalogue.tableteer.nokia.com</a> mistral Release [2741B]<br>
Hit <a href="http://repository.maemo.org">http://repository.maemo.org</a> scirocco/free Packages<br>
Get:8 <a href="http://catalogue.tableteer.nokia.com">http://catalogue.tableteer.nokia.com</a> mistral/user Packages [1481B]<br>
Hit <a href="http://repository.maemo.org">http://repository.maemo.org</a> scirocco/non-free Packages<br>
Hit <a href="http://catalogue.tableteer.nokia.com">http://catalogue.tableteer.nokia.com</a> mistral/user Packages<br>
Hit <a href="http://repository.maemo.org">http://repository.maemo.org</a> scirocco/free Sources<br>
Hit <a href="http://repository.maemo.org">http://repository.maemo.org</a> scirocco/non-free Sources<br>
Hit <a href="http://repository.maemo.org">http://repository.maemo.org</a> scirocco/free Packages<br>
Hit <a href="http://repository.maemo.org">http://repository.maemo.org</a> scirocco/non-free Packages<br>
Hit <a href="http://repository.maemo.org">http://repository.maemo.org</a> scirocco/free Sources<br>
Hit <a href="http://repository.maemo.org">http://repository.maemo.org</a> scirocco/non-free Sources<br>
Failed to fetch <a href="http://ftp.debian.org/dists/stable/main/binary-armel/Packages.gz">http://ftp.debian.org/dists/stable/main/binary-armel/Packages.gz</a> 404 Not Found<br>
Fetched 1364kB in 1m50s (12.3kB/s)<br>
Reading package lists...<br>
W: GPG error: <a href="http://ftp.debian.org">http://ftp.debian.org</a> stable Release: The following
signatures couldn't be verified because the public key is not
available: NO_PUBKEY 010908312D230C5F<br>
W: GPG error: <a href="http://catalogue.tableteer.nokia.com">http://catalogue.tableteer.nokia.com</a> mistral Release: Unknown error executing gpgv<br>
W: You may want to run apt-get update to correct these problems<br>
E: Some index files failed to download, they have been ignored, or old ones used instead.<br>
fakeroot apt-get -y -o Dir::Etc::SourceList=/home/vmware/mud-builder/build/sources.list source libhttpfetcher1<br>
Reading package lists...<br>
Building dependency tree...<br>
Need to get 270kB of source archives.<br>
Get:1 <a href="http://ftp.debian.org">http://ftp.debian.org</a> stable/main libhttpfetcher 1.0.1-3 (dsc) [625B]<br>
Get:2 <a href="http://ftp.debian.org">http://ftp.debian.org</a> stable/main libhttpfetcher 1.0.1-3 (tar) [174kB]<br>
Get:3 <a href="http://ftp.debian.org">http://ftp.debian.org</a> stable/main libhttpfetcher 1.0.1-3 (diff) [96.0kB]<br>
gpg: new configuration file `/home/vmware/.gnupg/gpg.conf' created<br>
gpg: WARNING: options in `/home/vmware/.gnupg/gpg.conf' are not yet active during this run<br>
gpg: Signature made Sat Mar 5 03:44:13 2005 PST using DSA key ID B2CFCDD8<br>
gpg: Can't check signature: public key not found<br>
dpkg-source: extracting libhttpfetcher in libhttpfetcher-1.0.1<br>
dpkg-source: unpacking libhttpfetcher_1.0.1.orig.tar.gz<br>
dpkg-source: applying ./libhttpfetcher_1.0.1-3.diff.gz<br>
W: Couldn't stat source package list <a href="http://ftp.debian.org">http://ftp.debian.org</a> stable/main
Packages
(/var/lib/apt/lists/ftp.debian.org_dists_stable_main_binary-armel_Packages)
- stat (2 No such file or directory)<br>
W: You may want to run apt-get update to correct these problems<br>
Fetched 270kB in 6s (43.8kB/s)<br>
Set build dir to [/home/vmware/mud-builder/build/libhttpfetcher/libhttpfetcher-1.0.1]<br>
+++ Checking patch file [/home/vmware/mud-builder/packages/patch/libhttpfetcher.patch]<br>
+++ Preventing install of [changelogs,docs,examples,info,man] in deb.<br>
+++ Appending [] to configure.<br>
Source: libhttpfetcher<br>
Section: user/libs<br>
Priority: optional<br>
Maintainer: Debian QA Group <<a href="mailto:packages@qa.debian.org">packages@qa.debian.org</a>><br>
Build-Depends: debhelper (>> 3.0.0)<br>
Standards-Version: <a href="http://3.6.1.0">3.6.1.0</a><br>
<br>
Package: libhttpfetcher-dev<br>
Architecture: any<br>
Section: user/libdevel<br>
Depends: libhttpfetcher1 (= ${Source-Version}), libc6-dev | libc-dev<br>
Description: A small library that downloads files via HTTP<br>
libhttpfetcher is a small library that can download files using the<br>
HTTP GET method. HTTP Fetcher is meant to be small, fast, and flexible at<br>
what it does. It's robust, easy to use: using one function,<br>
it can download any kind of file via HTTP. It also offers further<br>
sophistication, allowing you control over what (if any) User-Agent or<br>
Referrer you wish to show to the web server. Which is neat stuff, depending<br>
on your use (testing and stealth/deception are two that come to mind).<br>
<br>
Package: libhttpfetcher1<br>
Architecture: any<br>
Section: user/libs<br>
Depends: ${shlibs:Depends}<br>
Description: A small library that downloads files via HTTP<br>
libhttpfetcher is a small library that can download files using the<br>
HTTP GET method. HTTP Fetcher is meant to be small, fast, and flexible at<br>
what it does. It's robust, easy to use: using one function,<br>
it can download any kind of file via HTTP. It also offers further<br>
sophistication, allowing you control over what (if any) User-Agent or<br>
Referrer you wish to show to the web server. Which is neat stuff, depending<br>
on your use (testing and stealth/deception are two that come to mind).<br>
dpkg-buildpackage: source package is libhttpfetcher<br>
dpkg-buildpackage: source version is 1.0.1-3<br>
dpkg-buildpackage: source changed by Philipp Kern <<a href="mailto:pkern@debian.org">pkern@debian.org</a>><br>
dpkg-buildpackage: host architecture armel<br>
fakeroot debian/rules clean<br>
dh_testdir<br>
Name "main::DEBIAN_DIR" used only once: possible typo at /usr/bin/dh_testdir line 37.<br>
Use of uninitialized value in concatenation (.) or string at /usr/bin/dh_testdir line 37.<br>
dh_testdir: "/control" not found. Are you sure you are in the correct directory?<br>
make: *** [clean] Error 1<br>
+++ Calculating dependencies to copy to [/home/vmware/mud-builder/upload]<br>
Finding debs for [*.deb] in [/home/vmware/mud-builder/build/libhttpfetcher]<br>
<br>
Any ideas how to fix it?<br>
<br>
Thanks in advance.<br><br><div><span class="gmail_quote">On 1/11/07, <b class="gmail_sendername">Andrew Flegg</b> <<a href="mailto:andrew@bleb.org">andrew@bleb.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 1/11/07, Michael Stepanov <<a href="mailto:michael@stepanoff.org">michael@stepanoff.org</a>> wrote:<br>><br>> When I try to build ARMEL package from debian sources I get the error<br>> that directory debian cannot be found by dpkg-packagebuilder. I applied
<br>> patches and directory debian is inside of library directory. Here is an<br>> output for http_fetcher- 1.0.1, for example:<br>[snip]<br>><br>> Name "main::DEBIAN_DIR" used only once: possible typo at /usr/bin/dh_testdir
<br>> line 37.<br>> Use of uninitialized value in concatenation (.) or string at<br>> /usr/bin/dh_testdir line 37.<br>> dh_testdir: "/control" not found. Are you sure you are in the correct<br>> directory?
<br>> make: *** [clean] Error 1<br>><br>> I tried to do export DEBIAN_DIR=debian but without luck.<br>><br>> Any suggestions how to resolve this?<br><br>Sounds like a bug in dh_testdir, possibly related to the fact that
<br>libhttpfetcher is no longer in Debian:<br><br> <a href="http://packages.qa.debian.org/libh/libhttpfetcher.html">http://packages.qa.debian.org/libh/libhttpfetcher.html</a><br><br>Perhaps the source package is out of date compared with the version of
<br>the dpkg tools in Maemo (which is closer to `etch' AFAICT)? Is<br>`apt-get update/upgrade' up-to-date in your Scratchbox?<br><br>Does it happen for other packages?<br><br>You may also be interested in `mud' (Maemo Unofficial Debs) it's an
<br>auto-builder I've started to make it easier porting stuff from<br>upstream sources (e.g. Debian):<br><br> <a href="http://mud-builder.garage.maemo.org/">http://mud-builder.garage.maemo.org/</a><br><br>Any thoughts would be most welcome: it's still at an early stage so
<br>now's the time to say ;-)<br><br>For example, the package file necessary to build libhttpfetcher was:<br><br> libhttpfetcher.xml:<br> <package><br> <fetch type="debian"><br>
<name>libhttpfetcher1</name><br> <deb-src><a href="http://ftp.debian.org/">http://ftp.debian.org/</a>
stable main</deb-src><br> </fetch><br> </package><br><br>The "name" and "deb-src" lines default to the filename and etch if<br>missing. This has successfully built a deb on my Scratchbox install:
<br><br> 14672 Jan 11 13:54 upload/libhttpfetcher-dev_1.0.1-3_i386.deb<br> 7732 Jan 11 13:54 upload/libhttpfetcher1_1.0.1-3_i386.deb<br><br>Note that the auto-Maemoification has yet to be done, such as<br>prefixing the "Section" in debian/control with "user/". This woudwould
<br>be turned off for these packages anyway, I suspect.<br><br>I've checked it in so you can try it yourself you like; source is in<br>Subversion at the Garage:<br><br> <a href="https://garage.maemo.org/scm/?group_id=63">
https://garage.maemo.org/scm/?group_id=63</a><br><br>Hope that helps,<br><br>Andrew<br><br>--<br>Andrew Flegg -- mailto:<a href="mailto:andrew@bleb.org">andrew@bleb.org</a> | <a href="http://www.bleb.org/">http://www.bleb.org/
</a><br></blockquote></div><br><br clear="all"><br>-- <br>Cheers,<br>Michael