#8261 NORM Not Tri: etoys build doesn't honour destdir

Zarro Boogs per Child bugtracker at laptop.org
Mon Sep 1 07:19:57 EDT 2008


#8261: etoys build doesn't honour destdir
----------------------------+-----------------------------------------------
 Reporter:  koenkooi        |         Owner:  etoys        
     Type:  defect          |        Status:  new          
 Priority:  normal          |     Milestone:  Not Triaged  
Component:  etoys-activity  |       Version:  not specified
 Keywords:                  |   Next_action:  never set    
 Verified:  0               |     Blockedby:               
 Blocking:                  |  
----------------------------+-----------------------------------------------
 When trying to cross-compile etoys:

 + make DESTDIR=/OE/angstrom-dev/work/armv7a-angstrom-linux-
 gnueabi/etoys-3.0.2076-r0/image install
 for d in /usr/bin /usr/share/etoys /usr/share/mime/packages
 /usr/share/etoys/ExampleEtoys /usr/share/etoys/QuickGuides
 /usr/share/doc/etoys ; do mkdir -p $d ; done
 mkdir: cannot create directory `/usr/share/etoys': Permission denied
 mkdir: cannot create directory `/usr/share/etoys': Permission denied
 mkdir: cannot create directory `/usr/share/etoys': Permission denied
 mkdir: cannot create directory `/usr/share/doc/etoys': Permission denied
 make: *** [install-etoys] Error 1

 It probably needs something like:

 --- /tmp/Makefile.in    2008-09-01 13:20:20.000000000 +0200
 +++ etoys-3.0.2076/Makefile.in  2008-09-01 13:22:11.693198000 +0200
 @@ -79,23 +79,23 @@
  dirs = $(bindir) $(etoysdir) $(mimedir) $(exmpldir) $(guidedir)
 $(docsdir)

  install-etoys: Content
 -       for d in $(dirs) ; do mkdir -p $$d ; done
 +       for d in $(dirs) ; do mkdir -p $(DESTDIR)$$d ; done
         install -v etoys $(bindir)
 -       for f in $(etoys) ; do install -v -m 644 $$f $(etoysdir); done
 -       for f in $(examples); do install -v -m 644 $$f $(exmpldir); done
 +       for f in $(etoys) ; do install -v -m 644 $$f
 $(DESTDIR)$(etoysdir); done
 +       for f in $(examples); do install -v -m 644 $$f
 $(DESTDIR)$(exmpldir); done
         for f in $(guides); do \
                 dest=$(guidedir)/`basename $$f`; \
                 echo -n $$dest; \
 -               ( gunzip -c $$f | gzip -v --rsyncable > $$dest ); \
 -               chmod 644 $$dest; \
 +               ( gunzip -c $$f | gzip -v --rsyncable > $(DESTDIR)$$dest
 ); \
 +               chmod 644 $(DESTDIR)$$dest; \
         done
 -       for f in $(docs) ; do install -v -m 644 $$f $(docsdir); done
 +       for f in $(docs) ; do install -v -m 644 $$f $(DESTDIR)$(docsdir);
 done
         for f in $(mos) ; do \
                 dir=`dirname $$f|sed 's/^Content.//'` ; \
 -               mkdir -p $(etoysdir)/$$dir ; \
 -               install -v -m 644 $$f $(etoysdir)/$$dir ; \
 +               mkdir -p $(DESTDIR)$(etoysdir)/$$dir ; \
 +               install -v -m 644 $$f $(DESTDIR)$(etoysdir)/$$dir ; \
         done
 -       install -v -m 644 etoys.xml $(mimedir)
 +       install -v -m 644 etoys.xml $(DESTDIR)$(mimedir)

-- 
Ticket URL: <http://dev.laptop.org/ticket/8261>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list