Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004152 [Resin] minor always 08-02-10 07:46 01-11-11 18:20
Reporter billa View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 4.0.9
Summary 0004152: make install fails when /etc/init.d not writable
Description We do not build Resin as root so /etc/init.d is not writable when we run:

./configure
make
make install

In 4.0.6 "make install" reports a warning but still finishes. But in 4.0.9, "make install" exits with an error.

It will be good if the init.d script feature can be disabled by a command line option in configure, something like --disable-init_d.
Additional Information
Attached Files

- Relationships

- Notes
(0004687)
billa
08-02-10 08:31

From ./configure:

      init: /etc/init.d/resin

Error from make install:

cp: cannot create regular file `/etc/init.d/resin': Permission denied
chmod: cannot access `/etc/init.d/resin': No such file or directory
make: *** [install] Error 1

The not writable warning is issued only if $(resin_init_d) exits and is a regular file (ie test -f). Otherwise, it just cp and that's where it is failing:

                else \
                        cp $(abs_builddir)/init.d/resin $(resin_init_d); \
                        chmod +x $(resin_init_d) && echo "${resin_init_d} installed."; \
                fi; \
 
(0004779)
billa
10-06-10 12:54

I figured out that I can use --with-resin-init.d=no to get around this.
 

- Issue History
Date Modified Username Field Change
08-02-10 07:46 billa New Issue
08-02-10 07:47 billa Issue Monitored: billa
08-02-10 08:31 billa Note Added: 0004687
10-06-10 12:54 billa Note Added: 0004779
01-11-11 18:20 ferg Assigned To  => ferg
01-11-11 18:20 ferg Status new => closed
01-11-11 18:20 ferg Resolution open => fixed
01-11-11 18:20 ferg Fixed in Version  => 4.0.13


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
32 total queries executed.
27 unique queries executed.
Powered by Mantis Bugtracker