TerminalImageViewer
TerminalImageViewer copied to clipboard
install uses illegal syntax: `/usr/bin/install: illegal option -- D`
Describe the Bug
install uses illegal option that breaks destroot.
To Reproduce
Run the build on macOS, try installing.
Expected Behavio(u)r
Installation should succeed.
Screenshots
make: Entering directory `/opt/local/var/macports/build/terminal-image-viewer-f96c3059/work/TerminalImageViewer-1.2.1/src'
/usr/bin/install -c -D tiv /opt/local/var/macports/build/terminal-image-viewer-f96c3059/work/destroot/usr/local/bin/tiv
/usr/bin/install: illegal option -- D
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 file2
install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 ... fileN directory
install -d [-v] [-g group] [-m mode] [-o owner] directory ...
make: *** [install] Error 64
Version/Commit Hash
1.2.1
OS Specifics
macOS 10.6.8
Could you verify if replacing the relevant line with
mkdir -p $(DESTDIR)$(bindir)
$(INSTALL) $(PROGNAME) $(DESTDIR)$(bindir)/$(PROGNAME)
works?
Yes, just using install works fine.
Could you verify that what I sent works? The meaning of -D is to make sure the parent directories exist, which is needed on systems that aren't macOS.