This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=45317f8730922706541ad935804731adca3e346f

commit 45317f8730922706541ad935804731adca3e346f
Author: Guillem Jover <guil...@debian.org>
AuthorDate: Sun Jul 7 02:00:58 2024 +0200

    test: Switch ar m4 macros to use internal dpkg-ar implementation
    
    This implementation is system independent, so it will work regardless
    of the system ar specific behavior, be that not handling GNU terminated
    names, or handling completely different formats such as on AIX with its
    big and small ar formats, which are unrelated to the common Unix ar
    format.
---
 src/at/local.at | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/at/local.at b/src/at/local.at
index 78e5bc9ca..8f5fc8825 100644
--- a/src/at/local.at
+++ b/src/at/local.at
@@ -52,19 +52,24 @@ m4_define([DPKG_FILE_SIZE], [
   $PERL -E 'say -s shift' "$1" dnl
 ])
 
+# DPKG_AR()
+m4_define([DPKG_AR], [dnl
+  "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl dnl
+])
+
 # DPKG_AR_GEN()
 m4_define([DPKG_AR_GEN], [
-  ar qSc $1 $2
+  DPKG_AR --create $1 $2
 ])
 
 # DPKG_AR_LIST()
 m4_define([DPKG_AR_LIST], [
-  ar t $1
+  DPKG_AR --list $1
 ])
 
 # DPKG_AR_EXTRACT()
 m4_define([DPKG_AR_EXTRACT], [
-  ar x $1 $2
+  DPKG_AR --extract $1 $2
 ])
 
 # DPKG_CHECK_DIFF($file_out, $file_exp)

-- 
Dpkg.Org's dpkg

Reply via email to