pikvm / ustreamer

µStreamer - Lightweight and fast MJPEG-HTTP streamer
https://pikvm.org
GNU General Public License v3.0
1.74k stars 240 forks source link

install: /usr/ports/multimedia/ustreamer/work/stage/usr/local/man1/ustreamer.1: No such file or directory #82

Closed yurivict closed 3 years ago

yurivict commented 3 years ago

Version 3.2 fails:

===>  Staging for ustreamer-3.2
===>   Generating temporary packing list
gmake[1]: Entering directory '/usr/ports/multimedia/ustreamer/work/ustreamer-3.2'
install -Dm755 ustreamer /usr/ports/multimedia/ustreamer/work/stage/usr/local/bin/ustreamer
install -Dm755 ustreamer-dump /usr/ports/multimedia/ustreamer/work/stage/usr/local/bin/ustreamer-dump
install -Dm644 man/ustreamer.1 /usr/ports/multimedia/ustreamer/work/stage/usr/local/man1/ustreamer.1
install: /usr/ports/multimedia/ustreamer/work/stage/usr/local/man1/ustreamer.1: No such file or directory
gmake[1]: *** [Makefile:87: install] Error 71
gmake[1]: Leaving directory '/usr/ports/multimedia/ustreamer/work/ustreamer-3.2'
*** Error code 2

FreeBSD 12.2

mdevaev commented 3 years ago

Any ideas what's wrong with install? I'm using this makefile without any problems on arch

yurivict commented 3 years ago

You forgot to create the man1 directory.

mdevaev commented 3 years ago

This is done by the -D option on Linux. Is this not the case on FreeBSD?

mdevaev commented 3 years ago

UPD: No. Awesome. Linux: -D create all leading components of DEST except the last, or all components of --target-directory, then copy SOURCE to DEST FreeBSD: -D destdir Specify the DESTDIR (top of the file hierarchy) that the items are installed in to.

yurivict commented 3 years ago

That's why GNU make is outdated, because you need to deal with such low-level issues.

mdevaev commented 3 years ago

It's a part of coreutils not make, but I understand what you means. The problem is rather that different implementations use different options for the same things. I don't know who's to blame for this, but I'll have to fix it.

Try now. If everything works, I'll make a 3.3 release

yurivict commented 3 years ago

It works now.

mdevaev commented 3 years ago

Ok, released