Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 668850 - mail-mta/nullmailer should respect AR RANLIB
Summary: mail-mta/nullmailer should respect AR RANLIB
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL: https://github.com/bruceg/nullmailer/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-17 08:01 UTC by Denis Pronin
Modified: 2019-04-01 20:57 UTC (History)
2 users (show)

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 Denis Pronin 2018-10-17 08:01:23 UTC
Hi, 

I found the package not correctly compiling and linking when -flto provided in CFLAGS/CXXFLAGS/LDFLAGS
I sort it out and made a PR in github https://github.com/bruceg/nullmailer/pull/56

I am waiting for a response from the maintainer. When they are through we will need to introduce changes

Thank you
Comment 1 Denis Pronin 2018-10-17 09:48:38 UTC
Guys, my mistake, package is not required to have anything changed

We need to update our ebuild-file so that, when we're about to configure package, provide environment variables like AR=$(AR) and RANLIB=$(RANLIB), so that it would look like:

AR=$(AR) RANLIB=$(RANLIB) <ANY_OTHER_ENVIRONMENT_VARIABLES_PASSED>  ./configure
Comment 2 Denis Pronin 2018-10-17 09:54:30 UTC
also we need to remove this line from ebuild 
sed \
		-e "s:^AC_PROG_RANLIB:AC_CHECK_TOOL(AR, ar, false)\nAC_PROG_RANLIB:g" \
		-i configure.ac || die
Comment 3 Denis Pronin 2018-10-17 10:36:06 UTC
So, the solution is to use tc-getAR and tc-getRANLIB eclass's functions when configuring the package by means of econf
Comment 4 Michael Haubenwallner gentoo-dev 2019-03-29 15:14:59 UTC
(In reply to Denis Pronin from comment #3)
> So, the solution is to use tc-getAR and tc-getRANLIB eclass's functions when
> configuring the package by means of econf

Which values for AR and RANLIB does configure detect on your box without these?