Skip to contentSkip to conversation

debuild of xenomai failing: Directory nonexistent

Xenomai Applied Huub Van Niekerk 3 participants 33 messages Jan 29, 2014 – Feb 3, 2014

lore
Share & tools
lore
#0 lore raw

Hi,

I'm trying to build the xenomai libs on Ubuntu 12.04 armhf according to http://www.xenomai.org/index.php/Building_Debian_packages. It goes wrong with a message "cannot create <user>/Downloads/xenomai-2.6.3/debian/libxenomai1/etc/udev//xenomai.rules: Directory nonexistent". Any idea what the cause of this is ? I did it before on x86, which went great.

Thanks

#1 lore raw
Quoted 8 lines · Huub Van Niekerk

Hi,

I'm trying to build the xenomai libs on Ubuntu 12.04 armhf according to http://www.xenomai.org/index.php/Building_Debian_packages. It goes wrong with a message "cannot create <user>/Downloads/xenomai-2.6.3/debian/libxenomai1/etc/udev//xenomai.rules:
Directory nonexistent". Any idea what the cause of this is ? I did it before on x86, which went great.

I do not see why this even works on x86... Please try the following patch:

debian/rules +1 -0
index 3915fd6..280442f 100755
@@ -66,6 +66,7 @@ install: build
 	# xeno-config should be only in libxenomai-dev
 	rm -f $(CURDIR)/debian/xenomai-runtime/usr/bin/xeno-config
 	rm -f $(CURDIR)/debian/xenomai-runtime/usr/share/man/man1/xeno-config.1
+	mkdir -p $(CURDIR)/debian/libxenomai1/etc/udev/
 	for f in $(CURDIR)/ksrc/nucleus/udev/*.rules ; do \
 	    cat $$f >> $(CURDIR)/debian/libxenomai1/etc/udev/xenomai.rules ; \
 	done
Quoted 5 lines

Thanks _______________________________________________ Xenomai mailing list [email protected]
http://www.xenomai.org/mailman/listinfo/xenomai

Signature · 1 line
                                                                Gilles.
#2 lore raw
Quoted 10 lines · Gilles Chanteperdrix
Quoted 8 lines · Huub Van Niekerk

Hi,

I'm trying to build the xenomai libs on Ubuntu 12.04 armhf according to http://www.xenomai.org/index.php/Building_Debian_packages. It goes wrong with a message "cannot create <user>/Downloads/xenomai-2.6.3/debian/libxenomai1/etc/udev//xenomai.rules:
Directory nonexistent". Any idea what the cause of this is ? I did it before on x86, which went great.

Quoted 2 lines

I do not see why this even works on x86... Please try the following patch:

Please try this one instead:

debian/libxenomai1.install +1 -0
index 093956b..9c732f5 100644
@@ -1 +1,2 @@
+etc/udev/rules.d/*
 usr/lib/*.so.*
debian/rules +1 -3
index 3915fd6..c842986 100755
@@ -61,14 +61,12 @@ install: build
 	dh_testroot
 	dh_prep
 	dh_installdirs
+	mkdir -p $(CURDIR)/debian/tmp/etc/udev/rules.d
 	$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp/
 	dh_install --sourcedir=$(CURDIR)/debian/tmp
 	# xeno-config should be only in libxenomai-dev
 	rm -f $(CURDIR)/debian/xenomai-runtime/usr/bin/xeno-config
 	rm -f $(CURDIR)/debian/xenomai-runtime/usr/share/man/man1/xeno-config.1
-	for f in $(CURDIR)/ksrc/nucleus/udev/*.rules ; do \
-	    cat $$f >> $(CURDIR)/debian/libxenomai1/etc/udev/xenomai.rules ; \
-	done
 	install -m 644 debian/libxenomai1.modprobe $(CURDIR)/debian/libxenomai1/etc/modprobe.d/xenomai.conf
 	# remove empty directory
 	rm -rf $(CURDIR)/debian/xenomai-doc/usr/share/doc/xenomai-doc/ps
Signature · 1 line
                                                                Gilles.
#3 lore raw

I assume I have to save this patch into a textfile (e.g. debuild-patch) and use the patch command: patch debuild debuild-patch ?

On Wednesday, January 29, 2014 9:02 PM, Gilles Chanteperdrix <[email protected]> wrote:

Quoted 10 lines · Gilles Chanteperdrix
Quoted 8 lines · Huub Van Niekerk

Hi,

I'm trying to build the xenomai libs on Ubuntu 12.04 armhf according to http://www.xenomai.org/index.php/Building_Debian_packages. It goes wrong with a message "cannot create <user>/Downloads/xenomai-2.6.3/debian/libxenomai1/etc/udev//xenomai.rules:
Directory nonexistent". Any idea what the cause of this is ? I did it before on x86, which went great.

Quoted 2 lines

I do not see why this even works on x86... Please try the following patch:

Please try this one instead:

debian/libxenomai1.install +1 -0
index 093956b..9c732f5 100644
@@ -1 +1,2 @@
+etc/udev/rules.d/*

usr/lib/*.so.*

debian/rules +0 -0
index 3915fd6..c842986 100755
@@ -61,14 +61,12 @@ install: build

    dh_testroot
    dh_prep
    dh_installdirs
+    mkdir -p $(CURDIR)/debian/tmp/etc/udev/rules.d $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp/ dh_install --sourcedir=$(CURDIR)/debian/tmp

    # xeno-config should be only in libxenomai-dev
    rm -f $(CURDIR)/debian/xenomai-runtime/usr/bin/xeno-config
    rm -f $(CURDIR)/debian/xenomai-runtime/usr/share/man/man1/xeno-config.1
-    for f in $(CURDIR)/ksrc/nucleus/udev/*.rules ; do \
-        cat $$f >> $(CURDIR)/debian/libxenomai1/etc/udev/xenomai.rules ; \
-    done
    install -m 644 debian/libxenomai1.modprobe $(CURDIR)/debian/libxenomai1/etc/modprobe.d/xenomai.conf
    # remove empty directory
    rm -rf $(CURDIR)/debian/xenomai-doc/usr/share/doc/xenomai-doc/ps
Signature · 1 line
                                                                Gilles.
#4 lore raw
Quoted 1 line · Huub Van Niekerk

I assume I have to save this patch into a textfile (e.g. debuild-patch) and use the patch command: patch debuild debuild-patch ?

Type:
cd <user>/Downloads/xenomai-2.6.3
patch -p1 < /path/to/debuild-patch

Signature · 1 line
                                                                Gilles.
#5 lore raw

Thank you, but something goes wrong:

patching file debian/libxenomai1.install
patch: **** malformed patch at line 7: usr/lib/*.so.*

On Thursday, January 30, 2014 9:40 AM, Gilles Chanteperdrix <[email protected]> wrote:

Quoted 1 line · Huub Van Niekerk

I assume I have to save this patch into a textfile (e.g. debuild-patch) and use the patch command: patch debuild debuild-patch ?

Type:
cd <user>/Downloads/xenomai-2.6.3
patch -p1 < /path/to/debuild-patch

Signature · 1 line
                                                                Gilles.
#6 lore raw
Quoted 4 lines · Huub Van Niekerk

Thank you, but something goes wrong:

patching file debian/libxenomai1.install
patch: **** malformed patch at line 7: usr/lib/*.so.*

You have to save the e-mail to a file, not cut and paste, so as to preserve the tab characters.

Signature · 1 line
                                                                Gilles.
#7 lore raw

Using webmail, I don't know if formatting is preserved anyway. I copy/pasted it into gEdit and I don't know if that preserves anything either. I tried to save it, but it offers no save option for that and by forwarding it skipped the patch. Could you please send me the patch as an attachment ? Thank you.

On Thursday, January 30, 2014 10:24 AM, Gilles Chanteperdrix <[email protected]> wrote:

Quoted 4 lines · Huub Van Niekerk

Thank you, but something goes wrong:

patching file debian/libxenomai1.install
patch: **** malformed patch at line 7: usr/lib/*.so.*

You have to save the e-mail to a file, not cut and paste, so as to preserve the tab characters.

Signature · 1 line
                                                                Gilles.
#8 lore raw
Quoted 5 lines · Huub Van Niekerk

Using webmail, I don't know if formatting is preserved anyway. I copy/pasted it into gEdit and I don't know if that preserves anything either. I tried to save it, but it offers no save option for that and by forwarding it skipped the patch. Could you please send me the patch as an attachment ? Thank you.

Please find it here:
http://sisyphus.hd.free.fr/~gilles/debuild.patch

Signature · 1 line
					    Gilles.
#9 lore raw

Thank you. I've applied the patch as you indicated. Unfortunately, the build goes wrong. I'd like to send you the file containing the captured error, but the sending fails (due to the mailing list ?). Can I send it to you outside the mailinglist ?

On Thursday, January 30, 2014 11:52 AM, Gilles Chanteperdrix <[email protected]> wrote:

Quoted 5 lines · Huub Van Niekerk

Using webmail, I don't know if formatting is preserved anyway. I copy/pasted it into gEdit and I don't know if that preserves anything either. I tried to save it, but it offers no save option for that and by forwarding it skipped the patch. Could you please send me the patch as an attachment ? Thank you.

Please find it here:
http://sisyphus.hd.free.fr/~gilles/debuild.patch

Signature · 1 line
                        Gilles.
#10 lore raw
Quoted 3 lines · Huub Van Niekerk

Thank you. I've applied the patch as you indicated. Unfortunately, the build goes wrong. I'd like to send you the file containing the captured error, but the sending fails (due to the mailing list ?).

If the mailing list refuses a message, it should send you an answer telling you why. Most probable reason would be that you are sending HTML mails, whereas the mailing list only accepts plain text mails.

The mailing list also "scrubs" the attachments and makes them downloadable from the archives area, in order to avoid uselessly sending the attachments to all the subscribers. Those who are interested can download the attachment via http. So, you can directly make your attachments available via http, the result will be the same. For logs, the trend these days is to use pastebin.

Signature · 1 line
                                                                Gilles.
#11 lore raw

I've added the mkdir's I thought were necessary. However, what I don't understand is the message "ERROR: ld.so: object 'libfakeroot-sysv.so' from LD_PRELOAD cannot be preloaded: ignored". After this it asks for the sudo password. After that the error message shows again, the script goes on shortly and ends in the "cannot create directory" error. Do you have any idea what the cause of the ld.so error may be ?

On Thursday, January 30, 2014 1:53 PM, Gilles Chanteperdrix <[email protected]> wrote:

Quoted 3 lines · Huub Van Niekerk

Thank you. I've applied the patch as you indicated. Unfortunately, the build goes wrong. I'd like to send you the file containing the captured error, but the sending fails (due to the mailing list ?).

If the mailing list refuses a message, it should send you an answer telling you why. Most probable reason would be that you are sending HTML mails, whereas the mailing list only accepts plain text mails.

The mailing list also "scrubs" the attachments and makes them downloadable from the archives area, in order to avoid uselessly sending the attachments to all the subscribers. Those who are interested can download the attachment via http. So, you can directly make your attachments available via http, the result will be the same. For logs, the trend these days is to use pastebin.

Signature · 1 line
                                                                Gilles.
#12 lore raw
Quoted 6 lines · Huub Van Niekerk

I've added the mkdir's I thought were necessary. However, what I don't understand is the message "ERROR: ld.so: object 'libfakeroot-sysv.so' from LD_PRELOAD cannot be preloaded: ignored". After this it asks for the sudo password. After that the error message shows again, the script goes on shortly and ends in the "cannot create directory" error. Do you have any idea what the cause of the ld.so error may be ?

It is caused by fakeroot, you can ignore that.

Signature · 1 line
					    Gilles.
#13 lore raw
In reply to Huub Van Niekerk
Quoted 6 lines · Huub Van Niekerk

I've added the mkdir's I thought were necessary. However, what I don't understand is the message "ERROR: ld.so: object 'libfakeroot-sysv.so' from LD_PRELOAD cannot be preloaded: ignored". After this it asks for the sudo password. After that the error message shows again, the script goes on shortly and ends in the "cannot create directory" error. Do you have any idea what the cause of the ld.so error may be ?

Have you tried debuild -rfakeroot?
Or are you using fakeroot debuild directly?

Signature · 1 line
					    Gilles.
#14 lore raw

I'm just using the debuild script/command as a user, i.e. ../xenomai-2.6.3$ debuild. So if debuild uses fakeroot, then yes.

On Thursday, January 30, 2014 8:12 PM, Gilles Chanteperdrix <[email protected]> wrote:

Quoted 6 lines · Huub Van Niekerk

I've added the mkdir's I thought were necessary. However, what I don't understand is the message "ERROR: ld.so: object 'libfakeroot-sysv.so' from LD_PRELOAD cannot be preloaded: ignored". After this it asks for the sudo password. After that the error message shows again, the script goes on shortly and ends in the "cannot create directory" error. Do you have any idea what the cause of the ld.so error may be ?

Have you tried debuild -rfakeroot?
Or are you using fakeroot debuild directly?

Signature · 1 line
                        Gilles.
#15 lore raw
Quoted 1 line · Huub Van Niekerk

I'm just using the debuild script/command as a user, i.e. ../xenomai-2.6.3$ debuild. So if debuild uses fakeroot, then yes.

According to the man page, if no -r option is passed -rfakeroot is assumed.

Signature · 1 line
                                                                Gilles.
#16 lore raw
In reply to Gilles Chanteperdrix

Thank you. I've applied the patch, but it ends again in error. How can I send you

On Thursday, January 30, 2014 11:52 AM, Gilles Chanteperdrix <[email protected]> wrote:

Quoted 5 lines · Huub Van Niekerk

Using webmail, I don't know if formatting is preserved anyway. I copy/pasted it into gEdit and I don't know if that preserves anything either. I tried to save it, but it offers no save option for that and by forwarding it skipped the patch. Could you please send me the patch as an attachment ? Thank you.

Please find it here:
http://sisyphus.hd.free.fr/~gilles/debuild.patch

Signature · 5 lines
                        Gilles.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: debuild-error.txt
URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20140130/249375f7/attachment.txt>
#17 lore raw
Quoted 1 line · Huub Van Niekerk

Thank you. I've applied the patch, but it ends again in error. How can I send you

Simply add the necessary mkdir in debian/rules, and send a patch when you no longer have such errors...

Signature · 1 line
                                                                Gilles.
#18 lore raw
In reply to Gilles Chanteperdrix
Quoted 29 lines · Gilles Chanteperdrix
Quoted 11 lines · Gilles Chanteperdrix
Quoted 9 lines · Huub Van Niekerk

Hi,

I'm trying to build the xenomai libs on Ubuntu 12.04 armhf according to
http://www.xenomai.org/index.php/Building_Debian_packages. It goes wrong with a message "cannot create <user>/Downloads/xenomai-2.6.3/debian/libxenomai1/etc/udev//xenoma i.rules: Directory nonexistent". Any idea what the cause of this is ? I did it before on x86, which went great.

Quoted 2 lines

I do not see why this even works on x86... Please try the following patch:

Please try this one instead:

debian/libxenomai1.install +1 -0
index 093956b..9c732f5 100644
@@ -1 +1,2 @@
+etc/udev/rules.d/*
 usr/lib/*.so.*
debian/rules +0 -0
index 3915fd6..c842986 100755

debian/rules install: build · line 64

Quoted 4 lines
debian/rules +1 -0
@@ -61,14 +61,12 @@ install: build
 	dh_testroot
 	dh_prep
 	dh_installdirs
+	mkdir -p $(CURDIR)/debian/tmp/etc/udev/rules.d

This shouldn't be necessary as etc/udev/rules.d is listed in libxenomai1.dirs - dh_installdirs uses this to create the target dirctories.

Quoted 9 lines
debian/rules +0 -0
 	$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp/
 	dh_install --sourcedir=$(CURDIR)/debian/tmp
 	# xeno-config should be only in libxenomai-dev
 	rm -f $(CURDIR)/debian/xenomai-runtime/usr/bin/xeno-config
 	rm -f

$(CURDIR)/debian/xenomai-runtime/usr/share/man/man1/xeno-config.1

debian/rules +0 -2
-	for f in $(CURDIR)/ksrc/nucleus/udev/*.rules ; do \
-	    cat $$f >> $(CURDIR)/debian/libxenomai1/etc/udev/xenomai.rules

; \ - done

This is needed so that the udev rules get copied across.

Quoted 4 lines

install -m 644 debian/libxenomai1.modprobe
$(CURDIR)/debian/libxenomai1/etc/modprobe.d/xenomai.conf # remove empty directory
rm -rf $(CURDIR)/debian/xenomai-doc/usr/share/doc/xenomai-doc/ps

Regards, Paul.

#19 lore raw
Quoted 39 lines · Paul
Quoted 29 lines · Gilles Chanteperdrix
Quoted 11 lines · Gilles Chanteperdrix
Quoted 9 lines · Huub Van Niekerk

Hi,

I'm trying to build the xenomai libs on Ubuntu 12.04 armhf according to
http://www.xenomai.org/index.php/Building_Debian_packages. It goes wrong with a message "cannot create <user>/Downloads/xenomai-2.6.3/debian/libxenomai1/etc/udev//xenoma i.rules: Directory nonexistent". Any idea what the cause of this is ? I did it before on x86, which went great.

Quoted 2 lines

I do not see why this even works on x86... Please try the following patch:

Please try this one instead:

debian/libxenomai1.install +1 -0
index 093956b..9c732f5 100644
@@ -1 +1,2 @@
+etc/udev/rules.d/*
  usr/lib/*.so.*
debian/rules +0 -0
index 3915fd6..c842986 100755

debian/rules install: build · line 64

Quoted 4 lines
debian/rules +1 -0
@@ -61,14 +61,12 @@ install: build
  	dh_testroot
  	dh_prep
  	dh_installdirs
+	mkdir -p $(CURDIR)/debian/tmp/etc/udev/rules.d

This shouldn't be necessary as etc/udev/rules.d is listed in libxenomai1.dirs - dh_installdirs uses this to create the target dirctories.

Quoted 11 lines
Quoted 9 lines
debian/rules +0 -0
  	$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp/
  	dh_install --sourcedir=$(CURDIR)/debian/tmp
  	# xeno-config should be only in libxenomai-dev
  	rm -f $(CURDIR)/debian/xenomai-runtime/usr/bin/xeno-config
  	rm -f

$(CURDIR)/debian/xenomai-runtime/usr/share/man/man1/xeno-config.1

debian/rules +0 -2
-	for f in $(CURDIR)/ksrc/nucleus/udev/*.rules ; do \
-	    cat $$f >> $(CURDIR)/debian/libxenomai1/etc/udev/xenomai.rules

; \ - done

This is needed so that the udev rules get copied across.

If the directory /etc/udev/rules.d exists, Xenomai's "make install", should copy the rules itself.

Signature · 1 line
					    Gilles.
#20 lore raw
Quoted 52 lines · Gilles Chanteperdrix
Quoted 39 lines · Paul
Quoted 29 lines · Gilles Chanteperdrix
Quoted 11 lines · Gilles Chanteperdrix
Quoted 9 lines · Huub Van Niekerk

Hi,

I'm trying to build the xenomai libs on Ubuntu 12.04 armhf according to
http://www.xenomai.org/index.php/Building_Debian_packages. It goes wrong with a message "cannot create <user>/Downloads/xenomai-2.6.3/debian/libxenomai1/etc/udev//xeno ma i.rules: Directory nonexistent". Any idea what the cause of this is ? I did it before on x86, which went great.

Quoted 2 lines

I do not see why this even works on x86... Please try the following patch:

Please try this one instead:

(quoted diff) +0 -0

b/debian/libxenomai1.install index 093956b..9c732f5 100644

debian/libxenomai1.install +1 -0
@@ -1 +1,2 @@
+etc/udev/rules.d/*
  usr/lib/*.so.*
debian/rules +0 -0
index 3915fd6..c842986 100755

debian/rules install: build · line 64

Quoted 4 lines
debian/rules +1 -0
@@ -61,14 +61,12 @@ install: build
  	dh_testroot
  	dh_prep
  	dh_installdirs
+	mkdir -p $(CURDIR)/debian/tmp/etc/udev/rules.d

This shouldn't be necessary as etc/udev/rules.d is listed in libxenomai1.dirs - dh_installdirs uses this to create the target dirctories.

Quoted 11 lines
Quoted 9 lines
debian/rules +0 -0
  	$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp/
  	dh_install --sourcedir=$(CURDIR)/debian/tmp
  	# xeno-config should be only in libxenomai-dev
  	rm -f $(CURDIR)/debian/xenomai-runtime/usr/bin/xeno-config
  	rm -f

$(CURDIR)/debian/xenomai-runtime/usr/share/man/man1/xeno-config.1

debian/rules +0 -2
-	for f in $(CURDIR)/ksrc/nucleus/udev/*.rules ; do \
-	    cat $$f >>

$(CURDIR)/debian/libxenomai1/etc/udev/xenomai.rules ; \ - done

This is needed so that the udev rules get copied across.

Quoted 2 lines

If the directory /etc/udev/rules.d exists, Xenomai's "make install", should copy the rules itself.

The default install is in debian/tmp where as udev rules should be installed in debian/libxenomai1 so that they end up in the correct package. The attached patch aims to do just this and also removes a symlink created when installing the package.

Regards, Paul.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Use-devices-target-to-install-udev-rules-in-libxenom.patch
Type: text/x-diff
Size: 1774 bytes
Desc: not available
URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20140130/2346765f/attachment.patch>

#21 lore raw
Quoted 53 lines · Paul
Quoted 52 lines · Gilles Chanteperdrix
Quoted 50 lines · Paul
Quoted 29 lines · Gilles Chanteperdrix
Quoted 11 lines · Gilles Chanteperdrix
Quoted 9 lines · Huub Van Niekerk

Hi,

I'm trying to build the xenomai libs on Ubuntu 12.04 armhf according to
http://www.xenomai.org/index.php/Building_Debian_packages. It goes wrong with a message "cannot create <user>/Downloads/xenomai-2.6.3/debian/libxenomai1/etc/udev//xeno ma i.rules: Directory nonexistent". Any idea what the cause of this is ? I did it before on x86, which went great.

Quoted 2 lines

I do not see why this even works on x86... Please try the following patch:

Please try this one instead:

(quoted diff) +0 -0

b/debian/libxenomai1.install index 093956b..9c732f5 100644

debian/libxenomai1.install +1 -0
@@ -1 +1,2 @@
+etc/udev/rules.d/*
  usr/lib/*.so.*
debian/rules +0 -0
index 3915fd6..c842986 100755

debian/rules install: build · line 64

Quoted 4 lines
debian/rules +1 -0
@@ -61,14 +61,12 @@ install: build
  	dh_testroot
  	dh_prep
  	dh_installdirs
+	mkdir -p $(CURDIR)/debian/tmp/etc/udev/rules.d

This shouldn't be necessary as etc/udev/rules.d is listed in libxenomai1.dirs - dh_installdirs uses this to create the target dirctories.

Quoted 9 lines
debian/rules +0 -0
  	$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp/
  	dh_install --sourcedir=$(CURDIR)/debian/tmp
  	# xeno-config should be only in libxenomai-dev
  	rm -f $(CURDIR)/debian/xenomai-runtime/usr/bin/xeno-config
  	rm -f

$(CURDIR)/debian/xenomai-runtime/usr/share/man/man1/xeno-config.1

debian/rules +0 -2
-	for f in $(CURDIR)/ksrc/nucleus/udev/*.rules ; do \
-	    cat $$f >>

$(CURDIR)/debian/libxenomai1/etc/udev/xenomai.rules ; \ - done

This is needed so that the udev rules get copied across.

Quoted 7 lines
Quoted 2 lines

If the directory /etc/udev/rules.d exists, Xenomai's "make install", should copy the rules itself.

The default install is in debian/tmp where as udev rules should be installed in debian/libxenomai1 so that they end up in the correct package. The attached patch aims to do just this and also removes a symlink created when installing the package.

Merged, thanks.

Signature · 1 line
                                                                Gilles.
author Applied
#22 lore raw

Does this mean I have to re-download your patch, clean up xenomai, patch it and run debuild again ?

On Thursday, January 30, 2014 9:33 PM, Gilles Chanteperdrix <[email protected]> wrote:

Quoted 53 lines · Paul
Quoted 52 lines · Gilles Chanteperdrix
Quoted 50 lines · Paul
Quoted 29 lines · Gilles Chanteperdrix
Quoted 11 lines · Gilles Chanteperdrix
Quoted 9 lines · Huub Van Niekerk

Hi,

I'm trying to build the xenomai libs on Ubuntu 12.04 armhf according to
http://www.xenomai.org/index.php/Building_Debian_packages. It goes wrong with a message "cannot create <user>/Downloads/xenomai-2.6.3/debian/libxenomai1/etc/udev//xeno ma i.rules: Directory nonexistent". Any idea what the cause of this is ? I did it before on x86, which went great.

Quoted 2 lines

I do not see why this even works on x86... Please try the following patch:

Please try this one instead:

(quoted diff) +0 -0

b/debian/libxenomai1.install index 093956b..9c732f5 100644

debian/libxenomai1.install +1 -0
@@ -1 +1,2 @@
+etc/udev/rules.d/*

  usr/lib/*.so.*

debian/rules +0 -0
index 3915fd6..c842986 100755
@@ -61,14 +61,12 @@ install: build
Quoted 4 lines

      dh_testroot
      dh_prep
      dh_installdirs
+    mkdir -p $(CURDIR)/debian/tmp/etc/udev/rules.d

This shouldn't be necessary as etc/udev/rules.d is listed in libxenomai1.dirs - dh_installdirs uses this to create the target dirctories.

Quoted 9 lines

      $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp/ dh_install --sourcedir=$(CURDIR)/debian/tmp

       # xeno-config should be only in libxenomai-dev
       rm -f $(CURDIR)/debian/xenomai-runtime/usr/bin/xeno-config
       rm -f
$(CURDIR)/debian/xenomai-runtime/usr/share/man/man1/xeno-config.1
-    for f in $(CURDIR)/ksrc/nucleus/udev/*.rules ; do \
-        cat $$f >>
$(CURDIR)/debian/libxenomai1/etc/udev/xenomai.rules ; \ -    done

This is needed so that the udev rules get copied across.

Quoted 7 lines
Quoted 2 lines

If the directory /etc/udev/rules.d exists, Xenomai's "make install", should copy the rules itself.

The default install is in debian/tmp where as udev rules should be installed in debian/libxenomai1 so that they end up in the correct package. The attached patch aims to do just this and also removes a symlink created when installing the package.

Merged, thanks.

Signature · 6 lines
                                                                Gilles.

_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai
#23 lore raw
Quoted 1 line · Huub Van Niekerk

Does this mean I have to re-download your patch, clean up xenomai, patch it and run debuild again ?

It means that Paul's fix has been merged in xenomai repository. So, if you are building from the git repository, you have to do a "git pull" to get the update. If you are not building from the git repository, then you have to wait for Xenomai next release to see the fix.

Also, the xenomai mailing list is an old fashioned mailing list where we prefer bottom posting than top posting. So, please avoid top posting.

Signature · 1 line
                                                                Gilles.
#24 lore raw

On Friday, January 31, 2014 10:30 AM, Gilles Chanteperdrix <[email protected]> wrote:

Quoted 1 line · Huub Van Niekerk

Does this mean I have to re-download your patch, clean up xenomai, patch it and run debuild again ?

It means that Paul's fix has been merged in xenomai repository. So, if you are building from the git repository, you have to do a "git pull" to get the update. If you are not building from the git repository, then you have to wait for Xenomai next release to see the fix.

Also, the xenomai mailing list is an old fashioned mailing list where we prefer bottom posting than top posting. So, please avoid top posting.

Signature · 5 lines
                                                                Gilles.


I'm using the tar.bz2 version, not git. So if I understand correctly, it's no use for me to use his patch. What about your patch? Is that for git as well ?
About top-posting vs bottom-posting, I prefer the latter too. Hope this is better (have to over-rule the webmail).
author Applied
#25 lore raw
In reply to Gilles Chanteperdrix

Despite starting all over (tar jxf xenomai), downloading and patching again, debuild stops at exactly the same place. I still wonder why debuild on x86 (Ubuntu 10.04) worked great instantly and on armhf (Ubuntu 12.04) keeps ending in error. I just ran a test with standard "debuild -uc -us" on Ubuntu 12.04 x86 and it delivers the expected xenomai deb files without a problem. So why doesn't it do the same on armhf ?

On Thursday, January 30, 2014 9:33 PM, Gilles Chanteperdrix <[email protected]> wrote:

Quoted 53 lines · Paul
Quoted 52 lines · Gilles Chanteperdrix
Quoted 50 lines · Paul
Quoted 29 lines · Gilles Chanteperdrix
Quoted 11 lines · Gilles Chanteperdrix
Quoted 9 lines · Huub Van Niekerk

Hi,

I'm trying to build the xenomai libs on Ubuntu 12.04 armhf according to
http://www.xenomai.org/index.php/Building_Debian_packages. It goes wrong with a message "cannot create <user>/Downloads/xenomai-2.6.3/debian/libxenomai1/etc/udev//xeno ma i.rules: Directory nonexistent". Any idea what the cause of this is ? I did it before on x86, which went great.

Quoted 2 lines

I do not see why this even works on x86... Please try the following patch:

Please try this one instead:

(quoted diff) +0 -0

b/debian/libxenomai1.install index 093956b..9c732f5 100644

debian/libxenomai1.install +1 -0
@@ -1 +1,2 @@
+etc/udev/rules.d/*

  usr/lib/*.so.*

debian/rules +0 -0
index 3915fd6..c842986 100755
@@ -61,14 +61,12 @@ install: build
Quoted 4 lines

      dh_testroot
      dh_prep
      dh_installdirs
+    mkdir -p $(CURDIR)/debian/tmp/etc/udev/rules.d

This shouldn't be necessary as etc/udev/rules.d is listed in libxenomai1.dirs - dh_installdirs uses this to create the target dirctories.

Quoted 9 lines

      $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp/ dh_install --sourcedir=$(CURDIR)/debian/tmp

       # xeno-config should be only in libxenomai-dev
       rm -f $(CURDIR)/debian/xenomai-runtime/usr/bin/xeno-config
       rm -f
$(CURDIR)/debian/xenomai-runtime/usr/share/man/man1/xeno-config.1
-    for f in $(CURDIR)/ksrc/nucleus/udev/*.rules ; do \
-        cat $$f >>
$(CURDIR)/debian/libxenomai1/etc/udev/xenomai.rules ; \ -    done

This is needed so that the udev rules get copied across.

Quoted 7 lines
Quoted 2 lines

If the directory /etc/udev/rules.d exists, Xenomai's "make install", should copy the rules itself.

The default install is in debian/tmp where as udev rules should be installed in debian/libxenomai1 so that they end up in the correct package. The attached patch aims to do just this and also removes a symlink created when installing the package.

Merged, thanks.

Signature · 6 lines
                                                                Gilles.

_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai
#26 lore raw
Quoted 7 lines · Huub Van Niekerk

Despite starting all over (tar jxf xenomai), downloading and patching again, debuild stops at exactly the same place. I still wonder why debuild on x86 (Ubuntu 10.04) worked great instantly and on armhf (Ubuntu 12.04) keeps ending in error. I just ran a test with standard "debuild -uc -us" on Ubuntu 12.04 x86 and it delivers the expected xenomai deb files without a problem. So why doesn't it do the same on armhf ?

As mentioned by Paul, the directories are supposed to be created by the debian rules "dh_installdirs" helper, so my patch was in fact wrong, and you have to understand why dh_installdirs does not do its job in your case.

Signature · 1 line
                                                                Gilles.
#27 lore raw
In reply to Huub Van Niekerk
Quoted 7 lines · Huub Van Niekerk

Despite starting all over (tar jxf xenomai), downloading and patching again, debuild stops at exactly the same place. I still wonder why debuild on x86 (Ubuntu 10.04) worked great instantly and on armhf (Ubuntu 12.04) keeps ending in error. I just ran a test with standard "debuild -uc -us" on Ubuntu 12.04 x86 and it delivers the expected xenomai deb files without a problem. So why doesn't it do the same on armhf ?

This is sounding more like a bug either in Ubuntu 12.04 or some peculiarities with this particular armhf flavour rather than a Xenomai issue.

If Gilles is OK with this, I can work with Huub off list to identify the issue and post back to the list with a resolution.

Regards, Paul.

#28 lore raw
Quoted 9 lines · Paul
Quoted 7 lines · Huub Van Niekerk

Despite starting all over (tar jxf xenomai), downloading and patching again, debuild stops at exactly the same place. I still wonder why debuild on x86 (Ubuntu 10.04) worked great instantly and on armhf (Ubuntu 12.04) keeps ending in error. I just ran a test with standard "debuild -uc -us" on Ubuntu 12.04 x86 and it delivers the expected xenomai deb files without a problem. So why doesn't it do the same on armhf ?

Quoted 6 lines

This is sounding more like a bug either in Ubuntu 12.04 or some peculiarities with this particular armhf flavour rather than a Xenomai issue.

If Gilles is OK with this, I can work with Huub off list to identify the issue and post back to the list with a resolution.

No problem.

Signature · 1 line
					    Gilles.
#29 lore raw
In reply to Paul
Quoted 9 lines · Paul
Quoted 7 lines · Huub Van Niekerk

Despite starting all over (tar jxf xenomai), downloading and patching again, debuild stops at exactly the same place. I still wonder why debuild on x86 (Ubuntu 10.04) worked great instantly and on armhf (Ubuntu 12.04) keeps ending in error. I just ran a test with standard "debuild -uc -us" on Ubuntu 12.04 x86 and it delivers the expected xenomai deb files without a problem. So why doesn't it do the same on armhf ?

Quoted 3 lines

This is sounding more like a bug either in Ubuntu 12.04 or some peculiarities with this particular armhf flavour rather than a Xenomai issue.

The reason dh_installdirs is not working for this particular build is because armhf is not listed as a supported architecture - This would prevent all architecture dependant packages from being built and just produce xenomai-kernel-source and xenomai-doc.

Attached are two patches, the first should have been part of an earlier patch that included static devices in libxenomai1.

The second patch adds armhf support to the list of binary packages generated.

Need to rework debian/rules to give a cleaner split between arch dependant and common packages - Will work on this later in the week.

Regards, Paul.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Include-dev-in-the-list-of-directories-for-libxenoma.patch
Type: text/x-diff
Size: 576 bytes
Desc: not available
URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20140202/5eea94ab/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-armhf-architecture-added-for-the-benefit-of-platform.patch
Type: text/x-diff
Size: 1442 bytes
Desc: not available
URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20140202/5eea94ab/attachment-0001.patch>

#30 lore raw
Quoted 19 lines · Paul
Quoted 9 lines · Paul
Quoted 7 lines · Huub Van Niekerk

Despite starting all over (tar jxf xenomai), downloading and patching again, debuild stops at exactly the same place. I still wonder why debuild on x86 (Ubuntu 10.04) worked great instantly and on armhf (Ubuntu 12.04) keeps ending in error. I just ran a test with standard "debuild -uc -us" on Ubuntu 12.04 x86 and it delivers the expected xenomai deb files without a problem. So why doesn't it do the same on armhf ?

Quoted 3 lines

This is sounding more like a bug either in Ubuntu 12.04 or some peculiarities with this particular armhf flavour rather than a Xenomai issue.

The reason dh_installdirs is not working for this particular build is because armhf is not listed as a supported architecture - This would prevent all architecture dependant packages from being built and just produce xenomai-kernel-source and xenomai-doc.

Quoted 8 lines

Attached are two patches, the first should have been part of an earlier patch that included static devices in libxenomai1.

The second patch adds armhf support to the list of binary packages generated.

Need to rework debian/rules to give a cleaner split between arch dependant and common packages - Will work on this later in the week.

Merged, thanks.

Signature · 1 line
                                                                Gilles.
#31 lore raw
In reply to Paul
Quoted 53 lines · Paul
Quoted 52 lines · Gilles Chanteperdrix
Quoted 50 lines · Paul
Quoted 29 lines · Gilles Chanteperdrix
Quoted 11 lines · Gilles Chanteperdrix
Quoted 9 lines · Huub Van Niekerk

Hi,

I'm trying to build the xenomai libs on Ubuntu 12.04 armhf according to
http://www.xenomai.org/index.php/Building_Debian_packages. It goes wrong with a message "cannot create <user>/Downloads/xenomai-2.6.3/debian/libxenomai1/etc/udev//xeno ma i.rules: Directory nonexistent". Any idea what the cause of this is ? I did it before on x86, which went great.

Quoted 2 lines

I do not see why this even works on x86... Please try the following patch:

Please try this one instead:

(quoted diff) +0 -0

b/debian/libxenomai1.install index 093956b..9c732f5 100644

debian/libxenomai1.install +1 -0
@@ -1 +1,2 @@
+etc/udev/rules.d/*
  usr/lib/*.so.*
debian/rules +0 -0
index 3915fd6..c842986 100755

debian/rules install: build · line 64

Quoted 4 lines
debian/rules +1 -0
@@ -61,14 +61,12 @@ install: build
  	dh_testroot
  	dh_prep
  	dh_installdirs
+	mkdir -p $(CURDIR)/debian/tmp/etc/udev/rules.d

This shouldn't be necessary as etc/udev/rules.d is listed in libxenomai1.dirs - dh_installdirs uses this to create the target dirctories.

Quoted 9 lines
debian/rules +0 -0
  	$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp/
  	dh_install --sourcedir=$(CURDIR)/debian/tmp
  	# xeno-config should be only in libxenomai-dev
  	rm -f $(CURDIR)/debian/xenomai-runtime/usr/bin/xeno-config
  	rm -f

$(CURDIR)/debian/xenomai-runtime/usr/share/man/man1/xeno-config.1

debian/rules +0 -2
-	for f in $(CURDIR)/ksrc/nucleus/udev/*.rules ; do \
-	    cat $$f >>

$(CURDIR)/debian/libxenomai1/etc/udev/xenomai.rules ; \ - done

This is needed so that the udev rules get copied across.

Quoted 7 lines
Quoted 2 lines

If the directory /etc/udev/rules.d exists, Xenomai's "make install", should copy the rules itself.

The default install is in debian/tmp where as udev rules should be installed in debian/libxenomai1 so that they end up in the correct package. The attached patch aims to do just this and also removes a symlink created when installing the package.

I see there exist some dh_installudev and dh_installmodules to take care of the udev rules and modprobe snnippet, maybe we could use that?

Signature · 1 line
                                                                Gilles.
#32 lore raw

On Friday, January 31, 2014 1:23 PM, Gilles Chanteperdrix <[email protected]> wrote:

Quoted 53 lines · Paul
Quoted 52 lines · Gilles Chanteperdrix
Quoted 50 lines · Paul
Quoted 29 lines · Gilles Chanteperdrix
Quoted 11 lines · Gilles Chanteperdrix
Quoted 9 lines · Huub Van Niekerk

Hi,

I'm trying to build the xenomai libs on Ubuntu 12.04 armhf according to
http://www.xenomai.org/index.php/Building_Debian_packages. It goes wrong with a message "cannot create <user>/Downloads/xenomai-2.6.3/debian/libxenomai1/etc/udev//xeno ma i.rules: Directory nonexistent". Any idea what the cause of this is ? I did it before on x86, which went great.

Quoted 2 lines

I do not see why this even works on x86... Please try the following patch:

Please try this one instead:

(quoted diff) +0 -0

b/debian/libxenomai1.install index 093956b..9c732f5 100644

debian/libxenomai1.install +1 -0
@@ -1 +1,2 @@
+etc/udev/rules.d/*

  usr/lib/*.so.*

debian/rules +0 -0
index 3915fd6..c842986 100755
@@ -61,14 +61,12 @@ install: build
Quoted 4 lines

      dh_testroot
      dh_prep
      dh_installdirs
+    mkdir -p $(CURDIR)/debian/tmp/etc/udev/rules.d

This shouldn't be necessary as etc/udev/rules.d is listed in libxenomai1.dirs - dh_installdirs uses this to create the target dirctories.

Quoted 9 lines

      $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp/ dh_install --sourcedir=$(CURDIR)/debian/tmp

       # xeno-config should be only in libxenomai-dev
       rm -f $(CURDIR)/debian/xenomai-runtime/usr/bin/xeno-config
       rm -f
$(CURDIR)/debian/xenomai-runtime/usr/share/man/man1/xeno-config.1
-    for f in $(CURDIR)/ksrc/nucleus/udev/*.rules ; do \
-        cat $$f >>
$(CURDIR)/debian/libxenomai1/etc/udev/xenomai.rules ; \ -    done

This is needed so that the udev rules get copied across.

Quoted 7 lines
Quoted 2 lines

If the directory /etc/udev/rules.d exists, Xenomai's "make install", should copy the rules itself.

The default install is in debian/tmp where as udev rules should be installed in debian/libxenomai1 so that they end up in the correct package. The attached patch aims to do just this and also removes a symlink created when installing the package.

I see there exist some dh_installudev and dh_installmodules to take care of the udev rules and modprobe snnippet, maybe we could use that?

Signature · 3 lines
                                                                Gilles.

I just tested a cross-compile to armhf on x86. As said previously, debuild for x86 goes well. The cross-compile using "debuild -eCROSS_COMPILE=arm-none-linux-gnueabihf- -aarmhf -uc -us" results in the same error as native compilation on armhf. Using "debuild -eCROSS_COMPILE=arm-none-linux-gnueabihf- -uc -us" (so without -aarmhf) results in the build of x86 packages. So as far as I can there's indeed a bug in debuild for armhf.