unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* WIP: neomutt. segfaulting outside of gdb, functional inside.
@ 2016-06-24 16:04 ng0
  2016-06-27  7:58 ` Ricardo Wurmus
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: ng0 @ 2016-06-24 16:04 UTC (permalink / raw)
  To: guix-devel

In gnu/packages/mail.scm I created this package.
It builds succesfully, but when I run it, it segfaults.
Running it in gdb however makes it succeed and not
segfault. How do I debug such a software?

(define-public neomutt
  (package
    (inherit mutt)
    (name "neomutt")
    (version "20160611")
    (source
     (origin
       (method url-fetch)
       (uri (string-append "https://github.com/" name "/" name
                           "/archive/" name "-" version ".tar.gz"))
       (sha256
        (base32
         "1v4ck1dqdmlfsbh2lwmlrx222qhs3prh72nc3a8aq282mard59zy"))))
    ;;(patches (search-patches "mutt-store-references.patch"))))
    (inputs
     `(("cyrus-sasl" ,cyrus-sasl)
       ("gdbm" ,gdbm)
       ("gpgme" ,gpgme)
       ("ncurses" ,ncurses)
       ("openssl" ,openssl)
       ("perl" ,perl)
       ("libxslt" ,libxslt)
       ("autoconf" ,autoconf)
       ("automake" ,automake)))
    ;;("libidn" ,libidn)
    ;;("notmuch" ,notmuch)))
    ;; (native-inputs
    ;;  `(("autoconf" ,autoconf)
    ;;    ("automake" ,automake)))
    ;;    ;("libtool" ,libtool)
    ;;    ;("gettext" ,gettext)))
    (arguments
     `(#:configure-flags
       '("--enable-smtp"
         "--enable-imap"
         "--enable-pop"
         "--enable-gpgme"
         "--enable-hcache" ; for header caching
         "--with-ssl"
         "--with-sasl"
                                        ;"--with-regex"
                                        ;"--enable-smime"
                                        ;"--enable-notmuch"
                                        ;"--with-idn"
                                        ;"--enable-sidebar"
         ;; so that mutt does not check whether the path
         ;; exists, which it does not in the chroot
         "--with-mailpath=/var/mail")
       #:phases
       (modify-phases %standard-phases
         (add-after 'unpack 'autoconf
           (lambda _
             (zero? (system* "sh" "autoreconf" "-vfi")))))))))
;; (system* "sh" "aclocal" "-I m4")
;; (system* "sh" "automake" "--foreign")
;; #t)))))))

--
♥Ⓐ ng0
For non-prism friendly talk find me on
psyced.org / loupsycedyglgamf.onion

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-08-03 13:10 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-24 16:04 WIP: neomutt. segfaulting outside of gdb, functional inside ng0
2016-06-27  7:58 ` Ricardo Wurmus
2016-06-29  9:54   ` Florian Paul Schmidt
2016-07-26 15:17   ` [PATCH] gnu: Add neomutt ng0
2016-07-26 15:22     ` ng0
2016-07-26 17:12       ` ng0
2016-07-26 18:47 ` WIP: neomutt. segfaulting outside of gdb, functional inside Tomáš Čech
2016-07-29 14:56   ` ng0
2016-07-31 10:52     ` Danny Milosavljevic
2016-08-03 10:30 ` Tomáš Čech
2016-08-03 12:27   ` ng0
2016-08-03 13:10     ` Tomáš Čech

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).