crouton icon indicating copy to clipboard operation
crouton copied to clipboard

Archlinux support

Open drinkcat opened this issue 9 years ago • 24 comments

This adds support for Arch Linux/Arch Linux ARM. It has been around in my repo for a long time now, with a good number of users I believe, and rarely has issues.

First 3 commits are not directly related to arch, but necessary (especially the last 2).

drinkcat avatar Nov 18 '14 17:11 drinkcat

Just FYI, I've been using this for a bit and it's working quite well.

c00w avatar Nov 26 '14 08:11 c00w

Is it possible to resolve the above merge conflicts and have Arch Linux support in Crouton core please?

ghost avatar Nov 27 '14 08:11 ghost

Probably after #1144 is merged.

dnschneid avatar Dec 04 '14 16:12 dnschneid

phew.

dnschneid avatar Dec 06 '14 07:12 dnschneid

Thanks for this. Just tell me when you would like me to manually test it.

ghost avatar Dec 06 '14 17:12 ghost

Any news on this? I have not looked into all the code, but after a few weeks of testing it seems fine! (Tested on an Acer CB5, Tegra K1)

odinuge avatar Jan 19 '15 15:01 odinuge

Any news on this?

As you can see there are a large number of comments in the review. Then, I need to rebase on the latest crouton, and port new features like xiwi. So, it's going to take some time...

drinkcat avatar Jan 19 '15 16:01 drinkcat

Addressed everything but:

  • https://github.com/dnschneid/crouton/pull/1201#discussion_r23336865
  • https://github.com/dnschneid/crouton/pull/1201#discussion_r23338406

Will proceed to rebase...

drinkcat avatar Jan 22 '15 09:01 drinkcat

Note to self, I think install with a proxy is broken (some fetching is done before the proxy is setup...)

drinkcat avatar Jan 22 '15 09:01 drinkcat

Merged master back into this branch, added xiwi support.

Still a number of issues:

  • The 2 comments above
  • Proxy support is broken
  • Error message on pacman update is broken (sudo enter-chroot -n -u 0)
  • Test xbmc
  • Add hold/unhold function to reduce code duplication, adapt to xiwi target

drinkcat avatar Feb 20 '15 12:02 drinkcat

Today I checked out this branch and ran 'make all'. The binary croutonfreon failed to build, apparently because src/freon.c is missing a main() function. I'm insufficiently familiar with crouton to know what that really means. The crouton shell script built without errors.

I ran the script with the following command line: sudo sh -e ./Downloads/croagh_arch -r arch -t xiwi,cli-extra. It exited with the following error:

Patching Xorg dummy driver (xrandr 1.2 support)...
patching file src/dummy_driver.c
Compiling Xorg dummy driver...
Installing Xorg dummy driver...
/prepare.sh: line 5035: syntax error near unexpected token `<<<'
Failed to complete chroot setup.
Unmounting /usr/local/chroots/arch...
chronos@localhost ~ $ 

I tracked this down to targets/xiwi having an unresolved merge between HEAD and crouton/master, probably during a rebase. A quick git grep shows that this is the only merge conflict. I chose the HEAD version, rebuilt crouton, deleted my incomplete chroot, and started again. This time it ran through to completion.

The one thing I don't like is the removal of certain packages like binutils at the end of the build. I don't feel strongly enough to defend it at the moment, though, but if I do I'll submit a pull request.

mathuin avatar Mar 25 '15 19:03 mathuin

@mathuin also pointed out that xterm isn't installed automatically on some targets.

dnschneid avatar Mar 26 '15 02:03 dnschneid

FWIW I have this PR and the i3xiwi branch applied and so far have been having a fairly good experience. Can even bring up Android Studio in a xiwi window, which is absolutely awesome.

@dnschneid I dug around earlier before doing this and noticed the xiwi-app branch had been killed and I couldn't find any explanation as to why. Are those changes now a part of the xiwif branch or something? Perhaps that's one more set of changes I should apply.

EDIT: I should note that the xf86-video-dummy patch in targets/xiwi failed to apply, so I ended up manually modifying the source and changing the xiwi target to pull a tarball that was already patched instead of the original 0.3.7 source.

EddieRingle avatar Mar 28 '15 22:03 EddieRingle

@EddieRingle xiwi-app got merged into master. i3xiwi is likely to get merged next, and xiwif is a bit of a testing ground at the moment.

dnschneid avatar Mar 29 '15 05:03 dnschneid

@dnschneid Good to know! And yeah, the i3xiwi branch is running pretty smooth here.

EddieRingle avatar Mar 29 '15 16:03 EddieRingle

Merged crouton/master back into this branch. Issues here still stand: https://github.com/dnschneid/crouton/pull/1201#issuecomment-75229301 .

And XMETHOD=xorg on freon is broken (you can start a server, but input devices do not to get grabbed, and you cannot switch back to Chrome OS).

drinkcat avatar May 16 '15 09:05 drinkcat

Any chance for a rebase @drinkcat ?

Thanks for the work on this!

MichaelMackus avatar Oct 05 '15 18:10 MichaelMackus

It looks like a lot of effort has gone into this, is it still being worked on?

MattSturgeon avatar May 29 '16 17:05 MattSturgeon

@drinkcat are you still working on this? Can you point us out what is missing? maybe some of us can take this up to a merge ready state.

salinasv avatar Sep 24 '16 00:09 salinasv

Lots of maintenance issues here. Maybe we can simplify things by using one of the pre-built bootstraps? I don't know how heavy they are; ARM would have to use something like a system image, but that would probably install too much.

dnschneid avatar Oct 11 '16 20:10 dnschneid

Also, might want to consider not having separate arch/alarm releases

dnschneid avatar Oct 11 '16 20:10 dnschneid

What is the current status of this pull request? Are you still actively working on it, @drinkcat?

eyqs avatar Sep 16 '17 17:09 eyqs

@qntmpkts maintains a fork at https://github.com/qntmpkts/chroagh, and it works fine. To make it easier to keep up with upstream, I rebased all changes on that repo (except stuff no longer supported by upstream crouton) against crouton at zhaofengli/crouton. All commits there should cleanly apply.

zhaofengli avatar Oct 31 '17 02:10 zhaofengli

Drinkcat Have you Updated chrough Yet it's been since 2013 since a release has came out and it does not work anymore!!!

carbonatedcaffeine avatar Nov 01 '17 22:11 carbonatedcaffeine