Superfluous dependencies

Hans Ottevanger hans.ottevanger at gmail.com
Sun Mar 13 16:35:54 UTC 2011


On Sun, Mar 13, 2011 at 4:27 PM, Hans Ottevanger
<hans.ottevanger at gmail.com> wrote:
> On Sat, Mar 12, 2011 at 10:53 PM, Mark Linimon <linimon at lonesome.com> wrote:
>> On Thu, Mar 10, 2011 at 10:28:40AM +0100, Hans Ottevanger wrote:
>>> If anybody is interested I could consolidate my results and post a few patches.
>>
>> I would like to see them.
>>
>> This is the kind of really-dull-but-necessary work that we need to have
>> people work on to fight the creeping dependencies :-)
>>
>> mcl
>>
>
> Real life intervened the last few days, so excuses for the delay.
>
> Since the test system I used last week became a mess in the process, I
> restarted the effort this morning on my 9.0-CURRENT system (amd64,
> r219593). I have cvsupped the ports tree at about 10:45 UTC. Limiting
> the discussion to Xorg alone for now, I made the following changes to
> just three makefiles:
>
> Index: devel/glib20/Makefile
> ===================================================================
> RCS file: /home/ncvs/ports/devel/glib20/Makefile,v
> retrieving revision 1.174
> diff -r1.174 Makefile
> 42,43c42,43
> < USE_PYTHON=   yes
> < USE_PERL5=    yes
> ---
>> USE_PYTHON_BUILD=yes
>> USE_PERL5_BUILD=yes
> Index: sysutils/hal/Makefile
> ===================================================================
> RCS file: /home/ncvs/ports/sysutils/hal/Makefile,v
> retrieving revision 1.69
> diff -r1.69 Makefile
> 29c29
> < USE_PYTHON=   yes
> ---
>> USE_PYTHON_BUILD=yes
> Index: sysutils/polkit/Makefile
> ===================================================================
> RCS file: /home/ncvs/ports/sysutils/polkit/Makefile,v
> retrieving revision 1.9
> diff -r1.9 Makefile
> 20c20
> < RUN_DEPENDS=
> ${LOCALBASE}/share/gir-1.0/GLib-2.0.gir:${PORTSDIR}/devel/gobject-introspection
> ---
>> #RUN_DEPENDS= ${LOCALBASE}/share/gir-1.0/GLib-2.0.gir:${PORTSDIR}/devel/gobject-introspection
>
> The first two are quite trivial, the third could be a bit tricky, but
> I cannot find (and imagine) a situation where gobject-introspection is
> needed on run-time for a "normal" end-user.
>
> After building and installing xorg-7.5.1 I can deinstall the following
> packages (and probably quite a few others that are only needed at
> build-time):
>
> autoconf-2.68
> automake-1.11.1
> bison-2.4.3,1
> gobject-introspection-0.9.12_1
> help2man-1.39.2
> intltool-0.41.1
> m4-1.4.15,1
> p5-Locale-gettext-1.05_3
> p5-XML-Parser-2.40
> perl-5.10.1_3
> python27-2.7.1_1
> xcb-proto-1.6
>
> As far as I can see now, X functions OK, though I still have to compile KDE.
>
>
> Kind regards
>
> Hans Ottevanger
>

As suggested by Chris Rees, also as unified diffs:

--- devel/glib20/Makefile.orig  2011-03-13 17:26:30.000000000 +0100
+++ devel/glib20/Makefile       2011-03-13 17:26:47.000000000 +0100
@@ -39,8 +39,8 @@
 USE_GNOME=     gnomehack pkgconfig ltverhack
 USE_GMAKE=     yes
 MAKE_JOBS_SAFE=        yes
-USE_PYTHON=    yes
-USE_PERL5=     yes
+USE_PYTHON_BUILD=yes
+USE_PERL5_BUILD=yes
 CONFIGURE_ARGS=        --enable-static --with-libiconv=gnu \
                --disable-gtk-doc --with-html-dir=${PREFIX}/share/doc \
                --disable-man --without-xml-catalog \
--- sysutils/hal/Makefile.orig  2011-03-13 17:05:01.000000000 +0100
+++ sysutils/hal/Makefile       2011-03-13 17:27:58.000000000 +0100
@@ -26,7 +26,7 @@
 USE_GNOME=     gnomehack intlhack ltverhack
 USE_AUTOTOOLS= libtool
 USE_LDCONFIG=  yes
-USE_PYTHON=    yes
+USE_PYTHON_BUILD=yes
 CONFIGURE_ARGS=        --disable-gtk-doc \
                --with-backend=freebsd \
                --disable-docbook-docs \
--- sysutils/polkit/Makefile.orig       2011-03-13 17:05:11.000000000 +0100
+++ sysutils/polkit/Makefile    2011-03-13 17:28:54.000000000 +0100
@@ -17,7 +17,7 @@
 BUILD_DEPENDS=
${LOCALBASE}/share/gir-1.0/GLib-2.0.gir:${PORTSDIR}/devel/gobject-introspection
 LIB_DEPENDS=   eggdbus-1.0:${PORTSDIR}/devel/eggdbus \
                expat.6:${PORTSDIR}/textproc/expat2
-RUN_DEPENDS=
${LOCALBASE}/share/gir-1.0/GLib-2.0.gir:${PORTSDIR}/devel/gobject-introspection
+#RUN_DEPENDS=
${LOCALBASE}/share/gir-1.0/GLib-2.0.gir:${PORTSDIR}/devel/gobject-introspection

 USE_GNOME=     gnomehack glib20 intlhack
 USE_GMAKE=     yes


Kind regards,

Hans Ottevanger


More information about the freebsd-ports mailing list