mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Sharing host-* tools
@ 2018-09-06 20:42 Erwin Rol
  2018-09-07  7:04 ` Michael Olbrich
  0 siblings, 1 reply; 4+ messages in thread
From: Erwin Rol @ 2018-09-06 20:42 UTC (permalink / raw)
  To: ptxdist

Hey all,

I am still trying to figure out a better way to share prebuild ptxdist
projects, some ideas here on the mailing list where interesting but I
have problems understanding how to apply them to my usecases.

Already just sharing the host-* tools/libs would be useful, and I do
not see how I can do that. 

First lets assume I have 3 projects (A, B and C) and for this example
they all use the same ptxdist version, but for the rest they have not
much in common.

To build those 3 projects I will have to do "ptxdist images" in all 3
project directories.

This will cause all host-* tools (like cmake, autoconf, fakeroot, etc)
to be build 3 times, taking up a lot of time. 

Is there are way to prebuild all host-* tools and lets the projects
A,B, and C use those prebuild host tools. A bit like the toolchain, 
wich is also not build with every ptxdist project. 

- Erwin


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] Sharing host-* tools
  2018-09-06 20:42 [ptxdist] Sharing host-* tools Erwin Rol
@ 2018-09-07  7:04 ` Michael Olbrich
  2018-09-07  9:24   ` Erwin Rol
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Olbrich @ 2018-09-07  7:04 UTC (permalink / raw)
  To: ptxdist

Hi,

On Thu, Sep 06, 2018 at 10:42:19PM +0200, Erwin Rol wrote:
> I am still trying to figure out a better way to share prebuild ptxdist
> projects, some ideas here on the mailing list where interesting but I
> have problems understanding how to apply them to my usecases.
> 
> Already just sharing the host-* tools/libs would be useful, and I do
> not see how I can do that. 
> 
> First lets assume I have 3 projects (A, B and C) and for this example
> they all use the same ptxdist version, but for the rest they have not
> much in common.
> 
> To build those 3 projects I will have to do "ptxdist images" in all 3
> project directories.
> 
> This will cause all host-* tools (like cmake, autoconf, fakeroot, etc)
> to be build 3 times, taking up a lot of time. 
> 
> Is there are way to prebuild all host-* tools and lets the projects
> A,B, and C use those prebuild host tools. A bit like the toolchain, 
> wich is also not build with every ptxdist project. 

For most host-tools dev packages/prebuild archives[1] should work.
Not all packages create such an archive because they need to be relocatable
for this to work. Autotools for example.

And you need to be carefull when you use this. The filename depends on the
version and kconfig options. And since ptxdist-2018.08.0 on the content of
the make and in files.
If you have other differences (e.g. patches) then this will break.

There is also the architecture string (I should remove that for host
packages). You could rename/symlink the files if necessary.


Michael

[1] https://www.ptxdist.org/doc/daily_work_section.html#using-pre-built-archives

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] Sharing host-* tools
  2018-09-07  7:04 ` Michael Olbrich
@ 2018-09-07  9:24   ` Erwin Rol
  2018-09-07  9:52     ` Michael Olbrich
  0 siblings, 1 reply; 4+ messages in thread
From: Erwin Rol @ 2018-09-07  9:24 UTC (permalink / raw)
  To: ptxdist

Hey Michael,

On Fri, 2018-09-07 at 09:04 +0200, Michael Olbrich wrote:
> Hi,
> 
> For most host-tools dev packages/prebuild archives[1] should work.
> Not all packages create such an archive because they need to be relocatable
> for this to work. Autotools for example.

From the docu;

"Neither host nor cross related packages support pre-built archives.
These kind of packages are always (re-)built."

Also all the warnings about being carefull doesn't make it sound like
something that really works out of the box. 

- Erwin


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] Sharing host-* tools
  2018-09-07  9:24   ` Erwin Rol
@ 2018-09-07  9:52     ` Michael Olbrich
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Olbrich @ 2018-09-07  9:52 UTC (permalink / raw)
  To: ptxdist

Hi,

On Fri, Sep 07, 2018 at 11:24:31AM +0200, Erwin Rol wrote:
> On Fri, 2018-09-07 at 09:04 +0200, Michael Olbrich wrote:
> > For most host-tools dev packages/prebuild archives[1] should work.
> > Not all packages create such an archive because they need to be relocatable
> > for this to work. Autotools for example.
> 
> From the docu;
> 
> "Neither host nor cross related packages support pre-built archives.
> These kind of packages are always (re-)built."

I'm pretty sure the docu is wrong / outdated here.

> Also all the warnings about being carefull doesn't make it sound like
> something that really works out of the box.

It works. You just need to know the limitations. It's better now that the
make and in files are checked. But there will always be some changes that
cannot be detected.
I'd be happy to hear any suggestions on how to improve this.

Michael

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-09-07  9:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-06 20:42 [ptxdist] Sharing host-* tools Erwin Rol
2018-09-07  7:04 ` Michael Olbrich
2018-09-07  9:24   ` Erwin Rol
2018-09-07  9:52     ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox