Control: tags -1 patch sid

Hi,

On Mon, 30 Mar 2015 21:22:47 +0200, Salvatore Bonaccorso wrote:
> Traceback (most recent call last):
>   File "/«PKGBUILDDIR»/tests/test_debfile.py", line 64, in test_getmember
>     self.assertEqual(m.owner, mstat[stat.ST_UID])
> AssertionError: 0 != 1000

This is caused by this change in binutils 2.25-6 (which is only in sid):

  * Configure with --enable-deterministic-archives. Closes: #774429.

That configure option makes ar set uid and gid to zero by default.

The minimal patch to fix the issue is attached.

--
Dmitry Shachnev
--- a/tests/test_debfile.py	2014-08-27 04:16:10.000000000 +0400
+++ b/tests/test_debfile.py	2015-04-03 14:35:09.077153518 +0300
@@ -37,7 +37,7 @@
 class TestArFile(unittest.TestCase):
 
     def setUp(self):
-        os.system("ar r test.ar test_debfile.py test_changelog test_deb822.py >/dev/null 2>&1") 
+        os.system("ar rU test.ar test_debfile.py test_changelog test_deb822.py >/dev/null 2>&1") 
         assert os.path.exists("test.ar")
         with os.popen("ar t test.ar") as ar:
             self.testmembers = [x.strip() for x in ar.readlines()]

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to