diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-08-09 16:04:23 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-08-09 16:04:23 +0000 |
commit | 26e9e6bc1b5704b88f176ee99dd2654374691527 (patch) | |
tree | 54acedb6cd86f871f0716b83732b9a0a436a33b0 | |
parent | 71799865c4954850b62406e0e565189da1a2ae6f (diff) | |
download | alpine_aports-26e9e6bc1b5704b88f176ee99dd2654374691527.tar.bz2 alpine_aports-26e9e6bc1b5704b88f176ee99dd2654374691527.tar.xz alpine_aports-26e9e6bc1b5704b88f176ee99dd2654374691527.zip |
main/mkinitfs: fix for parsing modules.dep when it has full paths
fixes issue with initramfs not having the needed modules
-rw-r--r-- | main/mkinitfs/APKBUILD | 15 | ||||
-rw-r--r-- | main/mkinitfs/mod-deps.patch | 23 |
2 files changed, 36 insertions, 2 deletions
diff --git a/main/mkinitfs/APKBUILD b/main/mkinitfs/APKBUILD index af86c94edb..426ada44be 100644 --- a/main/mkinitfs/APKBUILD +++ b/main/mkinitfs/APKBUILD | |||
@@ -1,15 +1,25 @@ | |||
1 | # Maintainer: Natanael Copa <ncopa@alpinelinux.org> | 1 | # Maintainer: Natanael Copa <ncopa@alpinelinux.org> |
2 | pkgname=mkinitfs | 2 | pkgname=mkinitfs |
3 | pkgver=2.0_rc9 | 3 | pkgver=2.0_rc9 |
4 | pkgrel=0 | 4 | pkgrel=1 |
5 | pkgdesc="Tool to generate initramfs images for Alpine" | 5 | pkgdesc="Tool to generate initramfs images for Alpine" |
6 | url=http://git.alpinelinux.org/cgit/mkinitfs | 6 | url=http://git.alpinelinux.org/cgit/mkinitfs |
7 | depends="busybox apk-tools>=2.0" | 7 | depends="busybox apk-tools>=2.0" |
8 | triggers="$pkgname.trigger:/usr/share/kernel/*" | 8 | triggers="$pkgname.trigger:/usr/share/kernel/*" |
9 | source="http://git.alpinelinux.org/cgit/$pkgname/snapshot/$pkgname-$pkgver.tar.bz2 | 9 | source="http://git.alpinelinux.org/cgit/$pkgname/snapshot/$pkgname-$pkgver.tar.bz2 |
10 | mod-deps.patch | ||
10 | " | 11 | " |
11 | license="GPL-2" | 12 | license="GPL-2" |
12 | 13 | ||
14 | prepare() { | ||
15 | cd "$srcdir"/$pkgname-$pkgver | ||
16 | for i in $source; do | ||
17 | case "$i" in | ||
18 | *.patch) patch -p1 -i "$srcdir"/$i || return 1;; | ||
19 | esac | ||
20 | done | ||
21 | } | ||
22 | |||
13 | build() { | 23 | build() { |
14 | cd "$srcdir"/$pkgname-$pkgver | 24 | cd "$srcdir"/$pkgname-$pkgver |
15 | make || return 1 | 25 | make || return 1 |
@@ -19,4 +29,5 @@ package() { | |||
19 | cd "$srcdir"/$pkgname-$pkgver | 29 | cd "$srcdir"/$pkgname-$pkgver |
20 | make install DESTDIR="$pkgdir" || return 1 | 30 | make install DESTDIR="$pkgdir" || return 1 |
21 | } | 31 | } |
22 | md5sums="54eb3779916b61c91f91c608dc99667a mkinitfs-2.0_rc9.tar.bz2" | 32 | md5sums="54eb3779916b61c91f91c608dc99667a mkinitfs-2.0_rc9.tar.bz2 |
33 | ff8fd46b88690e74505f3fe31fae0aff mod-deps.patch" | ||
diff --git a/main/mkinitfs/mod-deps.patch b/main/mkinitfs/mod-deps.patch new file mode 100644 index 0000000000..bc08d61859 --- /dev/null +++ b/main/mkinitfs/mod-deps.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | commit 18f70462c7fefe7cadcc1cd618b88de565a0f717 | ||
2 | Author: Natanael Copa <ncopa@alpinelinux.org> | ||
3 | Date: Mon Aug 9 15:56:35 2010 +0000 | ||
4 | |||
5 | mkinitfs: handle the case when modules.dep has full path | ||
6 | |||
7 | we do that by simply removing the prepend string | ||
8 | |||
9 | diff --git a/mkinitfs.in b/mkinitfs.in | ||
10 | index c3d8354..8246d07 100755 | ||
11 | --- a/mkinitfs.in | ||
12 | +++ b/mkinitfs.in | ||
13 | @@ -92,6 +92,10 @@ BEGIN { | ||
14 | modulesdep="modules.dep"; | ||
15 | FS = ": "; | ||
16 | while ( (getline < modulesdep) > 0) { | ||
17 | + if (substr($0,1,1) == "/") { | ||
18 | + gsub(prepend, "", $1); | ||
19 | + gsub(prepend, "", $2); | ||
20 | + } | ||
21 | deps[$1] = $2; | ||
22 | } | ||
23 | } | ||