Subject: bug#64698: closed (Re: bug#64698: 29.0.92; on netbsd 9.3, gmake and "gmake bootstrap" fail to proceed)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 26 Jul 2023 14:06:02 +0000

Your bug report

#64698: 29.0.92; on netbsd 9.3, gmake and "gmake bootstrap" fail to proceed

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
64698: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=64698
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#64698: 29.0.92; on netbsd 9.3, gmake and "gmake bootstrap" fail to proceed
From: Eli Zaretskii <[email-masked]>
To: Valtteri Vuorikoski <[email-masked]>
Cc: [email-masked], [email-masked], [email-masked], [email-masked]
Date: Wed, 26 Jul 2023 17:05:54 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

> Date: Sat, 22 Jul 2023 20:08:42 +0300
> From: Valtteri Vuorikoski <[email-masked]>
> Cc: [email-masked], [email-masked], [email-masked], 
> 	[email-masked]
> 
> Based on an investigation of source trees, libossaudio exists on
> NetBSD and OpenBSD. Comments (diff below) have been updated to reflect
> this. FreeBSD (going back from current to 4.x) and DragonflyBSD (from
> current to 1.2) don't have it.
> 
> configure.ac --with-sound=yes cannot have picked bsd-ossaudio if
> -lossaudio is not found, so this change should not have any effect on
> FreeBSD/DragonflyBSD: LIBSOUND has always ended up empty on those and
> hence the LIBSOUND=-lossaudio test will always fail.
> 
> Meanwhile OpenBSD appears to have behaved the same as NetBSD: use ALSA
> if it exists, otherwise ossaudio. OpenBSD binary packages seem to be
> built with --without-sound
> (https://github.com/openbsd/ports/blob/master/editors/emacs/Makefile)
> so this change won't affect their package builds in any case.
> 
> Updated diff (comment update only):

Thanks, installed on the master branch, and closing the bug.

> > This should probably be mentioned in NEWS, then.
> 
> How about this for a NEWS entry:

Thanks, I used it with a few minor changes.

Subject: 29.0.92; on netbsd 9.3, gmake and "gmake bootstrap" fail to proceed
From: Van Ly <[email-masked]>
To: [email-masked]
Date: Tue, 18 Jul 2023 09:31:11 GMT
List-Id: <debbugs-submit.debbugs.gnu.org>

On netbsd 9.3, the following configure options will let gmake build to completion.

  > ./configure --without-all --without-x --without-compress-install --localstatedir=/var --disable-autodepend --prefix=/path/to/emacs-29.0.92 --build=x86_64--netbsd --host=x86_64--netbsd --enable-option-checking=yes --without-pop --without-mailutils 'CFLAGS=-O2 -D_FORTIFY_SOURCE=2 -I/usr/include' 'CPPFLAGS=-DTERMINFO -I/usr/include' 'LDFLAGS=-L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib'

The following steps in the build process fail after unpacking the source distribution files.

 > $ sh ./autogen.sh
 > $ ./configure --without-x
 > $ gmake
 >
 > ...
 >
 > ***
 > *** "make all" failed with exit status 2.
 > ***
 > *** You could try to:
 > *** - run "make bootstrap", which might fix the problem
 > *** - run "make V=1", which displays the full commands invoked by make,
 > ***   to further investigate the problem
 > ***
 > gmake[1]: *** [Makefile:414: advice-on-failure] Error 2
 > gmake[1]: Leaving directory '/usr/X/23/src/emacs/emacs-29.0.92'
 > gmake: *** [Makefile:370: all] Error 2
 > 
 > $ gmake bootstrap
 >
 > ...
 > 
 > ***
 > *** "make bootstrap" failed with exit status 2.
 > ***
 > *** You could try to:
 > *** - run "make extraclean" and run "make" again (or, equivalently, run
 > ***   "make bootstrap configure=default"), to rebuild Emacs with the
 > ***   default configuration options, which might fix the problem
 > *** - run "git clean -fdx" and run "make bootstrap" again, which might
 > ***   fix the problem if "make bootstrap configure=default" did not
 > ***   !BEWARE! "git clean -fdx" deletes all files that are not under
 > ***   !BEWARE! version control, which means that all changes to such
 > ***   !BEWARE! files will be lost and cannot be restored later
 > *** - run "make V=1", which displays the full commands invoked by make,
 > ***   to further investigate the problem
 > *** - report the problem and ask for help by sending an email to
 > ***   [email-masked], mentioning at least the build error
 > ***   message, the platform, and the repository revision displayed by
 > ***   "git rev-parse HEAD"
 > ***
 > gmake[1]: *** [Makefile:414: advice-on-failure] Error 2
 > gmake[1]: Leaving directory '/usr/X/23/src/emacs/emacs-29.0.92'
 > gmake: *** [Makefile:1246: bootstrap] Error 2