Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 620250 - =sys-devel/clang-4.0.0-r2: fails to install because scan-build.1 doesn't exist on G/FBSD
Summary: =sys-devel/clang-4.0.0-r2: fails to install because scan-build.1 doesn't exis...
Status: RESOLVED DUPLICATE of bug 649200
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal normal (vote)
Assignee: LLVM support project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-31 11:11 UTC by Yuta SATOH
Modified: 2018-03-11 11:10 UTC (History)
2 users (show)

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


Attachments
sample patch for clang-4.0.0-r2.ebuild (file_620250.txt,1.03 KB, patch)
2017-05-31 11:14 UTC, Yuta SATOH
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 ***