Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 150152 - media-libs/libexif-0.6.13-r1 does not respect USE=-doc
Summary: media-libs/libexif-0.6.13-r1 does not respect USE=-doc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
: 154641 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-10-05 02:38 UTC by Dustin Polke
Modified: 2007-02-03 21:06 UTC (History)
4 users (show)

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


Attachments
emerge --info (emerge.info,8.11 KB, text/plain)
2006-10-05 03:27 UTC, Dustin Polke
Details
Requested log from emerge (log,186.31 KB, text/plain)
2006-10-05 04:11 UTC, Dustin Polke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dustin Polke 2006-10-05 02:38:07 UTC
Although USE=-doc, documentation is created and installed during emerge of media-libs/libexif-0.6.13-r1

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] media-libs/libexif-0.6.13-r1 [0.6.12-r4] USE="nls -doc%" 0 kB 


>>> Merging media-libs/libexif-0.6.13-r1 to /
--- /usr/
--- /usr/lib/
--- /usr/lib/pkgconfig/
>>> /usr/lib/pkgconfig/libexif.pc
>>> /usr/lib/libexif.so.10.2.1
>>> /usr/lib/libexif.so.10 -> libexif.so.10.2.1
>>> /usr/lib/libexif.so -> libexif.so.10.2.1
>>> /usr/lib/libexif.la
>>> /usr/lib/libexif.a
--- /usr/include/
--- /usr/include/libexif/
>>> /usr/include/libexif/exif-byte-order.h
>>> /usr/include/libexif/exif-content.h
>>> /usr/include/libexif/exif-data.h
>>> /usr/include/libexif/exif-data-type.h
>>> /usr/include/libexif/exif-entry.h
>>> /usr/include/libexif/exif-format.h
>>> /usr/include/libexif/exif-ifd.h
>>> /usr/include/libexif/exif-loader.h
>>> /usr/include/libexif/exif-log.h
>>> /usr/include/libexif/exif-mem.h
>>> /usr/include/libexif/exif-mnote-data.h
>>> /usr/include/libexif/exif-tag.h
>>> /usr/include/libexif/exif-utils.h
>>> /usr/include/libexif/_stdint.h
--- /usr/share/
--- /usr/share/locale/
--- /usr/share/locale/de/
--- /usr/share/locale/de/LC_MESSAGES/
>>> /usr/share/locale/de/LC_MESSAGES/libexif-12.mo
--- /usr/share/doc/
>>> /usr/share/doc/libexif/
>>> /usr/share/doc/libexif/api.html/
>>> /usr/share/doc/libexif/api.html/dir_e6a0b1d687481dff46bf641ce8126cb0_dep.map
>>> /usr/share/doc/libexif/api.html/dir_e6a0b1d687481dff46bf641ce8126cb0_dep.png
>>> /usr/share/doc/libexif/api.html/dir_e6a0b1d687481dff46bf641ce8126cb0.html
[...]
>>> /usr/share/doc/libexif/ABOUT-NLS
>>> /usr/share/doc/libexif/COPYING
>>> /usr/share/doc/libexif-0.6.13-r1/
>>> /usr/share/doc/libexif-0.6.13-r1/ChangeLog.gz
>>> /usr/share/doc/libexif-0.6.13-r1/README.gz
>>> Regenerating /etc/ld.so.cache...
>>> media-libs/libexif-0.6.13-r1 merged.
Comment 1 yogeshbug 2006-10-05 03:09:07 UTC
Pls use equery u libexif to find out explaination of doc flag.
#equery u libexif
[ Searching for packages matching libexif... ]
[ Colour Code : set unset ]
[ Legend        : Left column  (U) - USE flags from make.conf                     ]
[                  : Right column (I) - USE flags packages was installed with ]
[ Found these USE variables for media-libs/libexif-0.6.13-r1 ]
 U I
 - - doc : Adds extra documentation (API, Javadoc, etc)
 + + nls : Adds Native Language Support (using gettext - GNU locale utilities)

Doc flag is used for extra documentation.

If we enable doc flag, then it brings lots of other packages.
USE=doc emerge -av =media-libs/libexif-0.6.13-r1

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] media-gfx/graphviz-1.16-r1  -tcltk 4,284 kB
[ebuild  N    ] media-fonts/gnu-gs-fonts-std-8.11  3,664 kB
[ebuild  N    ] app-text/poppler-0.5.1-r1  +jpeg 972 kB
[ebuild  N    ] net-print/cups-1.1.23-r7  -gnutls +nls +pam -samba -slp +ssl 8,501 kB
[ebuild  N    ] app-text/ghostscript-esp-8.15.1_p20060430  -X -cjk +cups -emacs -gtk +threads +xml 8,324 kB
[ebuild  N    ] virtual/ghostscript-0  0 kB
[ebuild  N    ] app-doc/doxygen-1.4.4  +doc -qt -tetex +unicode 2,801 kB
[ebuild   R   ] media-libs/libexif-0.6.13-r1  +doc* +nls 0 kB

so by using -doc flag it only installs basic documentation of libexif.

Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-10-05 03:11:02 UTC
No idea where did you get those, not reproducable at all. 

MAKEOPTS="-j1" emerge -1 =media-libs/libexif-0.6.13-r1 &> log and attach it here.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-10-05 03:12:10 UTC
# equery f media-libs/libexif | grep doc
/usr/share/doc
/usr/share/doc/libexif
/usr/share/doc/libexif-0.6.13-r1
/usr/share/doc/libexif-0.6.13-r1/ChangeLog.gz
/usr/share/doc/libexif-0.6.13-r1/README.gz
/usr/share/doc/libexif/ABOUT-NLS
/usr/share/doc/libexif/AUTHORS
/usr/share/doc/libexif/COPYING
/usr/share/doc/libexif/ChangeLog
/usr/share/doc/libexif/NEWS
/usr/share/doc/libexif/README
/usr/share/doc/libexif/README.apidocs

[ebuild   R   ] media-libs/libexif-0.6.13-r1  USE="-doc nls" 0 kB 
Comment 4 Dustin Polke 2006-10-05 03:25:30 UTC
(In reply to comment #1)
> Pls use equery u libexif to find out explaination of doc flag.
> #equery u libexif
> [ Searching for packages matching libexif... ]
> [ Colour Code : set unset ]
> [ Legend        : Left column  (U) - USE flags from make.conf                  
>   ]
> [                  : Right column (I) - USE flags packages was installed with ]
> [ Found these USE variables for media-libs/libexif-0.6.13-r1 ]
>  U I
>  - - doc : Adds extra documentation (API, Javadoc, etc)
>  + + nls : Adds Native Language Support (using gettext - GNU locale utilities)
> 
> Doc flag is used for extra documentation.

That's right. And you can see above that API docs are installed though USE=-doc

> If we enable doc flag, then it brings lots of other packages.
> USE=doc emerge -av =media-libs/libexif-0.6.13-r1

Right. Because we need doxygen to build docs.

I will test like Jacub proposed in comment #2.

I built with MAKEOPT=-j3. Maybe this does the trick though I doubt it.

Will attach my emerge -info as well. Thought this is not needed, but maybe there is a clue.
Comment 5 Dustin Polke 2006-10-05 03:27:56 UTC
Created attachment 98830 [details]
emerge --info
Comment 6 Dustin Polke 2006-10-05 04:10:44 UTC
Okay. Problem is reproducable (for me at least).
I attach requested log and reopen the bug.
Comment 7 Dustin Polke 2006-10-05 04:11:40 UTC
Created attachment 98836 [details]
Requested log from emerge
Comment 8 Dustin Polke 2006-10-05 04:13:00 UTC
Here is output from equery as well:

solaris ~ # equery uses libexif
[ Searching for packages matching libexif... ]
[ Colour Code : set unset ]
[ Legend        : Left column  (U) - USE flags from make.conf                     ]
[                  : Right column (I) - USE flags packages was installed with ]
[ Found these USE variables for media-libs/libexif-0.6.13-r1 ]
 U I
 - - doc : Adds extra documentation (API, Javadoc, etc)
 + + nls : Adds Native Language Support (using gettext - GNU locale utilities)
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-10-05 04:16:35 UTC
Hmmm, looks like $(use_enable doc) is ignored when doxygen is installed... Also, this is a wrong location:

<snip>
/usr/share/doc/libexif/AUTHORS
/usr/share/doc/libexif/COPYING
/usr/share/doc/libexif/ChangeLog
/usr/share/doc/libexif/NEWS
/usr/share/doc/libexif/README
/usr/share/doc/libexif/README.apidocs
</snip>
Comment 10 Alexander Skwar 2006-11-09 23:31:28 UTC
I cannot compile libexif-0.6.13-r1. It fails after 

Generating page index...
echo > doxygen-output.stamp
make[2]: Leaving directory
`/0b/Gentoo/portage/tmp/portage/media-libs/libexif-0.6.13-r1/work/libexif-0.6.13/doc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/0b/Gentoo/portage/tmp/portage/media-libs/libexif-0.6.13-r1/work/libexif-0.6.13'
make: *** [all] Error 2

Please see bug #154641.

I wonder if bug #154641 is a dupe of this bug.
Comment 11 Chris Mayo 2006-11-12 09:04:21 UTC
Changing:
econf $(use_enable nls) $(use_enable doc) || die
to:
econf $(use_enable nls) --with-doc-dir="/usr/share/doc/${PF}" || die

at least gets the docs installed in the right place.

There are patches suggested to build without doxygen at:
https://sourceforge.net/mailarchive/forum.php?thread_id=30775179&forum_id=8715
https://sourceforge.net/tracker/index.php?func=detail&aid=1443183&group_id=12272&atid=112272
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2007-01-21 14:06:26 UTC
*** Bug 154641 has been marked as a duplicate of this bug. ***
Comment 13 Steve Arnold archtester gentoo-dev 2007-02-03 21:06:58 UTC
Fixed - see bug #160973 for more info.