cross-building ports

2005-01-13 Thread Paul Allen
Is there a command-line option to cause ports to be built
for a different architecture than that of the native system?

-Paul
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: cross-building ports

2005-01-13 Thread Kris Kennaway
On Thu, Jan 13, 2005 at 12:47:24PM -0800, Paul Allen wrote:
 Is there a command-line option to cause ports to be built
 for a different architecture than that of the native system?

This is not supported.

Kris

pgpHuFhxC54fl.pgp
Description: PGP signature


Re: cross-building ports

2005-01-13 Thread Jonathan Dama
Thanks for clarifying that I wasn't just missing the
obvious.  I suppose that's not surprising given all the
complicated things some builds do to configure themselves
based on testing the environment.

What about the simple case of building ia32 on an amd64
host?  (Assuming WITH_LIB32 has been set in make.conf)

I have the impression that amd64 has been setup with an 
eye toward running a pure amd64 setup, but one of the
principle benefits of amd64 is it's support for i386
binaries and libraries...

It would be nice (and probably easier on many ports) if the
system was geared to have more ia32 centric userland--which
I might add is the tradition for mang 64-bit OSs.  Having my
64-bit ls is great and all, but really unnecessary +
wasteful.

Are these sorts of changes in the pipeline or?

-Paul

From Kris Kennaway [EMAIL PROTECTED], Thu, Jan 13, 2005 at 01:08:44PM -0800:
 On Thu, Jan 13, 2005 at 12:47:24PM -0800, Paul Allen wrote:
  Is there a command-line option to cause ports to be built
  for a different architecture than that of the native system?
 
 This is not supported.
 
 Kris


-- 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: cross-building ports

2005-01-13 Thread Kris Kennaway
On Thu, Jan 13, 2005 at 01:27:17PM -0800, Jonathan Dama wrote:
 Thanks for clarifying that I wasn't just missing the
 obvious.  I suppose that's not surprising given all the
 complicated things some builds do to configure themselves
 based on testing the environment.
 
 What about the simple case of building ia32 on an amd64
 host?  (Assuming WITH_LIB32 has been set in make.conf)
 
 I have the impression that amd64 has been setup with an 
 eye toward running a pure amd64 setup, but one of the
 principle benefits of amd64 is it's support for i386
 binaries and libraries...
 
 It would be nice (and probably easier on many ports) if the
 system was geared to have more ia32 centric userland--which
 I might add is the tradition for mang 64-bit OSs.  Having my
 64-bit ls is great and all, but really unnecessary +
 wasteful.
 
 Are these sorts of changes in the pipeline or?

I don't believe anyone is working on it, but you can always just use
precompiled packages.

Kris


pgpGttgNuwvh8.pgp
Description: PGP signature


Re: Cross building ports

2004-05-14 Thread Daniel Bye
On Thu, May 13, 2004 at 01:04:34PM -0700, Kris Kennaway wrote:
 
 You can't generally cross-build packages for different architectures.
 
 Kris

Rats!  That's what I was afraid of.  Will have to see if I can get my 
hands on an i386 package builder...

Thanks, Kris.

Dan
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Cross building ports

2004-05-14 Thread Kris Kennaway
On Fri, May 14, 2004 at 09:44:11AM +0100, Daniel Bye wrote:
 On Thu, May 13, 2004 at 01:04:34PM -0700, Kris Kennaway wrote:
  
  You can't generally cross-build packages for different architectures.
  
  Kris
 
 Rats!  That's what I was afraid of.  Will have to see if I can get my 
 hands on an i386 package builder...

You can always just download the prebuilt packages from the ftp site..

If you really want to use your amd64 machine to build i386 packages,
you can boot it in i386 mode (i.e. install a partition with a copy of
FreeBSD/i386) and use that to build them.

Kris


pgp0.pgp
Description: PGP signature


Re: Cross building ports

2004-05-14 Thread Daniel Bye
On Fri, May 14, 2004 at 02:45:52AM -0700, Kris Kennaway wrote:
  Rats!  That's what I was afraid of.  Will have to see if I can get my 
  hands on an i386 package builder...
 
 You can always just download the prebuilt packages from the ftp site..
 
 If you really want to use your amd64 machine to build i386 packages,
 you can boot it in i386 mode (i.e. install a partition with a copy of
 FreeBSD/i386) and use that to build them.

Yep, could do.  However, we need certain customisations for several
packages, which makes it impractical in our case.  I have an i386 machine I
can put to good use to build packages, so a solution is in sight.

Thanks for your time,

Dan
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Cross building ports

2004-05-13 Thread JJB
After installing the port on your build box go ahead and run the
make package on the /usr/port/portname directory. The resulting
package will be in that directory. Copy it to your other i386 box
and pkg_add pgkname and it will work. I have even done it with newer
FBSD operation system version on build box and the created pkg ran
fine on production box with older FBSD version. But never did it
between major versions 5.x build box to 4.x production box. I would
say since the buildworld works for your amd64 world the packages
should be ok also. Give it an try to verify.  I normally only use
pkg_add -r from the FBSD site. Only do port install when I need
non-standard config of package.

Good luck

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Daniel Bye
Sent: Thursday, May 13, 2004 12:37 PM
To: [EMAIL PROTECTED]
Subject: Cross building ports

Hi all,

Don't know if what I want to do is possible - but there's no harm in
asking,
eh?

I have a central build server running FreeBSD-5.2.1 amd64, which is
happily
building world/kernel for amd64 and i386.  In order to keep
everything all
on the same machine, I would like to be able to build packages from
ports
for both platforms.  Is this doable?

I have checked the mailing list archives, and nothing that seems
relevant
came back.  Can't seem to figure it out from the docs, man pages,
handbook
etc.  Any advice welcome, even if it's no more than get another
build
box!

Thanks for your time,

Dan
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
[EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Cross building ports

2004-05-13 Thread Kris Kennaway
On Thu, May 13, 2004 at 05:36:53PM +0100, Daniel Bye wrote:
 Hi all,
 
 Don't know if what I want to do is possible - but there's no harm in asking,
 eh?
 
 I have a central build server running FreeBSD-5.2.1 amd64, which is happily
 building world/kernel for amd64 and i386.  In order to keep everything all
 on the same machine, I would like to be able to build packages from ports
 for both platforms.  Is this doable?
 
 I have checked the mailing list archives, and nothing that seems relevant
 came back.  Can't seem to figure it out from the docs, man pages, handbook
 etc.  Any advice welcome, even if it's no more than get another build
 box!
 
 Thanks for your time,

You can't generally cross-build packages for different architectures.

Kris


pgp0.pgp
Description: PGP signature