ID:2953525
 
Resolved
BYOND Version:515
Operating System:Linux
Web Browser:Firefox 102.0
Applies to:Installation Makefile
Status: Resolved (515.1547)

This issue has been resolved.
Descriptive Problem Summary:
Makefile for the UNIX releases of BYOND 515.1646 are nearly guaranteed to crash on Debian Linux 12 "Bookworm" while linking the manual pages to /usr/local/share/man/man6
Numbered Steps to Reproduce Problem:
1. Unzip 515.1646_byond_linux.zip and make it your working directory.
2. Become the superuser
4. 'sudo make install'
5. See crash.
Code Snippet (if applicable) to Reproduce Problem:
apt update
apt install unzip make
unzip 515.1646_byond_linux.zip
cd byond
sudo make install


Expected Results:
if [ ! -d /usr/local/byond ]; then mkdir /usr/local/byond; fi
cp -R cfg web bin man /usr/local/byond
if [ "" = "yes" ]; then \
        chown root /usr/local/byond/bin/DreamDaemon; \
        chmod a+xs /usr/local/byond/bin/DreamDaemon; \
        if [ "" = "yes" ]; then \
                chown root host/host.dmb; \
                chmod a+xs host/host.dmb; \
        fi \
fi
ln -f -s /usr/local/byond/bin/DreamDaemon /usr/local/bin/DreamDaemon
ln -f -s /usr/local/byond/bin/DreamDownload /usr/local/bin/DreamDownload
ln -f -s /usr/local/byond/bin/DreamMaker /usr/local/bin/DreamMaker
ln -f -s /usr/local/byond/man/man6/DreamDaemon.6 /usr/share/man/man6/DreamDaemon.6
ln -f -s /usr/local/byond/man/man6/DreamMaker.6 /usr/share/man/man6/DreamMaker.6

*****************
You can find out more about the software by doing 'man DreamDaemon'.
A host server has also been included so edit host/hostconf.txt and
boot up your world server!
*****************

Actual Results:
if [ ! -d /usr/local/byond ]; then mkdir /usr/local/byond; fi
cp -R cfg web bin man /usr/local/byond
if [ "" = "yes" ]; then \
        chown root /usr/local/byond/bin/DreamDaemon; \
        chmod a+xs /usr/local/byond/bin/DreamDaemon; \
        if [ "" = "yes" ]; then \
                chown root host/host.dmb; \
                chmod a+xs host/host.dmb; \
        fi \
fi
ln -f -s /usr/local/byond/bin/DreamDaemon /usr/local/bin/DreamDaemon
ln -f -s /usr/local/byond/bin/DreamDownload /usr/local/bin/DreamDownload
ln -f -s /usr/local/byond/bin/DreamMaker /usr/local/bin/DreamMaker
ln -f -s /usr/local/byond/man/man6/DreamDaemon.6 /usr/share/man/man6/DreamDaemon.6
ln: failed to create symbolic link '/usr/share/man/man6/DreamDaemon.6': No such file or directory
make: *** [Makefile:73: install] Error 1

Does the problem occur:
Every time? Or how often? Whenever the man6 section was not created prior to installing BYOND; which in containers or brand-new machines, is always the case.
In other games? N/A
In other user accounts? N/A
On other computers? Yes.

When does the problem NOT occur?
When /usr/share/man/man6 already existed prior to running 'sudo make install'

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)

This problem has existed for at least 6 or more years; it probably has been in every UNIX release ever.

Workarounds:
Inserting mkdir -p $(MAN_DIR)/man6 into the Makefile before line 80
or running some equivalent command before starting the installation process.
Lummox JR resolved issue