From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: libnettle/libhogweed WIP Date: Wed, 26 Jul 2017 09:58:25 +0300 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: References: <87r30nq9el.fsf@lifelogs.com> <83inlyc1k2.fsf@gnu.org> <87inlyrfni.fsf@lifelogs.com> <837f2eb845.fsf@gnu.org> <87ziedpyy1.fsf@lifelogs.com> <83d1b75u8a.fsf@gnu.org> <87r2znntaq.fsf@lifelogs.com> <87o9u8q4a5.fsf@lifelogs.com> <83tw3xbklg.fsf@gnu.org> <87zictm415.fsf@lifelogs.com> <83podoqchd.fsf@gnu.org> <87podnnbi2.fsf@lifelogs.com> <8760ewi3rw.fsf@lifelogs.com> <87r2xjgilq.fsf@lifelogs.com> <83iniug7ql.fsf@gnu.org> <87fudyhkhy.fsf@lifelogs.com> <8360euf4d3.fsf@gnu.org> <87r2xhfsre.fsf@lifelogs.com> <83o9slecp0.fsf@gnu.org> <83zibw96r9.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1501052334 17615 195.159.176.226 (26 Jul 2017 06:58:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 26 Jul 2017 06:58:54 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (darwin) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 26 08:58:50 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1daGHQ-0004An-R1 for ged-emacs-devel@m.gmane.org; Wed, 26 Jul 2017 08:58:48 +0200 Original-Received: from localhost ([::1]:36430 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1daGHV-0001af-18 for ged-emacs-devel@m.gmane.org; Wed, 26 Jul 2017 02:58:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53874) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1daGHO-0001aO-UN for emacs-devel@gnu.org; Wed, 26 Jul 2017 02:58:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1daGHL-0007mm-Q9 for emacs-devel@gnu.org; Wed, 26 Jul 2017 02:58:47 -0400 Original-Received: from [195.159.176.226] (port=41170 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1daGHL-0007mY-IR for emacs-devel@gnu.org; Wed, 26 Jul 2017 02:58:43 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1daGH3-0003Bu-MF for emacs-devel@gnu.org; Wed, 26 Jul 2017 08:58:25 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 134 Original-X-Complaints-To: usenet@blaine.gmane.org X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never Cancel-Lock: sha1:A23nbQMI+W1EjNdhxa2+EMfBAR8= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:217033 Archived-At: --=-=-= Content-Type: text/plain On Sat, 22 Jul 2017 12:10:34 +0300 Eli Zaretskii wrote: EZ> Ping! Anything further on this? Anything I can do to help debugging EZ> this problem? Hi Eli, I had to travel urgently and had trouble testing this on my Mac OS X laptop; it took me a while to build all the pieces. Sorry for the delay. Using a Ubuntu 17.04 Docker image, I compiled GnuTLS from source (a GnuTLS 3.4.15 dev package was not available) and all the GnuTLS Emacs tests passed in master against it (see summary and Dockerfile attached below). A few of the Emacs tests failed in master, but that was not related to GnuTLS. Can you give me a recipe to reproduce the problem with your distribution and packages? It may be irreproducible in Docker, or I tested incorrectly, or maybe there's something specific about the optimizations of the packaged libraries. Thanks! Ted root@611652fe3513:/tmp/emacs/test/lisp/net# grep GNUTLS_VERSION\ /usr/include/gnutls/gnutls.h #define GNUTLS_VERSION "3.4.15" root@611652fe3513:/tmp/emacs/test/lisp/net# grep passed gnutls-tests.log passed 1/7 test-gnutls-000-availability passed 2/7 test-gnutls-000-data-extractions passed 3/7 test-gnutls-001-hashes-internal-digests passed 4/7 test-gnutls-002-hashes-digests passed 5/7 test-gnutls-003-hashes-hmacs passed 6/7 test-gnutls-004-symmetric-ciphers passed 7/7 test-gnutls-005-aead-ciphers root@611652fe3513:/tmp/emacs/test/lisp/net# ../../../src/emacs --version GNU Emacs 26.0.50 --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=Dockerfile.multistage ARG BASE_IMAGE=ubuntu:17.04 # Multi-stage building requires Docker 17.05 or later FROM ${BASE_IMAGE} as gnutls-builder ENV DEBIAN_FRONTEND noninteractive RUN apt-get update && apt-get install -y -o=Dpkg::Use-Pty=0 \ autoconf \ autogen \ automake \ autopoint \ bison \ dns-root-data \ gawk \ gettext \ git-core \ gperf \ gtk-doc-tools \ guile-2.0-dev \ help2man \ libidn2-0-dev \ libp11-kit-dev \ libtasn1-6-dev \ libtool \ libtspi-dev \ libunbound-dev \ libunistring-dev \ nettle-dev \ texinfo \ texlive \ texlive-extra-utils \ texlive-generic-recommended ARG GNUTLS_REPOSITORY="https://gitlab.com/gnutls/gnutls.git" ARG GNUTLS_BRANCH="master" # override to "check" here to run the GnuTLS tests ARG GNUTLS_EXTRA_TARGETS="" RUN git clone --depth 1 --branch ${GNUTLS_BRANCH} ${GNUTLS_REPOSITORY} /tmp/gnutls WORKDIR /tmp/gnutls RUN git submodule update --init RUN make bootstrap autoreconf RUN mkdir -p /tmp/gnutls/build WORKDIR /tmp/gnutls/build RUN ../configure --prefix=/usr --disable-doc --disable-guile --disable-cxx --disable-full-test-suite RUN make -j8 ${GNUTLS_EXTRA_TARGETS} FROM gnutls-builder as emacs-builder ENV DEBIAN_FRONTEND noninteractive # Install dependencies RUN apt-get update && apt-get install --no-install-recommends -y -o=Dpkg::Use-Pty=0 \ curl \ git RUN apt-get build-dep -y emacs24 # Now install GnuTLS COPY --from=gnutls-builder /tmp/gnutls /tmp/gnutls WORKDIR /tmp/gnutls/build RUN make install # Build emacs ARG EMACS_REPOSITORY="git://git.sv.gnu.org/emacs.git" ARG EMACS_BRANCH="master" RUN git clone --depth 1 --branch ${EMACS_BRANCH} ${EMACS_REPOSITORY} /tmp/emacs WORKDIR /tmp/emacs RUN ./autogen.sh RUN ./configure RUN make -j 8 FROM emacs-builder as emacs-tester WORKDIR /tmp/emacs/test RUN make # Final image FROM emacs-builder as emacs-final WORKDIR /tmp/emacs RUN make -j 8 install RUN rm -rf /tmp/emacs /tmp/gnutls WORKDIR /rootfs ENTRYPOINT ["emacs"] --=-=-=--