Full_Name: Yangqing Jia
Version:
OS: Ubuntu 12.04
URL:
Submission from: (NULL) (2601:646:8f00:2700:ac83:6009:7765:c6b0)
In the Makefile of LMDB, the installation part reads as follows:
install: $(ILIBS) $(IPROGS) $(IHDRS)
for f in $(IPROGS); do cp $$f $(DESTDIR)$(prefix)/bin; done
for f in $(ILIBS); do cp $$f $(DESTDIR)$(prefix)/lib; done
for f in $(IHD%2); do cp $$f $(DESTDIR)$(prefix)/include; done
for f in $(IDOCS); do cp $$f $(DESTDIR)$(prefix)/man/man1; done
This usually works OK, but it silently asumes that $(DESTDIR)$(prefix)/bin and
other folders exist. While it works in most cases, if the folders do not exist,
what follows is that the installation script generates FILES instead of FOLDERS
named bin, lib, include and man1 respectively.
We should add "mkdir -p" commands in the installation part to fix this.