View Issue Details

IDProjectCategoryView StatusLast Update
0006657unrealircdpublic2026-11-10 23:21
Reporterrafaelgrether Assigned To 
PrioritynormalSeveritytweakReproducibilityalways
Status newResolutionopen 
Product Version6.2.7 
Summary0006657: ./unrealircd hot-patch is not working on FreeBSD
DescriptionHi!

This week I tried to apply hot-patch on my 6.2.7 version.
The execution apparently went well, as it displayed the message "Patch applied successfully and installed. Reprocessing your IRCd..." and my ircd was rehashed.

But looking closely, I noticed that no module was compiled or installed.
I did all the checks to make sure everything was like it was before. On IRC, Jellis also helped me with some checks.

I looked into the problem today and found that the fault is in these lines of unrealricd script:

make || gmake || exit 1
make install || gmake install || exit 1

This happens because when running the make command, the BSDMakefile returns 0, so gmake never gets executed.

# make
Please use GNU Make (gmake) to build UnrealIRCd
# echo $?
0

I thought of a few solutions, and the easiest solution (IMO) would be to change BSDMake by putting an @exit 1
That way, make wouldn't run with exit 1, and gmake would be called automatically.
The only problem with this (if you consider this a problem) is that when running "make" on a clean build, the command would give a very verbose error output:

Please use GNU Make (gmake) to build UnrealIRCd
*** Error code 1
Stop.
make: stopped making ".DONE" in /usr/local/unrealircd/unrealircd-6.2.7

Another solution would be to modify the unrealircd script to check the operating system and call make/gmake accordingly, something like:
--------------------
case "$(uname -s)" in
    FreeBSD|OpenBSD|NetBSD)
        MAKE=gmake
        ;;
    *)
        MAKE=make
        ;;
esac

"$MAKE" || exit 1
"$MAKE" install || exit 1
-----------------
What do you think?
But any better solution would be very welcome!

Thanks,
devnull
Additional InformationTested on FreeBSD and OpenBSD
3rd party modules

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2026-11-10 23:21 rafaelgrether New Issue