Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 938106 - dev-db/mariadb-10.11.8 is trying to download =dev-libs/libfmt-8.0.1
Summary: dev-db/mariadb-10.11.8 is trying to download =dev-libs/libfmt-8.0.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard: fixed in 10.11.9
Keywords:
Depends on:
Blocks: 906077
  Show dependency tree
 
Reported: 2024-08-17 18:43 UTC by Michał Górny
Modified: 2024-11-15 03:24 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dev-db:mariadb-10.11.8:20240817-183431.log (dev-db:mariadb-10.11.8:20240817-183431.log,180.51 KB, text/plain)
2024-08-17 18:43 UTC, Michał Górny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-08-17 18:43:33 UTC
Created attachment 900463 [details]
dev-db:mariadb-10.11.8:20240817-183431.log

FAILED: extra/libfmt/src/libfmt-stamp/libfmt-download /var/tmp/portage/dev-db/mariadb-10.11.8/work/mysql_build/extra/libfmt/src/libfmt-
stamp/libfmt-download 
cd /var/tmp/portage/dev-db/mariadb-10.11.8/work/mysql_build/extra/libfmt/src && /usr/bin/cmake -DCMAKE_MESSAGE_LOG_LEVEL=VERBOSE -P /va
r/tmp/portage/dev-db/mariadb-10.11.8/work/mysql_build/extra/libfmt/src/libfmt-stamp/download-libfmt.cmake && /usr/bin/cmake -DCMAKE_MES
SAGE_LOG_LEVEL=VERBOSE -P /var/tmp/portage/dev-db/mariadb-10.11.8/work/mysql_build/extra/libfmt/src/libfmt-stamp/verify-libfmt.cmake && /usr/bin/cmake -DCMAKE_MESSAGE_LOG_LEVEL=VERBOSE -P /var/tmp/portage/dev-db/mariadb-10.11.8/work/mysql_build/extra/libfmt/src/libfmt-stamp/extract-libfmt.cmake && /usr/bin/cmake -E touch /var/tmp/portage/dev-db/mariadb-10.11.8/work/mysql_build/extra/libfmt/src/libfmt-stamp/libfmt-download
-- Downloading...
   dst='/var/tmp/portage/dev-db/mariadb-10.11.8/work/mysql_build/extra/libfmt/src/8.0.1.zip'
   timeout='none'
   inactivity timeout='none'
-- Using src='https://github.com/fmtlib/fmt/archive/refs/tags/8.0.1.zip'
-- Retrying...
-- Using src='https://github.com/fmtlib/fmt/archive/refs/tags/8.0.1.zip'
-- Retry after 5 seconds (attempt #2) ...
-- Using src='https://github.com/fmtlib/fmt/archive/refs/tags/8.0.1.zip'
-- Retry after 5 seconds (attempt #3) ...
-- Using src='https://github.com/fmtlib/fmt/archive/refs/tags/8.0.1.zip'
-- Retry after 15 seconds (attempt #4) ...
-- Using src='https://github.com/fmtlib/fmt/archive/refs/tags/8.0.1.zip'
-- Retry after 60 seconds (attempt #5) ...
-- Using src='https://github.com/fmtlib/fmt/archive/refs/tags/8.0.1.zip'
CMake Error at libfmt-stamp/download-libfmt.cmake:163 (message):
  Each download failed!

    error: downloading 'https://github.com/fmtlib/fmt/archive/refs/tags/8.0.1.zip' failed
[…]


This looks like something that seriously mustn't be allowed to happen.
Comment 1 Larry the Git Cow gentoo-dev 2024-11-13 12:02:33 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f751a23c41fdae098d5cef8167be54cd8c679fe

commit 2f751a23c41fdae098d5cef8167be54cd8c679fe
Author:     Petr Vaněk <arkamar@gentoo.org>
AuthorDate: 2024-11-13 10:59:04 +0000
Commit:     Petr Vaněk <arkamar@gentoo.org>
CommitDate: 2024-11-13 12:01:56 +0000

    dev-db/mariadb: restrict <libfmt-10 for 10.11.5
    
    MariaDB-10.11.5 fails to build with >=libfmt-10.
    
    Bug: https://bugs.gentoo.org/935299
    Bug: https://bugs.gentoo.org/938106
    Signed-off-by: Petr Vaněk <arkamar@gentoo.org>

 dev-db/mariadb/{mariadb-10.11.5.ebuild => mariadb-10.11.5-r1.ebuild} | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Comment 2 Petr Vaněk gentoo-dev 2024-11-13 12:10:09 UTC
The issue was fixed upstream in version 10.11.9. 10.11.8 was dropped from ::gentoo in commit https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c1168cf1fb21b7f363558293b03697f43acd945.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-13 21:35:11 UTC
(In reply to Petr Vaněk from comment #2)
> The issue was fixed upstream in version 10.11.9. 10.11.8 was dropped from
> ::gentoo in commit
> https://gitweb.gentoo.org/repo/gentoo.git/commit/
> ?id=6c1168cf1fb21b7f363558293b03697f43acd945.

To clarify: it doesn't attempt to fetch it now either? We've neutered that somehow? I mean, even if somehow the wrong libfmt was installed or whatever, I don't want it to try do this for deps in future either.
Comment 4 Larry the Git Cow gentoo-dev 2024-11-14 12:35:16 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2062b02974cb981880487e72aa05e4e0086b636a

commit 2062b02974cb981880487e72aa05e4e0086b636a
Author:     Petr Vaněk <arkamar@gentoo.org>
AuthorDate: 2024-11-14 10:42:14 +0000
Commit:     Petr Vaněk <arkamar@gentoo.org>
CommitDate: 2024-11-14 12:34:30 +0000

    dev-db/mariadb: enforce system libfmt
    
    By default, MariaDB attempts to download libfmt from the internet if it
    cannot find a suitable version on the system. Using -WITH_LIBFMT=system
    configuration option changes this behavior, making the config phase to
    fail if the libfmt check fails, avoiding unexpected downloads.
    
    Bug: https://bugs.gentoo.org/938106
    Signed-off-by: Petr Vaněk <arkamar@gentoo.org>

 dev-db/mariadb/mariadb-10.11.10.ebuild   | 1 +
 dev-db/mariadb/mariadb-10.11.5-r1.ebuild | 1 +
 dev-db/mariadb/mariadb-11.4.4.ebuild     | 1 +
 3 files changed, 3 insertions(+)
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-15 03:24:51 UTC
Thanks!