Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[gelöst] paketmanagement ffmpeg
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
michael_w
Guru
Guru


Joined: 22 Feb 2006
Posts: 465
Location: 09xxx

PostPosted: Mon Dec 10, 2018 2:18 pm    Post subject: [gelöst] paketmanagement ffmpeg Reply with quote

Hallo,

ich verstehe gerade etwas nicht. Installiert ist ffmpeg-4.1, das lässt sich auch bauen ohne Probleme. Danach will portage alsa-plugins, gegl und opencv neu bauen und scheitert bei allen dreien. Nun ist ffmpeg-4.1 nicht freigegeben, sprich man muss sich die Version selbst "freischalten". Und jetzt der Punkt, ffmpeg-4.1 steht nirgendwo bei mir drin (/etc/portage/*)!? Wie geht das?

Meine make.conf:
Code:

# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.

# safe flags -> https://wiki.gentoo.org/wiki/Ryzen
# CFLAGS="-march=bdver4 -O2 -pipe -mno-fma4 -mno-tbm -mno-xop -mno-lwp"

CFLAGS="-O2 -march=znver1"

# experimental flags
# CFLAGS="-march=bdver4 -O2 -pipe -mno-fma4 -mno-tbm -mno-xop -mno-lwp -mclzero -madx -mrdseed -mmwaitx -msha -mxsavec -mxsaves -mclflushopt -mpopcnt"

CXXFLAGS="${CFLAGS}"

# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"

# These are the USE and USE_EXPAND flags that were used for
# buidling in addition to what is provided by the profile.

USE="kde qt5 plasma X amd64 alsa display-manager gtk samba ssl threads\
     mp3 gui gimpprint usb jpeg gimp mplayer xorg ffmpeg syslog lm_sensors\
     x264 64bit cups lightning -bluetooth dbus consolekit evdev pm-utils tools\
     udev hwdb kmod avformat dvi2tty graphics png truetype gphoto2 heif"

PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
MAKEOPTS="-j17"

GENTOO_MIRRORS="rsync://ftp.halifax.rwth-aachen.de/gentoo/"

INPUT_DEVICES="evdev"
VIDEO_CARDS="nouveau"
#VIDEO_CARDS="nvidia"

LINGUAS="de"
L10N="de"

PORTAGE_NICENESS="15"

DARKELF_FEATURES="postmerge_distclean"

_________________
Linux ryzen 6.6.21-gentoo-dist #1 SMP PREEMPT_DYNAMIC Sun Mar 24 18:32:46 CET 2024 x86_64 AMD Ryzen 7 PRO 4750G with Radeon Graphics AuthenticAMD GNU/Linux


Last edited by michael_w on Thu Dec 13, 2018 8:36 am; edited 1 time in total
Back to top
View user's profile Send private message
Marlo
Veteran
Veteran


Joined: 26 Jul 2003
Posts: 1591

PostPosted: Mon Dec 10, 2018 3:27 pm    Post subject: Re: paketmanagement ffmpeg Reply with quote

michael_w wrote:
... ffmpeg-4.1 steht nirgendwo bei mir drin (/etc/portage/*)!? Wie geht das?


Dann kann es nur in /etc/portage/package.use oder /etc/portage/package.use/ sein und wenn es "automatisch" reingekommen ist dann steht auch das anfordernde Programm dabei. Oder du hast es selbst hineingesetzt und das vielleicht vergessen. Du kansste es ja entfernen wenn du es nicht brauchst.

Jedenfall habe ich hier ffmpeg-4 und alsa-plugins, gegl, opencv hier und die lassen sich ohne Probleme installieren.

Dein System scheint verschmutzt zu sein, ich würde es reinigen und mit world anfangen. --> https://wiki.gentoo.org/wiki/Selected_set_(Portage)#Keeping_the_world_file_clean
_________________
------------------------------------------------------------------
http://radio.garden/
Back to top
View user's profile Send private message
michael_w
Guru
Guru


Joined: 22 Feb 2006
Posts: 465
Location: 09xxx

PostPosted: Mon Dec 10, 2018 3:58 pm    Post subject: Re: paketmanagement ffmpeg Reply with quote

Marlo wrote:

Dann kann es nur in /etc/portage/package.use oder /etc/portage/package.use/ sein und wenn es "automatisch" reingekommen ist dann steht auch das anfordernde Programm dabei. Oder du hast es selbst hineingesetzt und das vielleicht vergessen. Du kansste es ja entfernen wenn du es nicht brauchst.

Ich habe jetzt nochmals alle Dateien in den Verzeichnissen durchgesehen, nirgendwo steht da was von ffmpeg drin.

Quote:

Jedenfall habe ich hier ffmpeg-4 und alsa-plugins, gegl, opencv hier und die lassen sich ohne Probleme installieren.

okay.

Quote:

Dein System scheint verschmutzt zu sein, ich würde es reinigen und mit world anfangen. --> https://wiki.gentoo.org/wiki/Selected_set_(Portage)#Keeping_the_world_file_clean


Code:

ryzen ~ # /usr/sbin/emaint --check world
Emaint: check world        100% [============================================>]


und so wie ich es verstehe sollte ich jetzt ein file in /tmp/ haben -> /tmp/deselect , hab ich aber nicht!? Und was nun?
_________________
Linux ryzen 6.6.21-gentoo-dist #1 SMP PREEMPT_DYNAMIC Sun Mar 24 18:32:46 CET 2024 x86_64 AMD Ryzen 7 PRO 4750G with Radeon Graphics AuthenticAMD GNU/Linux
Back to top
View user's profile Send private message
Marlo
Veteran
Veteran


Joined: 26 Jul 2003
Posts: 1591

PostPosted: Mon Dec 10, 2018 5:16 pm    Post subject: Re: paketmanagement ffmpeg Reply with quote

michael_w wrote:
Und was nun?


Na sowas, die im wiki sind ja lustig. Löschen einfach das Wichtigste.

Erstelle dir als root eine Datei, im wiki hieß sie checkworldfile.sh
Die Datei hat den Inhalt:
Code:

#!/bin/bash
## https://wiki.gentoo.org/wiki/Selected_set_(Portage)#Keeping_the_world_file_clean
## https://wiki.gentoo.org/wiki/Selected_set_(Portage)
## https://wiki.gentoo.org/wiki/World_set_(Portage)#Keep_it_clean

while read i ; do \
        if [ -n "$(qdepends -Q $i)" ]; then \
                echo '' ; echo 'checking '$i ;
                if [ -n "$(emerge -p --quiet --depclean $i)" ]; then \
                        echo $i' needs to stay in @world'
                else
                        echo $i' can be deselected'
                        echo $i >> /tmp/deselect
                fi
        fi
done < /var/lib/portage/world


Dann mach die Datei ausführbar.
Die Datei aufrufen und zwei weitere Zeilen ausführen.
Code:

./checkworldfile.sh
emerge -pv --depclean $(< /tmp/deselect)
emerge --ask --deselect $(< /tmp/deselect)

Voraussetzung ist, das qdepends installiert ist.

Das script ist natürlich auf eigene Gefahr :twisted:
Aber ich benutz das jetzt schon jahrelang und hatte noch nie Probleme.

Grüße
Ma
_________________
------------------------------------------------------------------
http://radio.garden/
Back to top
View user's profile Send private message
michael_w
Guru
Guru


Joined: 22 Feb 2006
Posts: 465
Location: 09xxx

PostPosted: Mon Dec 10, 2018 5:48 pm    Post subject: Re: paketmanagement ffmpeg Reply with quote

Marlo wrote:

Code:

./checkworldfile.sh
emerge -pv --depclean $(< /tmp/deselect)
emerge --ask --deselect $(< /tmp/deselect)

Voraussetzung ist, das qdepends installiert ist.


okay. So ganz verstehe ich den Sinn nicht. checkworldfile.sh habe ich ausgeführt. Ein emerge -pv --depclean $(< /tmp/deselect) ergibt (Liste weg gelassen):
Code:

>>> No packages selected for removal by depclean
Packages installed:   1213
Packages in world:    97
Packages in system:   43
Required packages:    1213
Number to remove:     0


Ein emerge --ask --deselect $(< /tmp/deselect):
Code:

ryzen ~ # emerge --ask --deselect $(< /tmp/deselect)
>>> Removing app-crypt/pinentry from "world" favorites file...
>>> Removing dev-libs/boost from "world" favorites file...
>>> Removing media-libs/freetype from "world" favorites file...
>>> Removing media-libs/libheif from "world" favorites file...
>>> Removing media-libs/mesa from "world" favorites file...
>>> Removing media-video/ffmpeg from "world" favorites file...
>>> Removing media-video/vlc from "world" favorites file...
>>> Removing net-fs/samba from "world" favorites file...
>>> Removing sys-apps/lm_sensors from "world" favorites file...
>>> Removing sys-apps/pciutils from "world" favorites file...
>>> Removing sys-auth/consolekit from "world" favorites file...
>>> Removing sys-block/parted from "world" favorites file...
>>> Removing sys-libs/glibc from "world" favorites file...
>>> Removing sys-power/upower from "world" favorites file...
>>> Removing virtual/ffmpeg from "world" favorites file...
>>> Removing virtual/jdk from "world" favorites file...
>>> Removing x11-base/xorg-server from "world" favorites file...
>>> Removing x11-drivers/xf86-input-evdev from "world" favorites file...
>>> Removing x11-libs/libdrm from "world" favorites file...
Would you like to remove these packages from your world favorites? [Yes/No]


Ich habe das jetzt erstmal mit N geantwortet, weil, wieso soll denn z. Bsp. glibc entfernt werden?
_________________
Linux ryzen 6.6.21-gentoo-dist #1 SMP PREEMPT_DYNAMIC Sun Mar 24 18:32:46 CET 2024 x86_64 AMD Ryzen 7 PRO 4750G with Radeon Graphics AuthenticAMD GNU/Linux
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4546
Location: Germany

PostPosted: Mon Dec 10, 2018 6:02 pm    Post subject: Reply with quote

Code:
grep KEYWORDS `equery w media-video/ffmpeg-4.1`
        KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
^ Sprich, ist testing, daher muss das ~amd64 Keyword irgendwo gesetzt worden sein.
Schau zb mal via
Code:
grep -r media-video/ffmpeg /etc/portage/


....................................
Und vom bereinigen mit irgendwelchen Scripts würde ich eher abraten. Das world file kann man doch auch fix mal mit dem Lieblings-Editor durchgehen :)
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4546
Location: Germany

PostPosted: Mon Dec 10, 2018 6:08 pm    Post subject: Reply with quote

michael_w wrote:
Ich habe das jetzt erstmal mit N geantwortet, weil, wieso soll denn z. Bsp. glibc entfernt werden?
glibc braucht es normalerweise nicht im world file, denn die Dep wird vom virtual/libc package welches im @system Set ist sichergestellt.

/edit: Kannst ja mal schauen was ein
Code:
emerge -pv --depclean glibc
dazu meint.
Back to top
View user's profile Send private message
Marlo
Veteran
Veteran


Joined: 26 Jul 2003
Posts: 1591

PostPosted: Mon Dec 10, 2018 6:23 pm    Post subject: Reply with quote

Josef.95 wrote:

....................................
Und vom bereinigen mit irgendwelchen Scripts würde ich eher abraten. Das world file kann man doch auch fix mal mit dem Lieblings-Editor durchgehen :)


Das ist richtig. Jedoch musst du genau wissen, welcher Eintrag auf Grund einer bewusten Installationsentscheidung hineingekommen ist. Und diese Dokumentation hat keiner.
Denn wenn die Dokumentation da wäre, hätte man den Parameter -1 gesetzt.
So wie ich die Liste gelesen habe sind dort nur Abhängigkeiten enthalten die über USE oder Sets sowiso installiert werden.

Sollte etwas nach dem Bereinigen der world Datei nicht stimmen gibt es wiederum revdep-rebuild, --nospinner und "emaint --fix world" um sein System zu pflegen.
_________________
------------------------------------------------------------------
http://radio.garden/
Back to top
View user's profile Send private message
Marlo
Veteran
Veteran


Joined: 26 Jul 2003
Posts: 1591

PostPosted: Mon Dec 10, 2018 6:26 pm    Post subject: Reply with quote

Josef.95 wrote:

/edit: Kannst ja mal schauen was ein
Code:
emerge -pv --depclean glibc
dazu meint.


Genau das ist falsch. Glibc soll um gottes Willen nicht deinstlliert werde. Du zerschießt das ganze System!

Nur das worldfile bereinigen, nicht die Programme deinstallieren.
_________________
------------------------------------------------------------------
http://radio.garden/
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4546
Location: Germany

PostPosted: Mon Dec 10, 2018 7:14 pm    Post subject: Reply with quote

Marlo wrote:
Josef.95 wrote:

/edit: Kannst ja mal schauen was ein
Code:
emerge -pv --depclean glibc
dazu meint.


Genau das ist falsch. Glibc soll um gottes Willen nicht deinstlliert werde. Du zerschießt das ganze System!

Nur das worldfile bereinigen, nicht die Programme deinstallieren.

Sorry nein, das ist nicht falsch, glibc wird man mit --depclean ja gar nicht deinstallieren können.
Es sollte nur veranschaulichen das glibc von virtual/libc abhängt, welches im @system Set ist.

Beispiel:
Code:
# emerge -pv --depclean glibc virtual/libc

Calculating dependencies... done!
  sys-libs/glibc-2.27-r6 pulled in by:
    games-util/steam-launcher-1.0.0.54-r4 requires >=sys-libs/glibc-2.15[multilib]
    media-video/makemkv-1.14.2 requires sys-libs/glibc
    sys-apps/iproute2-4.19.0-r1 requires >=sys-libs/glibc-2.7
    sys-devel/gcc-8.2.0-r5 requires >=sys-libs/glibc-2.13
    virtual/libc-1 requires sys-libs/glibc:2.2
    x11-drivers/nvidia-drivers-415.18 requires >=sys-libs/glibc-2.6.1

  virtual/libc-1 pulled in by:
    @system requires virtual/libc
    media-sound/pulseaudio-12.2 requires =virtual/libc-1, virtual/libc

>>> No packages selected for removal by depclean


..............................
Aber hey. ich denke wir sollten beim eigentlichen ffmpeg Thema bleiben :)
Back to top
View user's profile Send private message
michael_w
Guru
Guru


Joined: 22 Feb 2006
Posts: 465
Location: 09xxx

PostPosted: Mon Dec 10, 2018 7:15 pm    Post subject: Reply with quote

Josef.95 wrote:

Schau zb mal via
Code:
grep -r media-video/ffmpeg /etc/portage/



ich hab den Übeltäter gefunden, in /etc/portage/package.accept_keywords , nur verstehe ich nicht wieso ein "grep -iwr ffmepg /etc/portage/*" das nicht auch gefunden hat!?

Ich hoffe das ist es gewesen und ich kann jetzt auch wieder gegl und die anderen bauen. Danke schonmal an Euch beide.
_________________
Linux ryzen 6.6.21-gentoo-dist #1 SMP PREEMPT_DYNAMIC Sun Mar 24 18:32:46 CET 2024 x86_64 AMD Ryzen 7 PRO 4750G with Radeon Graphics AuthenticAMD GNU/Linux
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4546
Location: Germany

PostPosted: Mon Dec 10, 2018 7:34 pm    Post subject: Reply with quote

michael_w wrote:
nur verstehe ich nicht wieso ein "grep -iwr ffmepg /etc/portage/*" das nicht auch gefunden hat!?

Da hast n typo drin
ffmepg vs ffmpeg
Back to top
View user's profile Send private message
michael_w
Guru
Guru


Joined: 22 Feb 2006
Posts: 465
Location: 09xxx

PostPosted: Mon Dec 10, 2018 7:37 pm    Post subject: Reply with quote

Josef.95 wrote:
michael_w wrote:
nur verstehe ich nicht wieso ein "grep -iwr ffmepg /etc/portage/*" das nicht auch gefunden hat!?

Da hast n typo drin
ffmepg vs ffmpeg



arrghh, jetzt sehe ich es auch, *sehr ärgerlich* Danke nochmals.
_________________
Linux ryzen 6.6.21-gentoo-dist #1 SMP PREEMPT_DYNAMIC Sun Mar 24 18:32:46 CET 2024 x86_64 AMD Ryzen 7 PRO 4750G with Radeon Graphics AuthenticAMD GNU/Linux
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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