Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 653124 - sci-physics/root: ACLiC does not work on Prefix
Summary: sci-physics/root: ACLiC does not work on Prefix
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Physics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-14 05:02 UTC by Benda Xu
Modified: 2018-08-29 15:07 UTC (History)
0 users

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 Benda Xu gentoo-dev 2018-04-14 05:02:39 UTC
/tmp $ touch test.C
/tmp $ root test.C+

Info in <TUnixSystem::ACLiC>: creating shared library /tmp/./test_C.so
<<< cling interactive line includer >>>:1:10: fatal error: '/opt/gentoo' file not found
#include "/opt/gentoo"
         ^~~~~~~~~~~~~
/tmp/test_C_ACLiC_dict.cxx:40:10: fatal error: /opt/gentoo: No such file or directory
 #include "/opt/gentoo"
          ^~~~~~~~~~~~~
compilation terminated.
x86_64-pc-linux-gnu-g++: error: /tmp/test_C_ACLiC_dict.o: No such file or directory
Error in <ACLiC>: Compilation failed!


Template from core/dictgen/src/rootcling_impl.cxx injects wrong '#include' clause.
Comment 1 Larry the Git Cow gentoo-dev 2018-04-16 06:31:28 UTC
The bug has been closed via the following commit(s):

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

commit b2f6e08f25278f0140d2b159d705777d5554f4e8
Author:     Benda Xu <heroxbd@gentoo.org>
AuthorDate: 2018-04-16 06:31:03 +0000
Commit:     Benda Xu <heroxbd@gentoo.org>
CommitDate: 2018-04-16 06:31:19 +0000

    sci-physics/root: disable cling -isystem injection.
    
      This fixes the ACLiC failure on Prefix.
    
      We use SYSROOT to guide llvm in ROOT to locate headers and libraries
      at build time.  Such feature is not to be used at runtime.
    
      The patch has no effect to usual Gentoo, therefore applying it
      unconditionally.
    
    Closes: https://bugs.gentoo.org/653124
    Package-Manager: Portage-2.3.28, Repoman-2.3.9

 .../files/root-6.12.06_cling-runtime-sysroot.patch | 22 ++++++++++++++++++++++
 sci-physics/root/root-6.12.06-r1.ebuild            |  1 +
 2 files changed, 23 insertions(+)
Comment 2 Larry the Git Cow gentoo-dev 2018-08-29 15:07:05 UTC
The bug has been referenced in the following commit(s):

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

commit 30e10c187fd8c24ad9d865218d9fb8fb9099cc28
Author:     Guilherme Amadio <amadio@gentoo.org>
AuthorDate: 2018-08-29 13:48:45 +0000
Commit:     Guilherme Amadio <amadio@gentoo.org>
CommitDate: 2018-08-29 15:06:55 +0000

    sci-physics/root: add back patch for bug 653124
    
    The patch was dropped by mistake on a revision bump.
    
    Bug: https://bugs.gentoo.org/653124
    Package-Manager: Portage-2.3.48, Repoman-2.3.10

 sci-physics/root/{root-6.12.06-r6.ebuild => root-6.12.06-r7.ebuild} | 1 +
 sci-physics/root/{root-6.14.04-r1.ebuild => root-6.14.04-r2.ebuild} | 1 +
 sci-physics/root/root-9999.ebuild                                   | 1 +
 3 files changed, 3 insertions(+)