Hi Andrew,

Good tool! I tried to use it but I got exactly the same error:

[sbox-SDK_ARMEL: ~/mud-builder] > ./mud build packages/libhttpfetcher.xml
+++ Trying to build package [libhttpfetcher]
Build dir = [/home/vmware/mud-builder/build/libhttpfetcher/.build]
MUD::Fetch::Debian
Unimplemented _init.
Workdir [/home/vmware/mud-builder/build/libhttpfetcher]
mkdir /home/vmware/mud-builder/build/libhttpfetcher
fakeroot apt-get -y -o
Dir::Etc::SourceList=/home/vmware/mud-builder/build/sources.list update
Get:1 http://ftp.debian.org stable Release.gpg [189B]
Get:2 http://ftp.debian.org stable Release [34.6kB]
Ign http://ftp.debian.org stable Release
Ign http://ftp.debian.org stable/main Sources
Ign http://ftp.debian.org stable/main Packages
Get:3 http://ftp.debian.org stable/main Sources [1322kB]
Ign http://repository.maemo.org scirocco Release.gpg
Ign http://repository.maemo.org scirocco Release.gpg
Get:4 http://catalogue.tableteer.nokia.com mistral Release.gpg [189B]
Get:5 http://catalogue.tableteer.nokia.com mistral Release.gpg [189B]
Hit http://repository.maemo.org scirocco Release
Get:6 http://catalogue.tableteer.nokia.com mistral Release [2415B]
Ign http://catalogue.tableteer.nokia.com mistral Release
Hit http://repository.maemo.org scirocco Release
Err http://ftp.debian.org stable/main Packages
 404 Not Found
Get:7 http://catalogue.tableteer.nokia.com mistral Release [2741B]
Hit http://repository.maemo.org scirocco/free Packages
Get:8 http://catalogue.tableteer.nokia.com mistral/user Packages [1481B]
Hit http://repository.maemo.org scirocco/non-free Packages
Hit http://catalogue.tableteer.nokia.com mistral/user Packages
Hit http://repository.maemo.org scirocco/free Sources
Hit http://repository.maemo.org scirocco/non-free Sources
Hit http://repository.maemo.org scirocco/free Packages
Hit http://repository.maemo.org scirocco/non-free Packages
Hit http://repository.maemo.org scirocco/free Sources
Hit http://repository.maemo.org scirocco/non-free Sources
Failed to fetch
http://ftp.debian.org/dists/stable/main/binary-armel/Packages.gz  404 Not
Found
Fetched 1364kB in 1m50s (12.3kB/s)
Reading package lists...
W: GPG error: http://ftp.debian.org stable Release: The following signatures
couldn't be verified because the public key is not available: NO_PUBKEY
010908312D230C5F
W: GPG error: http://catalogue.tableteer.nokia.com mistral Release: Unknown
error executing gpgv
W: You may want to run apt-get update to correct these problems
E: Some index files failed to download, they have been ignored, or old ones
used instead.
fakeroot apt-get -y -o
Dir::Etc::SourceList=/home/vmware/mud-builder/build/sources.list source
libhttpfetcher1
Reading package lists...
Building dependency tree...
Need to get 270kB of source archives.
Get:1 http://ftp.debian.org stable/main libhttpfetcher 1.0.1-3 (dsc) [625B]
Get:2 http://ftp.debian.org stable/main libhttpfetcher 1.0.1-3 (tar) [174kB]
Get:3 http://ftp.debian.org stable/main libhttpfetcher 1.0.1-3 (diff) [
96.0kB]
gpg: new configuration file `/home/vmware/.gnupg/gpg.conf' created
gpg: WARNING: options in `/home/vmware/.gnupg/gpg.conf' are not yet active
during this run
gpg: Signature made Sat Mar  5 03:44:13 2005 PST using DSA key ID B2CFCDD8
gpg: Can't check signature: public key not found
dpkg-source: extracting libhttpfetcher in libhttpfetcher-1.0.1
dpkg-source: unpacking libhttpfetcher_1.0.1.orig.tar.gz
dpkg-source: applying ./libhttpfetcher_1.0.1-3.diff.gz
W: Couldn't stat source package list http://ftp.debian.org stable/main
Packages
(/var/lib/apt/lists/ftp.debian.org_dists_stable_main_binary-armel_Packages)
- stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
Fetched 270kB in 6s (43.8kB/s)
Set build dir to
[/home/vmware/mud-builder/build/libhttpfetcher/libhttpfetcher-1.0.1]
+++ Checking patch file
[/home/vmware/mud-builder/packages/patch/libhttpfetcher.patch]
+++ Preventing install of [changelogs,docs,examples,info,man] in deb.
+++ Appending [] to configure.
Source: libhttpfetcher
Section: user/libs
Priority: optional
Maintainer: Debian QA Group <[EMAIL PROTECTED]>
Build-Depends: debhelper (>> 3.0.0)
Standards-Version: 3.6.1.0

Package: libhttpfetcher-dev
Architecture: any
Section: user/libdevel
Depends: libhttpfetcher1 (= ${Source-Version}), libc6-dev | libc-dev
Description: A small library that downloads files via HTTP
libhttpfetcher is a small library that can download files using the
HTTP GET method. HTTP Fetcher is meant to be small, fast, and flexible at
what it does. It's robust, easy to use:  using one function,
it can download any kind of file via HTTP.  It also offers further
sophistication, allowing you control over what (if any) User-Agent or
Referrer you wish to show to the web server.  Which is neat stuff,
depending
on your use (testing and stealth/deception are two that come to mind).

Package: libhttpfetcher1
Architecture: any
Section: user/libs
Depends: ${shlibs:Depends}
Description: A small library that downloads files via HTTP
libhttpfetcher is a small library that can download files using the
HTTP GET method. HTTP Fetcher is meant to be small, fast, and flexible at
what it does. It's robust, easy to use:  using one function,
it can download any kind of file via HTTP.  It also offers further
sophistication, allowing you control over what (if any) User-Agent or
Referrer you wish to show to the web server.  Which is neat stuff,
depending
on your use (testing and stealth/deception are two that come to mind).
dpkg-buildpackage: source package is libhttpfetcher
dpkg-buildpackage: source version is 1.0.1-3
dpkg-buildpackage: source changed by Philipp Kern <[EMAIL PROTECTED]>
dpkg-buildpackage: host architecture armel
fakeroot debian/rules clean
dh_testdir
Name "main::DEBIAN_DIR" used only once: possible typo at /usr/bin/dh_testdir
line 37.
Use of uninitialized value in concatenation (.) or string at
/usr/bin/dh_testdir line 37.
dh_testdir: "/control" not found. Are you sure you are in the correct
directory?
make: *** [clean] Error 1
+++ Calculating dependencies to copy to [/home/vmware/mud-builder/upload]
Finding debs for [*.deb] in [/home/vmware/mud-builder/build/libhttpfetcher]

Any ideas how to fix it?

Thanks in advance.

On 1/11/07, Andrew Flegg <[EMAIL PROTECTED]> wrote:

On 1/11/07, Michael Stepanov <[EMAIL PROTECTED]> wrote:
>
> When I try to build ARMEL package from debian sources I get the error
> that directory debian cannot be found by dpkg-packagebuilder. I applied
> patches and directory debian is inside of library directory. Here is an
> output for http_fetcher- 1.0.1, for example:
[snip]
>
> Name "main::DEBIAN_DIR" used only once: possible typo at
/usr/bin/dh_testdir
> line 37.
> Use of uninitialized value in concatenation (.) or string at
> /usr/bin/dh_testdir line 37.
> dh_testdir: "/control" not found. Are you sure you are in the correct
> directory?
> make: *** [clean] Error 1
>
>  I tried to do export DEBIAN_DIR=debian but without luck.
>
> Any suggestions how to resolve this?

Sounds like a bug in dh_testdir, possibly related to the fact that
libhttpfetcher is no longer in Debian:

    http://packages.qa.debian.org/libh/libhttpfetcher.html

Perhaps the source package is out of date compared with the version of
the dpkg tools in Maemo (which is closer to `etch' AFAICT)? Is
`apt-get update/upgrade' up-to-date in your Scratchbox?

Does it happen for other packages?

You may also be interested in `mud' (Maemo Unofficial Debs) it's an
auto-builder I've started to make it easier porting stuff from
upstream sources (e.g. Debian):

    http://mud-builder.garage.maemo.org/

Any thoughts would be most welcome: it's still at an early stage so
now's the time to say ;-)

For example, the package file necessary to build libhttpfetcher was:

    libhttpfetcher.xml:
        <package>
            <fetch type="debian">
                <name>libhttpfetcher1</name>
                <deb-src>http://ftp.debian.org/ stable main</deb-src>
             </fetch>
         </package>

The "name" and "deb-src" lines default to the filename and etch if
missing. This has successfully built a deb on my Scratchbox install:

    14672 Jan 11 13:54 upload/libhttpfetcher-dev_1.0.1-3_i386.deb
     7732 Jan 11 13:54 upload/libhttpfetcher1_1.0.1-3_i386.deb

Note that the auto-Maemoification has yet to be done, such as
prefixing the "Section" in debian/control with "user/". This woudwould
be turned off for these packages anyway, I suspect.

I've checked it in so you can try it yourself you like; source is in
Subversion at the Garage:

    https://garage.maemo.org/scm/?group_id=63

Hope that helps,

Andrew

--
Andrew Flegg -- mailto:[EMAIL PROTECTED]  |  http://www.bleb.org/




--
Cheers,
Michael
_______________________________________________
maemo-users mailing list
[email protected]
https://maemo.org/mailman/listinfo/maemo-users

Reply via email to