From: Paul Date: Thu, 30 Jan 2014 16:24:25 +0000 References: <1391006203.6916.YahooMailNeo@web163902.mail.gq1.yahoo.com> <52E950FB.70400@xenomai.org> <52E95E66.2060905@xenomai.org> In-Reply-To: <52E95E66.2060905@xenomai.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201401301624.25756.paul_c@tuxcnc.org> Subject: Re: [Xenomai] debuild of xenomai failing: Directory nonexistent List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "xenomai@xenomai.org" 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 > >> /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.