Skip to content
This repository has been archived by the owner on Dec 22, 2022. It is now read-only.

Upstream to alpine linux #6

Closed
mitchty opened this issue Jan 18, 2016 · 13 comments
Closed

Upstream to alpine linux #6

mitchty opened this issue Jan 18, 2016 · 13 comments

Comments

@mitchty
Copy link
Owner

mitchty commented Jan 18, 2016

Making this an issue to compel me to get this upstream by hook or by crook.

@mitchty
Copy link
Owner Author

mitchty commented Jan 18, 2016

Upstream patch submitted is here:
http://sprunge.us/CPAa

Email send to alpine-devel ML, will wait on status.

@mitchty
Copy link
Owner Author

mitchty commented Jan 18, 2016

@mitchty
Copy link
Owner Author

mitchty commented Feb 9, 2016

It was suggested to move the bootstrap stuff into a snapshot function in the apkbuild.

http://wiki.alpinelinux.org/wiki/APKBUILD_examples:Git_checkout

I think I'll just leave everything in the makefile for now and just do a make && scp. Also need to update the build process to then not use a BOOTSTRAP environment variable and detect if ghc is available at the start of the apkbuild process.

@mitchty
Copy link
Owner Author

mitchty commented Mar 3, 2016

Trying this upstreaming thing again:
http://patchwork.alpinelinux.org/patch/1682/
http://patchwork.alpinelinux.org/patch/1683/
http://patchwork.alpinelinux.org/patch/1681/

Will upstream cabal and stack as well once those are in place.

@mitchty
Copy link
Owner Author

mitchty commented Jul 3, 2016

Right so the plan now talking to the Alpine Linux guys is to remove the "special" ghc llvm port I have for llvm 3.7.1 to make a more generic llvm3.7 port that can be used by more than just ghc.

I have this working in the sense that it builds ghc 8.0 now again. the llvm3.7 port I have though hypothetically could be linked to by things like julia which was the other language I found out has similar llvm requirements.

The llvm 3.7 I have I built to be able to be installed and used alongside the system llvm so that should help things out.

Right now I'm rewriting all of my port makefiles to be a bit less hacky and setting up Jenkins and an arm build box to start doing builds more often and to be able to test builds via git checkouts.

End goal is to have something similar to hvr's apt repo so you can have multiple versions of ghc/stack/cabal installed to test things.

But I've about 5 hours to wait for things to finish compiling before I can commit anything llvm3.7 related.

@mitchty
Copy link
Owner Author

mitchty commented Jul 17, 2016

@mitchty
Copy link
Owner Author

mitchty commented Aug 5, 2016

llvm3.7 got merged at least, progress. >.<

@mitchty
Copy link
Owner Author

mitchty commented Aug 7, 2016

gcc-bootstrap is upstreamed-ish to x86_64, armhf is blocked on other builds but so far building against that upstreamed gcc-bootstrap is working.

@mitchty
Copy link
Owner Author

mitchty commented Aug 13, 2016

Right so everything builds even armhf. Final PR is here alpinelinux/aports#205

And then this repo can be a historical artifact and all future work should end up there.

@ChristopherBiscardi
Copy link

The progress here is awesome. If ghc, etc, gets upstreamed we'd likely be able to use it for some alpine-based official images much more easily.

@mitchty
Copy link
Owner Author

mitchty commented Sep 21, 2016

Yep thats the goal, haven't had a ton of time lately to pursue it again after I hit the fun of text segments in shared libraries that shouldn't be there but I'll try and have a go at it this weekend. I have that bit sorted in the bootstrap bit, but need to figure out what causes ghci to fail to work after building that way. That or find a way to have the initial ghc configure ensure -fPIC/-DPIC are specified for the things its calling in configure itself (where the true issue lies I think)

@mitchty
Copy link
Owner Author

mitchty commented Jan 15, 2017

Never thought this would take over a year, but 8.0.2 is what the upstreamed version is. Guess I'll pester people a bit more often.

@mitchty
Copy link
Owner Author

mitchty commented Feb 16, 2017

And its upstreamed, armhf is missing and I'll likely have to redo the cross compilation nonsense. But... closing this issue and likely this repo.

@mitchty mitchty closed this as completed Feb 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants