Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 467174 - dev-db/redis : does not respect RANLIB
Summary: dev-db/redis : does not respect RANLIB
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal QA (vote)
Assignee: Johan Bergström
URL:
Whiteboard:
Keywords:
Depends on: 457002
Blocks: tc-directly
  Show dependency tree
 
Reported: 2013-04-25 09:06 UTC by Agostino Sarubbo
Modified: 2013-05-03 21:53 UTC (History)
4 users (show)

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


Attachments
redis-2.6.9:20130425-085758.log (redis-2.6.9:20130425-085758.log,18.44 KB, text/plain)
2013-04-25 09:10 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2013-04-25 09:06:57 UTC
You receive this bug because this package does not respect my system's RANLIB (x86_64-pc-linux-gnu-ranlib) and calls directly /usr/bin/ranlib
The possible solutions to fix this issue are:
1)Fix the buildsystem, if you can;
2)inherit toolchain-funcs and use tc-export RANLIB
3)inherit toolchain-funcs and use emake RANLIB="$(tc-getRANLIB)"


From the build log:

ranlib liblua.a
Comment 1 Agostino Sarubbo gentoo-dev 2013-04-25 09:10:13 UTC
Created attachment 346572 [details]
redis-2.6.9:20130425-085758.log

build log
Comment 2 Johan Bergström 2013-04-25 09:15:21 UTC
Hey Ago,
thanks for the bug report. I'll do what I can to send patches upstream.

Since redis uses a pretty basic build system (no auto*), what would be the correct way to invoke a linker? Can't find anything useful here: http://www.gnu.org/software/make/manual/html_node/Implicit-Variables.html
Comment 3 Agostino Sarubbo gentoo-dev 2013-04-25 09:17:52 UTC
(In reply to comment #2)
> Since redis uses a pretty basic build system (no auto*), what would be the
> correct way to invoke a linker?

Comment 0 is enough, but check if it uses a bundle LUA
Comment 4 Johan Bergström 2013-04-25 09:22:31 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > Since redis uses a pretty basic build system (no auto*), what would be the
> > correct way to invoke a linker?
> 
> Comment 0 is enough, but check if it uses a bundle LUA

It does. This was introduced in redis 2.6. It's bundled with 3 lua extensions we neither bundle nor can build as a shared library, unfortunately. 

You can see some of the work spent on this in https://bugs.gentoo.org/show_bug.cgi?id=439354
Comment 5 Johan Bergström 2013-04-25 09:33:53 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > (In reply to comment #2)
> > > Since redis uses a pretty basic build system (no auto*), what would be the
> > > correct way to invoke a linker?
> > 
> > Comment 0 is enough, but check if it uses a bundle LUA
> 
> It does. This was introduced in redis 2.6. It's bundled with 3 lua
> extensions we neither bundle nor can build as a shared library,
> unfortunately. 

To clarify: by bundle I mean that they're not available in gentoo. Even if they were, the patch to load them as a shared object through redis would be major. I don't think Gentoo should carry such patches.

> 
> You can see some of the work spent on this in
> https://bugs.gentoo.org/show_bug.cgi?id=439354
Comment 6 Johan Bergström 2013-04-29 23:26:37 UTC
Please test this branch, should fix the problem: https://github.com/jbergstroem/gentoo-overlay/compare/master...redis-2.6.12
Comment 7 Johan Bergström 2013-05-03 21:53:56 UTC
Fixed in redis-2.6.13.ebuild.