pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: unable to find gnutls in configure script run



Thomas Klausner <wiz%gatalith.at@localhost> writes:

> On Mon, Sep 16, 2024 at 07:35:02PM +0000, Van Ly wrote:

>> The "gtk* crash problem" happens when the emacs gtk* variant starts
>> server mode that you then attach to in a tmux session with
>> emacsclient. During the emacs build the trace mentions that reported gtk
>> bug.
>
> Weird. I just tried starting emacs in an X session with emacs-server,
> and starting an 'emacsclient file' in a tmux window on the same
> machine and it worked (the new buffer wasn't in the foreground in the
> emacs server, but I could switch to it.)
>
> # ldd /usr/pkg/bin/emacs | grep gtk
>         -lgtk-3.0 => /usr/pkg/lib/libgtk-3.so.0
>
> So it's linked against gtk3.
>

When the gtk bug bites both graphical and tty outputs from emacs lockup.

So the emacs I have is linked to Xaw

 $ ldd ~/src/emacs/build-30/src/emacs

   -lXaw7.10 => /usr/X11R7/lib/libXaw7.so.10

>> In your build of emacs-git, does the graphical emacs display the raccoon
>> glyph 🦝 ? My build doesn't show it and the emac-dev says its not a bug
>> so maybe my emacs build is suspect and doesn't know where all the fonts
>> are.
>
> Yes. But I have both
>
> fonts/nerd-fonts-Hack
> fonts/noto-emoji-ttf
>
> installed and configured my pkgsrc with
>
> X11_TYPE=       modular
>
> so that I get freetype2 with png support and thus colorful emojis; not
> sure if that's needed for the raccoon but I guess so.
>
> (If you switch to modular X, you'll have to reinstall all packages
> that use X.)
>

After installing both those fonts, the raccoon glyph doesn't show.

Am I missing anything in this ldd listing?

  3 ./emacs:
  4      -lcairo.2 => /usr/pkg/lib/libcairo.so.2
  5      -lpthread.1 => /usr/lib/libpthread.so.1
  6      -lc.12 => /usr/lib/libc.so.12
  7      -lm.0 => /usr/lib/libm.so.0
  8      -lz.1 => /usr/lib/libz.so.1
  9      -lpng16.16 => /usr/pkg/lib/libpng16.so.16
 10      -lfontconfig.2 => /usr/X11R7/lib/libfontconfig.so.2
 11      -lexpat.2 => /usr/lib/libexpat.so.2
 12      -lfreetype.19 => /usr/X11R7/lib/libfreetype.so.19
 13      -lbz2.1 => /usr/lib/libbz2.so.1
 14      -lgcc_s.1 => /usr/lib/libgcc_s.so.1
 15      -lfreetype.6 => /usr/pkg/lib/libfreetype.so.6
 16      -lbrotlidec.1 => /usr/pkg/lib/libbrotlidec.so.1
 17      -lbrotlicommon.1 => /usr/pkg/lib/libbrotlicommon.so.1
 18      -lX11.7 => /usr/X11R7/lib/libX11.so.7
 19      -lxcb.2 => /usr/X11R7/lib/libxcb.so.2
 20      -lXau.7 => /usr/X11R7/lib/libXau.so.7
 21      -lXdmcp.7 => /usr/X11R7/lib/libXdmcp.so.7
 22      -lXext.7 => /usr/X11R7/lib/libXext.so.7
 23      -lXrender.2 => /usr/X11R7/lib/libXrender.so.2
 24      -lxcb-render.0 => /usr/X11R7/lib/libxcb-render.so.0
 25      -lxcb-shm.0 => /usr/X11R7/lib/libxcb-shm.so.0
 26      -lpixman-1.2 => /usr/X11R7/lib/libpixman-1.so.2
 27      -ltiff.6 => /usr/pkg/lib/libtiff.so.6
 28      -llzma.2 => /usr/lib/liblzma.so.2
 29      -ljbig.2 => /usr/pkg/lib/libjbig.so.2
 30      -ljpeg.9 => /usr/pkg/lib/libjpeg.so.9
 31      -lgif.7 => /usr/pkg/lib/libgif.so.7
 32      -lXpm.5 => /usr/X11R7/lib/libXpm.so.5
 33      -lwebpdemux.2 => /usr/pkg/lib/libwebpdemux.so.2
 34      -lwebp.7 => /usr/pkg/lib/libwebp.so.7
 35      -lsharpyuv.0 => /usr/pkg/lib/libsharpyuv.so.0
 36      -lXaw7.10 => /usr/X11R7/lib/libXaw7.so.10
 37      -lXmu.7 => /usr/X11R7/lib/libXmu.so.7
 38      -lXt.7 => /usr/X11R7/lib/libXt.so.7
 39      -lSM.7 => /usr/X11R7/lib/libSM.so.7
 40      -lICE.7 => /usr/X11R7/lib/libICE.so.7
 41      -lX11-xcb.1 => /usr/X11R7/lib/libX11-xcb.so.1
 42      -lossaudio.1 => /usr/lib/libossaudio.so.1
 43      -ldbus-1.3 => /usr/pkg/lib/libdbus-1.so.3
 44      -lexecinfo.0 => /usr/lib/libexecinfo.so.0
 45      -lelf.2 => /usr/lib/libelf.so.2
 46      -lXrandr.3 => /usr/X11R7/lib/libXrandr.so.3
 47      -lXinerama.2 => /usr/X11R7/lib/libXinerama.so.2
 48      -lXfixes.4 => /usr/X11R7/lib/libXfixes.so.4
 49      -lxml2.2 => /usr/pkg/lib/libxml2.so.2
 50      -lncurses.6 => /usr/pkg/lib/libncurses.so.6
 51      -lgio-2.0.0 => /usr/pkg/lib/libgio-2.0.so.0
 52      -lglib-2.0.0 => /usr/pkg/lib/libglib-2.0.so.0
 53      -lintl.1 => /usr/lib/libintl.so.1
 54      -lpcre2-8.0 => /usr/pkg/lib/libpcre2-8.so.0
 55      -lgobject-2.0.0 => /usr/pkg/lib/libgobject-2.0.so.0
 56      -lffi.8 => /usr/pkg/lib/libffi.so.8
 57      -lgmodule-2.0.0 => /usr/pkg/lib/libgmodule-2.0.so.0
 58      -lintl.8 => /usr/pkg/lib/libintl.so.8
 59      -lfontconfig.1 => /usr/pkg/lib/libfontconfig.so.1
 60      -lharfbuzz.0 => /usr/pkg/lib/libharfbuzz.so.0
 61      -lgraphite2.3 => /usr/pkg/lib/libgraphite2.so.3
 62      -lstdc++.9 => /usr/lib/libstdc++.so.9
 63      -lotf.1 => /usr/pkg/lib/libotf.so.1
 64      -lgnutls.30 => /usr/pkg/lib/libgnutls.so.30
 65      -lp11-kit.0 => /usr/pkg/lib/libp11-kit.so.0
 66      -lunistring.5 => /usr/pkg/lib/libunistring.so.5
 67      -ltasn1.6 => /usr/pkg/lib/libtasn1.so.6
 68      -lhogweed.6 => /usr/pkg/lib/libhogweed.so.6
 69      -lnettle.8 => /usr/pkg/lib/libnettle.so.8
 70      -lgmp.10 => /usr/pkg/lib/libgmp.so.10
 71      -llcms2.2 => /usr/pkg/lib/liblcms2.so.2
 72      -lgccjit.0 => /usr/pkg/gcc12//lib/./libgccjit.so.0
 73      -lXi.7 => /usr/X11R7/lib/libXi.so.7
 74      -ltree-sitter.0 => /usr/pkg/lib/libtree-sitter.so.0
 75      -lsqlite3.0 => /usr/pkg/lib/libsqlite3.so.0
 76      -lXcomposite.2 => /usr/X11R7/lib/libXcomposite.so.2
 77      -lxcb-shape.0 => /usr/X11R7/lib/libxcb-shape.so.0


>> I prefer doas. Is there a way to tell it to prefer doas?
>
> In pkgsrc/mk/defaults/mk.conf you can find
>
> SU_CMD?= ${ROOT_CMD}
> # Command to perform before "make install", if the user does not have
> # an effective uid of 0.  A possible substitute is "sudo sh -c"
> # Possible: su, sudo, or priv, with appropriate arguments
> # Default: dependent on operating system. For NetBSD: ${SU} - root -c
>
> so if you find a doas invocation that works, we can document it there
> too.
>
>> Do you think the following will work?
>> 
>>   $ env LOCALBASE=/usr/local pkg_delete \*
>
> No. I would use
>
> pkg_delete -K /usr/local/pkgdb \*
>

thanks thomas, I'll leave the modular X and su stuff for the future

  1 $ doas pkg_delete -nK /usr/local/pkgdb \* 
  2 doas pkg_delete -nK /usr/local/pkgdb \* 
  3 Password:
  4 Attempting to delete package `cwrappers-20220403'
  5 Attempting to delete package `mktools-20220614'
  6 Attempting to delete package `digest-20220214'
  7 Would execute deinstall script with argument DEINSTALL now
  8 Attempting to delete package `m4-1.4.19nb1'
  9 Would execute post-deinstall script with argument POST-DEINSTALL now
 10 Attempting to delete package `libtool-base-2.4.7nb1'
 11 Attempting to delete package `pkgconf-2.3.0'
 12 Would execute deinstall script with argument DEINSTALL now
 13 Attempting to delete package `gmake-4.4.1'
 14 Would execute post-deinstall script with argument POST-DEINSTALL now
 15 Attempting to delete package `glib2-tools-2.80.4'
 16 Attempting to delete package `x11-links-1.35nb1'
 17 Would execute deinstall script with argument DEINSTALL now
 18 Attempting to delete package `python311-3.11.9nb1'
 19 Would execute post-deinstall script with argument POST-DEINSTALL now
 20 Would execute deinstall script with argument DEINSTALL now
 21 Attempting to delete package `osabi-NetBSD-10.0_STABLE'
 22 Would execute post-deinstall script with argument POST-DEINSTALL now
 23 Attempting to delete package `sqlite3-3.46.0nb1'
 24 Would execute deinstall script with argument DEINSTALL now
 25 Attempting to delete package `libffi-3.4.6'
 26 Would execute post-deinstall script with argument POST-DEINSTALL now
 27 Attempting to delete package `libuuid-2.32.1nb2'
 28 $ doas pkg_delete -vK /usr/local/pkgdb \* 




-- 
vl


Home | Main Index | Thread Index | Old Index