Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
app-text/sigil dependencies? [resolved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Fri Oct 21, 2016 12:21 pm    Post subject: app-text/sigil dependencies? [resolved] Reply with quote

i tried to emerge sigil and got a crazy long list of dependencies to be installed.. took me two days (not non-stop though) to crunch through.. and at the end i still couldn't install sigil.. due to python issues!

i did add this
/etc/portage/package.use/sigil:
app-text/sigil python_targets_python3_5

Code:
# qlist -S dev-lang/python
dev-lang/python:2.7
dev-lang/python:3.5
dev-lang/python-exec:2


i've tried multiple times, and now i end up with this each time
Code:
# emerge sigil

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

Calculating dependencies... done!

emerge: there are no ebuilds to satisfy "dev-python/cssutils[python_targets_python3_4(-)?,python_targets_python3_5(-)?,-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python2_7(-),-python_single_target_python3_3(-),python_single_target_python3_4(+)?,python_single_target_python3_5(+)?]".
(dependency required by "app-text/sigil-0.9.6::gentoo" [ebuild])
(dependency required by "sigil" [argument])

_________________
"Growth for the sake of growth is the ideology of the cancer cell." Edward Abbey


Last edited by josephg on Mon Oct 24, 2016 11:44 am; edited 1 time in total
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10589
Location: Somewhere over Atlanta, Georgia

PostPosted: Fri Oct 21, 2016 1:58 pm    Post subject: Reply with quote

This is the "crazy long" list of dependencies that I got:
Code:
msd-service01 etc # emerge -va sigil

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

Calculating dependencies... done!
[ebuild  N     ] dev-python/lxml-3.6.0::gentoo  USE="doc -examples {-test} threads" PYTHON_TARGETS="python2_7 (-python3_3) python3_4 (-python3_5)" 3,608 KiB
[ebuild  N    ~] dev-python/regex-2016.01.10::gentoo  USE="doc" PYTHON_TARGETS="-pypy python2_7 (-python3_3) python3_4 -python3_5" 561 KiB
[ebuild  N     ] dev-python/cssselect-0.9.1::gentoo  USE="doc {-test}" PYTHON_TARGETS="python2_7 (-python3_3) python3_4 (-python3_5)" 33 KiB
[ebuild  N     ] dev-python/cssutils-1.0.1::gentoo  USE="{-test}" PYTHON_TARGETS="(-pypy) python2_7 (-python3_3) python3_4 (-python3_5)" 346 KiB
[ebuild  N     ] dev-python/sphinx-better-theme-0.1.5::gentoo  PYTHON_TARGETS="(-pypy) python2_7 (-python3_3) python3_4 (-python3_5)" 8 KiB
[ebuild  N     ] dev-python/pillow-3.1.1::gentoo  USE="doc -examples jpeg -jpeg2k lcms {-test} tiff -tk truetype -webp zlib" PYTHON_TARGETS="(-pypy) python2_7 (-python3_3) python3_4 (-python3_5)" 10,110 KiB
[ebuild  N    ~] app-text/sigil-0.9.6::gentoo  PYTHON_SINGLE_TARGET="python3_4 -python3_5" PYTHON_TARGETS="python3_4 -python3_5" 18,855 KiB

Total: 7 packages (7 new), Size of downloads: 33,517 KiB
Doesn't seem that onerous, actually. With two simple additions to a package.keywords/ file, this built to completion in less than 5 minutes. Two questions:
  • Was your system up to date when you started?
  • Can you post your make.conf?
- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Fri Oct 21, 2016 5:54 pm    Post subject: Reply with quote

John R. Graham wrote:
Was your system up to date when you started?

i try update my system almost every day. Having said that, I've been away and come back to find that portage sync via git, working flawlessly till a week ago, is having issues now. i should probably file another thread for that.

John R. Graham wrote:
Can you post your make.conf?

/etc/portage/make.conf:
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
CHOST="i686-pc-linux-gnu"
CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3"

VIDEO_CARDS="intel i965"
INPUT_DEVICES="evdev synaptics"
ALSA_CARDS="hda-intel"
LCD_DEVICES=""

LINGUAS="en_GB en"
L10N="en-GB en"
PYTHON_TARGETS="python2_7"
RUBY_TARGETS="ruby21"
FFTOOLS=""

DISTDIR=/media/distfiles
MAKEOPTS="-s -j3 -l3"
EMERGE_DEFAULT_OPTS="--alert --ask --ask-enter-invalid --jobs=3 --keep-going y --load-average 3 --tree --verbose --with-bdeps=y"
PORTAGE_NICENESS="19"
PORTAGE_IONICE_COMMAND="ionice -c2 -n7 -p\${PID}"

USE="X alsa drm egl eglfs evdev glamor jpeg minimal opengl png threads udev vaapi webp xcb -acl -accessibility -crypt -gdbm -gnome -gtk3 -introspection -ipv6 -joystick -nls -pulseaudio -qt4 -systemd -xinerama"

_________________
"Growth for the sake of growth is the ideology of the cancer cell." Edward Abbey


Last edited by josephg on Sun Oct 23, 2016 1:38 pm; edited 2 times in total
Back to top
View user's profile Send private message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Sat Oct 22, 2016 12:54 pm    Post subject: Reply with quote

John R. Graham wrote:
Doesn't seem that onerous, actually. With two simple additions to a package.keywords/ file, this built to completion in less than 5 minutes.

thank you John R. Graham for having a go. your list looks neat & trim, and kinda what i expected too.. but alas not what i got :(

i have now --depclean'd all i did before for sigil, and this is what i get right now.
Code:
# emerge -va sigil

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

Calculating dependencies... done!
[ebuild  N    ~] app-text/sigil-0.9.6::gentoo  PYTHON_SINGLE_TARGET="-python3_4 -python3_5" PYTHON_TARGETS="-python3_4 -python3_5" 0 KiB
[ebuild  N     ]  dev-python/pillow-3.1.1::gentoo  USE="jpeg webp zlib -doc -examples -jpeg2k -lcms {-test} -tiff -tk -truetype" PYTHON_TARGETS="python2_7 (-pypy) (-python3_3) -python3_4 (-python3_5)" 0 KiB
[ebuild  NS    ]  dev-qt/qtwebkit-5.6.1:5/5.6::gentoo [4.8.6-r1:4::gentoo] USE="jit opengl webp -debug -geolocation -gstreamer -gstreamer010 -multimedia -orientation -printsupport -qml {-test} -webchannel" 0 KiB
[ebuild  N     ]   dev-qt/qtopengl-5.6.1:5/5.6::gentoo  USE="-debug -gles2 {-test}" 0 KiB
[nomerge       ] dev-qt/qtwebkit-5.6.1:5/5.6::gentoo [4.8.6-r1:4::gentoo] USE="jit opengl webp -debug -geolocation -gstreamer -gstreamer010 -multimedia -orientation -printsupport -qml {-test} -webchannel"
[nomerge       ]  dev-lang/ruby-2.1.9:2.1::gentoo  USE="berkdb ncurses readline ssl -debug -doc -examples -gdbm -ipv6 -rdoc -rubytests -socks5 -xemacs"
[ebuild  N     ]   dev-ruby/json-1.8.2-r1::gentoo  USE="-doc {-test}" RUBY_TARGETS="ruby21 -ruby20" 0 KiB
[ebuild  N     ]    dev-ruby/rake-0.9.6-r1::gentoo  USE="-doc {-test}" RUBY_TARGETS="ruby21 -ruby20" 0 KiB
[ebuild  N     ]     virtual/rubygems-10::gentoo  RUBY_TARGETS="ruby21 (-ruby19) -ruby20" 0 KiB
[ebuild  N     ]      dev-ruby/rubygems-2.2.5-r1::gentoo  USE="-server {-test}" RUBY_TARGETS="ruby21 -ruby20" 0 KiB
[ebuild  N     ]       dev-lang/ruby-2.1.9:2.1::gentoo  USE="berkdb ncurses readline ssl -debug -doc -examples -gdbm -ipv6 -rdoc -rubytests -socks5 -xemacs" 0 KiB
[nomerge       ] app-text/sigil-0.9.6::gentoo  PYTHON_SINGLE_TARGET="-python3_4 -python3_5" PYTHON_TARGETS="-python3_4 -python3_5"
[ebuild  NS    ]  dev-qt/qtxmlpatterns-5.6.1:5/5.6::gentoo [4.8.6-r1:4::gentoo] USE="-debug {-test}" 0 KiB
[nomerge       ] dev-ruby/json-1.8.2-r1::gentoo  USE="-doc {-test}" RUBY_TARGETS="ruby21 -ruby20"
[ebuild  N     ]  dev-util/ragel-6.7-r1::gentoo  USE="-vim-syntax" 0 KiB
[nomerge       ] app-text/sigil-0.9.6::gentoo  PYTHON_SINGLE_TARGET="-python3_4 -python3_5" PYTHON_TARGETS="-python3_4 -python3_5"
[ebuild  N     ]  dev-libs/xerces-c-3.1.4-r1::gentoo  USE="iconv icu threads -curl -doc -examples -static-libs {-test}" CPU_FLAGS_X86="sse2" 0 KiB
[ebuild  N     ]  dev-python/cssselect-0.9.1::gentoo  USE="-doc {-test}" PYTHON_TARGETS="python2_7 (-python3_3) -python3_4 (-python3_5)" 0 KiB
[ebuild  N     ]  dev-python/lxml-3.6.0::gentoo  USE="threads -doc -examples {-test}" PYTHON_TARGETS="python2_7 (-python3_3) -python3_4 (-python3_5)" 0 KiB
[ebuild  N     ]  dev-python/chardet-2.2.1::gentoo  PYTHON_TARGETS="python2_7 (-pypy) (-pypy3) (-python3_3) -python3_4" 0 KiB
[ebuild  N     ]  dev-python/html5lib-0.9999999::gentoo  USE="{-test}" PYTHON_TARGETS="python2_7 (-pypy) (-pypy3) (-python3_3) -python3_4 (-python3_5)" 0 KiB
[ebuild  N     ]  dev-python/cssutils-1.0.1::gentoo  USE="{-test}" PYTHON_TARGETS="python2_7 (-pypy) (-python3_3) -python3_4 (-python3_5)" 0 KiB
[nomerge       ] dev-qt/qtwebkit-5.6.1:5/5.6::gentoo [4.8.6-r1:4::gentoo] USE="jit opengl webp -debug -geolocation -gstreamer -gstreamer010 -multimedia -orientation -printsupport -qml {-test} -webchannel"
[ebuild  N     ]  dev-libs/leveldb-1.18-r1::gentoo  USE="snappy tcmalloc -static-libs" 0 KiB
[nomerge       ] app-text/sigil-0.9.6::gentoo  PYTHON_SINGLE_TARGET="-python3_4 -python3_5" PYTHON_TARGETS="-python3_4 -python3_5"
[ebuild  N    ~]  dev-python/regex-2016.01.10::gentoo  USE="-doc" PYTHON_TARGETS="python2_7 -pypy (-python3_3) -python3_4 -python3_5" 0 KiB
[ebuild  N     ]  dev-python/six-1.10.0::gentoo  USE="-doc {-test}" PYTHON_TARGETS="python2_7 (-pypy) (-pypy3) (-python3_3) -python3_4 (-python3_5)" 0 KiB
[nomerge       ] dev-ruby/json-1.8.2-r1::gentoo  USE="-doc {-test}" RUBY_TARGETS="ruby21 -ruby20"
[nomerge       ]  dev-lang/ruby-2.1.9:2.1::gentoo  USE="berkdb ncurses readline ssl -debug -doc -examples -gdbm -ipv6 -rdoc -rubytests -socks5 -xemacs"
[ebuild  N     ]   app-eselect/eselect-ruby-20131227::gentoo  0 KiB
[nomerge       ] app-text/sigil-0.9.6::gentoo  PYTHON_SINGLE_TARGET="-python3_4 -python3_5" PYTHON_TARGETS="-python3_4 -python3_5"
[ebuild  N     ]  dev-libs/boost-1.56.0-r1:0/1.56.0::gentoo  USE="threads -context -debug -doc -icu -mpi -nls -python -static-libs -tools" PYTHON_TARGETS="python2_7 (-python3_3) -python3_4" 0 KiB
[ebuild  N     ]   dev-util/boost-build-1.56.0::gentoo  USE="-examples -python {-test}" PYTHON_TARGETS="python2_7" 0 KiB
[nomerge       ] dev-libs/leveldb-1.18-r1::gentoo  USE="snappy tcmalloc -static-libs"
[ebuild  N     ]  dev-util/google-perftools-2.0-r2:0/4::gentoo  USE="minimal -debug -largepages -static-libs {-test}" 0 KiB
[ebuild  N     ]   sys-libs/libunwind-1.1-r1:7::gentoo  USE="-debug -debug-frame -libatomic -lzma -static-libs" 0 KiB
[nomerge       ] dev-ruby/json-1.8.2-r1::gentoo  USE="-doc {-test}" RUBY_TARGETS="ruby21 -ruby20"
[nomerge       ]  virtual/rubygems-10::gentoo  RUBY_TARGETS="ruby21 (-ruby19) -ruby20"
[nomerge       ]   dev-lang/ruby-2.1.9:2.1::gentoo  USE="berkdb ncurses readline ssl -debug -doc -examples -gdbm -ipv6 -rdoc -rubytests -socks5 -xemacs"
[ebuild  N     ]    dev-libs/libyaml-0.1.6::gentoo  USE="-doc -examples -static-libs {-test}" 0 KiB

Total: 26 packages (24 new, 2 in new slots), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No]

_________________
"Growth for the sake of growth is the ideology of the cancer cell." Edward Abbey
Back to top
View user's profile Send private message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Sat Oct 22, 2016 2:58 pm    Post subject: Reply with quote

John R. Graham wrote:
I got:
Code:
msd-service01 etc # emerge -va sigil

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

Calculating dependencies... done!
[ebuild  N     ] dev-python/lxml-3.6.0::gentoo  USE="doc -examples {-test} threads" PYTHON_TARGETS="python2_7 (-python3_3) python3_4 (-python3_5)" 3,608 KiB
[ebuild  N    ~] dev-python/regex-2016.01.10::gentoo  USE="doc" PYTHON_TARGETS="-pypy python2_7 (-python3_3) python3_4 -python3_5" 561 KiB
[ebuild  N     ] dev-python/cssselect-0.9.1::gentoo  USE="doc {-test}" PYTHON_TARGETS="python2_7 (-python3_3) python3_4 (-python3_5)" 33 KiB
[ebuild  N     ] dev-python/cssutils-1.0.1::gentoo  USE="{-test}" PYTHON_TARGETS="(-pypy) python2_7 (-python3_3) python3_4 (-python3_5)" 346 KiB
[ebuild  N     ] dev-python/sphinx-better-theme-0.1.5::gentoo  PYTHON_TARGETS="(-pypy) python2_7 (-python3_3) python3_4 (-python3_5)" 8 KiB
[ebuild  N     ] dev-python/pillow-3.1.1::gentoo  USE="doc -examples jpeg -jpeg2k lcms {-test} tiff -tk truetype -webp zlib" PYTHON_TARGETS="(-pypy) python2_7 (-python3_3) python3_4 (-python3_5)" 10,110 KiB
[ebuild  N    ~] app-text/sigil-0.9.6::gentoo  PYTHON_SINGLE_TARGET="python3_4 -python3_5" PYTHON_TARGETS="python3_4 -python3_5" 18,855 KiB

Total: 7 packages (7 new), Size of downloads: 33,517 KiB
Doesn't seem that onerous, actually. With two simple additions to a package.keywords/ file, this built to completion in less than 5 minutes.


why does mine look so different from John R. Graham's?
_________________
"Growth for the sake of growth is the ideology of the cancer cell." Edward Abbey
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30916
Location: here

PostPosted: Sat Oct 22, 2016 3:02 pm    Post subject: Reply with quote

josephg wrote:
why does mine look so different from John R. Graham's?

Because probably John R. Graham has some dependencies already installed
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Sat Oct 22, 2016 4:48 pm    Post subject: Reply with quote

seems like John R. Graham is using python3_4, rather than python3_5 as i was trying to. i don't know how he setup, but with my limited understanding, i did

/etc/portage/package.use:
app-text/sigil python_targets_python3_4


ending up with a different set of errors.
http://bpaste.net/show/52ec0cd7fe1d
tl;dr
Code:
 * Package:    app-text/sigil-0.9.6
 * Repository: gentoo
 * Maintainer: tomboy64@sina.cn proxy-maint@gentoo.org
 * USE:        abi_x86_32 elibc_glibc kernel_linux python_targets_python3_4 userland_GNU x86
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
 * No Python implementation selected for the build. Please set
 * the PYTHON_SINGLE_TARGET variable in your make.conf to one
 * of the following values:
 *
 * python3_4 python3_5

 * ERROR: app-text/sigil-0.9.6::gentoo failed (setup phase):
 *   No supported Python implementation in PYTHON_SINGLE_TARGET/PYTHON_TARGETS.
 *
 * Call stack:
 *                 ebuild.sh, line 115:  Called pkg_setup
 *                 ebuild.sh, line 343:  Called python-single-r1_pkg_setup
 *   python-single-r1.eclass, line 553:  Called python_setup
 *   python-single-r1.eclass, line 543:  Called die
 * The specific snippet of code:
 *              die "No supported Python implementation in PYTHON_SINGLE_TARGET/PYTHON_TARGETS."
 *

_________________
"Growth for the sake of growth is the ideology of the cancer cell." Edward Abbey
Back to top
View user's profile Send private message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Sat Oct 22, 2016 4:57 pm    Post subject: Reply with quote

i changed
/etc/portage/make.conf:
PYTHON_TARGETS="python3_4"

emerge sigil still crashes out with the exact same errors as my last post
_________________
"Growth for the sake of growth is the ideology of the cancer cell." Edward Abbey
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10589
Location: Somewhere over Atlanta, Georgia

PostPosted: Sat Oct 22, 2016 5:05 pm    Post subject: Reply with quote

Per the error message above, you also need to set PYTHON_SINGLE_TARGET.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Sat Oct 22, 2016 5:43 pm    Post subject: Reply with quote

John R. Graham wrote:
Per the error message above, you also need to set PYTHON_SINGLE_TARGET

wouldn't that change my entire system 8O just for this single package?
_________________
"Growth for the sake of growth is the ideology of the cancer cell." Edward Abbey
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10589
Location: Somewhere over Atlanta, Georgia

PostPosted: Sat Oct 22, 2016 5:51 pm    Post subject: Reply with quote

In a word, no. PYTHON_SINGLE_TARGET only affects those ebuilds that need it. So, since you didn't have it before, you're good.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10589
Location: Somewhere over Atlanta, Georgia

PostPosted: Sat Oct 22, 2016 5:54 pm    Post subject: Reply with quote

fedeliallalinea wrote:
josephg wrote:
why does mine look so different from John R. Graham's?

Because probably John R. Graham has some dependencies already installed
Yep. Most of that stuff is for Ruby. I don't use Ruby but a package I use uses RubyDocs.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Sat Oct 22, 2016 6:41 pm    Post subject: Reply with quote

John R. Graham wrote:
In a word, no. PYTHON_SINGLE_TARGET only affects those ebuilds that need it. So, since you didn't have it before, you're good.

i do have it..
Code:
$ emerge --info
...
PYTHON_SINGLE_TARGET="python2_7"
...

seems like the gentoo default, as i didn't set it. question is how did you do it?
_________________
"Growth for the sake of growth is the ideology of the cancer cell." Edward Abbey
Back to top
View user's profile Send private message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Sat Oct 22, 2016 7:01 pm    Post subject: Reply with quote

John R. Graham wrote:
In a word, no. PYTHON_SINGLE_TARGET only affects those ebuilds that need it. So, since you didn't have it before, you're good.

so i set that, and then emerge world is not happy :(

/etc/portage/make.conf:
PYTHON_SINGLE_TARGET="python3_4"

Code:
# emerge --update --changed-use --newuse --deep --with-bdeps=y --verbose --ask @world

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

Calculating dependencies... done!

!!! The ebuild selected to satisfy ">=app-text/asciidoc-8.6.0" has unmet requirements.
- app-text/asciidoc-8.6.9-r2::gentoo USE="-examples -graphviz -highlight -test" PYTHON_SINGLE_TARGET="-pypy -python2_7" PYTHON_TARGETS="python2_7 -pypy"

  The following REQUIRED_USE flag constraints are unsatisfied:
    exactly-one-of ( python_single_target_pypy python_single_target_python2_7 )

  The above constraints are a subset of the following complete expression:
    exactly-one-of ( python_single_target_pypy python_single_target_python2_7 ) python_single_target_pypy? ( python_targets_pypy ) python_single_target_python2_7? ( python_targets_python2_7 )

(dependency required by "sys-fs/btrfs-progs-4.4.1::gentoo" [installed])
(dependency required by "@selected" [set])
(dependency required by "@world" [argument])

_________________
"Growth for the sake of growth is the ideology of the cancer cell." Edward Abbey
Back to top
View user's profile Send private message
svantoviit
n00b
n00b


Joined: 12 Jun 2010
Posts: 13

PostPosted: Sat Oct 22, 2016 10:15 pm    Post subject: Re: app-text/sigil dependencies? Reply with quote

josephg wrote:
i did add this
/etc/portage/package.use:
app-text/sigil python_targets_python3_5

Seems your syntax is not right, try to add this line to your package.use:
Code:
app-text/sigil PYTHON_SINGLE_TARGET: python3_4

Compare: https://wiki.gentoo.org/wiki//etc/portage/package.use

For the rest the world I use 2.7. This is in my make.conf:
Code:
USE_PYTHON="2.7"
PYTHON_TARGETS="python2_7 python3_4"

I experience no issues installing sigil with this set up. I your case, you will likely replace 3_4 with 3_5.
Back to top
View user's profile Send private message
ian.au
Guru
Guru


Joined: 07 Apr 2011
Posts: 591
Location: Australia

PostPosted: Sun Oct 23, 2016 12:53 am    Post subject: Reply with quote

Can I make another suggestion? From your make.conf above you have a python directive for 2_7 none for 3_x
Quote:

LINGUAS="en_GB en"
L10N="en-GB en"
PYTHON_TARGETS="python2_7"
RUBY_TARGETS="ruby21"
FFTOOLS=""

That will try to build everything with 2_7
The default is to have no PYTHON_TARGETS set in make conf, and portage will then use the current defaults (2_7 for system, 3_4 for single target)
Unless you really need a specific python, this is the simplest solution, and you wouldn't need to make a specific directive in package.use as you are doing.

So, assuming you do not need a non-standard python implementation, you can comment that line and get the default 2_7 and 3_x python behavior.

If you really want/need to manage this yourself, you would set eg:
Code:
# Default is to have no python targets
PYTHON_TARGETS="python2_7 python3_4"
PYTHON_SINGLE_TARGET="python3_4"

in /etc/portage/make.conf so you have the two interpreters available. At present the above entry will give the defaults. However, this is equivalent to having no directives in make.conf and comes with the downside being you have to update the make.conf each time a new 3_x python is stabilised.

So, i'd try to fix this issue by removing or commenting all the python directives you have entered in make.conf and package.use to try and make this install work; rerun the world update and see how many (if any) problems remain.
Back to top
View user's profile Send private message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Sun Oct 23, 2016 1:29 pm    Post subject: Reply with quote

ian.au wrote:
So, i'd try to fix this issue by removing or commenting all the python directives you have entered in make.conf and package.use to try and make this install work; rerun the world update and see how many (if any) problems remain.

thank you ian.au for explaining this. i removed all python directives, and recompiled world. i had to unmerge a few packages due to conflict, but in the end i have a successfully compiled world. it seems most packages have now got both python versions compiled in. and now sigil compiled successfully as in my next post.
_________________
"Growth for the sake of growth is the ideology of the cancer cell." Edward Abbey
Back to top
View user's profile Send private message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Sun Oct 23, 2016 1:32 pm    Post subject: Re: app-text/sigil dependencies? Reply with quote

svantoviit wrote:
josephg wrote:
i did add this
/etc/portage/package.use:
app-text/sigil python_targets_python3_5

Seems your syntax is not right, try to add this line to your package.use:
Code:
app-text/sigil PYTHON_SINGLE_TARGET: python3_4

Compare: https://wiki.gentoo.org/wiki//etc/portage/package.use

For the rest the world I use 2.7. This is in my make.conf:
Code:
USE_PYTHON="2.7"
PYTHON_TARGETS="python2_7 python3_4"

I experience no issues installing sigil with this set up. I your case, you will likely replace 3_4 with 3_5.


thank you svantoviit, exactly what i needed. i was shooting in the dark, trying all combinations of python directives without really understanding.

i don't really have a need for 3_5. i thought that was more stable/efficient than 3_4. however gentoo stable is 3_4, and i can stick with it.

i think i have a slightly better gentoo understanding now. and i have a successfully compiled working sigil now.
_________________
"Growth for the sake of growth is the ideology of the cancer cell." Edward Abbey
Back to top
View user's profile Send private message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Mon Oct 24, 2016 11:43 am    Post subject: Reply with quote

i've been playing with this a little more, and i understand this a little further.. i think.

i've reverted everything back to how it was, before i started with this issue as in the op. to emerge sigil, all i needed to do was ..
/etc/portage/package.use/sigil:
app-text/sigil python_single_target_python3_4 python_targets_python3_4

.. and i'm a happy bunny again. i didn't want everything compiled in with both pythons (2.7 & 3.4). i like 2.7 as i think it is smaller, more efficient, and less resource hungry.

i'm still bruising over all the crazy dependencies installed with sigil - a glorified html/text editor imho! i came to gentoo from debian to escape dependency-hell, only to find it worse over here :(
_________________
"Growth for the sake of growth is the ideology of the cancer cell." Edward Abbey
Back to top
View user's profile Send private message
ian.au
Guru
Guru


Joined: 07 Apr 2011
Posts: 591
Location: Australia

PostPosted: Mon Oct 24, 2016 12:35 pm    Post subject: Reply with quote

josephg wrote:
i've been playing with this a little more, and i understand this a little further.. i think.

i've reverted everything back to how it was, before i started with this issue as in the op. to emerge sigil, all i needed to do was ..
/etc/portage/package.use/sigil:
app-text/sigil python_single_target_python3_4 python_targets_python3_4

.. and i'm a happy bunny again. i didn't want everything compiled in with both pythons (2.7 & 3.4). i like 2.7 as i think it is smaller, more efficient, and less resource hungry.

i'm still bruising over all the crazy dependencies installed with sigil - a glorified html/text editor imho! i came to gentoo from debian to escape dependency-hell, only to find it worse over here :(

Clearly you now know more than the devs that set the defaults then. I'll add also that Python is a crucial element of portage, therefore Gentoo, and it is easy to get into all sorts of trouble if and when you break it.

BTW you aren't getting everything compiled with both 2.7 & 3.4, you are simply making both interpreters available to portage, and letting the Devs choose the interpreter via the ebuild, at least if you adopt the defaults you would be; now you get to manage that yourself.

As for your crazy dependencies, after adding
Code:
apt-text/sigil ~amd64
to package.accept_keywords on a bog standard desktop using the default implementation of python and with no need to make any entries in package.use:

Code:
lw3 ~ # emerge -pv sigil

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

Calculating dependencies... done!
[ebuild  N     ] dev-python/html5lib-0.9999999::gentoo  USE="{-test}" PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) (-python3_3) (-python3_5)" 869 KiB
[ebuild  N     ] dev-libs/xerces-c-3.1.4-r1::gentoo  USE="iconv icu -curl -doc -examples -static-libs {-test} -threads" CPU_FLAGS_X86="sse2" 6,829 KiB
[ebuild  N     ] dev-python/lxml-3.6.0::gentoo  USE="threads -doc -examples {-test}" PYTHON_TARGETS="python2_7 python3_4 (-python3_3) (-python3_5)" 3,608 KiB
[ebuild  N    ~] dev-python/regex-2016.01.10::gentoo  USE="-doc" PYTHON_TARGETS="python2_7 python3_4 -pypy (-python3_3) -python3_5" 561 KiB
[ebuild  N     ] dev-python/cssselect-0.9.1::gentoo  USE="-doc {-test}" PYTHON_TARGETS="python2_7 python3_4 (-python3_3) (-python3_5)" 33 KiB
[ebuild  N     ] dev-python/cssutils-1.0.1::gentoo  USE="{-test}" PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-python3_3) (-python3_5)" 346 KiB
[ebuild  N     ] dev-qt/qtconcurrent-5.6.1:5/5.6::gentoo  USE="-debug {-test}" 0 KiB
[ebuild  N     ] dev-python/pillow-3.1.1::gentoo  USE="jpeg lcms tiff truetype zlib -doc -examples -jpeg2k {-test} -tk -webp" PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-python3_3) (-python3_5)" 10,110 KiB
[ebuild  N     ] dev-qt/qtxml-5.6.1:5/5.6::gentoo  USE="-debug {-test}" 0 KiB
[ebuild  N     ] dev-qt/linguist-tools-5.6.1:5/5.6::gentoo  USE="-debug -qml {-test}" 9,590 KiB
[ebuild  N    ~] app-text/sigil-0.9.6::gentoo  PYTHON_SINGLE_TARGET="-python3_4 -python3_5" PYTHON_TARGETS="python3_4 -python3_5" 18,855 KiB

Total: 11 packages (11 new), Size of downloads: 50,797 KiB

The following keyword changes are necessary to proceed:
 (see "package.accept_keywords" in the portage(5) man page for more details)
# required by app-text/sigil-0.9.6::gentoo
# required by sigil (argument)
=dev-python/regex-2016.01.10 ~amd64

The following USE changes are necessary to proceed:
 (see "package.use" in the portage(5) man page for more details)
# required by app-text/sigil-0.9.6::gentoo
# required by sigil (argument)
>=dev-libs/xerces-c-3.1.4-r1 icu


Gee 11 dependencies, 1 keyword change and 1 supplemental USE flag. I wouldn't call that even close to dependency hell.

Anyway, it's your system, so your choice.

Info here and within general vicinity, https://wiki.gentoo.org/wiki/Project:Python/PYTHON_TARGETS also check implementations and realise that on a rolling distro, they are shifting sands, so when a new implementation is stabilized you get to trawl through your useflags and update them manually, usually whilst looking at pages of dependency complaints from portage on a world emerge months down the track.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum