The following commit has been merged in the master branch:
commit a87a15ad096884025195698fc76a9ab41a4ac425
Author: Modestas Vainius <[email protected]>
Date: Sat Jan 23 18:52:55 2010 +0200
dpkg-gensymbols: add -a<arch> option.
Use this option to generate a symbol file or diff for any architecture
provided
its binaries are already available.
diff --git a/debian/changelog b/debian/changelog
index b97c4fe..844fd37 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -89,6 +89,7 @@ dpkg (1.15.6) UNRELEASED; urgency=low
there is no way to detect symbol changes in the pattern match sets.
* Add source version to the dpkg-gensymbols diff label, reformat it according
to the rules of dpkg-name.
+ * Add -a<arch> option to dpkg-gensymbols.
[ Jonathan Nieder ]
* Fix a file handle leak in “dpkg-deb --info”. Thanks to Raphael Geissert
diff --git a/man/dpkg-gensymbols.1 b/man/dpkg-gensymbols.1
index 0721d4e..a527c5d 100644
--- a/man/dpkg-gensymbols.1
+++ b/man/dpkg-gensymbols.1
@@ -415,6 +415,11 @@ libraries have been introduced.
This value can be overridden by the environment variable
DPKG_GENSYMBOLS_CHECK_LEVEL.
.TP
+.BI \-a arch
+Assume \fIarch\fR as host architecture when processing symbol files. Use this
+option to generate a symbol file or diff for any architecture provided its
+binaries are already available.
+.TP
.BI \-d
Enable debug mode. Numerous messages are displayed to explain what
.B dpkg\-gensymbols
diff --git a/scripts/dpkg-gensymbols.pl b/scripts/dpkg-gensymbols.pl
index a2cc8c4..98bdfff 100755
--- a/scripts/dpkg-gensymbols.pl
+++ b/scripts/dpkg-gensymbols.pl
@@ -82,6 +82,8 @@ Options:
-V verbose output. Write deprecated symbols and
pattern matching symbols as comments
(in template mode only).
+ -a<arch> assume <arch> as host architecture when processing
+ symbol files.
-d display debug information during work.
-h, --help show this help message.
--version show the version.
@@ -121,6 +123,8 @@ while (@ARGV) {
$template_mode = 1;
} elsif (m/^-V$/) {
$verbose_output = 1;
+ } elsif (m/^-a(.+)$/) {
+ $host_arch = $1;
} elsif (m/^-(h|-help)$/) {
usage();
exit(0);
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]