Bernard, Brian,

do you know how to resolve this?

---------------------
# make rpm
...
ERROR: link target doesn't exist (neither in build root nor in installed
system):

/usr/share/systemimager/boot/i386/standard/initrd_template/lib/udev/devices/MAKEDEV
-> /sbin/MAKEDEV
Add the package providing the target to neededforbuild and Requires
error: Bad exit status from /var/tmp/rpm-tmp.89135 (%install)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.89135 (%install)
make: *** [rpm] Error 1
---------------------

Obviously the target of the link /sbin/MAKEDEV inside the
initrd_template should be the MAKEDEV script inside the initrd_template.
In my system I've not the file /sbin/MAKEDEV, but this is not the
point... in the initrd_template the file is missing and I suppose it
could be required by udev. But since it's introduced by the ubuntu patch
and it doesn't seem to be used, maybe we could remove the link via the
systemimager rules patch (see the attachement).

Cheers,
-Andrea
Index: initrd_source/patches/udev.debian_rules.patch
===================================================================
--- initrd_source/patches/udev.debian_rules.patch	(revision 3495)
+++ initrd_source/patches/udev.debian_rules.patch	(working copy)
@@ -1,5 +1,5 @@
---- udev-079.orig/debian/rules	2006-03-24 20:41:49.000000000 -0800
-+++ udev-079/debian/rules	2006-03-24 20:43:38.000000000 -0800
+--- udev-079/debian/rules.orig	2006-04-01 19:10:39.000000000 +0200
++++ udev-079/debian/rules	2006-04-01 19:11:22.000000000 +0200
 @@ -26,7 +26,7 @@
  # Apply patches to the package
  patch: patch-stamp
@@ -50,7 +50,15 @@
  
  	$(MAKE) install V=true EXTRAS="$(EXTRAS)" DESTDIR=$(CURDIR)/debian/udev
  
-@@ -137,17 +137,20 @@
+@@ -110,7 +110,6 @@
+ 	ln -sn /proc/self/fd/2 debian/udev/lib/udev/devices/stderr
+ 	ln -sn /proc/kcore     debian/udev/lib/udev/devices/core
+ 	ln -sn /proc/asound/oss/sndstat debian/udev/lib/udev/devices/sndstat
+-	ln -sn /sbin/MAKEDEV   debian/udev/lib/udev/devices/MAKEDEV
+ 
+ 	mknod -m 600 debian/udev/lib/udev/devices/ppp c 108 0
+ 	mknod -m 600 debian/udev/lib/udev/devices/loop/0 b 7 0
+@@ -137,17 +136,20 @@
  # Install files into the udeb
  install-udeb: DH_OPTIONS=-pudev-udeb
  install-udeb: install-deb
@@ -75,7 +83,7 @@
  	# Copy helpers that we want
  	cp -a udeb/extras/usb_device_name/usb_device_name debian/udev-udeb/lib/udev
  	cp -a udeb/extras/dvb_device_name/dvb_device_name debian/udev-udeb/lib/udev
-@@ -170,6 +173,7 @@
+@@ -170,6 +172,7 @@
  	# Copy all of the default devices from the deb
  	cp -a debian/udev/lib/udev/devices debian/udev-udeb/lib/udev
  
@@ -83,7 +91,7 @@
  	# Copy across the configuration file from the deb
  	cp -a debian/udev/etc/udev/udev.conf debian/udev-udeb/etc/udev
  
-@@ -192,6 +196,7 @@
+@@ -192,6 +195,7 @@
  	install -m 644 -o root -g root debian/rules.d/90-modprobe.rules \
  		debian/udev-udeb/etc/udev/rules.d
  
@@ -91,7 +99,7 @@
  	# Startup script
  	install -m 755 -o root -g root debian/udev.installer-startup \
  		debian/udev-udeb/lib/debian-installer-startup.d/S02udev
-@@ -205,33 +210,33 @@
+@@ -205,33 +209,33 @@
  # Build architecture-dependent files here.
  binary-arch: DH_OPTIONS=-a
  binary-arch: build install-deb install-udeb

Reply via email to