Package Details: wordnet-cli 3.1-4

Git Clone URL: (read-only, click to copy)
Package Base: wordnet
Description: A CLI fontend for the WordNet Database
Upstream URL:
Licenses: custom
Conflicts: wordnet
Replaces: wordnet
Submitter: None
Maintainer: Stebalien
Last Packager: Stebalien
Votes: 116
Popularity: 0.198697
First Submitted: 2007-01-12 20:32 (UTC)
Last Updated: 2021-06-30 00:14 (UTC)

Latest Comments

1 2 3 4 Next › Last »

respiranto commented on 2021-06-30 00:54 (UTC) (edited on 2021-06-30 00:56 (UTC) by respiranto)


The Debian "orig" is a mixture of several upstreams (most of which are probably internal to Debian), plus apparently some modification.

The following patches do nevertheless apply:

  • 20_doc_man_wninput.patch
  • 20_include_wn.h.patch
  • 20_src_stubs_c.patch
  • 20_src_wnb.patch
  • 40_doc_man_fix_names.patch
  • 41_doc_man_fix_names.patch
  • 50_CVE-2008-2149_buffer_overflows.patch
  • 51_overflows_memcpy.patch
  • 51_overflows.patch
  • 52_wordnet3.0_lib_search_c_memory_patch
  • 60_gcc-4.6.patch

I assume the Guix patches are equivalent to:

  • 50_CVE-2008-2149_buffer_overflows.patch
  • 51_overflows_memcpy.patch
  • 51_overflows.patch

I suggest applying further:

  • bugs:
    • 52_wordnet3.0_lib_search_c_memory_patch
    • 60_gcc-4.6.patch
      • possibly followed by "sed -Ei 's/\<puts(([^ ,)]*))/fputs(\1, stdout)/' src/wn.c"
  • man pages:
    • 20_doc_man_wninput.patch
    • 40_doc_man_fix_names.patch
    • 41_doc_man_fix_names.patch

Stebalien commented on 2021-06-30 00:15 (UTC)


Thanks for digging into that!

I've applied the patches from Guix. Unfortunately, I couldn't get the Debian ones to apply (not sure what "orig" is supposed to mean, but it definitely doesn't mean "original source" in this case).

respiranto commented on 2021-06-29 22:54 (UTC) (edited on 2021-06-29 22:56 (UTC) by respiranto)

Most patches are rather small.

I have read through all but the following (large ones):

  • 51_overflows_memcpy
  • 52_wordnet3.0_lib_search_c_memory_patch

The others I deem fine.

Possibly relevant patches:

  • security:

    • 50_CVE-2008-2149_buffer_overflows.patch
    • 51_overflows_memcpy.patch (large patch, by oCert)
    • 51_overflows.patch
    • 60_gcc-4.6.patch
      • incorrectly replaces printf(.) by puts(.) (newline added)
  • possibly security:

    • 52_wordnet3.0_lib_search_c_memory_patch
  • other bugs in code:

    • 30_src_grind.patch
      • the summary is wrong, this does fix two bugs
  • bugs in the data:

    • 20_adj.all_fix.patch
    • 20_verb.social_fix.patch
  • man pages:

    • 20_doc_man_wninput.patch - man page section names
    • 40_doc_man_fix_names.patch - man page NAMEs
    • 41_doc_man_fix_names.patch - man page formatting
  • other (likely unneeded):

    • 01_tcltk8.6.patch
      • i.a., adds -DUSE_INTERP_RESULT to
    • 20_include_wn.h.patch
    • 90_prevent_parallel_build.patch
      • @Stebalien Did you do something to make your PKGBUILD work with `-jN', N > 1?
      • Does not affect

Stebalien commented on 2021-06-29 14:35 (UTC)

@respiranto any specific patches? Debian has a pretty terrible track record. They tend to:

  1. Run a bunch of static analyzers.
  2. Apply any suggested fixes without thinking.

(introducing security vulnerabilities in the process)

The few patches I sampled were things like "make this thing const".

respiranto commented on 2021-06-28 23:50 (UTC) (edited on 2021-06-28 23:50 (UTC) by respiranto)

I'd like to suggest using some of the patches provided by Debian [0], some of which address security issues. See also the dict-wn PKGBUILD [1] (which I just adapted to use the Debian patches).



Stebalien commented on 2021-04-29 16:02 (UTC)


It should work now but I can't be sure because I don't know what your specific issue was. In the future, please include error messages when you report build failures.

ShahinSorkh commented on 2021-04-29 06:51 (UTC)

Fails on build

Stebalien commented on 2019-08-12 15:38 (UTC)

WilliamR, you can install artha from the AUR. As specified in the PKGBUILD, you'll need wordnet-common.

WilliamR commented on 2019-08-11 09:47 (UTC)

Artha has been one of my essential utilities on a deb-based system. Recently moved over to an arch-based system due to unresolved heating problems on a Dell running a distro based on Ubuntu. Artha informs that it needs Wordnet. As AUR has different versions of Wordnet, some guidance is needed as to which version or files are needed to get Artha to run. Is this possible at present or are changes needed to be made in the AUR?

Stebalien commented on 2019-04-18 17:45 (UTC)


wordnet-common currently includes the database, library, and a bunch of manual pages.

It sounds like we need to move the dictionary (/usr/share/wordnet/dict) out of wordnet-common into a wordnet-dict-princeton package that provides wordnet-dict. Would that work for you?