Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 955016 - dev-texlive/texlive-basic - pkg_postinst calls 'cmp' from sys-apps/diffutils
Summary: dev-texlive/texlive-basic - pkg_postinst calls 'cmp' from sys-apps/diffutils
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-28 07:28 UTC by Petr Cerny [:hrosik]
Modified: 2025-04-28 19:53 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Cerny [:hrosik] 2025-04-28 07:28:35 UTC
dev-texlive/texlive-basic's install script is using cmp (from sys-apps/diffutils) which in some cases may not be available (in my case it was installing prebuilt binary packages). I would suggest there should be a run-time dependency (the script directly using cmp - /usr/sbin/texmf-update - is actually installed with the package).

-----

>>> Installing (326 of 355) dev-texlive/texlive-basic-2024_p72890::gentoo
Configuring TeXLive ... 
Generating /etc/texmf/web2c/texmf.cnf from /etc/texmf/texmf.d ... 
Generating /etc/texmf/web2c/fmtutil.cnf from /etc/texmf/fmtutil.d ... 
/usr/sbin/texmf-update: line 67: cmp: command not found
Generating /etc/texmf/web2c/updmap.cfg from /etc/texmf/updmap.d ... 
/usr/sbin/texmf-update: line 83: cmp: command not found
Generating ls-R files
Generating language.dat file
/usr/sbin/texmf-update: line 108: cmp: command not found
Generating language.def file
/usr/sbin/texmf-update: line 129: cmp: command not found
Generating language.dat.lua file
/usr/sbin/texmf-update: line 146: cmp: command not found
Generating format files ... 
Generating font maps...

Use 'texconfig font ro'(rw) to disable (enable) font generation for users

 * Regenerating TexLive package database ... 
/portage/tmp.workstation/tmpfs/portage/dev-texlive/texlive-basic-2024_p72890/temp/environment: line 470: cmp: command not found
 * comparing new and existing tlpdb failed (exit status: 127)
 * ERROR: dev-texlive/texlive-basic-2024_p72890::gentoo failed (postinst phase):
 *   (no error message)
 *
 * Call stack:
 *
 *   environment, line 312:  Called texlive-module_pkg_postinst
 *   environment, line 566:  Called texlive-common_update_tlpdb
 *   environment, line 482:  Called die 
 * The specific snippet of code:
 *
 *
 * If you need support, post the output of `emerge --info '=dev-texlive/texlive-basic-2024_p72890::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-texlive/texlive-basic-2024_p72890::gentoo'`.
 * The complete build log is located at '/portage/tmp.workstation/tmpfs/portage/dev-texlive/texlive-basic-2024_p72890/temp/build.log'.
 * The ebuild environment file is located at '/portage/tmp.workstation/tmpfs/portage/dev-texlive/texlive-basic-2024_p72890/temp/environment'.
 * Working directory: '/portage/tmp.workstation/tmpfs/portage/dev-texlive/texlive-basic-2024_p72890/empty'
 * S: '/portage/tmp.workstation/tmpfs/portage/dev-texlive/texlive-basic-2024_p72890/work/texlive-basic-2024_p72890'
 * FAILED postinst: 1
Comment 1 Mike Gilbert gentoo-dev 2025-04-28 19:47:00 UTC
If the 'cmp' command is called from a script in pkg_postinst, that would require an entry in IDEPEND to ensure cmp is installed in /.

Regardless, sys-apps/diffutils should be installed on all systems via the @system set (defined in profiles/base/packages).

Are you using a custom profile which does not include this? Please provide emerge --info.