• [gentoo-user] librsvg fails to install

    From Philip Webb@21:1/5 to All on Sun Nov 17 07:50:01 2024
    /virtual/rust has been masked & I've been updating pkgs which require it.
    One of them is /gnome-base/librsvg , but when I try to update it, I get :

    warning: `librsvg` (lib) generated 2 warnings
    Running `/opt/rust-bin-1.81.0/bin/rustc --crate-name librsvg_c --edition=2021 librsvg-c/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type staticlib --crate-type rlib --emit=dep-info,link -C opt-
    level=3 -C embed-bitcode=no --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values())' -C metadata=018372775a875011 -C extra-filename=-018372775a875011 --out-dir /var/tmp/portage/portage/gnome-base/librsvg-2.57.3-r2/work/librsvg-2.57.3-abi_x86_64.
    amd64/target/release/deps -C strip=debuginfo -L dependency=/var/tmp/portage/portage/gnome-base/librsvg-2.57.3-r2/work/librsvg-2.57.3-abi_x86_64.amd64/target/release/deps --extern cairo=/var/tmp/portage/portage/gnome-base/librsvg-2.57.3-r2/work/librsvg-2.
    57.3-abi_x86_64.amd64/target/release/deps/libcairo-74c8e98220e44ce1.rlib --extern cast=/var/tmp/portage/portage/gnome-base/librsvg-2.57.3-r2/work/librsvg-2.57.3-abi_x86_64.amd64/target/release/deps/libcast-e45a40deb4d6a930.rlib --extern float_cmp=/var/
    tmp/portage/portage/gnome-base/librsvg-2.57.3-r2/work/librsvg-2.57.3-abi_x86_64.amd64/target/release/deps/libfloat_cmp-f9ce5f0862003ced.rlib --extern gdk_pixbuf=/var/tmp/portage/portage/gnome-base/librsvg-2.57.3-r2/work/librsvg-2.57.3-abi_x86_64.amd64/
    target/release/deps/libgdk_pixbuf-850fc7433fb9b0a2.rlib --extern gio=/var/tmp/portage/portage/gnome-base/librsvg-2.57.3-r2/work/librsvg-2.57.3-abi_x86_64.amd64/target/release/deps/libgio-9e0d5c32aa35ed9d.rlib --extern glib=/var/tmp/portage/portage/gnome-
    base/librsvg-2.57.3-r2/work/librsvg-2.57.3-abi_x86_64.amd64/target/release/deps/libglib-0f57014eab0d5caf.rlib --extern libc=/var/tmp/portage/portage/gnome-base/librsvg-2.57.3-r2/work/librsvg-2.57.3-abi_x86_64.amd64/target/release/deps/liblibc-
    20f3a42f5c22353b.rlib --extern rsvg=/var/tmp/portage/portage/gnome-base/librsvg-2.57.3-r2/work/librsvg-2.57.3-abi_x86_64.amd64/target/release/deps/librsvg-57cca2f755a9860c.rlib --extern once_cell=/var/tmp/portage/portage/gnome-base/librsvg-2.57.3-r2/work/
    librsvg-2.57.3-abi_x86_64.amd64/target/release/deps/libonce_cell-e2f94c3c3b8a4a6d.rlib --extern url=/var/tmp/portage/portage/gnome-base/librsvg-2.57.3-r2/work/librsvg-2.57.3-abi_x86_64.amd64/target/release/deps/liburl-b90525cf40d14875.rlib`
    Finished `release` profile [optimized] target(s) in 37.77s
    libtool: link: x86_64-pc-linux-gnu-ar cr .libs/librsvg_c_api.a .libs/_rsvg_dummy.o
    libtool: link: x86_64-pc-linux-gnu-ranlib .libs/librsvg_c_api.a
    libtool: link: ( cd ".libs" && rm -f "librsvg_c_api.la" && ln -s "../librsvg_c_api.la" "librsvg_c_api.la" )
    make[2]: Leaving directory '/var/tmp/portage/portage/gnome-base/librsvg-2.57.3-r2/work/librsvg-2.57.3-abi_x86_64.amd64'
    make[1]: *** [Makefile:1159: all-recursive] Error 1
    make[1]: Leaving directory '/var/tmp/portage/portage/gnome-base/librsvg-2.57.3-r2/work/librsvg-2.57.3-abi_x86_64.amd64'
    make: *** [Makefile:794: all] Error 2
    * ERROR: gnome-base/librsvg-2.57.3-r2::gentoo failed (compile phase):
    * emake failed
    *
    * If you need support, post the output of `emerge --info '=gnome-base/librsvg-2.57.3-r2::gentoo'`,
    * the complete build log and the output of `emerge -pqv '=gnome-base/librsvg-2.57.3-r2::gentoo'`.
    * The complete build log is located at '/var/log/emerge-logs/gnome-base:librsvg-2.57.3-r2:20241117-062927.log'.
    * For convenience, a symlink to the build log is located at '/var/tmp/portage/portage/gnome-base/librsvg-2.57.3-r2/temp/build.log'.
    * The ebuild environment file is located at '/var/tmp/portage/portage/gnome-base/librsvg-2.57.3-r2/temp/environment'.
    * Working directory: '/var/tmp/portage/portage/gnome-base/librsvg-2.57.3-r2/work/librsvg-2.57.3-abi_x86_64.amd64'
    * S: '/var/tmp/portage/portage/gnome-base/librsvg-2.57.3-r2/work/librsvg-2.57.3'
    /var/tmp/portage/portage/gnome-base/librsvg-2.57.3-r2/temp/environment: line 117: warning: setlocale: LC_TIME: cannot change locale (en_SE.UTF-8): No such file or directory

    Failed to emerge gnome-base/librsvg-2.57.3-r2, Log file:
    '/var/log/emerge-logs/gnome-base:librsvg-2.57.3-r2:20241117-062927.log'

    --- end of error msg ---

    I've searched the bug list for 'librsvg', but nothing seems relevant.
    Can anyone suggest a solution ? -- I can post more info, if needed.

    --
    ========================,,============================================
    SUPPORT ___________//___, Philip Webb
    ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto
    TRANSIT `-O----------O---' purslowatcadotinterdotnet

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Eli Schwartz@21:1/5 to Philip Webb on Sun Nov 17 08:10:01 2024
    This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------8a49q4AWmB6zBGCJNaJe7F77
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: quoted-printable

    On 11/17/24 1:43 AM, Philip Webb wrote:
    I've searched the bug list for 'librsvg', but nothing seems relevant.
    Can anyone suggest a solution ? -- I can post more info, if needed.



    Portage told you which info to post when asking for help. Please include
    this information (and in particular note that it says to post the
    *complete* log):


    * If you need support, post the output of `emerge --info '=gnome-base/librsvg-2.57.3-r2::gentoo'`,
    * the complete build log and the output of `emerge -pqv '=gnome-base/librsvg-2.57.3-r2::gentoo'`.
    * The complete build log is located at '/var/log/emerge-logs/gnome-base:librsvg-2.57.3-r2:20241117-062927.log'.
    * For convenience, a symlink to the build log is located at '/var/tmp/portage/portage/gnome-base/librsvg-2.57.3-r2/temp/build.log'.



    --
    Eli Schwartz

    --------------8a49q4AWmB6zBGCJNaJe7F77--

    -----BEGIN PGP SIGNATURE-----

    wnsEABYIACMWIQTnFNnmK0TPZHnXm3qEp9ErcA0vVwUCZzmUuwUDAAAAAAAKCRCEp9ErcA0vV0EP AP9ci+fn9SLsx+PirKT01SasVchE38WcgrzEuOQ50IlxswD9FARkRo17I658RRl1wmWdp5VYE2Ue +e2JkaXDw4Y7dQw=
    =3tcW
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Eli Schwartz@21:1/5 to Philip Webb on Sun Nov 17 08:50:01 2024
    This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------kth06ghNuqUZ08zQ0usgTuL0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: quoted-printable

    On 11/17/24 2:24 AM, Philip Webb wrote:
    241117 Eli Schwartz wrote:
    Portage told you which info to post when asking for help.
    Please include this information
    and in particular note that it says to post the *complete* log:
    * If you need support, post the output of `emerge --info '=gnome-base/librsvg-2.57.3-r2::gentoo'`,
    * the complete build log and the output of `emerge -pqv '=gnome-base/librsvg-2.57.3-r2::gentoo'`.
    * The complete build log is located at '/var/log/emerge-logs/gnome-base:librsvg-2.57.3-r2:20241117-062927.log'.
    * For convenience, a symlink to the build log is located at '/var/tmp/portage/portage/gnome-base/librsvg-2.57.3-r2/temp/build.log'.

    Thanks for your very prompt response. Here is what seems to be required :


    Thanks. I tracked down the key part:


    /var/log/emerge-logs/gnome-base:librsvg-2.57.3-r2:20241117-062927.log :



    rst2man /var/tmp/portage/portage/gnome-base/librsvg-2.57.3-r2/work/librsvg-2.57.3/rsvg-convert.rst rsvg-convert.1
    [...]
    Traceback (most recent call last):
    File "/usr/lib/python-exec/python3.12/rst2man", line 8, in <module>
    sys.exit(rst2man())
    ^^^^^^^^^
    File "/usr/lib/python3.12/site-packages/docutils/core.py", line 760, in rst2man
    rst2something('manpage', 'Unix manual (troff)', 'user/manpage.html')
    File "/usr/lib/python3.12/site-packages/docutils/core.py", line 739, in rst2something
    locale.setlocale(locale.LC_ALL, '')
    File "/usr/lib/python3.12/locale.py", line 615, in setlocale
    return _setlocale(category, locale)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    locale.Error: unsupported locale setting
    [...]
    make[2]: *** [Makefile:1657: rsvg-convert.1] Error 1
    make[2]: *** Waiting for unfinished jobs....



    I believe that's all that Portage asks for : let me know, if not.
    Any suggested solutions are very welcome.

    You may also notice that at a couple points the logs mentioned something interesting:

    warning: setlocale: LC_TIME: cannot change locale (en_SE.UTF-8): No such file or directory


    Which implies that somewhere you have set a locale that isn't valid or functional. You also have LANG="en_US.UTF-8", but at least one locale
    override exists somewhere -- maybe in your bashrc or profile.

    Having a broken locale can cause programs to randomly fail if they're
    unable to handle such failures. That appears to be the case here.


    --
    Eli Schwartz

    --------------kth06ghNuqUZ08zQ0usgTuL0--

    -----BEGIN PGP SIGNATURE-----

    wnsEABYIACMWIQTnFNnmK0TPZHnXm3qEp9ErcA0vVwUCZzmflgUDAAAAAAAKCRCEp9ErcA0vV1NK AQCTilbdnwPfqw/RJsPMviMtoPeDx+7kE9gUnRXz1F9XRQD7B0zslF0Ockb5tqKV9eNaIyaQWvLJ +arr6dPe1t4D2gk=
    =3apS
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)