Opened 3 weeks ago

Closed 2 days ago

#5963 closed enhancement (fixed)

Consider adding mpdecimal

Reported by: Bruce Dubbs Owned by: lfs-book
Priority: normal Milestone: 13.1
Component: Book Version: git
Severity: normal Keywords:
Cc:

Description

From lfs-dev Chase Knowlden:

"mpdecimal going to be required for the upcoming Python 3.16 release. Should we add it early so we don't have to add it until 2027? Arch and Gentoo already use and install mpdecimal before Python is even built."

See other comments at https://wiki.linuxfromscratch.org/blfs/ticket/23488

Change History (4)

comment:1 by Bruce Dubbs, 7 days ago

This package has one issue. When running make check it does:

Getting official tests ... 

2026-07-10 00:15:18 URL:https://speleotrove.com/decimal/dectest.zip [791733/791733] -> "dectest.zip" [1]

Actually it raises two issues.

  1. We do not want to download files in chroot.
    • The script that downloads the file uses wget and unzip.
  2. We do not have unzip or wget in LFS - only in BLFS.

The script says:

In order to run the tests,
download http://speleotrove.com/decimal/dectest.zip and extract the
archive into tests/testdata.

The easiest way to handle this is to explain the issue in a note and not try to run the tests.

Doing something else is a bit more effort. I suppose we can get dectest.zip (774K) and repackage it as a tarball and host it on anduin. We already do that for sqlite docs and systemd man pages. A problem with that is that the zip file is not versioned and we do not have a way to see if it is updated other than to periodically download it and compare md5sums.

Comments?

comment:2 by Xi Ruoyao, 7 days ago

I'd simply skip the test. The Python test suite should exercise the function of mpdecimal anyway.

comment:3 by Bruce Dubbs, 6 days ago

Using 'make check_local' works without the download.

./configure --prefix=/usr \
                --disable-static \
                --docodir=/usr/share/doc/mpdecimal-4.0.1 &&

    make             &&
    make check_local &&
    make install    

md5sum : 3d4412579b1edc1047efab151889cca9  /usr/src/mpdecimal/mpdecimal-4.0.1.tar.gz
312 /usr/src/mpdecimal/mpdecimal-4.0.1.tar.gz SIZE (.304 MB)
4928 kilobytes BUILD SIZE (4.812 MB)
SBU=.144

comment:4 by Bruce Dubbs, 2 days ago

Resolution: fixed
Status: newclosed

Fixed at commit 8cccf6a12c.

    Add mpdecimal-4.0.1.
    Update to tzdata-2026c.
    Update to setuptools-83.0.0.
    Update to pkgconf-3.0.2.
    Update to meson-1.11.2.
    Update to libffi-3.7.1.
    Update to linux-7.1.3.
    Update to gawk-5.4.1.
    Update to findutils-4.11.0.
Note: See TracTickets for help on using tickets.