Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 575102 - sys-apps/net-tools[nls]: should link w/-lintl
Summary: sys-apps/net-tools[nls]: should link w/-lintl
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 574794
  Show dependency tree
 
Reported: 2016-02-18 21:19 UTC by Eric N. Vander Weele
Modified: 2023-03-28 00:02 UTC (History)
2 users (show)

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


Attachments
Patch for sys-apps/net-tools ebuild to support '-lintl' when USE='nls' (0001-sys-apps-net-tools-Add-lint-when-USE-nls-for-bug-575.patch,3.56 KB, patch)
2016-02-18 21:23 UTC, Eric N. Vander Weele
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric N. Vander Weele 2016-02-18 21:19:12 UTC
`USE='nls' emerge sys-apps/net-tools` does not add '-lintl' to when linking.

I considered patching just the ebuild to manipulate LIBS, but the net-tools Makefile does not support the LIBS environment variable.

This is blocking bug 574794.

Patch to follow.
Comment 1 Eric N. Vander Weele 2016-02-18 21:23:25 UTC
Created attachment 425864 [details, diff]
Patch for sys-apps/net-tools ebuild to support '-lintl' when USE='nls'
Comment 2 Mike Gilbert gentoo-dev 2016-02-18 21:31:47 UTC
Comment on attachment 425864 [details, diff]
Patch for sys-apps/net-tools ebuild to support '-lintl' when USE='nls'

You're putting $(LIBS) in the wrong place; it should go after any object files on the command line.

Also, I don't think libintl is used on glibc systems; I have never run into a build failure on my vanilla Gentoo system.
Comment 3 Eric N. Vander Weele 2016-02-18 22:04:35 UTC
> You're putting $(LIBS) in the wrong place; it should go after any object
> files on the command line.

Thanks for catching that.  I will update appropriately.

> Also, I don't think libintl is used on glibc systems; I have never run into
> a build failure on my vanilla Gentoo system.

Is there a mechanism to determine whether glibc is provided or not to make the patching conditional?  I'm still getting familiar with gentoo myself and ebuilds and would like to learn the proper way to do this (and to contribute).
Comment 4 SpanKY gentoo-dev 2016-02-18 23:31:00 UTC
you should just send patches upstream and i'll review/merge them there