GNU bug report logs -
#14068
[PATCH] Officially support DragonFly BSD
Previous Next
Reported by: John Marino <gnugcc <at> marino.st>
Date: Wed, 27 Mar 2013 16:47:01 UTC
Severity: important
Tags: patch
Fixed in version 24.4
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 14068 in the body.
You can then email your comments to 14068 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14068
; Package
emacs
.
(Wed, 27 Mar 2013 16:47:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
John Marino <gnugcc <at> marino.st>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 27 Mar 2013 16:47:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi, Emacs has built on DragonFly BSD for years, but it required patches
of course. One of the leaders of NetBSD's pkgsrc project has requested
that the patch to configure.ac which enables DragonFly support be pushed
upstream, and that seems like a great idea.
The follow patches were generated against version 24.3, so they should
apply directly.
configure.ac:
https://raw.github.com/jsonn/pkgsrc/trunk/editors/emacs24/patches/patch-aa
configure (yes, I know it's generated but just FYI):
https://raw.github.com/jsonn/pkgsrc/trunk/editors/emacs24/patches/patch-ab
It would be great if Emacs could finally be built on DragonFly BSD out
of the box without patches. Can we make this happen? Do you need
anything else from me? I'm hoping this is an obvious contribution.
Regards,
John
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14068
; Package
emacs
.
(Wed, 03 Apr 2013 13:26:02 GMT)
Full text and
rfc822 format available.
Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):
On 3/27/2013 14:28, John Marino wrote:
> Hi, Emacs has built on DragonFly BSD for years, but it required patches
> of course. One of the leaders of NetBSD's pkgsrc project has requested
> that the patch to configure.ac which enables DragonFly support be pushed
> upstream, and that seems like a great idea.
>
> The follow patches were generated against version 24.3, so they should
> apply directly.
>
> configure.ac:
> https://raw.github.com/jsonn/pkgsrc/trunk/editors/emacs24/patches/patch-aa
>
> configure (yes, I know it's generated but just FYI):
> https://raw.github.com/jsonn/pkgsrc/trunk/editors/emacs24/patches/patch-ab
>
> It would be great if Emacs could finally be built on DragonFly BSD out
> of the box without patches. Can we make this happen? Do you need
> anything else from me? I'm hoping this is an obvious contribution.
>
The previously submitted patch was for release 24.3.
The patch to add DragonFly support to version 24.3.50.112178 is much
smaller:
https://raw.github.com/jrmarino/DPorts/staged/editors/emacs-devel/dragonfly/patch-configure.ac
Nobody responded to the original submission. Did I do my part
correctly? Is there anything else I need to do?
John
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14068
; Package
emacs
.
(Wed, 03 Apr 2013 19:51:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 14068 <at> debbugs.gnu.org (full text, mbox):
> The patch to add DragonFly support to version 24.3.50.112178 is much
> smaller:
> https://raw.github.com/jrmarino/DPorts/staged/editors/emacs-devel/dragonfly/patch-configure.ac
Thanks. This is the patch we'd apply indeed.
> Nobody responded to the original submission. Did I do my part correctly?
Yes, you did.
> Is there anything else I need to do?
The patch looks fine to me, but I'm not sufficiently familiar with our
autoconfigury code to really judge, so hopefully Paul or someone else
will find the time soon to take a look at it,
Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14068
; Package
emacs
.
(Thu, 18 Apr 2013 05:51:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 14068 <at> debbugs.gnu.org (full text, mbox):
John Marino wrote:
> The previously submitted patch was for release 24.3.
> The patch to add DragonFly support to version 24.3.50.112178 is much
> smaller:
> https://raw.github.com/jrmarino/DPorts/staged/editors/emacs-devel/dragonfly/patch-configure.ac
+ case "${canonical}" in
+ i[3456]86-*-dragonfly*) machine=intel386 ;;
+ amd64-*-dragonfly*|x86_64-*-dragonfly*) machine=amdx86-64 ;;
+ esac
machine is no longer used, so these lines are unnecessary.
- freebsd) LIBS_SYSTEM="-lutil" ;;
+ freebsd|netbsd|openbsd|dragonfly) LIBS_SYSTEM="-lutil" ;;
Why are you adding netbsd and openbsd as well?
Apart from that, it seems fine to me.
It's probably just small enough not to need a copyright assignment; but
for the ChangeLog, can you tell me who the author is?
Revised patch against current trunk:
--- configure.ac 2013-04-18 05:03:53 +0000
+++ configure.ac 2013-04-18 05:43:24 +0000
@@ -439,6 +439,11 @@
opsys=freebsd
;;
+ ## DragonFly ports
+ *-*-dragonfly* )
+ opsys=dragonfly
+ ;;
+
## FreeBSD kernel + glibc based userland
*-*-kfreebsd*gnu* )
opsys=gnu-kfreebsd
@@ -968,7 +973,7 @@
LD_SWITCH_SYSTEM=
case "$opsys" in
- freebsd)
+ freebsd|dragonfly)
## Let `ld' find image libs and similar things in /usr/local/lib.
## The system compiler, GCC, has apparently been modified to not
## look there, contrary to what a stock GCC would do.
@@ -1054,7 +1059,7 @@
## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
- freebsd) LIBS_SYSTEM="-lutil" ;;
+ freebsd|dragonfly) LIBS_SYSTEM="-lutil" ;;
hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
@@ -1095,7 +1100,7 @@
## Adding -lm confuses the dynamic linker, so omit it.
LIB_MATH=
;;
- freebsd )
+ freebsd | dragonfly )
SYSTEM_TYPE=berkeley-unix
;;
gnu-linux | gnu-kfreebsd )
@@ -2866,7 +2871,7 @@
case "$opsys" in
aix4-2) mail_lock="lockf" ;;
- gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
+ gnu|freebsd|dragonfly|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
## On GNU/Linux systems, both methods are used by various mail programs.
## I assume most people are using newer mailers that have heard of flock.
@@ -3038,7 +3043,7 @@
fi
;;
- openbsd) LIBS_TERMCAP="-lncurses" ;;
+ openbsd | dragonfly) LIBS_TERMCAP="-lncurses" ;;
## hpux: Make sure we get select from libc rather than from libcurses
## because libcurses on HPUX 10.10 has a broken version of select.
@@ -3461,7 +3466,7 @@
esac
case $opsys in
- darwin | freebsd | netbsd | openbsd )
+ darwin | dragonfly | freebsd | netbsd | openbsd )
AC_DEFINE(DONT_REOPEN_PTY, 1, [Define if process.c does not need to
close a pty to make it a controlling terminal (it is already a
controlling terminal of the subprocess, because we did ioctl TIOCSCTTY).])
@@ -3567,7 +3572,7 @@
AC_DEFINE(FIRST_PTY_LETTER, ['p'])
;;
- gnu-linux | gnu-kfreebsd | freebsd | netbsd )
+ gnu-linux | gnu-kfreebsd | dragonfly | freebsd | netbsd )
dnl if HAVE_GRANTPT
if test "x$ac_cv_func_grantpt" = xyes; then
AC_DEFINE(UNIX98_PTYS, 1, [Define if the system has Unix98 PTYs.])
@@ -3650,7 +3655,7 @@
case $opsys in
dnl Perry Smith <pedz <at> ddivt1.austin.ibm.com> says this is correct for AIX.
dnl thomas <at> mathematik.uni-bremen.de says this is needed for IRIX.
- aix4-2 | cygwin | gnu | irix6-5 | freebsd | netbsd | openbsd | darwin )
+ aix4-2 | cygwin | gnu | irix6-5 | dragonfly | freebsd | netbsd | openbsd | darwin )
AC_DEFINE(SIGNALS_VIA_CHARACTERS, 1)
;;
@@ -3699,7 +3704,7 @@
case $opsys in
darwin) AC_DEFINE(TAB3, OXTABS) ;;
- gnu | freebsd | netbsd | openbsd )
+ gnu | dragonfly | freebsd | netbsd | openbsd )
AC_DEFINE(TABDLY, OXTABS, [Undocumented.])
AC_DEFINE(TAB3, OXTABS)
;;
@@ -3753,7 +3758,7 @@
else
case $opsys in
dnl irix: Tested on Irix 6.5. SCM worked on earlier versions.
- freebsd | netbsd | openbsd | irix6-5 | sol2* )
+ dragonfly | freebsd | netbsd | openbsd | irix6-5 | sol2* )
AC_DEFINE(GC_SETJMP_WORKS, 1)
;;
esac
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14068
; Package
emacs
.
(Thu, 18 Apr 2013 08:05:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 14068 <at> debbugs.gnu.org (full text, mbox):
On 4/18/2013 07:46, Glenn Morris wrote:
> John Marino wrote:
>
>> The previously submitted patch was for release 24.3.
>> The patch to add DragonFly support to version 24.3.50.112178 is much
>> smaller:
>> https://raw.github.com/jrmarino/DPorts/staged/editors/emacs-devel/dragonfly/patch-configure.ac
>
> + case "${canonical}" in
> + i[3456]86-*-dragonfly*) machine=intel386 ;;
> + amd64-*-dragonfly*|x86_64-*-dragonfly*) machine=amdx86-64 ;;
> + esac
>
> machine is no longer used, so these lines are unnecessary.
Okay, good to know!
>
> - freebsd) LIBS_SYSTEM="-lutil" ;;
> + freebsd|netbsd|openbsd|dragonfly) LIBS_SYSTEM="-lutil" ;;
>
> Why are you adding netbsd and openbsd as well?
It was likely left over from years. The submitted patch came from
pkgsrc and freebsd ports. It is appropriate to only add DragonFly (as
you have done) and let representatives from the other BSDs speak for
themselves.
>
> Apart from that, it seems fine to me.
> It's probably just small enough not to need a copyright assignment; but
> for the ChangeLog, can you tell me who the author is?
I think it's reasonable to call me (John Marino) the primary author. I
basically had to create it from scratch -- most of this information was
in those "S" files and had to be moved to the configure script, so it's
basically new.
>
> Revised patch against current trunk:
With a quick glance, it looks good to me.
Thanks!
John
Reply sent
to
Glenn Morris <rgm <at> gnu.org>
:
You have taken responsibility.
(Thu, 18 Apr 2013 17:17:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
John Marino <gnugcc <at> marino.st>
:
bug acknowledged by developer.
(Thu, 18 Apr 2013 17:17:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 14068-done <at> debbugs.gnu.org (full text, mbox):
Version: 24.4
Thanks; applied to trunk.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 17 May 2013 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 10 years and 352 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.