bugGNU Screen - Bugs: bug #48370, `make install` ignores destination...

 
 

bug #48370: `make install` ignores destination directory causing installation to fail

Submitted by:  Paul Menzel <paulmenzel>
Submitted on:  Fri 01 Jul 2016 09:30:36 PM UTC  
 
Category: Build/InstallSeverity: 3 - Normal
Priority: 5 - NormalStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: ClosedRelease: 4.4.0
Fixed Release: 4.5.0Planned Release: None
Work Required: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 04 Jul 2016 06:46:06 PM UTC, comment #1:

Thanks, for report.
Fix pushed to screen-v4 and master.

Amadeusz Sławiński <amade>
Project Administrator
Fri 01 Jul 2016 09:30:36 PM UTC, original submission:

Trying to build GNU Screen with a different build directory, doesn’t seem to work, as it tries to touch files on the build system installation, which is not wanted in this case..

```
$ /dev/shm/bee-root/screen/screen-4.4.0-0/source/configure --prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec --sysconfdir=/etc --sharedstatedir=/var --localstatedir=/var --libdir=/usr/lib --includedir=/usr/include --datarootdir=/usr/share --datadir=/usr/share --infodir=/usr/share/info --localedir=/usr/share/locale --mandir=/usr/share/man --docdir=/usr/share/doc/screen --exec-prefix=/usr --with-socket-dir=/run/uscreens --with-pty-group=5 --with-sys-screenrc=/etc/screenrc
$ make -j
$ make -j install DESTDIR=/dev/shm/bee-root/screen/screen-4.4.0-0/image
/dev/shm/bee-root/screen/screen-4.4.0-0/source/etc/mkinstalldirs /dev/shm/bee-root/screen/screen-4.4.0-0/image/usr/bin /dev/shm/bee-root/screen/screen-4.4.0-0/image/usr/share/screen/utf8encodings
mkdir /dev/shm/bee-root/screen/screen-4.4.0-0/image/usr
mkdir /dev/shm/bee-root/screen/screen-4.4.0-0/image/usr/bin
mkdir /dev/shm/bee-root/screen/screen-4.4.0-0/image/usr/share
mkdir /dev/shm/bee-root/screen/screen-4.4.0-0/image/usr/share/screen
mkdir /dev/shm/bee-root/screen/screen-4.4.0-0/image/usr/share/screen/utf8encodings
cd doc ; make installdirs
make[1]: Entering directory '/dev/shm/bee-root/screen/screen-4.4.0-0/build/doc'
/dev/shm/bee-root/screen/screen-4.4.0-0/source/doc/../etc/mkinstalldirs /dev/shm/bee-root/screen/screen-4.4.0-0/image/usr/share/man/man1 /dev/shm/bee-root/screen/screen-4.4.0-0/image/usr/share/info
if [ -f /dev/shm/bee-root/screen/screen-4.4.0-0/image/usr/bin/screen-4.4.0 ] && [ ! -f /dev/shm/bee-root/screen/screen-4.4.0-0/image/usr/bin/screen-4.4.0.old ]; \
then mv /dev/shm/bee-root/screen/screen-4.4.0-0/image/usr/bin/screen-4.4.0 /dev/shm/bee-root/screen/screen-4.4.0-0/image/usr/bin/screen-4.4.0.old; fi
/usr/bin/install -c screen /dev/shm/bee-root/screen/screen-4.4.0-0/image/usr/bin/screen-4.4.0
mkdir /dev/shm/bee-root/screen/screen-4.4.0-0/image/usr/share/man
mkdir /dev/shm/bee-root/screen/screen-4.4.0-0/image/usr/share/man/man1
chown root /dev/shm/bee-root/screen/screen-4.4.0-0/image/usr/bin/screen-4.4.0 && chmod 4755 /dev/shm/bee-root/screen/screen-4.4.0-0/image/usr/bin/screen-4.4.0
mkdir /dev/shm/bee-root/screen/screen-4.4.0-0/image/usr/share/info
chown: changing ownership of ‘/dev/shm/bee-root/screen/screen-4.4.0-0/image/usr/bin/screen-4.4.0’: Operation not permitted
Makefile:86: recipe for target 'install_bin' failed
make: [install_bin] Error 1 (ignored)
if [ -f /dev/shm/bee-root/screen/screen-4.4.0-0/image/usr/bin/screen ] && [ ! -f /dev/shm/bee-root/screen/screen-4.4.0-0/image/usr/bin/screen.old ]; then mv /dev/shm/bee-root/screen/screen-4.4.0-0/image/usr/bin/screen /dev/shm/bee-root/screen/screen-4.4.0-0/image/usr/bin/screen.old; fi
make[1]: Leaving directory '/dev/shm/bee-root/screen/screen-4.4.0-0/build/doc'
rm -f /dev/shm/bee-root/screen/screen-4.4.0-0/image/usr/bin/screen
(cd /dev/shm/bee-root/screen/screen-4.4.0-0/image/usr/bin && ln -f -s screen-4.4.0 screen)
cp /dev/shm/bee-root/screen/screen-4.4.0-0/source/utf8encodings/?? /dev/shm/bee-root/screen/screen-4.4.0-0/image/usr/share/screen/utf8encodings
cd doc ; make install
make[1]: Entering directory '/dev/shm/bee-root/screen/screen-4.4.0-0/build/doc'
/dev/shm/bee-root/screen/screen-4.4.0-0/source/doc/../etc/mkinstalldirs /dev/shm/bee-root/screen/screen-4.4.0-0/image/usr/share/man/man1 /dev/shm/bee-root/screen/screen-4.4.0-0/image/usr/share/info
/usr/bin/install -c -m 644 /dev/shm/bee-root/screen/screen-4.4.0-0/source/doc/screen.1 /dev/shm/bee-root/screen/screen-4.4.0-0/image/usr/share/man/man1/screen.1
make screen.info
make[2]: Entering directory '/dev/shm/bee-root/screen/screen-4.4.0-0/build/doc'
makeinfo /dev/shm/bee-root/screen/screen-4.4.0-0/source/doc/screen.texinfo -o screen.info
make[2]: Leaving directory '/dev/shm/bee-root/screen/screen-4.4.0-0/build/doc'
if test -f screen.info; then d=.; else d=/dev/shm/bee-root/screen/screen-4.4.0-0/source/doc; fi; \
if test -f $d/screen.info; then \
for f in $d/screen.info*; do /usr/bin/install -c -m 644 $f /dev/shm/bee-root/screen/screen-4.4.0-0/image/usr/share/info;done; \
if /bin/sh -c 'install-info --version' >/dev/null 2>&1; then \
install-info --info-dir=/dev/shm/bee-root/screen/screen-4.4.0-0/image/usr/share/info $d/screen.info; \
else true; fi; \
fi
[…]
make[1]: Leaving directory '/dev/shm/bee-root/screen/screen-4.4.0-0/build/doc'
if [ -d /usr/lib/terminfo ]; then \
PATH="$PATH:/usr/5bin" tic /dev/shm/bee-root/screen/screen-4.4.0-0/source/terminfo/screeninfo.src; \
chmod 644 /usr/lib/terminfo/s/screen*; \
fi
chmod: changing permissions of ‘/usr/lib/terminfo/s/screen’: Operation not permitted
chmod: changing permissions of ‘/usr/lib/terminfo/s/screen+fkeys’: Operation not permitted
chmod: changing permissions of ‘/usr/lib/terminfo/s/screen-16color’: Operation not permitted
chmod: changing permissions of ‘/usr/lib/terminfo/s/screen-16color-bce’: Operation not permitted
chmod: changing permissions of ‘/usr/lib/terminfo/s/screen-16color-bce-s’: Operation not permitted
chmod: changing permissions of ‘/usr/lib/terminfo/s/screen-16color-s’: Operation not permitted
chmod: changing permissions of ‘/usr/lib/terminfo/s/screen-256color’: Operation not permitted
chmod: changing permissions of ‘/usr/lib/terminfo/s/screen-256color-bce’: Operation not permitted
chmod: changing permissions of ‘/usr/lib/terminfo/s/screen-256color-bce-s’: Operation not permitted
chmod: changing permissions of ‘/usr/lib/terminfo/s/screen-256color-s’: Operation not permitted
chmod: changing permissions of ‘/usr/lib/terminfo/s/screen-bce’: Operation not permitted
chmod: changing permissions of ‘/usr/lib/terminfo/s/screen-s’: Operation not permitted
chmod: changing permissions of ‘/usr/lib/terminfo/s/screen-w’: Operation not permitted
chmod: changing permissions of ‘/usr/lib/terminfo/s/screen.linux’: Operation not permitted
chmod: changing permissions of ‘/usr/lib/terminfo/s/screen.mlterm’: Operation not permitted
chmod: changing permissions of ‘/usr/lib/terminfo/s/screen.rxvt’: Operation not permitted
chmod: changing permissions of ‘/usr/lib/terminfo/s/screen.teraterm’: Operation not permitted
chmod: changing permissions of ‘/usr/lib/terminfo/s/screen.xterm-new’: Operation not permitted
chmod: changing permissions of ‘/usr/lib/terminfo/s/screen.xterm-r6’: Operation not permitted
chmod: changing permissions of ‘/usr/lib/terminfo/s/screen.xterm-xfree86’: Operation not permitted
chmod: changing permissions of ‘/usr/lib/terminfo/s/screen2’: Operation not permitted
chmod: changing permissions of ‘/usr/lib/terminfo/s/screen3’: Operation not permitted
Makefile:98: recipe for target 'install' failed
make: [install] Error 1 (ignored)
termcap entry (/dev/shm/bee-root/screen/screen-4.4.0-0/source/terminfo/screencap) should be installed manually.
You may also want to install /dev/shm/bee-root/screen/screen-4.4.0-0/source/etc/etcscreenrc in /etc/screenrc
```

Paul Menzel <paulmenzel>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by amade (Posted a comment)
  • -unavailable- added by paulmenzel (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 18 Jan 2017 09:44:31 PM UTCamadeOpen/ClosedOpen=>Closed
      Fixed ReleaseNone=>4.5.0
    Mon 04 Jul 2016 06:46:06 PM UTCamadeStatusNone=>Fixed

    Back to the top


    Powered by Savane 3.1-cleanup1