Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 620250

Summary: =sys-devel/clang-4.0.0-r2: fails to install because scan-build.1 doesn't exist on G/FBSD
Product: Gentoo/Alt Reporter: Yuta SATOH <nigoro.dev>
Component: FreeBSDAssignee: LLVM support project <llvm>
Status: RESOLVED DUPLICATE    
Severity: normal CC: bsd+disabled, mgorny
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: FreeBSD   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: sample patch for clang-4.0.0-r2.ebuild

Description Yuta SATOH 2017-05-31 11:11:10 UTC
It fails to install because scan-build.1 doesn't exist in image/usr/lib/llvm/4/share/man/man1.

chmod: /var/tmp/portage/sys-devel/clang-4.0.0-r2/image//usr/lib/llvm/4/share/man/man1/scan-build.1: No such file or directory
 * ERROR: sys-devel/clang-4.0.0-r2::gentoo failed (install phase):
 *   fperms failed
 *
 * If you need support, post the output of `emerge --info '=sys-devel/clang-4.0.0-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/clang-4.0.0-r2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-devel/clang-4.0.0-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/clang-4.0.0-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-devel/clang-4.0.0-r2/work/x/y/cfe-4.0.0.src'
 * S: '/var/tmp/portage/sys-devel/clang-4.0.0-r2/work/x/y/cfe-4.0.0.src'


FYI,
# ls -1 /var/tmp/portage/sys-devel/clang-4.0.0-r2/image//usr/lib/llvm/4/share/man/man1/
clang.1
extraclangtools.1

# find /var/tmp/portage/sys-devel/clang-4.0.0-r2/image -name scan-build.1*
/var/tmp/portage/sys-devel/clang-4.0.0-r2/image/usr/lib/llvm/4/man/man1/scan-build.1
Comment 1 Yuta SATOH 2017-05-31 11:14:34 UTC
Created attachment 474738 [details, diff]
sample patch for clang-4.0.0-r2.ebuild

I simply added '-DCMAKE_INSTALL_MANDIR:PATH="share/man"' to mycmakeargs.

Taken from
https://svnweb.freebsd.org/ports/head/devel/llvm-devel/Makefile?view=markup&pathrev=428179#l29


Results of applying this patch)
# ls -1 /var/tmp/portage/sys-devel/clang-4.0.0-r2/image//usr/lib/llvm/4/share/man/man1/
clang.1.bz2
extraclangtools.1.bz2
scan-build.1.bz2

# find /var/tmp/portage/sys-devel/clang-4.0.0-r2/image -name scan-build.1*
/var/tmp/portage/sys-devel/clang-4.0.0-r2/image/usr/lib/llvm/4/share/man/man1/scan-build.1.bz2
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-09-03 08:04:17 UTC
FWICS, it's because the old version of LLVM didn't use CMAKE_INSTALL_MANDIR consistently. Do you have any clue why it defaults to 'man' rather than 'share/man' on BSD?
Comment 3 Yuta SATOH 2018-03-11 11:10:23 UTC
I think this bug has been fixed by bug 649200.
closing.

*** This bug has been marked as a duplicate of bug 649200 ***