OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 | 2 |
3 import os | 3 import os |
4 import common | 4 import common |
5 from autotest_lib.client.bin import utils | 5 from autotest_lib.client.bin import utils |
6 | 6 |
7 version = 1 | 7 version = 1 |
8 | 8 |
9 def setup(tarball, topdir): | 9 def setup(tarball, topdir): |
10 srcdir = os.path.join(topdir, 'src') | 10 srcdir = os.path.join(topdir, 'src') |
11 utils.extract_tarball_to_dir(tarball, srcdir) | 11 utils.extract_tarball_to_dir(tarball, srcdir) |
12 os.chdir(srcdir) | 12 os.chdir(srcdir) |
13 utils.system ('make') | 13 utils.system('patch -p1 < ../00_arches.patch') |
14 utils.system ('make prefix=%s install' % topdir) | 14 utils.system('make') |
| 15 utils.system('make prefix=%s install' % topdir) |
15 os.chdir(topdir) | 16 os.chdir(topdir) |
16 | 17 |
17 | 18 |
18 # old source was | 19 # old source was |
19 # http://www.kernel.org/pub/linux/kernel/people/bcrl/aio/libaio-0.3.92.tar.bz2 | 20 # http://www.kernel.org/pub/linux/kernel/people/bcrl/aio/libaio-0.3.92.tar.bz2 |
20 # now grabbing from debian | 21 # now grabbing from debian |
21 # http://ftp.debian.org/debian/pool/main/liba/libaio/libaio_0.3.106.orig.tar.gz | 22 # http://ftp.debian.org/debian/pool/main/liba/libaio/libaio_0.3.106.orig.tar.gz |
| 23 # architecture patch from here |
| 24 # http://git.hadrons.org/?p=debian/pkgs/libaio.git;a=tree;f=debian/patches |
22 | 25 |
23 pwd = os.getcwd() | 26 pwd = os.getcwd() |
24 tarball = os.path.join(pwd, 'libaio_0.3.106.orig.tar.gz') | 27 tarball = os.path.join(pwd, 'libaio_0.3.106.orig.tar.gz') |
25 utils.update_version(pwd+'/src', False, version, setup, tarball, pwd) | 28 utils.update_version(pwd+'/src', False, version, setup, tarball, pwd) |
OLD | NEW |