Miklos Vajna | 1 Jul 2008 13:35
Picon
Gravatar

frugalware-current: t/s/installsize: add a wrapper to take care of fakeroot

Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=b3395997f1ae681e5d60b5724df24ab666bb78a3

commit b3395997f1ae681e5d60b5724df24ab666bb78a3
Author: Miklos Vajna <vmiklos@...>
Date:   Tue Jul 1 13:34:15 2008 +0200

t/s/installsize: add a wrapper to take care of fakeroot

diff --git a/t/s/installsize b/t/s/installsize
index cc6d8a6..56d6738 100755
--- a/t/s/installsize
+++ b/t/s/installsize
 <at>  <at>  -1,53 +1,3  <at>  <at> 
-#!/usr/bin/env python
+#!/bin/sh

-try:
-	import pacman
-except ImportError:
-	import alpm
-	pacman = alpm
-import os, tempfile, shutil, sys, re
-
-archlist = None
-limit = 630
-
-if len(sys.argv) > 1:
-	if sys.argv[1] == "--help":
-		print "check if the default install fits on a single CD"
-		sys.exit(0)
(Continue reading)

Miklos Vajna | 1 Jul 2008 13:35
Picon
Gravatar

frugalware-current: t/fpmjunk-*: use fakeroot

Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=b167d2756014874aad7424a2e3d39eec9cce8996

commit b167d2756014874aad7424a2e3d39eec9cce8996
Author: Miklos Vajna <vmiklos@...>
Date:   Tue Jul 1 13:22:21 2008 +0200

t/fpmjunk-*: use fakeroot

diff --git a/t/fpmjunk-i686 b/t/fpmjunk-i686
index 7dd6718..9e9fee4 100755
--- a/t/fpmjunk-i686
+++ b/t/fpmjunk-i686
 <at>  <at>  -1,3 +1,3  <at>  <at> 
#!/bin/sh

-python fpmjunk.py $ <at>  i686
+fakeroot python fpmjunk.py $ <at>  i686
diff --git a/t/fpmjunk-x86_64 b/t/fpmjunk-x86_64
index 381eac4..fe26563 100755
--- a/t/fpmjunk-x86_64
+++ b/t/fpmjunk-x86_64
 <at>  <at>  -1,3 +1,3  <at>  <at> 
#!/bin/sh

-python fpmjunk.py $ <at>  x86_64
+fakeroot python fpmjunk.py $ <at>  x86_64
Miklos Vajna | 1 Jul 2008 13:35
Picon
Gravatar

frugalware-current: t/deps-xorg-i686

Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=be4b6776afcb37aebf132f447d88481b98138ce5

commit be4b6776afcb37aebf132f447d88481b98138ce5
Author: Miklos Vajna <vmiklos@...>
Date:   Tue Jul 1 13:22:43 2008 +0200

t/deps-xorg-i686

abstract the main part to deps-xorg.py and call it via fakeroot

diff --git a/t/deps-xorg-i686 b/t/deps-xorg-i686
index 112256d..e024117 100755
--- a/t/deps-xorg-i686
+++ b/t/deps-xorg-i686
 <at>  <at>  -1,73 +1,3  <at>  <at> 
-#!/usr/bin/env python
+#!/bin/sh

-try:
-	import pacman
-except ImportError:
-	import alpm
-	pacman = alpm
-import os, tempfile, shutil, sys
-
-if len(sys.argv) > 1 and sys.argv[1] == "--help":
-	print "base packages which depend on xorg (lib->xlib is needed or so)"
-	sys.exit(0)
-
-basecats = ['base', 'apps', 'lib', 'multimedia', 'network', 'devel']
(Continue reading)

Miklos Vajna | 1 Jul 2008 13:35
Picon
Gravatar

frugalware-current: t/deps-base-i686: abstract most of it to deps-base.py

Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=32dae387f895a77744ce92c46b2633bbea96eecc

commit 32dae387f895a77744ce92c46b2633bbea96eecc
Author: Miklos Vajna <vmiklos@...>
Date:   Tue Jul 1 13:26:48 2008 +0200

t/deps-base-i686: abstract most of it to deps-base.py

diff --git a/t/deps-base-i686 b/t/deps-base-i686
index a97450e..c0804bc 100755
--- a/t/deps-base-i686
+++ b/t/deps-base-i686
 <at>  <at>  -1,73 +1,3  <at>  <at> 
-#!/usr/bin/env python
+#!/bin/sh

-try:
-	import pacman
-except ImportError:
-	import alpm
-	pacman = alpm
-import os, tempfile, shutil, sys
-
-if len(sys.argv) > 1 and sys.argv[1] == "--help":
-	print "base packages which depend on packages outsite base (->base is needed)"
-	sys.exit(0)
-
-basecats = ['base']
-
-root = tempfile.mkdtemp()
(Continue reading)

Miklos Vajna | 1 Jul 2008 13:35
Picon
Gravatar

frugalware-current: t/deps-*: use fakeroot

Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=3302d0b0543825496351df135c6a1dab610ab4f5

commit 3302d0b0543825496351df135c6a1dab610ab4f5
Author: Miklos Vajna <vmiklos@...>
Date:   Tue Jul 1 13:23:41 2008 +0200

t/deps-*: use fakeroot

diff --git a/t/deps-i686 b/t/deps-i686
index 45fbd7f..2ed733d 100755
--- a/t/deps-i686
+++ b/t/deps-i686
 <at>  <at>  -1,3 +1,3  <at>  <at> 
#!/bin/sh

-python deps.py $ <at>  i686
+fakeroot python deps.py $ <at>  i686
diff --git a/t/deps-x86_64 b/t/deps-x86_64
index 73bd841..d788688 100755
--- a/t/deps-x86_64
+++ b/t/deps-x86_64
 <at>  <at>  -1,3 +1,3  <at>  <at> 
#!/bin/sh

-python deps.py $ <at>  x86_64
+fakeroot python deps.py $ <at>  x86_64
Miklos Vajna | 1 Jul 2008 13:35
Picon
Gravatar

frugalware-current: t/deps-extra-i686: abstract most of it to deps-extra.py

Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=79cec98ff65d398457f5eb56ce8eb59c265c7ae9

commit 79cec98ff65d398457f5eb56ce8eb59c265c7ae9
Author: Miklos Vajna <vmiklos@...>
Date:   Tue Jul 1 13:29:49 2008 +0200

t/deps-extra-i686: abstract most of it to deps-extra.py

diff --git a/docs/testsuite.txt b/docs/testsuite.txt
index 6975ea9..93ae17c 100644
--- a/docs/testsuite.txt
+++ b/docs/testsuite.txt
 <at>  <at>  -34,3 +34,11  <at>  <at>  etc.).
that's not a problem. If the test 'fails' there must be some output. For
example if there are problematic packages, then it's recommended to list each
package in a separate line with their path under FST.
+
+== Technical details
+
+Given that all the files in the fdb and fpm files are owned by root, if
+you want to operate on them, then you need to use fakeroot. The
+testsuite wrapper won't do this for you. A common practice is to write a
+generic python script that operates on the fdb, then create a shell
+wrapper for each arch, which will call the python script via fakeroot.
diff --git a/t/deps-extra-i686 b/t/deps-extra-i686
index d7d1134..f3b9bf7 100755
--- a/t/deps-extra-i686
+++ b/t/deps-extra-i686
 <at>  <at>  -1,77 +1,3  <at>  <at> 
-#!/usr/bin/env python
(Continue reading)

Miklos Vajna | 1 Jul 2008 13:42
Picon
Gravatar

frugalware-0.8: t/deps-extra-i686: abstract most of it to deps-extra.py

Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-0.8.git;a=commitdiff;h=28ac04d61a06644866d431742279ee340101819d

commit 28ac04d61a06644866d431742279ee340101819d
Author: Miklos Vajna <vmiklos@...>
Date:   Tue Jul 1 13:29:49 2008 +0200

t/deps-extra-i686: abstract most of it to deps-extra.py

diff --git a/docs/testsuite.txt b/docs/testsuite.txt
index 6975ea9..93ae17c 100644
--- a/docs/testsuite.txt
+++ b/docs/testsuite.txt
 <at>  <at>  -34,3 +34,11  <at>  <at>  etc.).
that's not a problem. If the test 'fails' there must be some output. For
example if there are problematic packages, then it's recommended to list each
package in a separate line with their path under FST.
+
+== Technical details
+
+Given that all the files in the fdb and fpm files are owned by root, if
+you want to operate on them, then you need to use fakeroot. The
+testsuite wrapper won't do this for you. A common practice is to write a
+generic python script that operates on the fdb, then create a shell
+wrapper for each arch, which will call the python script via fakeroot.
diff --git a/t/deps-extra-i686 b/t/deps-extra-i686
index d7d1134..f3b9bf7 100755
--- a/t/deps-extra-i686
+++ b/t/deps-extra-i686
 <at>  <at>  -1,77 +1,3  <at>  <at> 
-#!/usr/bin/env python
(Continue reading)

Miklos Vajna | 1 Jul 2008 13:42
Picon
Gravatar

frugalware-0.8: t/deps-*: use fakeroot

Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-0.8.git;a=commitdiff;h=e52603c19f4be6a15aebd2d85b52a69897b6a518

commit e52603c19f4be6a15aebd2d85b52a69897b6a518
Author: Miklos Vajna <vmiklos@...>
Date:   Tue Jul 1 13:23:41 2008 +0200

t/deps-*: use fakeroot

diff --git a/t/deps-i686 b/t/deps-i686
index 45fbd7f..2ed733d 100755
--- a/t/deps-i686
+++ b/t/deps-i686
 <at>  <at>  -1,3 +1,3  <at>  <at> 
#!/bin/sh

-python deps.py $ <at>  i686
+fakeroot python deps.py $ <at>  i686
diff --git a/t/deps-x86_64 b/t/deps-x86_64
index 73bd841..d788688 100755
--- a/t/deps-x86_64
+++ b/t/deps-x86_64
 <at>  <at>  -1,3 +1,3  <at>  <at> 
#!/bin/sh

-python deps.py $ <at>  x86_64
+fakeroot python deps.py $ <at>  x86_64
Miklos Vajna | 1 Jul 2008 13:42
Picon
Gravatar

frugalware-0.8: t/fpmjunk-*: use fakeroot

Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-0.8.git;a=commitdiff;h=fa7d20ea86fe4ebe90630970cde40679f4455488

commit fa7d20ea86fe4ebe90630970cde40679f4455488
Author: Miklos Vajna <vmiklos@...>
Date:   Tue Jul 1 13:22:21 2008 +0200

t/fpmjunk-*: use fakeroot

diff --git a/t/fpmjunk-i686 b/t/fpmjunk-i686
index 7dd6718..9e9fee4 100755
--- a/t/fpmjunk-i686
+++ b/t/fpmjunk-i686
 <at>  <at>  -1,3 +1,3  <at>  <at> 
#!/bin/sh

-python fpmjunk.py $ <at>  i686
+fakeroot python fpmjunk.py $ <at>  i686
diff --git a/t/fpmjunk-x86_64 b/t/fpmjunk-x86_64
index 381eac4..fe26563 100755
--- a/t/fpmjunk-x86_64
+++ b/t/fpmjunk-x86_64
 <at>  <at>  -1,3 +1,3  <at>  <at> 
#!/bin/sh

-python fpmjunk.py $ <at>  x86_64
+fakeroot python fpmjunk.py $ <at>  x86_64
Miklos Vajna | 1 Jul 2008 13:42
Picon
Gravatar

frugalware-0.8: t/deps-base-i686: abstract most of it to deps-base.py

Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-0.8.git;a=commitdiff;h=203e010f27941bbcfef224a09889e04f40bd118a

commit 203e010f27941bbcfef224a09889e04f40bd118a
Author: Miklos Vajna <vmiklos@...>
Date:   Tue Jul 1 13:26:48 2008 +0200

t/deps-base-i686: abstract most of it to deps-base.py

diff --git a/t/deps-base-i686 b/t/deps-base-i686
index a97450e..c0804bc 100755
--- a/t/deps-base-i686
+++ b/t/deps-base-i686
 <at>  <at>  -1,73 +1,3  <at>  <at> 
-#!/usr/bin/env python
+#!/bin/sh

-try:
-	import pacman
-except ImportError:
-	import alpm
-	pacman = alpm
-import os, tempfile, shutil, sys
-
-if len(sys.argv) > 1 and sys.argv[1] == "--help":
-	print "base packages which depend on packages outsite base (->base is needed)"
-	sys.exit(0)
-
-basecats = ['base']
-
-root = tempfile.mkdtemp()
(Continue reading)


Gmane