You are not logged in.

#1 2005-12-21 20:33:37

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

[bug] mkinitrd on arch64

I´m using latest mkinitrd from arch32 current 1.01-24.

==> Starting build()...
patching file include/applets.h
patching file include/usage.h
patching file init/Config.in
patching file init/Makefile.in
patching file init/mkrootdev.c
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/mkdep /var/abs/local/mkinitrd/src/busybox-1.01/scripts/mkdep.c
gcc -I/var/abs/local/mkinitrd/src/busybox-1.01/include -I/var/abs/local/mkinitrd/src/busybox-1.01/include -I/var/abs/local/mkinitrd/src/busybox-1.01/libbb -Wall -Wstrict-prototypes -Wshadow -Os -fomit-frame-pointer -D_GNU_SOURCE -DNDEBUG     -c -o /var/abs/local/mkinitrd/src/busybox-1.01/applets/applets.o /var/abs/local/mkinitrd/src/busybox-1.01/applets/applets.c
In Datei, eingefügt von /var/abs/local/mkinitrd/src/busybox-1.01/applets/applets.c:33:
/var/abs/local/mkinitrd/src/busybox-1.01/include/busybox.h:27:20: Fehler: config.h: Datei oder Verzeichnis nicht gefunden
make: *** [/var/abs/local/mkinitrd/src/busybox-1.01/applets/applets.o] Fehler 1
...
*
* Debugging Options
*
Build BusyBox with Debugging symbols (CONFIG_DEBUG) [N/y/?] n
install: Aufruf von stat für ,,busybox" nicht möglich: Datei oder Verzeichnis nicht gefunden
[andyrtr@workstation64 mkinitrd]$ ls -l /var/abs/local/mkinitrd/src/busybox-1.01/include/
insgesamt 176
-rw-r--r--  1 andyrtr users  20359 2005-12-21 22:06 applets.h
-rw-r--r--  1 andyrtr users   3329 2005-08-17 03:29 busybox.h
-rw-r--r--  1 andyrtr users   6936 2005-12-21 22:06 config.h
-rw-r--r--  1 andyrtr users   1617 2005-08-17 03:29 dump.h
-rw-r--r--  1 andyrtr users   3964 2005-08-17 03:29 grp_.h
-rw-r--r--  1 andyrtr users   1038 2005-08-17 03:29 inet_common.h
-rw-r--r--  1 andyrtr users  17549 2005-08-17 03:29 libbb.h
-rw-r--r--  1 andyrtr users   3577 2005-08-17 03:29 pwd_.h
-rw-r--r--  1 andyrtr users   3242 2005-08-17 03:29 shadow_.h
-rw-r--r--  1 andyrtr users   3620 2005-08-17 03:29 unarchive.h
-rw-r--r--  1 andyrtr users 101069 2005-12-21 22:06 usage.h


So busybox won´t be created and not included into the package. I guess there´s something wrong with the include/config.h or include/busybox.h.  :?:

Offline

#2 2005-12-21 20:53:01

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: [bug] mkinitrd on arch64

It´s related to the bb-mkrootdev.patch. Can we drop it for now in arch64?

What was the reason for including it?

ported nash's mkrootdev routine to a busybox applet so we can use it to sniff out the real root device

EDIT: Sorry. Removing didn´t solved it. Must be something different.

Offline

#3 2005-12-21 23:26:29

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: [bug] mkinitrd on arch64

Got it smile

http://bugs.gentoo.org/show_bug.cgi?id=59280

change it this way:

# $Id: PKGBUILD,v 1.39 2005/12/18 18:59:57 judd Exp $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
pkgname=mkinitrd
pkgver=1.01
pkgrel=24
pkgdesc="A tool to create the initrd image"
url="http://www.busybox.org/"
depends=('bash') 
backup=('etc/mkinitrd.conf')
source=(http://www.busybox.net/downloads/busybox-$pkgver.tar.bz2
        bb-mkrootdev.patch mkinitrd config mkinitrd.conf)
md5sums=('f250842dae2854a38470ed16a46bba66' '00e92e5dca9749b3a18b1c5af448eca7'
         '7efceea0df9daf097e202667e28f236f' '92465f79f20fd0bd9d503a921c605165'
         'ecf76ecf376d15090a2176f01ecd2f94')

build() {
  cd $startdir/src/busybox-$pkgver
  patch -Np1 -i ../bb-mkrootdev.patch || return 1
  cp ../config .config
  make -j1 OPTIMIZATION="${CFLAGS}"
  install -D -m 755 busybox $startdir/pkg/sbin/busybox
  install -D -m 755 $startdir/src/mkinitrd $startdir/pkg/sbin/mkinitrd
  install -D -m 644 $startdir/src/mkinitrd.conf $startdir/pkg/etc/mkinitrd.conf
  mkdir -p $startdir/pkg/initrd
}


SMP breaks the creating of the config.h and some other things. And without the OPTIMIZATION no flags are taken.

Now it looks good here. You should add it in the next release!

Going to improve the arch64 kernel package.

AndyRTR

Offline

Board footer

Powered by FluxBB