Debian Bug report logs - #512688
[Crush] Support for architectures other than ARM

Package: buildd.emdebian.org; Maintainer for buildd.emdebian.org is Debian Embedded Team <debian-embedded@lists.debian.org>;

Reported by: Erik Schanze <eriks@debian.org>

Date: Thu, 22 Jan 2009 20:45:02 UTC

Severity: normal

Merged with 509605

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Neil Williams <codehelp@debian.org>:
Bug#512688; Package emdebian-tools. (Thu, 22 Jan 2009 20:45:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Erik Schanze <eriks@debian.org>:
New Bug report received and forwarded. Copy sent to Neil Williams <codehelp@debian.org>. (Thu, 22 Jan 2009 20:45:04 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Erik Schanze <schanzi_@gmx.de>
To: submit@bugs.debian.org
Subject: emdebian-tools: Failed to create RootFS with emsandbox
Date: Thu, 22 Jan 2009 21:42:39 +0100
Package: emdebian-tools
Version: 1.4.3

*** Please type your report below this line ***
Hi Neil,

I set up a Debian Sid chroot as described in emsetup(1), installed
emdebian-tools, did the upgrade and executed emsetup.
After that I tried to create an emdebian RootFS, but failed.
What's wrong?

BTW: Why have I to use "sudo" even if I already are "root"?


neo:/# sudo emsandbox --arch i386 --create
Creating an embootstrap i386 chroot
Building i386 chroot on i386 to install i386 packages.
Checking for a user writeable tree in /pbuilder/build
 -> running debootstrap
  -> cross detected, using foreign.
DEBOOTSTRAP_DIR=/usr/share/debootstrap/ debootstrap  --verbose --foreign --arch i386 unstable /pbuilder/build 
http://buildd.emdebian.org/emdebian/ /usr/share/emdebian-tools/emdebian.crossd
I: Retrieving Release
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Checking component main on http://buildd.emdebian.org/emdebian...
E: Couldn't find these debs: util-linux dhcp3-client libnewt0.52 libdebian-installer4 cdebconf whiptail zlib1g apt 
libncurses5 libstdc++6 libc6 busybox libreadline5 debianutils gpgv initscripts libgcc1 base-files module-init-tools 
base-passwd libslang2 gnupg udev dpkg


Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name                    Version                 Description
+++-=======================-=======================-==============================================================
ii  debhelper               7.0.17                  helper programs for debian/rules
ii  devscripts              2.10.45                 scripts to make the life of a Debian Package maintainer easier
ii  dpkg-cross              2.3.3                   tools for cross compiling Debian packages
ii  dpkg-dev                1.14.24                 Debian package development tools
ii  emdebian-buildsupport   1.4.14                  emdebian crossbuilding support
ii  emdebian-qa             1.4.14                  emdebian quality assurance support
ii  emdebian-rootfs         1.4.14                  emdebian root filesystem support
ii  emdebian-tools          1.4.14                  emdebian crossbuilding tool set
ii  fakeroot                1.12.1                  Gives a fake root environment
ii  gettext                 0.17-6                  GNU Internationalization utilities
ii  libdebian-dpkgcross-per 2.3.3                   functions to aid cross-compiling Debian packages
ii  libemdebian-tools-perl  1.4.14                  emdebian support library
ii  libsoap-lite-perl       0.710.08-2              Client and server side SOAP implementation
ii  lsb-release             3.2-20                  Linux Standard Base version reporting utility
ii  perl                    5.10.0-19               Larry Wall's Practical Extraction and Report Language
ii  realpath                1.12                    Return the canonicalized absolute pathname
ii  subversion              1.5.1dfsg1-2            Advanced version control system
ii  sudo                    1.6.9p17-1              Provide limited super user privileges to specific users
ii  ucf                     3.0011                  Update Configuration File: preserve user changes to config fil


Kindly regards,

Erik


-- 
 www.ErikSchanze.de *********************************************
 Bitte keine HTML-E-Mails! No HTML mails, please! Limit: 100 kB *
         - Linux-Info-Tag in Dresden auch 2009 wieder           *
             Info: http://www.linux-info-tag.de/                *




Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#512688; Package emdebian-tools. (Thu, 22 Jan 2009 21:33:10 GMT) Full text and rfc822 format available.

Acknowledgement sent to Neil Williams <codehelp@debian.org>:
Extra info received and forwarded to list. (Thu, 22 Jan 2009 21:33:10 GMT) Full text and rfc822 format available.

Message #10 received at 512688@bugs.debian.org (full text, mbox):

From: Neil Williams <codehelp@debian.org>
To: Erik Schanze <eriks@debian.org>, 512688@bugs.debian.org
Cc: control@bugs.debian.org
Subject: Re: Bug#512688: emdebian-tools: Failed to create RootFS with emsandbox
Date: Thu, 22 Jan 2009 21:25:54 +0000
[Message part 1 (text/plain, inline)]
severity 512688 wishlist
retitle 512688 [Crush] Support for architectures other than ARM
thanks

On Thu, 22 Jan 2009 21:42:39 +0100
Erik Schanze <schanzi_@gmx.de> wrote:

> I set up a Debian Sid chroot as described in emsetup(1), installed
> emdebian-tools, did the upgrade and executed emsetup.

Running emdebian-tools within a chroot can cause numerous
difficulties, especially if you try to create a chroot within a chroot.
These problems are not unique to emdebian-tools - it can be difficult
to create a Debian debootstrap within an existing debootstrap.

> After that I tried to create an emdebian RootFS, but failed.
> What's wrong?

There are no packages for your rootfs.
 
> BTW: Why have I to use "sudo" even if I already are "root"?

I'll look into that.

> neo:/# sudo emsandbox --arch i386 --create
> Creating an embootstrap i386 chroot
> Building i386 chroot on i386 to install i386 packages.

emsandbox does not yet support native builds. It is heavily customised
for cross-builds.

For native builds, use debootstrap as normal - once you've built all
the packages you need. Alternatively, consider using Emdebian Grip.

> I: Checking component main on http://buildd.emdebian.org/emdebian...
> E: Couldn't find these debs: util-linux dhcp3-client libnewt0.52 libdebian-installer4 cdebconf whiptail zlib1g apt 
> libncurses5 libstdc++6 libc6 busybox libreadline5 debianutils gpgv initscripts libgcc1 base-files module-init-tools 
> base-passwd libslang2 gnupg udev dpkg

There are no i386 packages at http://buildd.emdebian.org/emdebian -
only ARM packages exist for Emdebian Crush.

Sorry. There is no prospect of providing i386 packages any time soon
because i386 is not a priority architecture for embedded devices.
emdebian-tools does contain support for you to build your own packages
but it is not a trivial task and some existing packages do not build
natively.

armel will be the first to be added, followed by mips, mipsel and
powerpc. I don't expect Crush to support i386 directly any time before
the release of Debian 6.0 "Squeeze" (i.e. the one after Lenny).

It may be possible to build i386 packages but it is completely untested.

-- 


Neil Williams
=============
http://www.data-freedom.org/
http://www.linux.codehelp.co.uk/
http://e-mail.is-not-s.ms/

[Message part 2 (application/pgp-signature, inline)]

Severity set to `wishlist' from `normal' Request was from Neil Williams <codehelp@debian.org> to control@bugs.debian.org. (Thu, 22 Jan 2009 21:33:11 GMT) Full text and rfc822 format available.

Changed Bug title to `[Crush] Support for architectures other than ARM' from `emdebian-tools: Failed to create RootFS with emsandbox'. Request was from Neil Williams <codehelp@debian.org> to control@bugs.debian.org. (Thu, 22 Jan 2009 21:33:12 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Neil Williams <codehelp@debian.org>:
Bug#512688; Package emdebian-tools. (Thu, 22 Jan 2009 22:06:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Erik Schanze <eriks@debian.org>:
Extra info received and forwarded to list. Copy sent to Neil Williams <codehelp@debian.org>. (Thu, 22 Jan 2009 22:06:05 GMT) Full text and rfc822 format available.

Message #19 received at 512688@bugs.debian.org (full text, mbox):

From: Erik Schanze <schanzi_@gmx.de>
To: Neil Williams <codehelp@debian.org>
Cc: 512688@bugs.debian.org
Subject: Re: Bug#512688: emdebian-tools: Failed to create RootFS with emsandbox
Date: Thu, 22 Jan 2009 23:05:17 +0100
Hi Neil,

thank you for your quick answers.

Neil Williams <codehelp@debian.org>:
> Erik Schanze <schanzi_@gmx.de> wrote:
> > I set up a Debian Sid chroot as described in emsetup(1), installed
> > emdebian-tools, did the upgrade and executed emsetup.
>
> Running emdebian-tools within a chroot can cause numerous
> difficulties, especially if you try to create a chroot within a
> chroot. These problems are not unique to emdebian-tools - it can be
> difficult to create a Debian debootstrap within an existing
> debootstrap.
>

If your desktop is Debian Etch, you have to install Lenny to get 
emdebian-tools. So I tried a chroot as described in emsetup(1).
Is this way not save?

> For native builds, use debootstrap as normal - once you've built all
> the packages you need.
>
You mean one could build every package that is needed for debootstrap
with emdebian-tools and do debootstrap afterwards? Is there any 
documentation available?

> Sorry. There is no prospect of providing i386 packages any time soon
> because i386 is not a priority architecture for embedded devices.

Not yet, but with Intel-Atom it will come. Perhaps as arch "lpia".

What could I do to get a minimal RootFS for i386 (Intel-Atom)?
Is there any good documentation to build custom RootFS with emdebian?


Kindly regards,

Erik


-- 
 www.ErikSchanze.de *********************************************
 Bitte keine HTML-E-Mails! No HTML mails, please! Limit: 100 kB *
         - Linux-Info-Tag in Dresden auch 2009 wieder           *
             Info: http://www.linux-info-tag.de/                *




Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#512688; Package emdebian-tools. (Thu, 22 Jan 2009 22:48:07 GMT) Full text and rfc822 format available.

Acknowledgement sent to Neil Williams <codehelp@debian.org>:
Extra info received and forwarded to list. (Thu, 22 Jan 2009 22:48:07 GMT) Full text and rfc822 format available.

Message #24 received at 512688@bugs.debian.org (full text, mbox):

From: Neil Williams <codehelp@debian.org>
To: Erik Schanze <eriks@debian.org>
Cc: 512688@bugs.debian.org
Subject: Re: Bug#512688: emdebian-tools: Failed to create RootFS with emsandbox
Date: Thu, 22 Jan 2009 22:45:55 +0000
[Message part 1 (text/plain, inline)]
On Thu, 22 Jan 2009 23:05:17 +0100
Erik Schanze <schanzi_@gmx.de> wrote:

> > Running emdebian-tools within a chroot can cause numerous
> > difficulties, especially if you try to create a chroot within a
> > chroot. These problems are not unique to emdebian-tools - it can be
> > difficult to create a Debian debootstrap within an existing
> > debootstrap.
> >
> 
> If your desktop is Debian Etch, you have to install Lenny to get 
> emdebian-tools. So I tried a chroot as described in emsetup(1).
> Is this way not save?

It's not fully tested and prone to problems outside the direct control
of the emdebian-tools package. I'll add the advice on /etc/hosts to the
manpage but I don't think it's right for emsetup to go meddling
with /etc/hosts, even inside a chroot (if it can even detect that it
is inside a chroot).

Actually, saying that you're running Etch may explain why you haven't
had the updates to emdebian-tools 1.4.14 - you may need to tweak
the /etc/apt/sources.list.d/emdebian.sources.list to look for unstable
if it doesn't already. I'm not even sure if you have any cross-building
toolchains available (not that you need them personally) with your
setup.

Please can you send me the output of 'apt-cache policy' ? reportbug
should have asked for this information when you submitted the
original bug. What tool did you use? (If you say 'reportbug-ng' I think
I'll scream.)

http://www.linux.codehelp.co.uk/serendipity/index.php?/archives/119-reportbug-ng-unfit-for-purpose-Absolutely..html

Using Etch as a base is a completely untested situation (another one).

> You mean one could build every package that is needed for debootstrap
> with emdebian-tools and do debootstrap afterwards? Is there any 
> documentation available?

http://www.emdebian.org/docs/howto.html

(Except that you're using the emdebian patches to native build, not
cross-build. See also #492374.)

Be aware: It is a VERY long process, but yes, essentially what you
would need to do is:

1. Solve problems outlined in #492374 and report back on any other
fixes necessary.
2. use em_autobuild from emdebian-tools 1.4.14 (earlier versions are
extremely unlikely to work)
3. create a local repository (I'd recommend reprepro) into which the
packages can be included.
4. pass that repository to emsandbox using the machine:variant support.
debootstrap is very unlikely to work with Emdebian Crush packages, even
native packages. The replacement of coreutils with an active busybox,
removal of perl, removal of manpages, replacement of
update-alternatives and install-info and many other changes as-yet
undiscovered.

There is a good reason why Emdebian Crush 1.0 will only be released on
ARM. ;-)

It took me many, many months to get Crush available for ARM and until I
can make a whole load of changes in Debian (which in turn means after
the Lenny release) it may take roughly the same amount of time to port
Crush to another architecture (other than armel). If you would like to
prove me wrong, be my guest! I'll do what I can to help.

:-)

> > Sorry. There is no prospect of providing i386 packages any time soon
> > because i386 is not a priority architecture for embedded devices.
> 
> Not yet, but with Intel-Atom it will come. Perhaps as arch "lpia".

I disagree - the Intel-Atom is not currently a suitable target for
Emdebian Crush, you need to look at Emdebian Grip which is designed for
netbook devices like the Acer Aspire1. Are you saying that even smaller
devices (true handhelds and smartphones) will be based on the Atom?
Before Emdebian could support lpia, Debian would need changes that I
have no idea how to implement at this time. Could be fun though.

I would strongly recommend that you do not consider building Crush for
a device like an Acer Aspire1 or Eee PC. If you have a different device
in mind, let me know.

I'm running Emdebian Grip on an Acer Aspire1 - although there are
problems with Grip right now, the problems are truly minor in
comparison with using Crush.

http://lists.debian.org/debian-embedded/2009/01/msg00074.html

> What could I do to get a minimal RootFS for i386 (Intel-Atom)?

Use Emdebian Grip, with the provisos above. It's probably easiest to
simply use Debian-Installer with one of the latest Lenny pre-releases
based on net-installer D-I beta1 (or 2 if it is around) and use the
pre-seeding instructions:

http://www.emdebian.org/grip/#preseeding

> Is there any good documentation to build custom RootFS with emdebian?

The documentation reflects the problems outlined in the email I just
sent in response to your private enquiry. I wrote most of the pages on
the emdebian website and I am fully aware that doing this means that
the current website is desperately in need of updates to make it more
useful to people other than myself.

http://www.emdebian.org/emdebian/customisation.html
http://www.emdebian.org/emdebian/machinevariants.html

(Those are reliant on using ARM.)

Grip documentation is at:
http://www.emdebian.org/grip/index.html

-- 


Neil Williams
=============
http://www.data-freedom.org/
http://www.linux.codehelp.co.uk/
http://e-mail.is-not-s.ms/

[Message part 2 (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#512688; Package emdebian-tools. (Thu, 22 Jan 2009 22:54:08 GMT) Full text and rfc822 format available.

Acknowledgement sent to Neil Williams <codehelp@debian.org>:
Extra info received and forwarded to list. (Thu, 22 Jan 2009 22:54:08 GMT) Full text and rfc822 format available.

Message #29 received at 512688@bugs.debian.org (full text, mbox):

From: Neil Williams <codehelp@debian.org>
To: Erik Schanze <eriks@debian.org>, 512688@bugs.debian.org
Subject: Re: Bug#512688: emdebian-tools: Failed to create RootFS with emsandbox
Date: Thu, 22 Jan 2009 22:52:21 +0000
[Message part 1 (text/plain, inline)]
On Thu, 22 Jan 2009 21:42:39 +0100
Erik Schanze <schanzi_@gmx.de> wrote:


Umm, I've just noticed this:

> ii  emdebian-buildsupport   1.4.14                  emdebian crossbuilding support
> ii  emdebian-qa             1.4.14                  emdebian quality assurance support
> ii  emdebian-rootfs         1.4.14                  emdebian root filesystem support
> ii  emdebian-tools          1.4.14                  emdebian crossbuilding tool set


So you *do* have 1.4.14.

:-)

Maybe emsetup is reporting the wrong version or maybe whatever tool you
used to report the bug simply got the 'found' version wrong?

(reportbug uses the dpkg -l version which would be correct and explains
why you've seen references to versions between 1.4.3 and 1.4.14)

At least you have the right version in your chroot (which would make
sense if it is a Debian sid system) and you'll get all the updates to
emdebian-tools, including 1.4.15 which is due for release in a day or
so.

(This will be the twelfth release of emdebian-tools since the version
in Debian.)

-- 


Neil Williams
=============
http://www.data-freedom.org/
http://www.linux.codehelp.co.uk/
http://e-mail.is-not-s.ms/

[Message part 2 (application/pgp-signature, inline)]

Bug marked as found in version 1.4.14. Request was from "Neil Williams" <neil@codehelp.co.uk> to control@bugs.debian.org. (Thu, 22 Jan 2009 23:06:05 GMT) Full text and rfc822 format available.

Severity set to `normal' from `wishlist' Request was from Neil Williams <codehelp@debian.org> to control@bugs.debian.org. (Sat, 21 Mar 2009 20:33:05 GMT) Full text and rfc822 format available.

Bug no longer marked as found in version 1.4.3. Request was from Neil Williams <codehelp@debian.org> to control@bugs.debian.org. (Sat, 21 Mar 2009 20:33:06 GMT) Full text and rfc822 format available.

Bug no longer marked as found in version 1.4.14. Request was from Neil Williams <codehelp@debian.org> to control@bugs.debian.org. (Sat, 21 Mar 2009 20:33:07 GMT) Full text and rfc822 format available.

Bug reassigned from package `emdebian-tools' to `buildd.emdebian.org'. Request was from Neil Williams <codehelp@debian.org> to control@bugs.debian.org. (Sat, 21 Mar 2009 20:33:08 GMT) Full text and rfc822 format available.

Merged 509605 512688. Request was from Neil Williams <codehelp@debian.org> to control@bugs.debian.org. (Sat, 21 Mar 2009 20:33:09 GMT) Full text and rfc822 format available.

Information stored :
Bug#512688; Package buildd.emdebian.org. (Sat, 21 Mar 2009 20:33:14 GMT) Full text and rfc822 format available.

Acknowledgement sent to Neil Williams <codehelp@debian.org>:
Extra info received and filed, but not forwarded. (Sat, 21 Mar 2009 20:33:14 GMT) Full text and rfc822 format available.

Message #46 received at 512688-quiet@bugs.debian.org (full text, mbox):

From: Neil Williams <codehelp@debian.org>
To: 512688-quiet@bugs.debian.org
Cc: control@bugs.debian.org
Subject: Not a bug in the tools, it is a systemic bug - reassigning.
Date: Sat, 21 Mar 2009 20:31:39 +0000
[Message part 1 (text/plain, inline)]
severity 512688 normal
notfound 512688 1.4.3
notfound 512688 1.4.14
reassign 512688 buildd.emdebian.org
merge 512688 509605
thanks

Now that the tools can use emgrip to implement relevant changes, the
Emdebian Code Audit has become the main means of fixing this bug. There
is nothing intrinsically stopping emdebian-tools from supporting other
architectures, the problems lie in the application of the tools rather
than the design of the tools. i.e. the patches applied by
emdebian-tools need to be improved.

http://wiki.debian.org/EmdebianCodeAudit

I'm reassign this to buildd.emdebian.org and merging with #509605.

-- 


Neil Williams
=============
http://www.data-freedom.org/
http://www.linux.codehelp.co.uk/
http://e-mail.is-not-s.ms/

[Message part 2 (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Apr 18 09:06:41 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.