Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Python updates

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
LIsLinuxIsSogood
Veteran
Veteran
Posts: 1186
Joined: Sat Feb 13, 2016 11:41 pm

Python updates

  • Quote

Post by LIsLinuxIsSogood » Sat Jun 06, 2020 7:05 pm

I am running a stable systemd profile for a gentoo print server with very minimal installation. It had not been updated in approximately 6 months maybe and I was expecting some package conflicts as usual. I am stuck on some python thing that I noticed is probably because I am on a version of python that is no longer in the main repo tree.

For smaller packages I would probably remove them and then rebuild them, but with this one I think many currently installed packages have it as a dependency,

Is this situation a good one for emerge -1u and then I can revdep-rebuild maybe afterwards?
The only other way I know is to start f*cking with individual packages and masking those. It is possible I could just rebuild everything but that would take too long to do.
Is Python2 still needed or useful to the operating system too?

Code: Select all

               Package Settings
=================================================================

dev-lang/python-2.7.17-r1::gentoo was built with the following:
USE="gdbm ipv6 ncurses readline sqlite ssl (threads) (wide-unicode) xml (-berkdb) -bluetooth -build -examples -hardened -libressl -tk -wininst" ABI_X86="(64)"
CFLAGS="-mtune=generic -O2 -pipe -fwrapv"
CXXFLAGS="-mtune=generic -O2 -pipe -fwrapv"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -L."


dev-lang/python-3.6.10::gentoo was built with the following:
USE="gdbm ipv6 ncurses readline ssl (threads) xml -bluetooth -build -examples -hardened -libressl -sqlite -test -tk -wininst" ABI_X86="(64)"
CFLAGS="-mtune=generic -O2 -pipe -fwrapv"
CXXFLAGS="-mtune=generic -O2 -pipe -fwrapv"
FEATURES="sandbox fixlafiles sfperms news merge-sync multilib-strict network-sandbox pid-sandbox unknown-features-warn ipc-sandbox userpriv config-protect-if-modified unmerge-logs userfetch usersandbox protect-owned ebuild-locks parallel-fetch preserve-libs strict binpkg-dostrip usersync binpkg-logs binpkg-docompress distlocks assume-digests unmerge-orphans xattr"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -L."
Top
asturm
Developer
Developer
Posts: 9496
Joined: Thu Apr 05, 2007 4:07 pm

  • Quote

Post by asturm » Sat Jun 06, 2020 8:06 pm

Please show us your situation, with full context including your emerge command. No one can tell you anything before that happens.
Top
LIsLinuxIsSogood
Veteran
Veteran
Posts: 1186
Joined: Sat Feb 13, 2016 11:41 pm

  • Quote

Post by LIsLinuxIsSogood » Sat Jun 06, 2020 8:57 pm

http://dpaste.com/2KQQHAD
dev-lang/python build is unavailable.

Is this a stale dependency from a previous upgrade, probably yes, which in theory the -e flag should handle by rebuilding all packages, for this situation that seems too extreme to have to rebuild over 600 packages!!!

I could just emerge --unmerge python and then what...rebuild the reverse dependencies against a new version of python in the repository?


EDIT:
Here is what I get when I try to remove it...which I assume means it will cause Portage to stop working if I remove it so that is not good.

Code: Select all

HPNotebook /home/jonny # emerge --unmerge '=dev-lang/python-3.6.10' --ask
 * This action can remove important packages! In order to be safer, use
 * `emerge -pv --depclean <atom>` to check for reverse dependencies before
 * removing packages.

>>> These are the packages that would be unmerged:
 * Not unmerging package dev-lang/python-3.6.10 since there is no valid reason
 * for Portage to unmerge currently used Python interpreter.
EDIT:
I am very confused about the state of dev-libs/gobject-introspection...why do I have a higher version of this installed than what is currently in the gentoo repository? I only ever built all the packages on this system from the main repo, with the only expection being some printer drivers.

emerge --info output:
http://dpaste.com/1QJWH7K

Code: Select all

[?] dev-libs/gobject-introspection
     Available versions:  1.56.1 1.58.3 {cairo doctool test PYTHON_SINGLE_TARGET="python2_7 python3_5 python3_6 python3_7" PYTHON_TARGETS="python2_7 python3_5 python3_6 python3_7"}
     Installed versions:  1.60.2-r1^t(12:59:03 AM 03/30/2020)(cairo -doctool -test PYTHON_SINGLE_TARGET="python3_6 -python3_7 -python3_8")
     Homepage:            https://wiki.gnome.org/Projects/GObjectIntrospection
     Description:         Introspection system for GObject-based libraries

[?] dev-libs/gobject-introspection-common
     Available versions:  1.56.1 1.58.3
     Installed versions:  1.60.2(11:52:26 PM 11/28/2019)
     Homepage:            https://wiki.gnome.org/Projects/GObjectIntrospection
     Description:         Build infrastructure for GObject Introspection
Top
GDH-gentoo
Advocate
Advocate
User avatar
Posts: 2115
Joined: Sat Jul 20, 2019 7:02 pm
Location: South America

  • Quote

Post by GDH-gentoo » Sat Jun 06, 2020 10:36 pm

LIsLinuxIsSogood wrote:http://dpaste.com/2KQQHAD
There is no error in that output. You have 61 upgrades, 10 reinstalls caused by USE flag changes, and one conflict that will resolve istelf (small 'b') with the simultaneous upgrade of dev-libs/gobject-introspection and dev-libs/gobject-introspection-common...
Top
Hu
Administrator
Administrator
Posts: 24403
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Sat Jun 06, 2020 10:38 pm

LIsLinuxIsSogood wrote:http://dpaste.com/2KQQHAD
dev-lang/python build is unavailable.
It looks available to me.
LIsLinuxIsSogood wrote:EDIT:
I am very confused about the state of dev-libs/gobject-introspection...why do I have a higher version of this installed than what is currently in the gentoo repository?

Code: Select all

[?] dev-libs/gobject-introspection
     Available versions:  1.56.1 1.58.3 {cairo doctool test PYTHON_SINGLE_TARGET="python2_7 python3_5 python3_6 python3_7" PYTHON_TARGETS="python2_7 python3_5 python3_6 python3_7"}
     Installed versions:  1.60.2-r1^t(12:59:03 AM 03/30/2020)(cairo -doctool -test PYTHON_SINGLE_TARGET="python3_6 -python3_7 -python3_8")
     Homepage:            https://wiki.gnome.org/Projects/GObjectIntrospection
     Description:         Introspection system for GObject-based libraries

[?] dev-libs/gobject-introspection-common
     Available versions:  1.56.1 1.58.3
     Installed versions:  1.60.2(11:52:26 PM 11/28/2019)
     Homepage:            https://wiki.gnome.org/Projects/GObjectIntrospection
     Description:         Build infrastructure for GObject Introspection
According to the content of the pastebin, you are upgrading, not downgrading, gobject-introspection. If I had to guess, I would say that the eix database you used to generate the output I quoted is out of date, and thus giving you incorrect information. I like eix for its summary data, but in this case you might be better served by emerge --pretend --verbose --nodeps dev-libs/gobject-introspection dev-libs/gobject-introspection-common.
Top
LIsLinuxIsSogood
Veteran
Veteran
Posts: 1186
Joined: Sat Feb 13, 2016 11:41 pm

  • Quote

Post by LIsLinuxIsSogood » Sun Jun 07, 2020 12:44 am

Code: Select all

HPNotebook /usr/portage # emerge --pretend --verbose --nodeps dev-libs/gobject-introspection dev-libs/gobject-introspection-common

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

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

[ebuild     U  ] dev-libs/gobject-introspection-1.62.0::gentoo [1.60.2-r1::gentoo] USE="-doctool -gtk-doc% -test (-cairo%*)" PYTHON_SINGLE_TARGET="python3_7* -python3_6* (-python3_8)" 958 KiB
[ebuild     U  ] dev-libs/gobject-introspection-common-1.62.0::gentoo [1.60.2::gentoo] 0 KiB

Total: 2 packages (2 upgrades), Size of downloads: 958 KiB

Why is this not automatically happening during the larger set of upgrades?

When I remove the --pretend it won't build the packages...

Code: Select all

HPNotebook /usr/portage # emerge -

 * IMPORTANT: 6 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


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

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

[ebuild     U  ] dev-libs/gobject-introspection-1.62.0::gentoo [1.60.2-r1::gentoo] USE="-doctool -gtk-doc% -test (-cairo%*)" PYTHON_SINGLE_TARGET="python3_7* -python3_6          
* (-python3_8)" 958 KiB
[ebuild     U  ] dev-libs/gobject-introspection-common-1.62.0::gentoo [1.60.2::gentoo] 0 KiB

Total: 2 packages (2 upgrades), Size of downloads: 958 KiB

>>> Verifying ebuild manifests
>>> Emerging (1 of 2) dev-libs/gobject-introspection-1.62.0::gentoo
>>> Emerging (2 of 2) dev-libs/gobject-introspection-common-1.62.0::gentoo
>>> Failed to emerge dev-libs/gobject-introspection-1.62.0, Log file:
>>>  '/var/tmp/portage/dev-libs/gobject-introspection-1.62.0/temp/build.log'
>>> Installing (2 of 2) dev-libs/gobject-introspection-common-1.62.0::gentoo
>>> Recording dev-libs/gobject-introspection-common in "world" favorites file...
>>> Jobs: 1 of 2 complete, 1 failed                 Load avg: 0.63, 0.33, 0.15
 * Package:    dev-libs/gobject-introspection-1.62.0
 * Repository: gentoo
 * Maintainer: gnome@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux python_single_target_python3_7 userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
 * Using python3.7 to build
>>> Unpacking source...
>>> Unpacking gobject-introspection-1.62.0.tar.xz to /var/tmp/portage/dev-libs/gobject-introspection-1.62.0/work
>>> Source unpacked in /var/tmp/portage/dev-libs/gobject-introspection-1.62.0/work
>>> Preparing source in /var/tmp/portage/dev-libs/gobject-introspection-1.62.0/work/gobject-introspection-1.62.0 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-libs/gobject-introspection-1.62.0/work/gobject-introspection-1.62.0 ...
/var/tmp/portage/dev-libs/gobject-introspection-1.62.0/temp/python3.7/bin/python: line 2: /usr/bin/python3.7: No such file or directory
/var/tmp/portage/dev-libs/gobject-introspection-1.62.0/temp/python3.7/bin/python: line 2: /usr/bin/python3.7: No such file or directory
/var/tmp/portage/dev-libs/gobject-introspection-1.62.0/temp/python3.7/bin/python: line 2: /usr/bin/python3.7: No such file or directory
/var/tmp/portage/dev-libs/gobject-introspection-1.62.0/temp/python3.7/bin/python: line 2: /usr/bin/python3.7: No such file or directory
/var/tmp/portage/dev-libs/gobject-introspection-1.62.0/temp/python3.7/bin/python: line 2: /usr/bin/python3.7: No such file or directory
/var/tmp/portage/dev-libs/gobject-introspection-1.62.0/temp/python3.7/bin/python: line 2: /usr/bin/python3.7: No such file or directory
/var/tmp/portage/dev-libs/gobject-introspection-1.62.0/temp/python3.7/bin/python: line 2: /usr/bin/python3.7: No such file or directory
/var/tmp/portage/dev-libs/gobject-introspection-1.62.0/temp/python3.7/bin/python: line 2: /usr/bin/python3.7: No such file or directory
/var/tmp/portage/dev-libs/gobject-introspection-1.62.0/temp/python3.7/bin/python: line 2: /usr/bin/python3.7: No such file or directory
/var/tmp/portage/dev-libs/gobject-introspection-1.62.0/temp/python3.7/bin/python: line 2: /usr/bin/python3.7: No such file or directory
/var/tmp/portage/dev-libs/gobject-introspection-1.62.0/temp/python3.7/bin/python: line 2: /usr/bin/python3.7: No such file or directory
/var/tmp/portage/dev-libs/gobject-introspection-1.62.0/temp/python3.7/bin/python: line 2: /usr/bin/python3.7: No such file or directory
/var/tmp/portage/dev-libs/gobject-introspection-1.62.0/temp/python3.7/bin/python: line 2: /usr/bin/python3.7: No such file or directory
/var/tmp/portage/dev-libs/gobject-introspection-1.62.0/temp/python3.7/bin/python: line 2: /usr/bin/python3.7: No such file or directory
/var/tmp/portage/dev-libs/gobject-introspection-1.62.0/temp/python3.7/bin/python: line 2: /usr/bin/python3.7: No such file or directory
/var/tmp/portage/dev-libs/gobject-introspection-1.62.0/temp/python3.7/bin/python: line 2: /usr/bin/python3.7: No such file or directory
/var/tmp/portage/dev-libs/gobject-introspection-1.62.0/temp/python3.7/bin/python: line 2: /usr/bin/python3.7: No such file or directory
/var/tmp/portage/dev-libs/gobject-introspection-1.62.0/temp/python3.7/bin/python: line 2: /usr/bin/python3.7: No such file or directory
meson setup --buildtype plain --libdir lib64 --localstatedir /var/lib --prefix /usr --sysconfdir /etc --wrap-mode nodownload --build.pkg-config-path /var/tmp/portage/de          
v-libs/gobject-introspection-1.62.0/temp/python3.7/pkgconfig:/usr/share/pkgconfig --pkg-config-path /var/tmp/portage/dev-libs/gobject-introspection-1.62.0/temp/python3.          
7/pkgconfig:/usr/share/pkgconfig --native-file /var/tmp/portage/dev-libs/gobject-introspection-1.62.0/temp/meson.x86_64-pc-linux-gnu.amd64.ini -Dcairo=false -Ddoctool=f          
alse -Dgtk_doc=false -Dpython=python3.7 /var/tmp/portage/dev-libs/gobject-introspection-1.62.0/work/gobject-introspection-1.62.0 /var/tmp/portage/dev-libs/gobject-intro          
spection-1.62.0/work/gobject-introspection-1.62.0-build

ERROR: Malformed value in cross file variable ar.
 * ERROR: dev-libs/gobject-introspection-1.62.0::gentoo failed (configure phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  125:  Called src_configure
 *   environment, line 2420:  Called meson_src_configure
 *   environment, line 1617:  Called die
 * The specific snippet of code:
 *       "${mesonargs[@]}" ) || die
 * 
 * If you need support, post the output of `emerge --info '=dev-libs/gobject-introspection-1.62.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/gobject-introspection-1.62.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/gobject-introspection-1.62.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/gobject-introspection-1.62.0/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/gobject-introspection-1.62.0/work/gobject-introspection-1.62.0'
 * S: '/var/tmp/portage/dev-libs/gobject-introspection-1.62.0/work/gobject-introspection-1.62.0'

 * Messages for package dev-libs/gobject-introspection-1.62.0:

 * ERROR: dev-libs/gobject-introspection-1.62.0::gentoo failed (configure phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  125:  Called src_configure
 *   environment, line 2420:  Called meson_src_configure
 *   environment, line 1617:  Called die
 * The specific snippet of code:
 *       "${mesonargs[@]}" ) || die
 * 
 * If you need support, post the output of `emerge --info '=dev-libs/gobject-introspection-1.62.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/gobject-introspection-1.62.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/gobject-introspection-1.62.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/gobject-introspection-1.62.0/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/gobject-introspection-1.62.0/work/gobject-introspection-1.62.0'
 * S: '/var/tmp/portage/dev-libs/gobject-introspection-1.62.0/work/gobject-introspection-1.62.0'

 * GNU info directory index is up-to-date.

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

 * IMPORTANT: 6 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.
Top
LIsLinuxIsSogood
Veteran
Veteran
Posts: 1186
Joined: Sat Feb 13, 2016 11:41 pm

  • Quote

Post by LIsLinuxIsSogood » Sun Jun 07, 2020 1:08 am

Is this a problem?

HPNotebook /usr/portage # gcc-config -l
[1] x86_64-pc-linux-gnu-9.2.0 *

UPDATE:
I tried a different upgrade command using emerge -udN @world upgrade seemed to allow the building to happen

Should I mark as solved yet?
Top
mlybarger
Guru
Guru
User avatar
Posts: 482
Joined: Wed Sep 04, 2002 1:03 am

  • Quote

Post by mlybarger » Sun Jun 07, 2020 9:57 pm

i had similar issues. googleing took me to this post. further searching let me to fix my world file. i used the checkworldfile script referenced on this post

https://wiki.gentoo.org/wiki/User:Feng/ ... _(Portage)

finally, i was able to do an upgrade: emerge -uD --newuse @world
Top
charles17
Advocate
Advocate
Posts: 3686
Joined: Sun Mar 02, 2008 3:20 pm

  • Quote

Post by charles17 » Mon Jun 08, 2020 6:45 am

mlybarger wrote: https://wiki.gentoo.org/wiki/User:Feng/ ... _(Portage)
For brackets in URL you need %-encoding:
https://wiki.gentoo.org/wiki/Selected-p ... file_clean

Why isn't this function included in emaint --check world?
Top
Post Reply

9 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic