Subject: Shared libraries and version handling

From: Dale Scheetz <[email-masked]>
Date: Wed, 11 Sep 1996 10:02:34 -0400 (EDT)

I've been working on converting the gmp package to the new source format
and adding shared libraries to the package at the same time. Since version
tagging no longer takes place in debian/rules I have had to hard code the
so version numbers into both the rules and the Makefile. I have looked
through the new docs with no success (my index karma again probably). Is
there a method of picking up this information from a central source in the
package?

TIA,

Dwarf

------------                                          --------------

aka   Dale Scheetz                   Phone:   1 (904) 877-0257
      Flexible Software              Fax:     NONE 
      Black Creek Critters           e-mail:  [email-masked]

------------ If you don't see what you want, just ask --------------

---

From: Guy Maor <[email-masked]>
Date: Wed, 11 Sep 1996 19:49:20 -0500 (CDT)

On Wed, 11 Sep 1996, Dale Scheetz wrote:

> Is there a method of picking up this information [package version]
> from a central source in the package?

You can just do what dpkg does - parse the changelog:

/usr/lib/dpkg/parsechangelog/debian < debian/changelog | \
sed -n '/Version: /s///p'

If you use a different changelog format, you'll have to call your
parser instead.  If you want just the major number for an soname, use
'/Version: \(.*\)\..*/s//\1/p' as the sed command.

Guy

---

From: [email-masked] (Heiko Schlittermann)
Date: Thu, 12 Sep 1996 08:25:46 +0200 (MET DST)

: I've been working on converting the gmp package to the new source format
: and adding shared libraries to the package at the same time. Since version
: tagging no longer takes place in debian/rules I have had to hard code the
: so version numbers into both the rules and the Makefile. I have looked
: through the new docs with no success (my index karma again probably). Is
: there a method of picking up this information from a central source in the
: package?

I think about doing somethink like an imaginary dpkg-substvars.  It
should 

        * obtain the variables values from central cource
          (debian/substvars) or from within the dpkg-* library
          routines (see docs for available vars (e.g.  ${Source-Version}))

and

        * output the contents of a specified variable
          to be uses like:
                dpkg-substvars --print Source-Version

and/or

        * filter (a la sed) and substitute varibles
          to be used like:
                dpkg-substvars <debian/shlibs >debian/tmp/DEBIAN/shlibs

What do you think about?

(Or have I missed such nice tool?  (Having dpkg-1.3.14).

    Heiko
--
email : [email-masked] [email-masked] [email-masked]
pgp   : A1 7D F6 7B 69 73 48 35  E1 DE 21 A7 A8 9A 77 92 
finger: [email-masked]         [email-masked]