All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] debuild of xenomai failing: Directory nonexistent
@ 2014-01-29 14:36 Huub Van Niekerk
  2014-01-29 19:05 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 33+ messages in thread
From: Huub Van Niekerk @ 2014-01-29 14:36 UTC (permalink / raw)
  To: xenomai

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

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Xenomai] debuild of xenomai failing: Directory nonexistent
  2014-01-29 14:36 [Xenomai] debuild of xenomai failing: Directory nonexistent Huub Van Niekerk
@ 2014-01-29 19:05 ` Gilles Chanteperdrix
  2014-01-29 20:02   ` Gilles Chanteperdrix
  0 siblings, 1 reply; 33+ messages in thread
From: Gilles Chanteperdrix @ 2014-01-29 19:05 UTC (permalink / raw)
  To: Huub Van Niekerk; +Cc: xenomai

On 01/29/2014 03:36 PM, Huub Van Niekerk wrote:
> 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:

diff --git a/debian/rules b/debian/rules
index 3915fd6..280442f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -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


> 
> Thanks _______________________________________________ Xenomai
> mailing list Xenomai@xenomai.org 
> http://www.xenomai.org/mailman/listinfo/xenomai
> 


-- 
                                                                Gilles.


^ permalink raw reply related	[flat|nested] 33+ messages in thread

* Re: [Xenomai] debuild of xenomai failing: Directory nonexistent
  2014-01-29 19:05 ` Gilles Chanteperdrix
@ 2014-01-29 20:02   ` Gilles Chanteperdrix
  2014-01-30  7:31     ` Huub Van Niekerk
  2014-01-30 16:24     ` Paul
  0 siblings, 2 replies; 33+ messages in thread
From: Gilles Chanteperdrix @ 2014-01-29 20:02 UTC (permalink / raw)
  To: Huub Van Niekerk; +Cc: xenomai

On 01/29/2014 08:05 PM, Gilles Chanteperdrix wrote:
> On 01/29/2014 03:36 PM, Huub Van Niekerk wrote:
>> 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:

Please try this one instead:

diff --git a/debian/libxenomai1.install b/debian/libxenomai1.install
index 093956b..9c732f5 100644
--- a/debian/libxenomai1.install
+++ b/debian/libxenomai1.install
@@ -1 +1,2 @@
+etc/udev/rules.d/*
 usr/lib/*.so.*
diff --git a/debian/rules b/debian/rules
index 3915fd6..c842986 100755
--- a/debian/rules
+++ b/debian/rules
@@ -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



-- 
                                                                Gilles.


^ permalink raw reply related	[flat|nested] 33+ messages in thread

* Re: [Xenomai] debuild of xenomai failing: Directory nonexistent
  2014-01-29 20:02   ` Gilles Chanteperdrix
@ 2014-01-30  7:31     ` Huub Van Niekerk
  2014-01-30  8:39       ` Gilles Chanteperdrix
  2014-01-30 16:24     ` Paul
  1 sibling, 1 reply; 33+ messages in thread
From: Huub Van Niekerk @ 2014-01-30  7:31 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai

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 <gilles.chanteperdrix@xenomai.org> wrote:
 
On 01/29/2014 08:05 PM, Gilles Chanteperdrix wrote:
> On 01/29/2014 03:36 PM, Huub Van Niekerk wrote:
>> 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:

Please try this one instead:

diff --git a/debian/libxenomai1.install b/debian/libxenomai1.install
index 093956b..9c732f5 100644
--- a/debian/libxenomai1.install
+++ b/debian/libxenomai1.install
@@ -1 +1,2 @@
+etc/udev/rules.d/*
usr/lib/*.so.*
diff --git a/debian/rules b/debian/rules
index 3915fd6..c842986 100755
--- a/debian/rules
+++ b/debian/rules
@@ -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




-- 
                                                                Gilles.

^ permalink raw reply related	[flat|nested] 33+ messages in thread

* Re: [Xenomai] debuild of xenomai failing: Directory nonexistent
  2014-01-30  7:31     ` Huub Van Niekerk
@ 2014-01-30  8:39       ` Gilles Chanteperdrix
  2014-01-30  9:05         ` Huub Van Niekerk
  0 siblings, 1 reply; 33+ messages in thread
From: Gilles Chanteperdrix @ 2014-01-30  8:39 UTC (permalink / raw)
  To: Huub Van Niekerk; +Cc: xenomai

On 01/30/2014 08:31 AM, Huub Van Niekerk wrote:
> 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


-- 
                                                                Gilles.


^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Xenomai] debuild of xenomai failing: Directory nonexistent
  2014-01-30  8:39       ` Gilles Chanteperdrix
@ 2014-01-30  9:05         ` Huub Van Niekerk
  2014-01-30  9:24           ` Gilles Chanteperdrix
  0 siblings, 1 reply; 33+ messages in thread
From: Huub Van Niekerk @ 2014-01-30  9:05 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai

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 <gilles.chanteperdrix@xenomai.org> wrote:
 
On 01/30/2014 08:31 AM, Huub Van Niekerk wrote:
> 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



-- 
                                                                Gilles.

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Xenomai] debuild of xenomai failing: Directory nonexistent
  2014-01-30  9:05         ` Huub Van Niekerk
@ 2014-01-30  9:24           ` Gilles Chanteperdrix
  2014-01-30  9:41             ` Huub Van Niekerk
  0 siblings, 1 reply; 33+ messages in thread
From: Gilles Chanteperdrix @ 2014-01-30  9:24 UTC (permalink / raw)
  To: Huub Van Niekerk; +Cc: xenomai

On 01/30/2014 10:05 AM, Huub Van Niekerk wrote:
> 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.

-- 
                                                                Gilles.


^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Xenomai] debuild of xenomai failing: Directory nonexistent
  2014-01-30  9:24           ` Gilles Chanteperdrix
@ 2014-01-30  9:41             ` Huub Van Niekerk
  2014-01-30 10:52               ` Gilles Chanteperdrix
  0 siblings, 1 reply; 33+ messages in thread
From: Huub Van Niekerk @ 2014-01-30  9:41 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai

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 <gilles.chanteperdrix@xenomai.org> wrote:
 
On 01/30/2014 10:05 AM, Huub Van Niekerk wrote:
> 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.


-- 
                                                                Gilles.

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Xenomai] debuild of xenomai failing: Directory nonexistent
  2014-01-30  9:41             ` Huub Van Niekerk
@ 2014-01-30 10:52               ` Gilles Chanteperdrix
  2014-01-30 12:07                 ` Huub Van Niekerk
  2014-01-30 12:07                 ` Huub Van Niekerk
  0 siblings, 2 replies; 33+ messages in thread
From: Gilles Chanteperdrix @ 2014-01-30 10:52 UTC (permalink / raw)
  To: Huub Van Niekerk; +Cc: xenomai

On 01/30/2014 10:41 AM, Huub Van Niekerk wrote:
> 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

-- 
					    Gilles.


^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Xenomai] debuild of xenomai failing: Directory nonexistent
  2014-01-30 10:52               ` Gilles Chanteperdrix
@ 2014-01-30 12:07                 ` Huub Van Niekerk
  2014-01-30 12:53                   ` Gilles Chanteperdrix
  2014-01-30 12:07                 ` Huub Van Niekerk
  1 sibling, 1 reply; 33+ messages in thread
From: Huub Van Niekerk @ 2014-01-30 12:07 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai

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 <gilles.chanteperdrix@xenomai.org> wrote:
 
On 01/30/2014 10:41 AM, Huub Van Niekerk wrote:
> 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


-- 
                        Gilles.

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Xenomai] debuild of xenomai failing: Directory nonexistent
  2014-01-30 10:52               ` Gilles Chanteperdrix
  2014-01-30 12:07                 ` Huub Van Niekerk
@ 2014-01-30 12:07                 ` Huub Van Niekerk
  2014-01-30 12:12                   ` Gilles Chanteperdrix
  1 sibling, 1 reply; 33+ messages in thread
From: Huub Van Niekerk @ 2014-01-30 12:07 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai

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 <gilles.chanteperdrix@xenomai.org> wrote:
 
On 01/30/2014 10:41 AM, Huub Van Niekerk wrote:
> 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


-- 
                        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>

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Xenomai] debuild of xenomai failing: Directory nonexistent
  2014-01-30 12:07                 ` Huub Van Niekerk
@ 2014-01-30 12:12                   ` Gilles Chanteperdrix
  0 siblings, 0 replies; 33+ messages in thread
From: Gilles Chanteperdrix @ 2014-01-30 12:12 UTC (permalink / raw)
  To: Huub Van Niekerk; +Cc: xenomai

On 01/30/2014 01:07 PM, Huub Van Niekerk wrote:
> 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...

-- 
                                                                Gilles.


^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Xenomai] debuild of xenomai failing: Directory nonexistent
  2014-01-30 12:07                 ` Huub Van Niekerk
@ 2014-01-30 12:53                   ` Gilles Chanteperdrix
  2014-01-30 13:23                     ` Huub Van Niekerk
  0 siblings, 1 reply; 33+ messages in thread
From: Gilles Chanteperdrix @ 2014-01-30 12:53 UTC (permalink / raw)
  To: Huub Van Niekerk; +Cc: xenomai

On 01/30/2014 01:07 PM, Huub Van Niekerk wrote:
> 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.

-- 
                                                                Gilles.


^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Xenomai] debuild of xenomai failing: Directory nonexistent
  2014-01-30 12:53                   ` Gilles Chanteperdrix
@ 2014-01-30 13:23                     ` Huub Van Niekerk
  2014-01-30 16:45                       ` Gilles Chanteperdrix
  2014-01-30 19:12                       ` Gilles Chanteperdrix
  0 siblings, 2 replies; 33+ messages in thread
From: Huub Van Niekerk @ 2014-01-30 13:23 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai

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 <gilles.chanteperdrix@xenomai.org> wrote:
 
On 01/30/2014 01:07 PM, Huub Van Niekerk wrote:
> 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.


-- 
                                                                Gilles.

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Xenomai] debuild of xenomai failing: Directory nonexistent
  2014-01-29 20:02   ` Gilles Chanteperdrix
  2014-01-30  7:31     ` Huub Van Niekerk
@ 2014-01-30 16:24     ` Paul
  2014-01-30 16:44       ` Gilles Chanteperdrix
  1 sibling, 1 reply; 33+ messages in thread
From: Paul @ 2014-01-30 16:24 UTC (permalink / raw)
  To: xenomai

On Wednesday 29 January 2014, Gilles Chanteperdrix wrote:
> On 01/29/2014 08:05 PM, Gilles Chanteperdrix wrote:
> > On 01/29/2014 03:36 PM, Huub Van Niekerk wrote:
> >> 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.
> >
> > I do not see why this even works on x86... Please try the following
> > patch:
>
> Please try this one instead:
>
> diff --git a/debian/libxenomai1.install b/debian/libxenomai1.install
> index 093956b..9c732f5 100644
> --- a/debian/libxenomai1.install
> +++ b/debian/libxenomai1.install
> @@ -1 +1,2 @@
> +etc/udev/rules.d/*
>  usr/lib/*.so.*
> diff --git a/debian/rules b/debian/rules
> index 3915fd6..c842986 100755
> --- a/debian/rules
> +++ b/debian/rules
> @@ -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.

>  	$(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.

>  	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.


^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Xenomai] debuild of xenomai failing: Directory nonexistent
  2014-01-30 16:24     ` Paul
@ 2014-01-30 16:44       ` Gilles Chanteperdrix
  2014-01-30 19:57         ` Paul
  0 siblings, 1 reply; 33+ messages in thread
From: Gilles Chanteperdrix @ 2014-01-30 16:44 UTC (permalink / raw)
  To: Paul; +Cc: xenomai

On 01/30/2014 05:24 PM, Paul wrote:
> On Wednesday 29 January 2014, Gilles Chanteperdrix wrote:
>> On 01/29/2014 08:05 PM, Gilles Chanteperdrix wrote:
>>> On 01/29/2014 03:36 PM, Huub Van Niekerk wrote:
>>>> 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.
>>>
>>> I do not see why this even works on x86... Please try the following
>>> patch:
>>
>> Please try this one instead:
>>
>> diff --git a/debian/libxenomai1.install b/debian/libxenomai1.install
>> index 093956b..9c732f5 100644
>> --- a/debian/libxenomai1.install
>> +++ b/debian/libxenomai1.install
>> @@ -1 +1,2 @@
>> +etc/udev/rules.d/*
>>   usr/lib/*.so.*
>> diff --git a/debian/rules b/debian/rules
>> index 3915fd6..c842986 100755
>> --- a/debian/rules
>> +++ b/debian/rules
>> @@ -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.
>
>>   	$(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.

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


-- 
					    Gilles.


^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Xenomai] debuild of xenomai failing: Directory nonexistent
  2014-01-30 13:23                     ` Huub Van Niekerk
@ 2014-01-30 16:45                       ` Gilles Chanteperdrix
  2014-01-30 19:12                       ` Gilles Chanteperdrix
  1 sibling, 0 replies; 33+ messages in thread
From: Gilles Chanteperdrix @ 2014-01-30 16:45 UTC (permalink / raw)
  To: Huub Van Niekerk; +Cc: xenomai

On 01/30/2014 02:23 PM, Huub Van Niekerk wrote:
> 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.


-- 
					    Gilles.


^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Xenomai] debuild of xenomai failing: Directory nonexistent
  2014-01-30 13:23                     ` Huub Van Niekerk
  2014-01-30 16:45                       ` Gilles Chanteperdrix
@ 2014-01-30 19:12                       ` Gilles Chanteperdrix
  2014-01-31  6:58                         ` Huub Van Niekerk
  1 sibling, 1 reply; 33+ messages in thread
From: Gilles Chanteperdrix @ 2014-01-30 19:12 UTC (permalink / raw)
  To: Huub Van Niekerk; +Cc: xenomai

On 01/30/2014 02:23 PM, Huub Van Niekerk wrote:
> 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?

-- 
					    Gilles.


^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Xenomai] debuild of xenomai failing: Directory nonexistent
  2014-01-30 16:44       ` Gilles Chanteperdrix
@ 2014-01-30 19:57         ` Paul
  2014-01-30 20:30           ` Gilles Chanteperdrix
  2014-01-31 12:22           ` Gilles Chanteperdrix
  0 siblings, 2 replies; 33+ messages in thread
From: Paul @ 2014-01-30 19:57 UTC (permalink / raw)
  To: xenomai

On Thursday 30 January 2014, Gilles Chanteperdrix wrote:
> On 01/30/2014 05:24 PM, Paul wrote:
> > On Wednesday 29 January 2014, Gilles Chanteperdrix wrote:
> >> On 01/29/2014 08:05 PM, Gilles Chanteperdrix wrote:
> >>> On 01/29/2014 03:36 PM, Huub Van Niekerk wrote:
> >>>> 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.
> >>>
> >>> I do not see why this even works on x86... Please try the
> >>> following patch:
> >>
> >> Please try this one instead:
> >>
> >> diff --git a/debian/libxenomai1.install
> >> b/debian/libxenomai1.install index 093956b..9c732f5 100644
> >> --- a/debian/libxenomai1.install
> >> +++ b/debian/libxenomai1.install
> >> @@ -1 +1,2 @@
> >> +etc/udev/rules.d/*
> >>   usr/lib/*.so.*
> >> diff --git a/debian/rules b/debian/rules
> >> index 3915fd6..c842986 100755
> >> --- a/debian/rules
> >> +++ b/debian/rules
> >> @@ -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.
> >
> >>   	$(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.
>
> 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>

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Xenomai] debuild of xenomai failing: Directory nonexistent
  2014-01-30 19:57         ` Paul
@ 2014-01-30 20:30           ` Gilles Chanteperdrix
  2014-01-31  7:00             ` Huub Van Niekerk
  2014-01-31  9:18             ` Huub Van Niekerk
  2014-01-31 12:22           ` Gilles Chanteperdrix
  1 sibling, 2 replies; 33+ messages in thread
From: Gilles Chanteperdrix @ 2014-01-30 20:30 UTC (permalink / raw)
  To: Paul; +Cc: xenomai

On 01/30/2014 08:57 PM, Paul wrote:
> On Thursday 30 January 2014, Gilles Chanteperdrix wrote:
>> On 01/30/2014 05:24 PM, Paul wrote:
>>> On Wednesday 29 January 2014, Gilles Chanteperdrix wrote:
>>>> On 01/29/2014 08:05 PM, Gilles Chanteperdrix wrote:
>>>>> On 01/29/2014 03:36 PM, Huub Van Niekerk wrote:
>>>>>> 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.
>>>>>
>>>>> I do not see why this even works on x86... Please try the
>>>>> following patch:
>>>>
>>>> Please try this one instead:
>>>>
>>>> diff --git a/debian/libxenomai1.install
>>>> b/debian/libxenomai1.install index 093956b..9c732f5 100644
>>>> --- a/debian/libxenomai1.install
>>>> +++ b/debian/libxenomai1.install
>>>> @@ -1 +1,2 @@
>>>> +etc/udev/rules.d/*
>>>>   usr/lib/*.so.*
>>>> diff --git a/debian/rules b/debian/rules
>>>> index 3915fd6..c842986 100755
>>>> --- a/debian/rules
>>>> +++ b/debian/rules
>>>> @@ -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.
>>>
>>>>   	$(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.
>>
>> 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.


-- 
                                                                Gilles.


^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Xenomai] debuild of xenomai failing: Directory nonexistent
  2014-01-30 19:12                       ` Gilles Chanteperdrix
@ 2014-01-31  6:58                         ` Huub Van Niekerk
  2014-01-31  9:27                           ` Gilles Chanteperdrix
  0 siblings, 1 reply; 33+ messages in thread
From: Huub Van Niekerk @ 2014-01-31  6:58 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai

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 <gilles.chanteperdrix@xenomai.org> wrote:
 
On 01/30/2014 02:23 PM, Huub Van Niekerk wrote:
> 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?


-- 
                        Gilles.

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Xenomai] debuild of xenomai failing: Directory nonexistent
  2014-01-30 20:30           ` Gilles Chanteperdrix
@ 2014-01-31  7:00             ` Huub Van Niekerk
  2014-01-31  9:30               ` Gilles Chanteperdrix
  2014-01-31  9:18             ` Huub Van Niekerk
  1 sibling, 1 reply; 33+ messages in thread
From: Huub Van Niekerk @ 2014-01-31  7:00 UTC (permalink / raw)
  To: Gilles Chanteperdrix, Paul; +Cc: xenomai

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 <gilles.chanteperdrix@xenomai.org> wrote:
 
On 01/30/2014 08:57 PM, Paul wrote:
> On Thursday 30 January 2014, Gilles Chanteperdrix wrote:
>> On 01/30/2014 05:24 PM, Paul wrote:
>>> On Wednesday 29 January 2014, Gilles Chanteperdrix wrote:
>>>> On 01/29/2014 08:05 PM, Gilles Chanteperdrix wrote:
>>>>> On 01/29/2014 03:36 PM, Huub Van Niekerk wrote:
>>>>>> 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.
>>>>>
>>>>> I do not see why this even works on x86... Please try the
>>>>> following patch:
>>>>
>>>> Please try this one instead:
>>>>
>>>> diff --git a/debian/libxenomai1.install
>>>> b/debian/libxenomai1.install index 093956b..9c732f5 100644
>>>> --- a/debian/libxenomai1.install
>>>> +++ b/debian/libxenomai1.install
>>>> @@ -1 +1,2 @@
>>>> +etc/udev/rules.d/*
>>>>   usr/lib/*.so.*
>>>> diff --git a/debian/rules b/debian/rules
>>>> index 3915fd6..c842986 100755
>>>> --- a/debian/rules
>>>> +++ b/debian/rules
>>>> @@ -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.
>>>
>>>>       $(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.
>>
>> 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.



-- 
                                                                Gilles.

_______________________________________________
Xenomai mailing list
Xenomai@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Xenomai] debuild of xenomai failing: Directory nonexistent
  2014-01-30 20:30           ` Gilles Chanteperdrix
  2014-01-31  7:00             ` Huub Van Niekerk
@ 2014-01-31  9:18             ` Huub Van Niekerk
  2014-01-31  9:39               ` Gilles Chanteperdrix
  2014-01-31 14:12               ` Paul
  1 sibling, 2 replies; 33+ messages in thread
From: Huub Van Niekerk @ 2014-01-31  9:18 UTC (permalink / raw)
  To: Gilles Chanteperdrix, Paul; +Cc: xenomai

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 <gilles.chanteperdrix@xenomai.org> wrote:
 
On 01/30/2014 08:57 PM, Paul wrote:
> On Thursday 30 January 2014, Gilles Chanteperdrix wrote:
>> On 01/30/2014 05:24 PM, Paul wrote:
>>> On Wednesday 29 January 2014, Gilles Chanteperdrix wrote:
>>>> On 01/29/2014 08:05 PM, Gilles Chanteperdrix wrote:
>>>>> On 01/29/2014 03:36 PM, Huub Van Niekerk wrote:
>>>>>> 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.
>>>>>
>>>>> I do not see why this even works on x86... Please try the
>>>>> following patch:
>>>>
>>>> Please try this one instead:
>>>>
>>>> diff --git a/debian/libxenomai1.install
>>>> b/debian/libxenomai1.install index 093956b..9c732f5 100644
>>>> --- a/debian/libxenomai1.install
>>>> +++ b/debian/libxenomai1.install
>>>> @@ -1 +1,2 @@
>>>> +etc/udev/rules.d/*
>>>>   usr/lib/*.so.*
>>>> diff --git a/debian/rules b/debian/rules
>>>> index 3915fd6..c842986 100755
>>>> --- a/debian/rules
>>>> +++ b/debian/rules
>>>> @@ -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.
>>>
>>>>       $(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.
>>
>> 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.



-- 
                                                                Gilles.

_______________________________________________
Xenomai mailing list
Xenomai@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Xenomai] debuild of xenomai failing: Directory nonexistent
  2014-01-31  6:58                         ` Huub Van Niekerk
@ 2014-01-31  9:27                           ` Gilles Chanteperdrix
  0 siblings, 0 replies; 33+ messages in thread
From: Gilles Chanteperdrix @ 2014-01-31  9:27 UTC (permalink / raw)
  To: Huub Van Niekerk; +Cc: xenomai

On 01/31/2014 07:58 AM, Huub Van Niekerk wrote:
> 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.


-- 
                                                                Gilles.


^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Xenomai] debuild of xenomai failing: Directory nonexistent
  2014-01-31  7:00             ` Huub Van Niekerk
@ 2014-01-31  9:30               ` Gilles Chanteperdrix
  2014-01-31  9:37                 ` Huub Van Niekerk
  0 siblings, 1 reply; 33+ messages in thread
From: Gilles Chanteperdrix @ 2014-01-31  9:30 UTC (permalink / raw)
  To: Huub Van Niekerk; +Cc: xenomai

On 01/31/2014 08:00 AM, Huub Van Niekerk wrote:
> 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.


-- 
                                                                Gilles.


^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Xenomai] debuild of xenomai failing: Directory nonexistent
  2014-01-31  9:30               ` Gilles Chanteperdrix
@ 2014-01-31  9:37                 ` Huub Van Niekerk
  0 siblings, 0 replies; 33+ messages in thread
From: Huub Van Niekerk @ 2014-01-31  9:37 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai






On Friday, January 31, 2014 10:30 AM, Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org> wrote:
 
On 01/31/2014 08:00 AM, Huub Van Niekerk wrote:
> 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.



-- 
                                                                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).

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Xenomai] debuild of xenomai failing: Directory nonexistent
  2014-01-31  9:18             ` Huub Van Niekerk
@ 2014-01-31  9:39               ` Gilles Chanteperdrix
  2014-01-31 14:12               ` Paul
  1 sibling, 0 replies; 33+ messages in thread
From: Gilles Chanteperdrix @ 2014-01-31  9:39 UTC (permalink / raw)
  To: Huub Van Niekerk; +Cc: xenomai

On 01/31/2014 10:18 AM, Huub Van Niekerk wrote:
> 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.

-- 
                                                                Gilles.


^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Xenomai] debuild of xenomai failing: Directory nonexistent
  2014-01-30 19:57         ` Paul
  2014-01-30 20:30           ` Gilles Chanteperdrix
@ 2014-01-31 12:22           ` Gilles Chanteperdrix
  2014-01-31 14:08             ` Huub Van Niekerk
  1 sibling, 1 reply; 33+ messages in thread
From: Gilles Chanteperdrix @ 2014-01-31 12:22 UTC (permalink / raw)
  To: Paul; +Cc: xenomai

On 01/30/2014 08:57 PM, Paul wrote:
> On Thursday 30 January 2014, Gilles Chanteperdrix wrote:
>> On 01/30/2014 05:24 PM, Paul wrote:
>>> On Wednesday 29 January 2014, Gilles Chanteperdrix wrote:
>>>> On 01/29/2014 08:05 PM, Gilles Chanteperdrix wrote:
>>>>> On 01/29/2014 03:36 PM, Huub Van Niekerk wrote:
>>>>>> 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.
>>>>>
>>>>> I do not see why this even works on x86... Please try the
>>>>> following patch:
>>>>
>>>> Please try this one instead:
>>>>
>>>> diff --git a/debian/libxenomai1.install
>>>> b/debian/libxenomai1.install index 093956b..9c732f5 100644
>>>> --- a/debian/libxenomai1.install
>>>> +++ b/debian/libxenomai1.install
>>>> @@ -1 +1,2 @@
>>>> +etc/udev/rules.d/*
>>>>   usr/lib/*.so.*
>>>> diff --git a/debian/rules b/debian/rules
>>>> index 3915fd6..c842986 100755
>>>> --- a/debian/rules
>>>> +++ b/debian/rules
>>>> @@ -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.
>>>
>>>>   	$(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.
>>
>> 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?

-- 
                                                                Gilles.


^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Xenomai] debuild of xenomai failing: Directory nonexistent
  2014-01-31 12:22           ` Gilles Chanteperdrix
@ 2014-01-31 14:08             ` Huub Van Niekerk
  0 siblings, 0 replies; 33+ messages in thread
From: Huub Van Niekerk @ 2014-01-31 14:08 UTC (permalink / raw)
  To: Gilles Chanteperdrix, Paul; +Cc: xenomai



On Friday, January 31, 2014 1:23 PM, Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org> wrote:
 
On 01/30/2014 08:57 PM, Paul wrote:
> On Thursday 30 January 2014, Gilles Chanteperdrix wrote:
>> On 01/30/2014 05:24 PM, Paul wrote:
>>> On Wednesday 29 January 2014, Gilles Chanteperdrix wrote:
>>>> On 01/29/2014 08:05 PM, Gilles Chanteperdrix wrote:
>>>>> On 01/29/2014 03:36 PM, Huub Van Niekerk wrote:
>>>>>> 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.
>>>>>
>>>>> I do not see why this even works on x86... Please try the
>>>>> following patch:
>>>>
>>>> Please try this one instead:
>>>>
>>>> diff --git a/debian/libxenomai1.install
>>>> b/debian/libxenomai1.install index 093956b..9c732f5 100644
>>>> --- a/debian/libxenomai1.install
>>>> +++ b/debian/libxenomai1.install
>>>> @@ -1 +1,2 @@
>>>> +etc/udev/rules.d/*
>>>>   usr/lib/*.so.*
>>>> diff --git a/debian/rules b/debian/rules
>>>> index 3915fd6..c842986 100755
>>>> --- a/debian/rules
>>>> +++ b/debian/rules
>>>> @@ -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.
>>>
>>>>       $(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.
>>
>> 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?


-- 
                                                                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.


^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Xenomai] debuild of xenomai failing: Directory nonexistent
  2014-01-31  9:18             ` Huub Van Niekerk
  2014-01-31  9:39               ` Gilles Chanteperdrix
@ 2014-01-31 14:12               ` Paul
  2014-01-31 14:13                 ` Gilles Chanteperdrix
  2014-02-02 23:50                 ` Paul
  1 sibling, 2 replies; 33+ messages in thread
From: Paul @ 2014-01-31 14:12 UTC (permalink / raw)
  To: Huub Van Niekerk; +Cc: xenomai

On Friday 31 January 2014, Huub Van Niekerk wrote:
> 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.


^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Xenomai] debuild of xenomai failing: Directory nonexistent
  2014-01-31 14:12               ` Paul
@ 2014-01-31 14:13                 ` Gilles Chanteperdrix
  2014-02-02 23:50                 ` Paul
  1 sibling, 0 replies; 33+ messages in thread
From: Gilles Chanteperdrix @ 2014-01-31 14:13 UTC (permalink / raw)
  To: Paul; +Cc: xenomai

On 01/31/2014 03:12 PM, Paul wrote:
> On Friday 31 January 2014, Huub Van Niekerk wrote:
>> 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.

No problem.


-- 
					    Gilles.


^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Xenomai] debuild of xenomai failing: Directory nonexistent
  2014-01-31 14:12               ` Paul
  2014-01-31 14:13                 ` Gilles Chanteperdrix
@ 2014-02-02 23:50                 ` Paul
  2014-02-03 20:42                   ` Gilles Chanteperdrix
  1 sibling, 1 reply; 33+ messages in thread
From: Paul @ 2014-02-02 23:50 UTC (permalink / raw)
  To: xenomai

On Friday 31 January 2014, Paul wrote:
> On Friday 31 January 2014, Huub Van Niekerk wrote:
> > 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.

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>

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Xenomai] debuild of xenomai failing: Directory nonexistent
  2014-02-02 23:50                 ` Paul
@ 2014-02-03 20:42                   ` Gilles Chanteperdrix
  0 siblings, 0 replies; 33+ messages in thread
From: Gilles Chanteperdrix @ 2014-02-03 20:42 UTC (permalink / raw)
  To: Paul; +Cc: xenomai

On 02/03/2014 12:50 AM, Paul wrote:
> On Friday 31 January 2014, Paul wrote:
>> On Friday 31 January 2014, Huub Van Niekerk wrote:
>>> 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.
> 
> 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.

Merged, thanks.


-- 
                                                                Gilles.


^ permalink raw reply	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2014-02-03 20:42 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-29 14:36 [Xenomai] debuild of xenomai failing: Directory nonexistent Huub Van Niekerk
2014-01-29 19:05 ` Gilles Chanteperdrix
2014-01-29 20:02   ` Gilles Chanteperdrix
2014-01-30  7:31     ` Huub Van Niekerk
2014-01-30  8:39       ` Gilles Chanteperdrix
2014-01-30  9:05         ` Huub Van Niekerk
2014-01-30  9:24           ` Gilles Chanteperdrix
2014-01-30  9:41             ` Huub Van Niekerk
2014-01-30 10:52               ` Gilles Chanteperdrix
2014-01-30 12:07                 ` Huub Van Niekerk
2014-01-30 12:53                   ` Gilles Chanteperdrix
2014-01-30 13:23                     ` Huub Van Niekerk
2014-01-30 16:45                       ` Gilles Chanteperdrix
2014-01-30 19:12                       ` Gilles Chanteperdrix
2014-01-31  6:58                         ` Huub Van Niekerk
2014-01-31  9:27                           ` Gilles Chanteperdrix
2014-01-30 12:07                 ` Huub Van Niekerk
2014-01-30 12:12                   ` Gilles Chanteperdrix
2014-01-30 16:24     ` Paul
2014-01-30 16:44       ` Gilles Chanteperdrix
2014-01-30 19:57         ` Paul
2014-01-30 20:30           ` Gilles Chanteperdrix
2014-01-31  7:00             ` Huub Van Niekerk
2014-01-31  9:30               ` Gilles Chanteperdrix
2014-01-31  9:37                 ` Huub Van Niekerk
2014-01-31  9:18             ` Huub Van Niekerk
2014-01-31  9:39               ` Gilles Chanteperdrix
2014-01-31 14:12               ` Paul
2014-01-31 14:13                 ` Gilles Chanteperdrix
2014-02-02 23:50                 ` Paul
2014-02-03 20:42                   ` Gilles Chanteperdrix
2014-01-31 12:22           ` Gilles Chanteperdrix
2014-01-31 14:08             ` Huub Van Niekerk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.