The branch, master has been updated
       via  f60477e2f390146ca43bd82b2e70890ba037efca (commit)
      from  0fb4c32e8939454039d6cf29e9f154f435fccdcb (commit)


- Shortlog ------------------------------------------------------------
f60477e dpkg-gensymbols: Add new -I<file> option to force usage of a particular 
symbols file

Summary of changes:
 ChangeLog                  |    6 ++++++
 man/ChangeLog              |    4 ++++
 man/dpkg-gensymbols.1      |    4 ++++
 scripts/dpkg-gensymbols.pl |    7 ++++++-
 4 files changed, 20 insertions(+), 1 deletions(-)
-----------------------------------------------------------------------
Details of changes:

commit f60477e2f390146ca43bd82b2e70890ba037efca
Author: Raphael Hertzog <[EMAIL PROTECTED]>
Date:   Sat Nov 24 22:18:08 2007 +0100

    dpkg-gensymbols: Add new -I<file> option to force usage of a particular 
symbols file

diff --git a/ChangeLog b/ChangeLog
index 053235c..783dad8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-11-24  Raphael Hertzog  <[EMAIL PROTECTED]>
+
+       * scripts/dpkg-gensymbols.pl: Add a new -I<file> option to force
+       the usage of a specific file as basis for the generated symbols
+       file.
+
 2007-11-24  Guillem Jover  <[EMAIL PROTECTED]>
 
        * configure.ac: Bump version to 1.14.12~.
diff --git a/man/ChangeLog b/man/ChangeLog
index deeaece..a82f5ec 100644
--- a/man/ChangeLog
+++ b/man/ChangeLog
@@ -1,3 +1,7 @@
+2007-11-24  Raphael Hertzog  <[EMAIL PROTECTED]>
+
+       * dpkg-gensymbols.1: Document the new -I<file> option.
+
 2007-11-22  Guillem Jover  <[EMAIL PROTECTED]>
 
        * dpkg-name.1: Document that the Package-Type field is now supported.
diff --git a/man/dpkg-gensymbols.1 b/man/dpkg-gensymbols.1
index 8bd3997..ddae589 100644
--- a/man/dpkg-gensymbols.1
+++ b/man/dpkg-gensymbols.1
@@ -117,6 +117,10 @@ libraries. You can use a regular expression in 
\fIlibrary-file\fR to match
 multiple libraries with a single argument (otherwise you need multiple
 \fB\-e\fR).
 .TP
+.BI \-I filename
+Use \fIfilename\fR as reference file to generate the symbols file
+that is integrated in the package itself.
+.TP
 .B \-O
 Print the generated symbols file to standard output, rather than being
 stored in the package build tree.
diff --git a/scripts/dpkg-gensymbols.pl b/scripts/dpkg-gensymbols.pl
index bab05c0..687e831 100755
--- a/scripts/dpkg-gensymbols.pl
+++ b/scripts/dpkg-gensymbols.pl
@@ -27,6 +27,7 @@ my $sourceversion;
 my $stdout;
 my $oppackage;
 my $compare = 1; # Bail on missing symbols by default
+my $input;
 my $output;
 my $debug = 0;
 my $host_arch = get_host_arch();
@@ -60,6 +61,8 @@ Options:
                           (level goes from 0 for no check, to 4
                           for all checks). By default checks at
                           level 1.
+  -I<file>                 force usage of <file> as reference symbols
+                           file instead of the default file.
   -O<file>                 write to <file>, not .../DEBIAN/symbols.
   -O                       write to stdout, not .../DEBIAN/symbols.
   -d                       display debug information during work.
@@ -93,6 +96,8 @@ while (@ARGV) {
        $packagebuilddir =~ s{/+$}{};
     } elsif (m/^-O$/) {
        $stdout= 1;
+    } elsif (m/^-I(.+)$/) {
+       $input = $1;
     } elsif (m/^-O(.+)$/) {
        $output= $1;
     } elsif (m/^-(h|-help)$/) {
@@ -121,7 +126,7 @@ if (not defined($oppackage)) {
 my $symfile = Dpkg::Shlibs::SymbolFile->new();
 my $ref_symfile = Dpkg::Shlibs::SymbolFile->new();
 # Load source-provided symbol information
-foreach my $file ($output, "debian/$oppackage.symbols.$host_arch",
+foreach my $file ($input, $output, "debian/$oppackage.symbols.$host_arch",
     "debian/symbols.$host_arch", "debian/$oppackage.symbols",
     "debian/symbols")
 {

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to