Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Pango and maybe other things that need gtk-doc-am
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Cyker
Veteran
Veteran


Joined: 15 Jun 2006
Posts: 1746

PostPosted: Tue Jun 08, 2010 4:52 pm    Post subject: Pango and maybe other things that need gtk-doc-am Reply with quote

Hey all,

In my quest to stop the system bloating I've been running into more and more things that suddenly need gtk-doc-am and all its dependencies.

I've been able to manually remove them from the ebuilds in most cases, but with Pango it seems to be doing something during the eautoreconf stage that needs it and I'm not sure how to remove it.

The most relevant error log seems to be automake's:
Code:
***** automake *****
***** PWD: /var/tmp/portage/x11-libs/pango-1.26.2/work/pango-1.26.2
***** automake --add-missing --copy

gtk-doc.make:7: GTK_DOC_USE_LIBTOOL does not appear in AM_CONDITIONAL
docs/Makefile.am:97:   `gtk-doc.make' included from here
gtk-doc.make:50: ENABLE_GTK_DOC does not appear in AM_CONDITIONAL
docs/Makefile.am:97:   `gtk-doc.make' included from here
gtk-doc.make:175: ENABLE_GTK_DOC does not appear in AM_CONDITIONAL
docs/Makefile.am:97:   `gtk-doc.make' included from here
docs/Makefile.am:157: ENABLE_GTK_DOC does not appear in AM_CONDITIONAL


I thought I could patch out the parts in question, but that didn't work or I missed some bits...

Code:
src_prepare() {
+
+#Try and disable gtk-doc-am crap
+if ! use doc; then
+   ENABLE_GTK_DOC=no
+
+   sed -e 's/DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --enable-man/DIST
+      -i Makefile.am || die "sed failed trying to kill --enable-gtk-do
+fi
   gnome2_src_prepare


Can anyone give me some pointers...?
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6279

PostPosted: Tue Jun 08, 2010 7:53 pm    Post subject: Reply with quote

Yes, this bloat is horrible. I have no idea why the developers ignore this Bug report.
The only solution I know is to copy gtk-doc-am in your local overlay with the patch described there. Since you do not need I use-flag in your own overlay, you can make it more minimal:
gtk-doc-am-2_alpha.ebuild wrote:
EAPI="3"

DESCRIPTION="Automake file from gtk-doc, patched to run only when no documentation is wanted"
HOMEPAGE="http://www.gtk.org/gtk-doc/"
SRC_URI=""

LICENSE="GPL-2 FDL-1.1"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""

RDEPEND=""
DEPEND=""

S=${WORKDIR}/${MY_P}

src_configure() {
:
}

src_compile() {
:
}

src_install() {
insinto /usr/share/aclocal
doins "${FILESDIR}"/gtk-doc.m4 || die "doins failed"
}
Back to top
View user's profile Send private message
Cyker
Veteran
Veteran


Joined: 15 Jun 2006
Posts: 1746

PostPosted: Tue Jun 08, 2010 10:44 pm    Post subject: Reply with quote

:D

Ahhh! I wish I'd thought of that! This is much easier than hacking pango! :D

Thanks very much! :)

I know what you mean about the bloat, but this is the way it is. The problem is that for the maintainers, it's basically a job that they don't get paid for (But they still get the whiny users! :(), and when you've been doing it for a while it's hard to keep caring about high-zot corner cases.

The main tree leans toward It Just Works/Newbie Friendly at the expense of making the user download metric assloads of crap. It's getting to the point where USE flags, which were a major feature for me, are now crippled for all but the most visible features because most of everything is pulled in anyway.

But this is why the true Gentoo power user has an overlay ;); The hacking I've done to keep out unwanted dependencies would never be approved in the main tree :P

I'm finding it is becoming a lot of work tho'; Each emerge world requires more kludging than the next! :(
Back to top
View user's profile Send private message
jeffk
l33t
l33t


Joined: 13 Sep 2003
Posts: 656

PostPosted: Sun Jul 11, 2010 9:56 pm    Post subject: Reply with quote

I just encountered this on my USE="-doc -X" server. Obviously there's no Gnome of any kind.

Code:
# emerge rrdtool --tree -pv
These are the packages that would be merged, in reverse order:
Calculating dependencies... done!
[ebuild  N    ] net-analyzer/rrdtool-1.4.3  USE="lua perl python -doc -rrdcgi -ruby -tcl" 1,350 kB
[nomerge      ] media-fonts/dejavu-2.31  USE="-X -fontforge"
[nomerge      ]  media-libs/fontconfig-2.8.0-r1  USE="-doc"
[ebuild  N    ]   virtual/ttf-fonts-1  0 kB
[ebuild  N    ]    media-fonts/dejavu-2.31  USE="-X -fontforge" 4,338 kB
[nomerge      ] net-analyzer/rrdtool-1.4.3  USE="lua perl python -doc -rrdcgi -ruby -tcl"
[ebuild  N    ]  x11-libs/pango-1.28.1  USE="-X -debug -doc (-introspection) -test" 1,450 kB
[ebuild  N    ]   x11-libs/cairo-1.8.10  USE="svg -X (-aqua) -cleartype -debug -directfb -doc -glitz -lcdfilter -opengl -xcb" 6,944 kB
[nomerge      ] x11-libs/pango-1.28.1  USE="-X -debug -doc (-introspection) -test"
[nomerge      ]  media-libs/fontconfig-2.8.0-r1  USE="-doc"
[ebuild  N    ]   app-admin/eselect-fontconfig-1.1  2 kB
[ebuild  N    ]    media-libs/fontconfig-2.8.0-r1  USE="-doc" 1,513 kB
[nomerge      ] net-analyzer/rrdtool-1.4.3  USE="lua perl python -doc -rrdcgi -ruby -tcl"
[nomerge      ]  x11-libs/cairo-1.8.10  USE="svg -X (-aqua) -cleartype -debug -directfb -doc -glitz -lcdfilter -opengl -xcb"
[ebuild  N    ]   x11-libs/pixman-0.18.2  USE="mmx sse2 (-altivec) -static-libs" 412 kB
[nomerge      ] x11-libs/pango-1.28.1  USE="-X -debug -doc (-introspection) -test"
[ebuild  N    ]  dev-util/gtk-doc-am-1.15  770 kB
[ebuild  N    ]   app-text/docbook-xml-dtd-4.3-r1  82 kB
[ebuild  N    ]    app-text/sgml-common-0.6.3-r5  75 kB
[nomerge      ] net-analyzer/rrdtool-1.4.3  USE="lua perl python -doc -rrdcgi -ruby -tcl"
[ebuild  N    ]  dev-lang/lua-5.1.4-r6  USE="deprecated readline -emacs -static" 212 kB
[nomerge      ] app-text/docbook-xml-dtd-4.3-r1
[ebuild  N    ]  app-text/docbook-xsl-stylesheets-1.75.2  1,507 kB
[ebuild  N    ]   app-text/build-docbook-catalog-1.5  3 kB
[nomerge      ] x11-libs/cairo-1.8.10  USE="svg -X (-aqua) -cleartype -debug -directfb -doc -glitz -lcdfilter -opengl -xcb"
[nomerge      ]  media-libs/fontconfig-2.8.0-r1  USE="-doc"
[ebuild  N    ]   media-libs/freetype-2.3.12  USE="-X -bindist -debug -doc -fontforge -utils" 1,419 kB

Total: 15 packages (15 new), Size of downloads: 20,072 kB


I understand the need for Pango to render on graphs, but the gtk-doc-am dependency even with with -doc is disappointing.
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6279

PostPosted: Mon Jul 12, 2010 7:07 am    Post subject: Reply with quote

jeffk wrote:
I understand the need for Pango to render on graphs, but the gtk-doc-am dependency even with with -doc is disappointing.

Also the gtk-doc-am (note: "am" stands here for "automake macros") is not disappointing, since these macros are simply required for eautoreconf unless heavy patching is done. The problem is (as mentioned in the bug report) that there is no official way in gentoo to install only these macros and thus to satisfy this dependency without installing all possible uses of these macros (which means almost full gtk-doc and its dependencies) which would actually not be required with USE=-doc.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum