RPM Package Manager, CVS Repository
  http://rpm5.org/cvs/
  ____________________________________________________________________________

  Server: rpm5.org                         Name:   Ralf S. Engelschall
  Root:   /v/rpm/cvs                       Email:  [EMAIL PROTECTED]
  Module: rpm                              Date:   23-Jul-2007 17:03:43
  Branch: HEAD                             Handle: 2007072316034102

  Modified files:
    rpm                     CHANGES configure.ac devtool.conf
    rpm/build               Makefile.am
    rpm/lib                 Makefile.am
    rpm/misc                Makefile.am
    rpm/rpmconstant         Makefile.am
    rpm/rpmdb               Makefile.am
    rpm/rpmio               Makefile.am

  Log:
    Ok, let the crowd win: use implicit internal and external library
    dependencies by default. But at least allow one to explicitly disable
    it again via --disable-build-intlibdep and --disable-build-extlibdep.
    
    Additionally, remove the GNU libtool *.la files only during
    installation if --disable-build-lafiles is used. This is related to the
    --disable-build-{int,ext}libdep as for static libraries one can only
    "encode" the library interdependencies in the GNU libtool *.la files.
    
    Notice: I personally think this is the wrong direction for RPM 5,
    because this way one again receives the possibility to "just link
    against librpmxxx", let this magically work and this way especially
    circumvent the use of the central pkg-config(1) API (which is IMHO
    more consistent as it also provides the path to the includes, etc).
    But as I'm alone in my camp, here it is. This is what people wish, not
    what IMHO really makes sense. I personally think this is the wrong
    direction as it provides _multiple_ ways of linking against the RPM 5
    C API, each with its pros and cons and especially each one not 100%
    compatible to the others. Unfortunately, my previously implemented "use
    the pkg-config(1) API only" has not reached consenus... ;-)

  Summary:
    Revision    Changes     Path
    1.1514      +3  -0      rpm/CHANGES
    2.67        +9  -0      rpm/build/Makefile.am
    2.214       +36 -0      rpm/configure.ac
    2.60        +3  -0      rpm/devtool.conf
    2.162       +8  -0      rpm/lib/Makefile.am
    1.28        +6  -0      rpm/misc/Makefile.am
    1.7         +3  -1      rpm/rpmconstant/Makefile.am
    1.74        +7  -0      rpm/rpmdb/Makefile.am
    1.100       +6  -0      rpm/rpmio/Makefile.am
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: rpm/CHANGES
  ============================================================================
  $ cvs diff -u -r1.1513 -r1.1514 CHANGES
  --- rpm/CHANGES       23 Jul 2007 08:45:08 -0000      1.1513
  +++ rpm/CHANGES       23 Jul 2007 15:03:41 -0000      1.1514
  @@ -1,4 +1,7 @@
   4.5 -> 5.0:
  +    - rse: use implicit internal library dependencies by default, but allow 
disabling via --disable-build-intlibdep
  +    - rse: use implicit external library dependencies by default, but allow 
disabling via --disable-build-extlibdep
  +    - rse: remove GNU libtool *.la files during installation only if 
--disable-build-lafiles is used
       - rse: on --rebuilddb remove (currently) unused database files to avoid 
mixed formats on backend upgrades and switches
       - jbj: adjust signal polling for python exit purposes <[EMAIL 
PROTECTED]>.
       - rse: provide a first cut for an librpmconstant.vers ld(1) version 
script
  @@ .
  patch -p0 <<'@@ .'
  Index: rpm/build/Makefile.am
  ============================================================================
  $ cvs diff -u -r2.66 -r2.67 Makefile.am
  --- rpm/build/Makefile.am     21 Jul 2007 19:16:50 -0000      2.66
  +++ rpm/build/Makefile.am     23 Jul 2007 15:03:42 -0000      2.67
  @@ -35,13 +35,22 @@
   librpmbuild_la_LDFLAGS += -Wl,--version-script=$(srcdir)/librpmbuild.vers
   endif
   librpmbuild_la_LIBADD =
  +if ENABLE_BUILD_INTLIBDEP
  +librpmbuild_la_LIBADD += \
  +     $(top_builddir)/lib/librpm.la \
  +     $(top_builddir)/rpmdb/librpmdb.la \
  +     $(top_builddir)/rpmio/librpmio.la \
  +     $(top_builddir)/misc/librpmmisc.la
  +endif
   librpmbuild.la: $(librpmbuild_la_OBJECTS) $(librpmbuild_la_DEPENDENCIES) 
        $(librpmbuild_la_LINK) -rpath $(usrlibdir) $(librpmbuild_la_OBJECTS) 
$(librpmbuild_la_LIBADD)
   
   install-data-hook:
  +if !ENABLE_BUILD_LAFILES
        -for l in $(usrlib_LTLIBRARIES); do \
            rm -f $(DESTDIR)$(usrlibdir)/$${l}; \
        done
  +endif
   if WITH_PATH_VERSIONED
        -for l in $(usrlib_LTLIBRARIES); do \
            base=`echo "$${l}" | sed -e 's;\.la$$;;'`; \
  @@ .
  patch -p0 <<'@@ .'
  Index: rpm/configure.ac
  ============================================================================
  $ cvs diff -u -r2.213 -r2.214 configure.ac
  --- rpm/configure.ac  21 Jul 2007 19:34:34 -0000      2.213
  +++ rpm/configure.ac  23 Jul 2007 15:03:41 -0000      2.214
  @@ -206,6 +206,42 @@
       [HAVE_LD_VERSION_SCRIPT],
       [test ".$have_ld_version_script" = .yes])
   
  +dnl # support implicit internal library dependencies
  +AC_ARG_ENABLE(
  +    [build-intlibdep],
  +    AC_HELP_STRING(
  +        [--disable-build-intlibdep],
  +        [disable use of implicit internal library dependencies]),
  +    [ do_build_intlibdep=$enableval ],
  +    [ do_build_intlibdep=yes ])
  +AM_CONDITIONAL(
  +    [ENABLE_BUILD_INTLIBDEP],
  +    [test ".$do_build_intlibdep" = .yes])
  +
  +dnl # support implicit external library dependencies
  +AC_ARG_ENABLE(
  +    [build-extlibdep],
  +    AC_HELP_STRING(
  +        [--disable-build-extlibdep],
  +        [disable use of implicit external library dependencies]),
  +    [ do_build_extlibdep=$enableval ],
  +    [ do_build_extlibdep=yes ])
  +AM_CONDITIONAL(
  +    [ENABLE_BUILD_EXTLIBDEP],
  +    [test ".$do_build_extlibdep" = .yes])
  +
  +dnl # support removal of GNU libtool *.la files
  +AC_ARG_ENABLE(
  +    [build-lafiles],
  +    AC_HELP_STRING(
  +        [--disable-build-lafiles],
  +        [disable the removal of GNU libtool *.la files on installation]),
  +    [ do_build_lafiles=$enableval ],
  +    [ do_build_lafiles=yes ])
  +AM_CONDITIONAL(
  +    [ENABLE_BUILD_LAFILES],
  +    [test ".$do_build_lafiles" = .yes])
  +
   dnl # FIXME: Linux hack: choose /usr/lib or /usr/lib64 for library installs 
and linking
   MARK64=
   case "$target" in
  @@ .
  patch -p0 <<'@@ .'
  Index: rpm/devtool.conf
  ============================================================================
  $ cvs diff -u -r2.59 -r2.60 devtool.conf
  --- rpm/devtool.conf  21 Jul 2007 20:12:13 -0000      2.59
  +++ rpm/devtool.conf  23 Jul 2007 15:03:41 -0000      2.60
  @@ -769,6 +769,9 @@
               --without-perl \
               --without-python \
               --without-apidocs \
  +            --disable-build-intlibdep \
  +            --disable-build-extlibdep \
  +            --disable-build-lafiles \
               --enable-build-warnings \
               --enable-build-debug \
               --disable-build-lib64 \
  @@ .
  patch -p0 <<'@@ .'
  Index: rpm/lib/Makefile.am
  ============================================================================
  $ cvs diff -u -r2.161 -r2.162 Makefile.am
  --- rpm/lib/Makefile.am       21 Jul 2007 19:16:50 -0000      2.161
  +++ rpm/lib/Makefile.am       23 Jul 2007 15:03:42 -0000      2.162
  @@ -45,13 +45,21 @@
   librpm_la_LDFLAGS += -Wl,--version-script=$(srcdir)/librpm.vers
   endif
   librpm_la_LIBADD =
  +if ENABLE_BUILD_INTLIBDEP
  +librpm_la_LIBADD += \
  +     $(top_builddir)/rpmdb/librpmdb.la \
  +     $(top_builddir)/rpmio/librpmio.la \
  +     $(top_builddir)/misc/librpmmisc.la
  +endif
   librpm.la: $(librpm_la_OBJECTS) $(librpm_la_DEPENDENCIES) 
        $(librpm_la_LINK) -rpath $(usrlibdir) $(librpm_la_OBJECTS) 
$(librpm_la_LIBADD)
   
   install-data-hook:
  +if !ENABLE_BUILD_LAFILES
        -for l in $(usrlib_LTLIBRARIES); do \
            rm -f $(DESTDIR)$(usrlibdir)/$${l}; \
        done
  +endif
   if WITH_PATH_VERSIONED
        -for l in $(usrlib_LTLIBRARIES); do \
            base=`echo "$${l}" | sed -e 's;\.la$$;;'`; \
  @@ .
  patch -p0 <<'@@ .'
  Index: rpm/misc/Makefile.am
  ============================================================================
  $ cvs diff -u -r1.27 -r1.28 Makefile.am
  --- rpm/misc/Makefile.am      21 Jul 2007 19:16:50 -0000      1.27
  +++ rpm/misc/Makefile.am      23 Jul 2007 15:03:42 -0000      1.28
  @@ -33,15 +33,21 @@
        @WITH_ZLIB_LDFLAGS@ @WITH_ZLIB_LIBS@ \
        @WITH_LUA_LDFLAGS@  @WITH_LUA_LIBS@ \
        @WITH_FILE_LDFLAGS@ @WITH_FILE_LIBS@
  +if ENABLE_BUILD_EXTLIBDEP
  +librpmmisc_la_LIBADD += \
  +     $(LDFLAGS) $(LIBS)
  +endif
   librpmmisc_la_DEPENDENCIES = \
        @ALLOCA@
   librpmmisc.la: $(librpmmisc_la_OBJECTS) $(librpmmisc_la_DEPENDENCIES) 
        $(librpmmisc_la_LINK) -rpath $(usrlibdir) $(librpmmisc_la_OBJECTS) 
$(librpmmisc_la_LIBADD)
   
   install-data-hook:
  +if !ENABLE_BUILD_LAFILES
        -for l in $(usrlib_LTLIBRARIES); do \
            rm -f $(DESTDIR)$(usrlibdir)/$${l}; \
        done
  +endif
   if WITH_PATH_VERSIONED
        -for l in $(usrlib_LTLIBRARIES); do \
            base=`echo "$${l}" | sed -e 's;\.la$$;;'`; \
  @@ .
  patch -p0 <<'@@ .'
  Index: rpm/rpmconstant/Makefile.am
  ============================================================================
  $ cvs diff -u -r1.6 -r1.7 Makefile.am
  --- rpm/rpmconstant/Makefile.am       22 Jul 2007 20:08:58 -0000      1.6
  +++ rpm/rpmconstant/Makefile.am       23 Jul 2007 15:03:42 -0000      1.7
  @@ -1,4 +1,4 @@
  -# $Id: Makefile.am,v 1.6 2007/07/22 20:08:58 rse Exp $
  +# $Id: Makefile.am,v 1.7 2007/07/23 15:03:42 rse Exp $
   
   AUTOMAKE_OPTIONS = 1.4 foreign
   
  @@ -52,9 +52,11 @@
        $(PERL) $(srcdir)/rpmh2tbl $(myHEADERS) >$@
   
   install-data-hook:
  +if !ENABLE_BUILD_LAFILES
        -for l in $(usrlib_LTLIBRARIES); do \
            rm -f $(DESTDIR)$(usrlibdir)/$${l}; \
        done
  +endif
   if WITH_PATH_VERSIONED
        -for l in $(usrlib_LTLIBRARIES); do \
            base=`echo "$${l}" | sed -e 's;\.la$$;;'`; \
  @@ .
  patch -p0 <<'@@ .'
  Index: rpm/rpmdb/Makefile.am
  ============================================================================
  $ cvs diff -u -r1.73 -r1.74 Makefile.am
  --- rpm/rpmdb/Makefile.am     21 Jul 2007 19:16:51 -0000      1.73
  +++ rpm/rpmdb/Makefile.am     23 Jul 2007 15:03:43 -0000      1.74
  @@ -48,14 +48,21 @@
   librpmdb_la_LDFLAGS += -Wl,--version-script=$(srcdir)/librpmdb.vers
   endif
   librpmdb_la_LIBADD = $(DBLIBOBJS)
  +if ENABLE_BUILD_INTLIBDEP
  +librpmdb_la_LIBADD += \
  +     $(top_builddir)/rpmio/librpmio.la \
  +     $(top_builddir)/misc/librpmmisc.la
  +endif
   librpmdb_la_DEPENDENCIES = $(DBLIBOBJS)
   librpmdb.la: $(librpmdb_la_OBJECTS) $(librpmdb_la_DEPENDENCIES) 
        $(librpmdb_la_LINK) -rpath $(usrlibdir) $(librpmdb_la_OBJECTS) 
$(librpmdb_la_LIBADD)
   
   install-data-hook:
  +if !ENABLE_BUILD_LAFILES
        -for l in $(usrlib_LTLIBRARIES); do \
            rm -f $(DESTDIR)$(usrlibdir)/$${l}; \
        done
  +endif
   if WITH_PATH_VERSIONED
        -for l in $(usrlib_LTLIBRARIES); do \
            base=`echo "$${l}" | sed -e 's;\.la$$;;'`; \
  @@ .
  patch -p0 <<'@@ .'
  Index: rpm/rpmio/Makefile.am
  ============================================================================
  $ cvs diff -u -r1.99 -r1.100 Makefile.am
  --- rpm/rpmio/Makefile.am     21 Jul 2007 19:16:51 -0000      1.99
  +++ rpm/rpmio/Makefile.am     23 Jul 2007 15:03:43 -0000      1.100
  @@ -56,13 +56,19 @@
   librpmio_la_LDFLAGS += -Wl,--version-script=$(srcdir)/librpmio.vers
   endif
   librpmio_la_LIBADD =
  +if ENABLE_BUILD_INTLIBDEP
  +librpmio_la_LIBADD += \
  +     $(top_builddir)/misc/librpmmisc.la
  +endif
   librpmio.la: $(librpmio_la_OBJECTS) $(librpmio_la_DEPENDENCIES) 
        $(librpmio_la_LINK) -rpath $(usrlibdir) $(librpmio_la_OBJECTS) 
$(librpmio_la_LIBADD)
   
   install-data-hook:
  +if !ENABLE_BUILD_LAFILES
        -for l in $(usrlib_LTLIBRARIES); do \
            rm -f $(DESTDIR)$(usrlibdir)/$${l}; \
        done
  +endif
   if WITH_PATH_VERSIONED
        -for l in $(usrlib_LTLIBRARIES); do \
            base=`echo "$${l}" | sed -e 's;\.la$$;;'`; \
  @@ .
______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
CVS Sources Repository                                [email protected]

Reply via email to