[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Architecture



On Wed, Aug 01, 2001 at 06:45:16PM +0200, Abraham vd Merwe wrote:
> Hi!
> 
> How do I specify all the architectures a package can build on? For instance,
> I have a package that can only build on the following architectures:
> 
> i386 alpha arm powerpc sparc mips mipsel
> 
> Now, first of all, I'm not sure about the names. I can't find a place that
> name the exact names you put in the Architecture field, only pages telling
> you about the supported archs. In particular I'm wondering about mips/mipsel.
Why don't you check the (sid) archives:
drwxrwsr-x    2 troup    debadmin     4096 Jul 31 15:41 binary-alpha/
drwxrwsr-x    2 troup    debadmin     4096 Jul 31 15:42 binary-arm/
drwxrwsr-x   29 troup    debadmin     4096 Jul 31 15:43 binary-hppa/
drwxrwsr-x   29 troup    debadmin     4096 Jul 31 15:43 binary-hurd-i386/
drwxrwsr-x    2 troup    debadmin     4096 Jul 31 15:44 binary-i386/
drwxrwsr-x    2 troup    debadmin     4096 Jul 31 15:45 binary-ia64/
drwxrwsr-x    2 troup    debadmin     4096 Jul 31 15:46 binary-m68k/
drwxrwsr-x   29 troup    debadmin     4096 Jul 31 15:47 binary-mips/
drwxrwsr-x   29 troup    debadmin     4096 Jul 31 15:47 binary-mipsel/
drwxrwsr-x    2 troup    debadmin     4096 Jul 31 15:48 binary-powerpc/
drwxrwsr-x    2 troup    debadmin     4096 Jul 31 15:49 binary-s390/
drwxrwsr-x   29 troup    debadmin     4096 Jul 31 15:49 binary-sh/
drwxrwsr-x    2 troup    debadmin     4096 Jul 31 15:50 binary-sparc/
 
I would suspect that all arches are listed their with their "right" names

> Ok, now for the real question. I could do this:
> 
> Architecture: i386 alpha arm powerpc sparc mips mipsel
> in my control file, but according to the debian policy manual (D.2.3), there
> can only be a single field. However, I've seen packages that have multiple
> fields, e.g. libggi
Sure you can do that, you probably misunderstood the policy.
  In the main debian/control file in the source package, or in the source
  package control file .dsc, a list of architectures (separated by spaces) is
  also allowed, as is the special value any.
You were probably reading the explanation for .debs, which can have just
one entry.

But why don't you fix your package? What is the reason that it builds on all
arches but hppa, m68k, sh, s390 ? Probably just a makefile or configure
snippet is missing to support these arches. Add that to your package and you
will be able to use Architecture: all. From the package description I see no
reason why it should not work on all arches.

Christian



Reply to: