tech-pkg archive

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

Re: pkgsrc cross-compilation and other miscellaneous patches



Hi Taylor,

On Tue, Apr 23, 2013 at 03:35:51PM +0000, Taylor R Campbell wrote:
> (I am not subscribed to this list, so please cc me in replies.)
> 
> I've brushed off the pile of patches I've been sitting on for ages to
> do pkgsrc cross-compilation as discussed the other week, and a few
> other little patches, and put them up at
> 
>    <http://www.NetBSD.org/~riastradh/tmp/pkgsrc-2013423>
> 
> Patches for cross-compilation are under cross/; patches to fix cross-
> builds of various packages are under cross/packages/.
> 
> Instructions for users on how to set up cross-compilation are in
> cross/howto-use-cross.txt; instructions for developers on how to make
> packages cross-compile are in cross/howto-dev-cross.txt.
> 
> Each patch has a summary at the top which might serve as a commit
> message.  The patches that have `XXX' in their first line are probably
> not fit to commit, but I'd like to commit the rest.  Please review and
> tell me everything that I've done horribly wrong!
> 
> (Also, let me know if I ought to submit PRs for some of the patches
> instead of sitting on them or asking for review on tech-pkg.)

Thanks for providing these - they look great!

I have a few small requests:

+ namespace - in mk.conf can we prefix some of the more generic names
with PKGSRC e.g. PKGSRC_CROSS_COMPILE or PKGSRC_USE_CROSS_COMPILE
instead of USE_CROSS_COMPILE, etc. 

+ i think you mention somewhere that some form of cross pkg-config
is needed, but i'm having difficulty finding it now. sounds like this
would be a win.

+ we should note in the pkgsrc entry's Makefile that the entry is
cross-compilable (lesson learned from 14 years ago and adding
different OS support to pkgsrc). over time, this will hopefully be
less important, but in the early stages, it's a great way to identify
what needs to be done

Having said all that, these are truly minor concerns, and I would love
to see this in pkgsrc as soon as we possibly can. Pretty please?

Thanks,
Alistair


Home | Main Index | Thread Index | Old Index