Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 649384 - dev-util/boost-build - /usr/share/boost-build/site-config.jam: b2 call should use --ignore-site-config
Summary: dev-util/boost-build - /usr/share/boost-build/site-config.jam: b2 call should...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: David Seifert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-02 17:18 UTC by Christopher Jones
Modified: 2020-12-27 03:19 UTC (History)
3 users (show)

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


Attachments
Example site-config.jam (site-config.jam,686 bytes, application/vnd.jam)
2020-12-27 03:19 UTC, Alfred Wingate
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Jones 2018-03-02 17:18:51 UTC
Im having issues compiling cryptocoin programs that rely on Boost. They contain a file inside their builds "depends/packages/boost.mk" that uses /usr/share/boost-build/site-config.jam on our gentoo systems. This file contains the command b2 which is used to build boost in our local builds. However it causes the builds to fail unless the file is edited to have --ignore-site-config added to the b2 line(s).

The only solutions I have found is to manually edit each builds boost.mk file and add that option or to edit site-config.jam.. the latter being the better choice. Im just not sure what to add to site-config.jam to get b2 to automatically use the --ignore-site-config option.


So is there a way to fix this upstream in the ebuilds or can someone chime in and inform us what to add to /etc/site-config.jam so we dont have to keep on editing github builds that rely on boost. As seen here in bug ID# 456792 (https://bugs.gentoo.org/456792) its unclear how to edit that file.


Other gentoo users having the same issue who had to manually edit their builds. 

https://github.com/zcash/zcash/issues/1654

https://github.com/ruslo/hunter/issues/423

https://stackoverflow.com/questions/23013433/how-to-install-modular-boost

https://github.com/ethereum/cpp-ethereum/issues/4206
Comment 1 Christopher Jones 2018-03-02 17:42:32 UTC
further reading.. the only viable solution is to comment out the two lines in site-config.jam when doing builds and then removing the comments after the build is complete. 

Is there a more elegant work-around?
Comment 2 David Seifert gentoo-dev 2019-09-14 19:08:07 UTC
Please provide a patch or an example site-config.jam file.
Comment 3 Alfred Wingate 2020-12-27 03:19:45 UTC
Created attachment 679790 [details]
Example site-config.jam

Hey, got hit with issue as well.

Regarding the file, id propose to remove the none options one way or another. As these are options that cant be parsed.

Changes and the reasoning for some:
Release variant optimization flag set to speed, but space could be more desirable for some.
Release variant debug-symbols flag is set to off.
Debug variant optimization flag set to off.

The optimization and debug-symbols flags could also be completely omitted as well, and instead let the specific build configurations set it themselves rather than override them.