Hello,
I help to work on a existing Debian package (aboot) which currently
only exits for alpha. Since it is boot related, there are requests
(as bugs) to split off part of the package which can be built on any
architecture besides alpha into a "any" packet.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=211777

Currently my patch has three targets: One all-target (aboot-base)
which contains files (no binaries) which can be built only on alpha
but are required for other architectures as well, so it is
architecture "all" (I read autobuilders never build those, so an
alpha upload of them does the job).  One target "any" (currently
labled isomarkboot) which contains binaries for any architecture, and
lastly "aboot" itself which contains the rest which does not make
sense to port (of no use on other archs and besides contains alpha
specific assembly).

So my debian/rules currently contains the following targets:
build:
    # We do nothing here

build-aboot: build-aboot-stamp
build-aboot-base: build-aboot-base-stamp
build-isomarkboot: build-isomarkboot-stamp

build-aboot-stamp:
   # Some code

build-aboot-base-stamp:
   # Some code

build-isomarkboot-stamp:
   # Some code

clean:
   # Some code

install-aboot: install-aboot-stamp
install-aboot-base: install-aboot-base-stamp
install-isomarkboot: install-isomarkboot-stamp

install-aboot-stamp: build-aboot-stamp
  # Some code

install-aboot-base-stamp: build-aboot-base-stamp
  # Some code

install-isomarkboot-stamp: build-isomarkboot-stamp
  # Some code

# Build architecture-independent files here.
binary-indep: build-aboot-base install-aboot-base
# We have nothing to do besides calling targets (?)

# Build architecture-dependent files here.
binary-arch: build-aboot build-isomarkboot install-aboot install-isomarkboot
   # Here I do all the packaging stuff (no -p required)

binary: binary-indep binary-arch
   # Some code

Although my debian/control says:
Package: aboot
Architecture: alpha
it is ignored when I run "dpkg-buildpackage -uc -b -rfakeroot", i.e. on
i386 the target build-aboot is attempted and of course, the build fails.
Manually calling make -f debian/rules build-isomarkboot works fine (though
of course no package itself is made). On alpha all three targets work, all
three packages are created and contain the proper contents, linda and lintian
are completely happy.

So my question is: How do I build this on non-alpha archs or, if my layout
is wrong (though I read policy to understand how it works), how do I properly
create the targets in debian/rules so that I can build the isomarkboot-package
(and only this one) on other architectures?

Please CC: me as I am not subscribed, thanks.

Thanks for info && pointers.

          Helge

P.S. I looked at pbuilder, but it also seems to call dpkg-buildpackage
     as I would do manually.

-- 
Helge Kreutzmann, Dipl.-Phys.               [EMAIL PROTECTED]
  gpg signed mail preferred    gpg-key: finger [EMAIL PROTECTED]
    64bit GNU powered                  http://www.itp.uni-hannover.de/~kreutzm
       Help keep free software "libre": http://www.freepatents.org/

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to