[Python-apps-commits] r8255 - in packages/mercurial/trunk/debian (3 files)

vicho at users.alioth.debian.org vicho at users.alioth.debian.org
Thu Mar 1 23:44:46 UTC 2012


    Date: Thursday, March 1, 2012 @ 23:44:44
  Author: vicho
Revision: 8255

Change the group of the test dir in test-inherit-mode.t so that the testsuite doesn't fail in kfreebsd-*

Added:
  packages/mercurial/trunk/debian/patches/for_upstream__chgrp_test_inherit.patch
Modified:
  packages/mercurial/trunk/debian/changelog
  packages/mercurial/trunk/debian/patches/series

Modified: packages/mercurial/trunk/debian/changelog
===================================================================
--- packages/mercurial/trunk/debian/changelog	2012-03-01 23:44:37 UTC (rev 8254)
+++ packages/mercurial/trunk/debian/changelog	2012-03-01 23:44:44 UTC (rev 8255)
@@ -1,3 +1,10 @@
+mercurial (2.1-4) UNRELEASED; urgency=low
+
+  * Change the group of the test dir in test-inherit-mode.t so that the
+    testsuite doesn't fail in kfreebsd-*
+
+ -- Javi Merino <vicho at debian.org>  Thu, 01 Mar 2012 23:27:48 +0000
+
 mercurial (2.1-3) experimental; urgency=low
 
   * Remove unused lintian override binary-without-manpage

Added: packages/mercurial/trunk/debian/patches/for_upstream__chgrp_test_inherit.patch
===================================================================
--- packages/mercurial/trunk/debian/patches/for_upstream__chgrp_test_inherit.patch	                        (rev 0)
+++ packages/mercurial/trunk/debian/patches/for_upstream__chgrp_test_inherit.patch	2012-03-01 23:44:44 UTC (rev 8255)
@@ -0,0 +1,19 @@
+Author: Javi Merino <vicho at debian.org>
+Description: Set the group of the test directory to one of the user's group
+  Some $TMPDIRs create folders owned by a group which the user doesn't
+  belong to.  test-inherit-mode then fails when chmod tries to set the
+  setgid bit because the user doesn't have permission to do so.  This
+  patch sets the group of the parent directory to one of the users'
+  groups, so that the test can modify the setgid group of any of the
+  directories created inside it afterwards.
+Forwarded: http://selenic.com/pipermail/mercurial-devel/2012-March/038419.html
+--- a/tests/test-inherit-mode.t
++++ b/tests/test-inherit-mode.t
+@@ -8,6 +8,7 @@
+ just in case somebody has a strange $TMPDIR
+ 
+   $ chmod g-s dir
++  $ chgrp $(groups | awk '{print $1}') dir
+   $ cd dir
+ 
+   $ cat >printmodes.py <<EOF

Modified: packages/mercurial/trunk/debian/patches/series
===================================================================
--- packages/mercurial/trunk/debian/patches/series	2012-03-01 23:44:37 UTC (rev 8254)
+++ packages/mercurial/trunk/debian/patches/series	2012-03-01 23:44:44 UTC (rev 8255)
@@ -9,3 +9,4 @@
 deb_specific__no_optim_bdiff_armel.patch
 deb_specific__fix_hg-ssh_interpreter.patch
 from_upstream__test_check_code_hg_skip_test_if_not_wd.patch
+for_upstream__chgrp_test_inherit.patch




More information about the Python-apps-commits mailing list