Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 676246 - net-misc/wget-1.20.1 should depend on sys-apps/texinfo - sed: can't read .../image/usr/share/man/man1/wget.1: No such file or directory
Summary: net-misc/wget-1.20.1 should depend on sys-apps/texinfo - sed: can't read .../...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-25 19:18 UTC by eroen
Modified: 2022-01-29 23:37 UTC (History)
3 users (show)

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


Attachments
patch to fix man page ebuild bug (wget-1.21.2.patch,279 bytes, patch)
2022-01-29 08:36 UTC, James Georgas
Details | Diff
failed build log (net-misc:wget-1.21.2:20220129-074232.log,129.40 KB, text/plain)
2022-01-29 08:36 UTC, James Georgas
Details
emerge --info (emerge.info,4.28 KB, text/plain)
2022-01-29 08:38 UTC, James Georgas
Details
ebuild environment (environment,104.28 KB, text/plain)
2022-01-29 08:38 UTC, James Georgas
Details
package.mask (package.mask,21 bytes, text/plain)
2022-01-29 08:43 UTC, James Georgas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description eroen 2019-01-25 19:18:01 UTC
If sys-apps/texinfo is not installed, the wget build system skips generating (and installing) the man page. The ebuild then fails during src_install() when it attempts to edit the generated and installed man page with sed.


checking for makeinfo... ${SHELL} /var/tmp/portage/net-misc/wget-1.20.1/work/wget-1.20.1/build-aux/missing makeinfo
...
make[1]: Leaving directory '/var/tmp/portage/net-misc/wget-1.20.1/work/wget-1.20.1'
sed: can't read /var/tmp/portage/net-misc/wget-1.20.1/image/usr/share/man/man1/wget.1: No such file or directory
 * ERROR: net-misc/wget-1.20.1::gentoo failed (install phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 124:  Called src_install
 *   environment, line 3248:  Called die
 * The specific snippet of code:
 *       sed -i -e "s:/usr/local/etc:${EPREFIX}/etc:g" "${ED%/}"/etc/wgetrc "${ED%/}"/usr/share/man/man1/wget.1 "${ED%/}"/usr/share/info/wget.info || die
Comment 1 Martin Mokrejš 2019-12-17 21:50:56 UTC
Hmm, even with texinfo installed a bit newer version dies with similar error:

make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/tmp/portage/net-misc/wget-1.20.3-r1/work/wget-1.20.3'
make[2]: Leaving directory '/tmp/portage/net-misc/wget-1.20.3-r1/work/wget-1.20.3'
make[1]: Leaving directory '/tmp/portage/net-misc/wget-1.20.3-r1/work/wget-1.20.3'
sed: can't read /tmp/portage/net-misc/wget-1.20.3-r1/image/usr/share/man/man1/wget.1: No such file or directory
 * ERROR: net-misc/wget-1.20.3-r1::gentoo failed (install phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 124:  Called src_install
 *   environment, line 3293:  Called die
 * The specific snippet of code:
 *       sed -i -e "s:/usr/local/etc:${EPREFIX}/etc:g" "${ED%/}"/etc/wgetrc "${ED%/}"/usr/share/man/man1/wget.1 "${ED%/}"/usr/share/info/wget.info || die
 * 


Indeed, there is /tmp/portage/net-misc/wget-1.20.3-r1/image/usr/share/man/ at all/.
Comment 2 Matt Turner gentoo-dev 2020-03-28 20:52:25 UTC
After uninstalling texinfo, I can't see that wget's build calls makeinfo. With and without texinfo installed wget installs the exact same set of files for me.
Comment 3 James Georgas 2022-01-29 08:33:54 UTC
I'm getting this error as well. The package appears to be trying to use perl
without BDEPENDing on it. See attached patches, and info below.

Two-Spear / # cat /etc/portage/make.conf
CFLAGS="-O2 -pipe -march=native"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j -l15"
CHOST="x86_64-pc-linux-gnu"
EMERGE_DEFAULT_OPTS="-j -l15"
FEATURES="binpkg-multi-instance userpriv usersandbox usersync"
USE="-* split-usr"
CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3"
PORTAGE_LOGDIR=/var/tmp/log

Two-Spear / # cat /etc/portage/package.use
=sys-apps/portage-3.0.28-r1 python_targets_python3_9
=dev-util/meson-0.59.4 python_targets_python3_9
=dev-util/meson-format-array-0 python_targets_python3_9

Two-Spear /var/db/pkg # find . -name *.ebuild | wc -l
115

Two-Spear /var/db/pkg # find . -name *.ebuild
./acct-group/sgx-0/sgx-0.ebuild
./acct-group/man-0-r1/man-0-r1.ebuild
./acct-group/cdrom-0-r1/cdrom-0-r1.ebuild
./acct-group/video-0-r1/video-0-r1.ebuild
./acct-group/disk-0-r1/disk-0-r1.ebuild
./acct-group/audio-0-r1/audio-0-r1.ebuild
./acct-group/render-0-r1/render-0-r1.ebuild
./acct-group/dialout-0-r1/dialout-0-r1.ebuild
./acct-group/sshd-0-r1/sshd-0-r1.ebuild
./acct-group/lp-0-r1/lp-0-r1.ebuild
./acct-group/portage-0/portage-0.ebuild
./acct-group/kmem-0-r1/kmem-0-r1.ebuild
./acct-group/input-0-r1/input-0-r1.ebuild
./acct-group/kvm-0-r1/kvm-0-r1.ebuild
./acct-group/tape-0-r1/tape-0-r1.ebuild
./acct-group/tty-0-r1/tty-0-r1.ebuild
./dev-lang/python-3.9.9-r1/python-3.9.9-r1.ebuild
./dev-lang/python-exec-2.4.8/python-exec-2.4.8.ebuild
./dev-lang/python-exec-conf-2.4.6/python-exec-conf-2.4.6.ebuild
./net-libs/libmnl-1.0.4/libmnl-1.0.4.ebuild
./sys-libs/glibc-2.33-r7/glibc-2.33-r7.ebuild
./sys-libs/ncurses-6.2_p20210619/ncurses-6.2_p20210619.ebuild
./sys-libs/readline-8.1_p1-r1/readline-8.1_p1-r1.ebuild
./sys-libs/zlib-1.2.11-r4/zlib-1.2.11-r4.ebuild
./sys-libs/gdbm-1.22/gdbm-1.22.ebuild
./sys-libs/e2fsprogs-libs-1.46.4-r1/e2fsprogs-libs-1.46.4-r1.ebuild
./sys-libs/libxcrypt-4.4.25-r1/libxcrypt-4.4.25-r1.ebuild
./sys-libs/libcap-2.62/libcap-2.62.ebuild
./sys-libs/timezone-data-2021a-r1/timezone-data-2021a-r1.ebuild
./net-dns/libidn2-2.3.2/libidn2-2.3.2.ebuild
./app-arch/gzip-1.11/gzip-1.11.ebuild
./app-arch/tar-1.34/tar-1.34.ebuild
./app-arch/bzip2-1.0.8-r1/bzip2-1.0.8-r1.ebuild
./app-arch/xz-utils-5.2.5-r1/xz-utils-5.2.5-r1.ebuild
./app-arch/zstd-1.5.0/zstd-1.5.0.ebuild
./sys-kernel/linux-headers-5.15-r3/linux-headers-5.15-r3.ebuild
./sys-apps/sed-4.8/sed-4.8.ebuild
./sys-apps/util-linux-2.37.2-r1/util-linux-2.37.2-r1.ebuild
./sys-apps/less-590/less-590.ebuild
./sys-apps/systemd-tmpfiles-249.9/systemd-tmpfiles-249.9.ebuild
./sys-apps/file-5.41/file-5.41.ebuild
./sys-apps/shadow-4.9-r4/shadow-4.9-r4.ebuild
./sys-apps/sandbox-2.25/sandbox-2.25.ebuild
./sys-apps/coreutils-8.32-r1/coreutils-8.32-r1.ebuild
./sys-apps/debianutils-5.5/debianutils-5.5.ebuild
./sys-apps/grep-3.7/grep-3.7.ebuild
./sys-apps/openrc-0.44.10/openrc-0.44.10.ebuild
./sys-apps/iproute2-5.15.0/iproute2-5.15.0.ebuild
./sys-apps/gentoo-functions-0.14/gentoo-functions-0.14.ebuild
./sys-apps/attr-2.5.1/attr-2.5.1.ebuild
./sys-apps/acl-2.3.1/acl-2.3.1.ebuild
./sys-apps/which-2.21/which-2.21.ebuild
./sys-apps/diffutils-3.8/diffutils-3.8.ebuild
./sys-apps/sysvinit-2.99-r1/sysvinit-2.99-r1.ebuild
./sys-apps/groff-1.22.4/groff-1.22.4.ebuild
./sys-apps/man-pages-5.12-r2/man-pages-5.12-r2.ebuild
./sys-apps/man-db-2.9.4-r1/man-db-2.9.4-r1.ebuild
./sys-apps/man-pages-posix-2017a/man-pages-posix-2017a.ebuild
./sys-apps/net-tools-2.10/net-tools-2.10.ebuild
./sys-apps/kbd-2.4.0/kbd-2.4.0.ebuild
./sys-apps/portage-3.0.28-r1/portage-3.0.28-r1.ebuild
./sys-apps/baselayout-2.7-r3/baselayout-2.7-r3.ebuild
./sys-apps/findutils-4.8.0-r1/findutils-4.8.0-r1.ebuild
./sys-apps/gawk-5.1.0/gawk-5.1.0.ebuild
./sys-apps/kmod-29/kmod-29.ebuild
./dev-libs/libunistring-0.9.10-r1/libunistring-0.9.10-r1.ebuild
./dev-libs/gmp-6.2.1-r2/gmp-6.2.1-r2.ebuild
./dev-libs/libpipeline-1.5.4/libpipeline-1.5.4.ebuild
./dev-libs/mpc-1.2.1/mpc-1.2.1.ebuild
./dev-libs/popt-1.18/popt-1.18.ebuild
./dev-libs/openssl-1.1.1l-r1/openssl-1.1.1l-r1.ebuild
./dev-libs/libffi-3.3-r2/libffi-3.3-r2.ebuild
./dev-libs/mpfr-4.1.0_p13-r1/mpfr-4.1.0_p13-r1.ebuild
./sys-devel/gcc-config-2.5-r1/gcc-config-2.5-r1.ebuild
./sys-devel/binutils-config-5.4/binutils-config-5.4.ebuild
./sys-devel/make-4.3/make-4.3.ebuild
./sys-devel/patch-2.7.6-r4/patch-2.7.6-r4.ebuild
./sys-devel/binutils-2.37_p1/binutils-2.37_p1.ebuild
./sys-devel/gcc-11.2.0/gcc-11.2.0.ebuild
./sys-devel/gnuconfig-20210107/gnuconfig-20210107.ebuild
./app-shells/bash-5.1_p8/bash-5.1_p8.ebuild
./sys-fs/udev-249.6-r2/udev-249.6-r2.ebuild
./sys-fs/e2fsprogs-1.46.4/e2fsprogs-1.46.4.ebuild
./sys-fs/udev-init-scripts-34/udev-init-scripts-34.ebuild
./app-editors/nano-5.9/nano-5.9.ebuild
./app-misc/ca-certificates-20210119.3.66/ca-certificates-20210119.3.66.ebuild
./app-misc/pax-utils-1.3.3/pax-utils-1.3.3.ebuild
./app-misc/mime-types-2.1.53/mime-types-2.1.53.ebuild
./app-misc/c_rehash-1.7-r1/c_rehash-1.7-r1.ebuild
./app-misc/editor-wrapper-4-r1/editor-wrapper-4-r1.ebuild
./acct-user/man-1-r1/man-1-r1.ebuild
./acct-user/sshd-0-r1/sshd-0-r1.ebuild
./acct-user/portage-0/portage-0.ebuild
./virtual/libintl-0-r2/libintl-0-r2.ebuild
./virtual/man-0-r4/man-0-r4.ebuild
./virtual/pager-0/pager-0.ebuild
./virtual/editor-0-r3/editor-0-r3.ebuild
./virtual/libc-1-r1/libc-1-r1.ebuild
./virtual/os-headers-0-r2/os-headers-0-r2.ebuild
./virtual/libcrypt-2/libcrypt-2.ebuild
./virtual/udev-217-r3/udev-217-r3.ebuild
./virtual/package-manager-1/package-manager-1.ebuild
./virtual/tmpfiles-0-r1/tmpfiles-0-r1.ebuild
./virtual/dev-manager-0-r2/dev-manager-0-r2.ebuild
./virtual/service-manager-1/service-manager-1.ebuild
./virtual/ssh-0/ssh-0.ebuild
./virtual/libiconv-0-r2/libiconv-0-r2.ebuild
./virtual/awk-1/awk-1.ebuild
./net-misc/iputils-20210722-r1/iputils-20210722-r1.ebuild
./net-misc/rsync-3.2.3-r5/rsync-3.2.3-r5.ebuild
./net-misc/openssh-8.8_p1-r4/openssh-8.8_p1-r4.ebuild
./net-misc/wget-1.21.2/wget-1.21.2.ebuild
./app-admin/eselect-1.4.17/eselect-1.4.17.ebuild
./sys-process/psmisc-23.4-r1/psmisc-23.4-r1.ebuild
./sys-process/procps-3.3.17-r1/procps-3.3.17-r1.ebuild

Two-Spear / # emerge -vp wget

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] dev-util/pkgconf-1.8.0-r1:0/3::gentoo  USE="-test" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] virtual/pkgconfig-2-r1::gentoo  0 KiB
[ebuild   R    ] net-misc/wget-1.21.2::gentoo  USE="(ssl) -cookie_check -debug -gnutls -idn -ipv6 -metalink -nls -ntlm -pcre -static -test -uuid -zlib" 0 KiB

Total: 3 packages (2 new, 1 reinstall), Size of downloads: 0 KiB

 * IMPORTANT: 10 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

Two-Spear / #
Comment 4 James Georgas 2022-01-29 08:36:07 UTC
Created attachment 763869 [details, diff]
patch to fix man page ebuild bug

adds perl as a hard BDEPEND to wget
Comment 5 James Georgas 2022-01-29 08:36:59 UTC
Created attachment 763870 [details]
failed build log

this is the failed build log, before the patch
Comment 6 James Georgas 2022-01-29 08:38:06 UTC
Created attachment 763871 [details]
emerge --info

my system info
Comment 7 James Georgas 2022-01-29 08:38:42 UTC
Created attachment 763872 [details]
ebuild environment

environment from failed ebuild
Comment 8 James Georgas 2022-01-29 08:43:15 UTC
Created attachment 763874 [details]
package.mask

in addition to package.use in my original comment, I also have python3.10 masked.
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-29 15:12:02 UTC
(In reply to James Georgas from comment #8)
> Created attachment 763874 [details]
> package.mask
> 
> in addition to package.use in my original comment, I also have python3.10
> masked.

You shouldn't need to do that..

Anyway, thanks! Please file a new bug in future.

I think this issue is already fixed:
>Timestamp of repository gentoo: Sat, 15 Jan 2022 04:30:01 +0000

See https://gitweb.gentoo.org/repo/gentoo.git/commit/net-misc/wget?id=95c89a8efeb1e65a7fa6c6fc1b18189c35c25420 and https://gitweb.gentoo.org/repo/gentoo.git/commit/net-misc/wget?id=61e8874b4fa28acae646e2eed233bde605f81adf.
Comment 10 James Georgas 2022-01-29 23:37:55 UTC
>> in addition to package.use in my original comment, I also have python3.10
>> masked.
>
>
>You shouldn't need to do that..

Yeah, just included it for people wondering why I only had 3.9 installed when 3.10 would otherwise be the default. I was striving for a minimal system, and gcc still pulls in 3.9 explicitly. Instead of having python in two slots, I just masked out the optional one.

>I think this issue is already fixed:
>>Timestamp of repository gentoo: Sat, 15 Jan 2022 04:30:01 +0000

Hmm. I guess I should be checking the git repo before doing stuff like this. Thanks for the heads-up on the fix.