diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2018-06-20 12:10:10 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2018-06-20 12:48:03 +0000 |
commit | 22637323f018d7b756f063e25f3f20ea449c5ea9 (patch) | |
tree | 2eb00ce69b66d9e654cbf2e8d60e26702faa4894 | |
parent | b58daf664882bbf4d812c3b186b4ba1c067a80da (diff) | |
download | alpine_aports-22637323f018d7b756f063e25f3f20ea449c5ea9.tar.bz2 alpine_aports-22637323f018d7b756f063e25f3f20ea449c5ea9.tar.xz alpine_aports-22637323f018d7b756f063e25f3f20ea449c5ea9.zip |
main/parted: added check() function, updated APKBUILD
-rw-r--r-- | main/parted/APKBUILD | 40 | ||||
-rw-r--r-- | main/parted/make-tests.patch | 45 |
2 files changed, 61 insertions, 24 deletions
diff --git a/main/parted/APKBUILD b/main/parted/APKBUILD index 2088bf9289..94b535150b 100644 --- a/main/parted/APKBUILD +++ b/main/parted/APKBUILD | |||
@@ -1,32 +1,23 @@ | |||
1 | # Maintainer: Natanael Copa <ncopa@alpinelinux.org> | 1 | # Maintainer: Natanael Copa <ncopa@alpinelinux.org> |
2 | pkgname=parted | 2 | pkgname=parted |
3 | pkgver=3.2 | 3 | pkgver=3.2 |
4 | pkgrel=6 | 4 | pkgrel=7 |
5 | pkgdesc="Utility to create, destroy, resize, check and copy partitions" | 5 | pkgdesc="Utility to create, destroy, resize, check and copy partitions" |
6 | url="https://www.gnu.org/software/parted/parted.html" | 6 | url="https://www.gnu.org/software/parted/parted.html" |
7 | arch="all" | 7 | arch="all" |
8 | license="GPL-3.0" | 8 | license="GPL-3.0" |
9 | subpackages="$pkgname-dev $pkgname-doc" | 9 | subpackages="$pkgname-dev $pkgname-doc" |
10 | depends= | 10 | checkdepends="perl eudev util-linux" |
11 | makedepends="readline-dev ncurses-dev lvm2-dev bash util-linux-dev" | 11 | makedepends="readline-dev ncurses-dev lvm2-dev bash util-linux-dev" |
12 | source="ftp://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$pkgver.tar.xz | 12 | source="ftp://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$pkgver.tar.xz |
13 | fix-includes.patch | 13 | fix-includes.patch |
14 | fix-libintl-header-s390x.patch | 14 | fix-libintl-header-s390x.patch |
15 | make-tests.patch | ||
15 | " | 16 | " |
16 | 17 | builddir="$srcdir"/$pkgname-$pkgver | |
17 | _builddir="$srcdir"/$pkgname-$pkgver | ||
18 | |||
19 | prepare() { | ||
20 | cd "$_builddir" | ||
21 | for i in $source; do | ||
22 | case $i in | ||
23 | *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; | ||
24 | esac | ||
25 | done | ||
26 | } | ||
27 | 18 | ||
28 | build() { | 19 | build() { |
29 | cd "$_builddir" | 20 | cd "$builddir" |
30 | ./configure \ | 21 | ./configure \ |
31 | --build=$CBUILD \ | 22 | --build=$CBUILD \ |
32 | --host=$CHOST \ | 23 | --host=$CHOST \ |
@@ -34,21 +25,22 @@ build() { | |||
34 | --disable-debug \ | 25 | --disable-debug \ |
35 | --disable-nls \ | 26 | --disable-nls \ |
36 | --disable-static \ | 27 | --disable-static \ |
37 | --enable-shared \ | 28 | --enable-shared |
38 | || return 1 | 29 | make |
39 | make || return 1 | 30 | } |
31 | |||
32 | check() { | ||
33 | cd "$builddir" | ||
34 | make check | ||
40 | } | 35 | } |
41 | 36 | ||
42 | package() { | 37 | package() { |
43 | cd "$_builddir" | 38 | cd "$builddir" |
44 | make DESTDIR="$pkgdir" install || return 1 | 39 | make DESTDIR="$pkgdir" install |
45 | rm -rf "$pkgdir"/usr/lib/charset.alias | 40 | rm -rf "$pkgdir"/usr/lib/charset.alias |
46 | rmdir -p "$pkgdir"/usr/lib 2>/dev/null || true | 41 | rmdir -p "$pkgdir"/usr/lib 2>/dev/null || true |
47 | } | 42 | } |
48 | md5sums="0247b6a7b314f8edeb618159fa95f9cb parted-3.2.tar.xz | ||
49 | e87ffa1171acbebfa9d2475a093e7e64 fix-includes.patch" | ||
50 | sha256sums="858b589c22297cacdf437f3baff6f04b333087521ab274f7ab677cb8c6bb78e4 parted-3.2.tar.xz | ||
51 | f87c9290e861b969f4520a1af84ebf4b8f5f1437c1d78ee235d5ffcda3bffe84 fix-includes.patch" | ||
52 | sha512sums="4e37dbdd6f5032c9ebfec43704f6882379597d038167b9c4d04053efa083c68a705196713864451fa9e11d32777e16c68982877945c5efd9ea5f8252cb20e1c4 parted-3.2.tar.xz | 43 | sha512sums="4e37dbdd6f5032c9ebfec43704f6882379597d038167b9c4d04053efa083c68a705196713864451fa9e11d32777e16c68982877945c5efd9ea5f8252cb20e1c4 parted-3.2.tar.xz |
44 | 55ee63c218d1867c0f2c596e7c3eec5c42af160181456cc551fe3d432eabed0ac2dd3a3955ff0c375f76aeec8071e7f55a32834b87a0d39b8ef30361f671bfdd fix-includes.patch | ||
53 | 444a7e2fb3235dfd218f6b71fb25adde107d001f638d988ee1fa79686d8efee94a9499e27bdfdd75f9718760b448938b70a90a74285b93a39338d21f4ab4c9dc fix-libintl-header-s390x.patch | 45 | 444a7e2fb3235dfd218f6b71fb25adde107d001f638d988ee1fa79686d8efee94a9499e27bdfdd75f9718760b448938b70a90a74285b93a39338d21f4ab4c9dc fix-libintl-header-s390x.patch |
54 | 55ee63c218d1867c0f2c596e7c3eec5c42af160181456cc551fe3d432eabed0ac2dd3a3955ff0c375f76aeec8071e7f55a32834b87a0d39b8ef30361f671bfdd fix-includes.patch" | 46 | d0b08148f1b8020d8948780c281b2334d5d0acc5850d0a36bccab536bc91d91f5692021712d18d653699895e2c0b847b8bf9e6061d29c1e054f71fd440bc6f1e make-tests.patch" |
diff --git a/main/parted/make-tests.patch b/main/parted/make-tests.patch new file mode 100644 index 0000000000..55bb7d3697 --- /dev/null +++ b/main/parted/make-tests.patch | |||
@@ -0,0 +1,45 @@ | |||
1 | diff --git a/tests/Makefile.in b/tests/Makefile.in | ||
2 | index a0d17ad..65ce856 100644 | ||
3 | --- a/tests/Makefile.in | ||
4 | +++ b/tests/Makefile.in | ||
5 | @@ -1325,18 +1325,12 @@ TESTS = \ | ||
6 | t0205-gpt-list-clobbers-pmbr.sh \ | ||
7 | t0206-gpt-print-with-corrupt-primary-clobbers-pmbr.sh \ | ||
8 | t0207-IEC-binary-notation.sh \ | ||
9 | - t0208-mkpart-end-in-IEC.sh \ | ||
10 | t0209-gpt-pmbr_boot.sh \ | ||
11 | t0210-gpt-resized-partition-entry-array.sh \ | ||
12 | t0211-gpt-rewrite-header.sh \ | ||
13 | - t0212-gpt-many-partitions.sh \ | ||
14 | t0220-gpt-msftres.sh \ | ||
15 | t0250-gpt.sh \ | ||
16 | - t0251-gpt-unicode.sh \ | ||
17 | - t0280-gpt-corrupt.sh \ | ||
18 | t0281-gpt-grow.sh \ | ||
19 | - t0282-gpt-move-backup.sh \ | ||
20 | - t0283-overlap-partitions.sh \ | ||
21 | t0300-dos-on-gpt.sh \ | ||
22 | t0301-overwrite-gpt-pmbr.sh \ | ||
23 | t0350-mac-PT-increases-sector-size.sh \ | ||
24 | @@ -1359,7 +1353,6 @@ TESTS = \ | ||
25 | t3200-type-change.sh \ | ||
26 | t3300-palo-prep.sh \ | ||
27 | t3310-flags.sh \ | ||
28 | - t3400-whole-disk-FAT-partition.sh \ | ||
29 | t4000-sun-raid-type.sh \ | ||
30 | t4001-sun-vtoc.sh \ | ||
31 | t4100-msdos-partition-limits.sh \ | ||
32 | @@ -1367,13 +1360,7 @@ TESTS = \ | ||
33 | t4100-msdos-starting-sector.sh \ | ||
34 | t4200-partprobe.sh \ | ||
35 | t4300-nilfs2-tiny.sh \ | ||
36 | - t5000-tags.sh \ | ||
37 | t6000-dm.sh \ | ||
38 | - t6001-psep.sh \ | ||
39 | - t6002-dm-busy.sh \ | ||
40 | - t6003-dm-hide.sh \ | ||
41 | - t6004-dm-many-partitions.sh \ | ||
42 | - t6005-dm-uuid.sh \ | ||
43 | t6100-mdraid-partitions.sh \ | ||
44 | t7000-scripting.sh \ | ||
45 | t8000-loop.sh \ | ||