Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 940450 - app-crypt/ssss-0.5.7-r1: fails to install man pages without sys-apps/which (doman failed)
Summary: app-crypt/ssss-0.5.7-r1: fails to install man pages without sys-apps/which (d...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Conrad Kostecki
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: which-hunt
  Show dependency tree
 
Reported: 2024-09-28 17:41 UTC by Toralf Förster
Modified: 2024-12-23 20:19 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.71 KB, text/plain)
2024-09-28 17:41 UTC, Toralf Förster
Details
app-crypt:ssss-0.5.7-r1:20240928-171837.log (app-crypt:ssss-0.5.7-r1:20240928-171837.log,2.91 KB, text/plain)
2024-09-28 17:41 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,162.51 KB, text/plain)
2024-09-28 17:42 UTC, Toralf Förster
Details
environment (environment,62.22 KB, text/plain)
2024-09-28 17:42 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.35 KB, application/x-xz)
2024-09-28 17:42 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,17.07 KB, application/x-xz)
2024-09-28 17:42 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,45.97 KB, application/x-xz)
2024-09-28 17:42 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,15.01 KB, application/x-xz)
2024-09-28 17:42 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-09-28 17:41:57 UTC
>>> Source compiled.
>>> Test phase [not enabled]: app-crypt/ssss-0.5.7-r1

>>> Install app-crypt/ssss-0.5.7-r1 into /var/tmp/portage/app-crypt/ssss-0.5.7-r1/image
!!! doman: ssss.1 does not exist
 * ERROR: app-crypt/ssss-0.5.7-r1::gentoo failed (install phase):
 *   doman failed
 * 
 * If you need support, post the output of `emerge --info '=app-crypt/ssss-0.5.7-r1::gentoo'`,

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_hardened-20240926-145007

  UNMASKED:
  /etc/portage/package.unmask/60gcc:<sys-devel/gcc-15.0.9999:15
    Requested by sam

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-15 *
clang/llvm (if any):
clang version 18.1.8
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/19
19.1.0
Python 3.12.6
Available Ruby profiles:
  [1]   ruby31 (with Rubygems)
  [2]   ruby32 (with Rubygems)
  [3]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.81.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.24_p8 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.12_p7 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.4_p7 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.422_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
  (none found)
go version go1.23.1 linux/amd64

  HEAD of ::gentoo
commit 18a549b532b385a904d16d934e3e9332125e422c
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Sep 28 16:21:19 2024 +0000

    2024-09-28 16:21:19 UTC

emerge -qpvO =app-crypt/ssss-0.5.7-r1
[ebuild  N    ] app-crypt/ssss-0.5.7-r1
Comment 1 Toralf Förster gentoo-dev 2024-09-28 17:41:58 UTC
Created attachment 904087 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-09-28 17:41:59 UTC
Created attachment 904088 [details]
app-crypt:ssss-0.5.7-r1:20240928-171837.log
Comment 3 Toralf Förster gentoo-dev 2024-09-28 17:42:00 UTC
Created attachment 904089 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2024-09-28 17:42:01 UTC
Created attachment 904090 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-09-28 17:42:02 UTC
Created attachment 904091 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-09-28 17:42:03 UTC
Created attachment 904092 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-09-28 17:42:04 UTC
Created attachment 904093 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2024-09-28 17:42:05 UTC
Created attachment 904094 [details]
temp.tar.xz
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-09-28 18:03:12 UTC
if [ -e ssss.1 ]; then cp ssss.1 ssss-split.1; cp ssss.1 ssss-combine.1; fi
/bin/sh: line 1: which: command not found
WARNING: xmlmantohtml not found, skipping generation of HTML documentation.
Comment 10 Larry the Git Cow gentoo-dev 2024-09-28 20:52:05 UTC
The bug has been closed via the following commit(s):

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

commit e645be244bf14076147cfc22d39df4ae80cf1d44
Author:     Conrad Kostecki <conikost@gentoo.org>
AuthorDate: 2024-09-28 20:50:59 +0000
Commit:     Conrad Kostecki <conikost@gentoo.org>
CommitDate: 2024-09-28 20:51:37 +0000

    app-crypt/ssss: don't use which
    
    Closes: https://bugs.gentoo.org/940450
    Signed-off-by: Conrad Kostecki <conikost@gentoo.org>

 app-crypt/ssss/{ssss-0.5.7-r1.ebuild => ssss-0.5.7-r2.ebuild} | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
Comment 11 Eli Schwartz gentoo-dev 2024-09-29 02:01:40 UTC
+	# Don't use 'which'
+	sed -e 's/-O2/$(CFLAGS) -lgmp $(LDFLAGS)/g' -e '/strip/d' -e 's/which/type -P/g' -i Makefile || die


This will not work! "type -P" is not valid in scripts or Makefiles unless they explicitly use /bin/bash.

I just added a comment to that effect yesterday on the tracker issue.

P.S. Is there a reason to avoid submitting an upstream PR with a fix and instead patching it in the ebuild?
Comment 12 Conrad Kostecki gentoo-dev 2024-09-29 09:47:58 UTC
(In reply to Eli Schwartz from comment #11)
> +	# Don't use 'which'
> +	sed -e 's/-O2/$(CFLAGS) -lgmp $(LDFLAGS)/g' -e '/strip/d' -e 's/which/type
> -P/g' -i Makefile || die
> 
> 
> This will not work! "type -P" is not valid in scripts or Makefiles unless
> they explicitly use /bin/bash.

Sure? I just wonder, since I do not saw any error message or any other errors during test?
Comment 13 Eli Schwartz gentoo-dev 2024-09-29 15:58:36 UTC
This is tracked by bug 526268.

It depends on app-alternatives/sh -- many people leave the default USE flags in place, many people instead have USE=dash
Comment 14 Matt Whitlock 2024-10-05 12:14:01 UTC
I confirm that replacing 'type -P' by 'command -v' allows app-crypt/ssss to install successfully on a system with /bin/sh -> dash.
Comment 15 Larry the Git Cow gentoo-dev 2024-12-23 20:19:03 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77f2662e2d5507fdf1fb487c0a5fcdee834dde66

commit 77f2662e2d5507fdf1fb487c0a5fcdee834dde66
Author:     Conrad Kostecki <conikost@gentoo.org>
AuthorDate: 2024-12-23 20:16:18 +0000
Commit:     Conrad Kostecki <conikost@gentoo.org>
CommitDate: 2024-12-23 20:16:18 +0000

    app-crypt/ssss: replace 'type -P' by 'command -v'
    
    Closes: https://bugs.gentoo.org/940450
    Signed-off-by: Conrad Kostecki <conikost@gentoo.org>

 app-crypt/ssss/{ssss-0.5.7-r2.ebuild => ssss-0.5.7-r3.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)