Results 1 to 10 of 10

Thread: Remove packages dependency question

  1. #1
    wally345 NNTP User

    Question Remove packages dependency question

    i want to remove MESA package using Yast on Opensuse13.1, but Yast requires t
    remove about 90 other package including nearly entire Qt5.
    Same with libdrm_nouveau2 package, this cause to remove even more other packages.

    Reason is, want to fix an annoying error message i get on every run of qt-creator:

    libGL error: failed to load driver: swrast

    How to remove e.g. MESA without removing half of the system ?
    thank you

    OpenSuse 13.1
    qtcreator 3.0
    qt 5.2.1
    newest nvidia packages from nvidia repo

  2. #2
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Remove packages dependency question

    On 2014-04-23 08:56, wally345 wrote:
    >
    > i want to remove -MESA -package using Yast on Opensuse13.1, but Yast
    > requires t
    > remove about 90 other package including nearly entire Qt5.


    Assuming that you can really remove that package without breaking the
    system, try "rpm" with "--nodeps"

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 13.1 x86_64 "Bottle" at Telcontar)

  3. #3
    wally345 NNTP User

    Default Re: Remove packages dependency question

    sorry for the mistake in text above , but i think question is clear anyway.
    (but Yastrequires t re move )


    I met this problem already in the past with other packages.
    e.g.
    Starting from a fresh OpenSuse installation and adding the package X which requires, lets say Qt-libs.
    If the Qt-libs are already installed, the dependency check will be ok and the new package X can be installed.
    But, when i now want to remove only this recently added package X, my Yast setup always take all dependency to the removelist.
    How to make Yast only remove this single package X and not all packages it depends on ?

  4. #4

    Default Re: Remove packages dependency question

    Quote Originally Posted by wally345 View Post
    But, when i now want to remove only this recently added package X, my Yast setup always take all dependency to the removelist.
    How to make Yast only remove this single package X and not all packages it depends on ?
    No, YaST normally DOES NOT remove all package the package X depends on, but it removes all packages that depend on X of course.
    But there is indeed an option for that, it's called "Cleanup when removing packages". Make sure that this is _not_ enabled:




    And no, you cannot uninstall Mesa, at least not if you still want to have graphics.

    Why do you think the error message about failing to load the swrast driver goes away if you uninstall/remove things and break your system even more?

    Do you have any specific problem, or is just the message annoying you?
    I suppose the message is caused by the fact that the nvidia driver replaces system libraries (Mesa's libGL f.e.) with its own versions, and so effectively breaks Mesa.
    Also the libqt5 packages apparently have more debug output enabled.

    You could try with libqt5 5.1.1 included in openSUSE 13.1, or 5.3.0beta from the KDE:Qt5 repo (but I guess this won't have less debug output).

    Where did you actually install qtcreator from?
    openSUSE 13.1 comes with version 2.8.1 and the Qt5 repos contain 3.1.0 resp. 3.0.1... (the package is called "libqt5-creator")

    You might also try to use the Qt4 version instead (package qt-creator).
    Last edited by wolfi323; 23-Apr-2014 at 03:19.

  5. #5
    wally345 NNTP User

    Default Re: Remove packages dependency question

    Why do you think the error message about failing to load the swrast driver goes away if you uninstall/remove things and break your system even more?
    I read some docs on the web and i did not understand whats going on with MESA, libGL and swrast
    when installing NVIDIA drivers. Also "nouveau: disturbs was reported there, but its blacklisted here.

    Do you have any specific problem, or is just the message annoying you?
    Just annoying. I get this message only when build against Qt5.2.1 , not on Qt4.8 and only in qtcreator
    IDE environment. Creating a fresh Qt GUI Application without any added code the message appears
    in "Application Output" on bottom.

    Code:
    libGL error: failed to load driver: swrast
    libGL error: Try again with LIBGL_DEBUG=verbose for more details.
    Running this application outside the creator IDE gives no error at all,
    even with "LIBGL_DEBUG=verbose "
    I learned to accept warnings but not accept error message.
    Also the libqt5 packages apparently have more debug output enabled.
    So, everybody using Qt 5.2.1 , creator 3.0.1 and Nvidia driver gets this error message unless its
    qt is built with less debug options ?

    Where did you actually install qtcreator from?
    Code:
    http://download.opensuse.org/repositories/KDE:/Qt52/openSUSE_13.1/
    You might also try to use the Qt4 version instead (package qt-creator).
    Yes, i had 4.8 before, without any problem.

    results (?):
    The error message appears only because some debug options are still set in the 5.2.1 version ?
    I should not care about this error and when i want to use libGL stuff in my application it will build
    and run as expected ?
    I can not get rid of this error message unless i build the qt libs with modified debug settings ?

  6. #6

    Default Re: Remove packages dependency question

    Quote Originally Posted by wally345 View Post
    The error message appears only because some debug options are still set in the 5.2.1 version ?
    I should not care about this error and when i want to use libGL stuff in my application it will build
    and run as expected ?
    Well, the error message appears because the swrast (Mesa's software renderer) cannot be loaded in the first place. I think it would be suppressed normally though.

    But when you run an application using OpenGL, it should use nvidia's implementation anyway (with hardware acceleration), and _not_ the software renderer.
    That's the whole point in installing the nvidia driver, isn't it?

    I can not get rid of this error message unless i build the qt libs with modified debug settings ?
    I think so, but it might also be related to the fact that qt5 just makes more use of OpenGL (QML especially).
    I haven't really verified, I have to admit. I don't have an nvidia card here.

    I think the only way to get rid of that error message is to uninstall the nvidia driver and use nouveau instead. But I guess that's not really what you want to do.

  7. #7
    wally345 NNTP User

    Default Re: Remove packages dependency question

    Thank You

  8. #8
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,317

    Default Re: Remove packages dependency question

    On Wed, 23 Apr 2014 12:26:02 +0000, wally345 wrote:

    > Thank You


    Sometimes an error isn't really an error - don't let messages like this
    "scare" you in to taking actions that you don't really need to.

    Jim
    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

  9. #9
    wally345 NNTP User

    Default Re: Remove packages dependency question

    Sometimes an error isn't really an error
    Yes, but how to decide when is "Sometimes" and when not

  10. #10
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,317

    Default Re: Remove packages dependency question

    On Wed, 23 Apr 2014 18:06:01 +0000, wally345 wrote:

    >> Sometimes an error isn't really an error

    >
    > Yes, but how to decide when is "Sometimes" and when not


    Generally, best practice is to ask about what you're seeing rather than
    about how to take an action that's assumed (perhaps incorrectly) to be
    the proper course of action.

    Jim
    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •