aegypius / overlay

Gentoo overlay
http://aegypius.github.io/overlay/
31 stars 8 forks source link

Unofficial Atom ebuild #4

Closed aegypius closed 10 years ago

aegypius commented 10 years ago

Fixes to be done :


Next steps:

Kami-no commented 10 years ago

Is there a way to make it cups independent? I don't have it in my system and would like to keep it that way.

aegypius commented 10 years ago

@Kami-no libchromiumcontent.so is not yet build from source for gentoo, we use the binary provided by atom-shell building process. This library is linked against cups so there is no way to get rid of it. You might file an issue to brightray/libchromiumcontent or atom/atom-shell for this

TheChymera commented 9 years ago

I'm also trying to build atom on Gentoo, and failing (in my own modest effort). Your ebuild gives me a lot of drama with llvm:

laptophost app-editors # emerge -av atom

 * IMPORTANT: config file '/etc/portage/package.use' needs updating.
 * See the CONFIGURATION FILES section of the emerge
 * man page to learn how to update config files.

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     UD ] sys-devel/llvm-3.4.2:0/3.4 [3.5.0:0/3.5] USE="clang* libffi ncurses static-analyzer -cmake% -debug -doc -gold -multitarget -ocaml -python {-test} -udis86% -xml (-libedit%)" PYTHON_TARGETS="python2_7 -pypy" VIDEO_CARDS="radeon" 28.002 KiB
[ebuild  N     ] sys-devel/clang-3.4.2-r100:0/3.4  USE="static-analyzer -debug -multitarget -python" 0 KiB
[ebuild  N     ] dev-util/atom-shell-0.18.1::chymeric  USE="-debug" 0 KiB
[ebuild  N     ] app-editors/atom-0.138.0::chymeric  0 KiB

Total: 4 packages (1 downgrade, 3 new), Size of downloads: 28.002 KiB

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

sys-devel/llvm:0

  (sys-devel/llvm-3.4.2:0/3.4::gentoo, ebuild scheduled for merge) pulled in by
    sys-devel/llvm:0/3.4[clang] required by (dev-util/atom-shell-0.18.1:0/0::chymeric, ebuild scheduled for merge)
                  ^^^^^^                                                                                                                              
    ~sys-devel/llvm-3.4.2[clang(-),debug=,multitarget?,python?,static-analyzer,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] required by (sys-devel/clang-3.4.2-r100:0/3.4::gentoo, ebuild scheduled for merge)
    ^               ^^^^^                                                                                                                                                                                                                                                                                                                                                               

  (sys-devel/llvm-3.5.0:0/3.5::gentoo, installed) pulled in by
    >=sys-devel/llvm-3.3-r3:0/3.5=[abi_x86_64(-)] required by (media-libs/mesa-10.3.0:0/0::gentoo, installed)
                           ^^^^^^^                                                                                                               

It may be possible to solve this problem by using package.mask to
prevent one of those packages from being selected. However, it is also
possible that conflicting dependencies exist such that they are
impossible to satisfy simultaneously.  If such a conflict exists in
the dependencies of two different packages, then those packages can
not be installed simultaneously. You may want to try a larger value of
the --backtrack option, such as --backtrack=30, in order to see if
that will solve this conflict automatically.

For more information, see MASKED PACKAGES section in the emerge man
page or refer to the Gentoo Handbook.

The following USE changes are necessary to proceed:
 (see "package.use" in the portage(5) man page for more details)
# required by sys-devel/clang-3.4.2-r100
=sys-devel/llvm-3.4.2 clang

Would you like to add these changes to your config files? [Yes/No] y

Autounmask changes successfully written.

 * IMPORTANT: 2 config files in '/etc/portage' need updating.
 * See the CONFIGURATION FILES section of the emerge
 * man page to learn how to update config files.

!!! All ebuilds that could satisfy "~sys-devel/llvm-3.4.2[clang(-),debug=,multitarget?,python?,static-analyzer,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?]" have been masked.
!!! One of the following masked packages is required to complete your request:
- sys-devel/llvm-3.4.2::gentoo (masked by: )

(dependency required by "sys-devel/clang-3.4.2-r100" [ebuild])
(dependency required by "sys-devel/llvm-3.4.2[clang]" [ebuild])
(dependency required by "dev-util/atom-shell-0.18.1::chymeric" [ebuild])
(dependency required by "app-editors/atom-0.138.0::chymeric" [ebuild])
(dependency required by "atom" [argument])
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.

Could you help me out?

aegypius commented 9 years ago

It seems that mesa required an higher version of clang. you could try to upgrade dependencies in atom-shell to upgrade sys-devel/llvm to slot 0/0.3.5 in your ebuild and give it a try.

DEPEND="
    ${PYTHON_DEPS}
    sys-devel/llvm:0/3.5[clang]
    dev-lang/python:2.7
    >=net-libs/nodejs-0.10.29[npm]
    x11-libs/gtk+:2
    x11-libs/libnotify
    gnome-base/libgnome-keyring
    dev-libs/nss
    dev-libs/nspr
    gnome-base/gconf
    media-libs/alsa-lib
    net-print/cups
    sys-libs/libcap
    x11-libs/libXtst
"