Re: 64 bit support, finally!
"Jan Niklas Hasse" <[email protected]>
| Newsgroups | gmane.comp.autopackage.devel |
|---|---|
| Message-ID | <[email protected]> |
> > After my patch it should be possible to compile autopackage on 64 and
> > (!!!!) create true x86_64 packages! It's also possible to create
> > Hybrid-Packages (containing both binaries): Just set CpuArchitectures
> > to "x86 x86_64" and install the correct binary (I haven't tested it
> > though).
>
> How would this work in practice for packagers? I assume we
> (autopackage) would provide an x86_64 version of the support code +
> frontends, but how would packagers do to provide both 64 and 32 bit
> versions of their packages?
They would need to import both binaries and then do something like this:
if [[ $(uname -m) == "x86_64" ]]; then
installExe bin64/foobar
else
installExe bin32/foobar
fi
It would be better to provide something like GCCABI2 which
automatically creates patches.
> I.e. is it possible to cross compile to x86_64 binaries on a x86 system?
Do you mean compiling x86_64 binaries on a x86 system? I think that's
not possible, but it's possible to create x86 binary on a x86_64
system with a special compiler switch (i will look this up and do some
testing).
> Is CpuArchitectures a flag set in the .aspec? How will this affect
> backwards compatibility?
You can set it in the .aspec file, but if you don't, it will
automatically set itself to the system you are currently running.
Backwards compatibility might be a problem, i haven't tested that.
> > Autopackage now determines whether it has got a x86_64 package and
> > only searches for proper libraries. Examples:
>
> I'm not sure I understand the tables below. Is 'arch' the architecture
> of the package or the users system? etc.
The user system. "package" is the archtecture of the package and
"libraries" is the sort of libraries autopackage will check for.
> > I hope everyone helps my testing it, I'm very often on IRC (nick:
> > jhasse). Feel free to highlight me.
>
> We'd need some people with access to 64bit systems to try this. Is
> there anyone on this list who can help testing this??
Yeah, it certainly needs more testing. I'm trying to set up VMware
today, so that i can test on several different machines.
---------------------------------------------------------------------
To unsubscribe, e-mail: autopackage-dev-unsubscribe-OfajU3CKLf1/[email protected]
For additional commands, e-mail: autopackage-dev-help-OfajU3CKLf1/[email protected]