# HG changeset patch # User Pascal Bellard # Date 1244904339 -7200 # Node ID 8316f5a7c11d3d49be3e0e09984d45d08aa21caa # Parent f0f3070ff8fb98d1f59d501d6acdfac76ba8785b module-init-tools/depmod: force full path for busybox modprobe diff -r f0f3070ff8fb -r 8316f5a7c11d module-init-tools/receipt --- a/module-init-tools/receipt Sat Jun 13 16:20:43 2009 +0200 +++ b/module-init-tools/receipt Sat Jun 13 16:45:39 2009 +0200 @@ -15,8 +15,15 @@ compile_rules() { cd $src - [ -f done.lzlib.u ] || patch -p1 < ../stuff/lzlib.u - touch done.lzlib.u + for patch_file in lzlib depmod; do + if [ -f done.$patch_file ]; then + echo "Skipping $patch_file" + continue + fi + echo "Apply $patch_file.u" + patch -p1 < ../stuff/$patch_file.u || return 1 + touch done.$patch_file + done ./configure --enable-zlib --prefix=/usr \ --sbindir=/sbin --bindir=/bin --sysconfdir=/etc \ --infodir=/usr/share/info --mandir=/usr/share/man \ diff -r f0f3070ff8fb -r 8316f5a7c11d module-init-tools/stuff/depmod.u --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/module-init-tools/stuff/depmod.u Sat Jun 13 16:45:39 2009 +0200 @@ -0,0 +1,22 @@ +--- module-init-tools-3.9/depmod.c ++++ module-init-tools-3.9/depmod.c +@@ -395,16 +395,16 @@ + { + struct module *i; + ++ (void) dirname; /* force full path for busybox modprobe */ + for (i = modules; i; i = i->next) { + struct list_head *j, *tmp; + order_dep_list(i, i); + +- fprintf(out, "%s:", compress_path(i->pathname, dirname)); ++ fprintf(out, "%s:", i->pathname); + list_for_each_safe(j, tmp, &i->dep_list) { + struct module *dep + = list_entry(j, struct module, dep_list); +- fprintf(out, " %s", +- compress_path(dep->pathname, dirname)); ++ fprintf(out, " %s", dep->pathname); + list_del_init(j); + } + fprintf(out, "\n");