Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 274700 - app-text/multitail does not follow as-needed conform linking
Summary: app-text/multitail does not follow as-needed conform linking
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Wolfram Schlich (RETIRED)
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2009-06-19 12:30 UTC by Justin Lecher (RETIRED)
Modified: 2010-02-03 21:48 UTC (History)
2 users (show)

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


Attachments
Makefile.patch (Makefile.patch,1.17 KB, patch)
2009-07-02 18:30 UTC, Christian Ruppert (idl0r)
Details | Diff
multitail-5.2.2.ebuild.diff (multitail-5.2.2.ebuild.diff,1.60 KB, patch)
2009-07-02 18:32 UTC, Christian Ruppert (idl0r)
Details | Diff
another multitail-5.2.2.ebuild.diff (multitail-5.2.2.ebuild.diff,1.75 KB, patch)
2009-09-12 17:54 UTC, Gef
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Lecher (RETIRED) gentoo-dev 2009-06-19 12:30:43 UTC
To have as-needed functional the linking order has to be

Linker LDFALGS -o BIN OBJ LIBS

but multitail does

$(CC) -Wall -W $(OBJS) $(LDFLAGS) -o multitail

where LDFLAGS include both the LDFLAGS and the LIBS.
Comment 1 Christian Ruppert (idl0r) gentoo-dev 2009-07-02 18:30:30 UTC
Created attachment 196403 [details, diff]
Makefile.patch
Comment 2 Christian Ruppert (idl0r) gentoo-dev 2009-07-02 18:32:02 UTC
Created attachment 196405 [details, diff]
multitail-5.2.2.ebuild.diff
Comment 3 Gef 2009-09-12 17:54:07 UTC
Created attachment 203872 [details, diff]
another multitail-5.2.2.ebuild.diff

I made a small change to your patch in order to get following structure :
/usr/share/doc/multitail-5.2.2
|-- Changes.bz2
|-- examples
|   |-- colors-example.pl.bz2
|   |-- colors-example.sh.bz2
|   |-- convert-geoip.pl.bz2
|   `-- convert-simple.pl.bz2
|-- html
|   `-- manual.html
|-- readme.txt.bz2
`-- thanks.txt.bz2

I swapped html and examples blockcode (otherwise, manual.html would be ins'ed into examples/). Everything else is Nice-And-Clean with USE="debug examples html".

(This behavior is weird, as dev-manual specifies :
"dohtml   	 Installs HTML document files into /usr/share/doc/${PF}/html"
docinto seems to alter expected behavior.
).
Comment 4 Gef 2009-09-12 19:13:27 UTC
> (This behavior is weird, as dev-manual specifies :
> "dohtml          Installs HTML document files into /usr/share/doc/${PF}/html"
> docinto seems to alter expected behavior.
> ).
zmedico and tanderson clarified it : this is expected, and covered my PMS specs (http://dev.gentoo.org/~tanderson/pms/head/html/pms.html).

Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-09-28 16:57:25 UTC
I would avoid using -g with debug USE flag; that's something for users to choose.