Package Details: dico 2.11-1

Git Clone URL: https://aur.archlinux.org/dico.git (read-only, click to copy)
Package Base: dico
Description: GNU Dictionary Server
Upstream URL: http://puszcza.gnu.org.ua/software/dico
Licenses: GPL3
Submitter: stroutkernel
Maintainer: None
Last Packager: rafaelff
Votes: 1
Popularity: 0.000000
First Submitted: 2016-06-22 03:15 (UTC)
Last Updated: 2021-05-29 12:03 (UTC)

Latest Comments

rafaelff commented on 2024-12-05 15:20 (UTC)

I disowned the package as I'm with little time to maintain it, and I don't use this package anymore. So it would probably be better to have someone more involved with the package keeping it shiny and working.

envolution commented on 2024-12-04 00:04 (UTC)

@rafelff

https://sources.debian.org/patches/dico/2.11-4.3/ you'll for sure want the py3 diff, but I'd apply all those patches if I were in your shoes

here's what I changed to get it to compile for me:

makedepends=(autoconf automake)
source=(
  "https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz"
  "https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz.sig"
  https://sources.debian.org/data/main/d/dico/2.11-4.3/debian/patches/dicoweb-debian.diff
  https://sources.debian.org/data/main/d/dico/2.11-4.3/debian/patches/py3.diff
  https://sources.debian.org/data/main/d/dico/2.11-4.3/debian/patches/use_system_ltdl.patch
  https://sources.debian.org/data/main/d/dico/2.11-4.3/debian/patches/pcre2.diff
  https://sources.debian.org/data/main/d/dico/2.11-4.3/debian/patches/int-conversion.patch
)

sha1sums=('f545452d1ecaf3e07780cf9324082c7a788e4afa'
  'SKIP'
  'a47edcc3ae79e8811e9877eaa3384b87baec7614'
  'fbae80ba3b633cb4694204daa9a1f56677e79b1d'
  '06257c7acbd62bb88d9af14b4e30118dab957577'
  '9f1ee2c7698835ae38c944eb5226c61b88a5c666'
  '054fc4a27b37f6755d4659bd2d3893c529fdc949')
validpgpkeys=('325F650C4C2B6AD58807327A3602B07F55D0C732')
# Sergey Poznyakoff <gray@gnu.org>
# To validate, see instructions at:
#   https://puszcza.gnu.org.ua/software/dico/download.html
prepare() {
  cd $pkgname-$pkgver
  patch -Np1 -i ../dicoweb-debian.diff
  patch -Np1 -i ../py3.diff
  patch -Np1 -i ../use_system_ltdl.patch
  patch -Np1 -i ../pcre2.diff
  patch -Np1 -i ../int-conversion.patch
}
build() {
  cd $pkgname-$pkgver
  rm -rf aclocal.m4
  autoupdate
  aclocal
  autoreconf -fi
  ./configure \
    --prefix=/usr \
    --libexecdir=/usr/lib/dico \
    --sysconfdir=/etc \
    --with-pcre \
    --with-libWN=wordnet
  make
}

rafaelff commented on 2024-12-03 17:00 (UTC)

envolution, this indeed helps. However, I'm unable to pass the build error below. I built in a clean chroot. Are you able to reproduce that?

make[4]: Entering directory '/build/dico/src/dico-2.11/modules/python'
  CC       python.lo
In file included from /usr/include/python3.12/Python.h:44,
                 from python.c:19:
/usr/include/python3.12/object.h:142:9: error: initialization of ‘long int’ from ‘PyTypeObject *’ {aka ‘struct _typeobject *’} makes integer from pointer without a cast [-Wint-conversion]
  142 |         (type)                   \
      |         ^
python.c:97:5: note: in expansion of macro ‘PyObject_HEAD_INIT’
   97 |     PyObject_HEAD_INIT(&PyType_Type)
      |     ^~~~~~~~~~~~~~~~~~
/usr/include/python3.12/object.h:142:9: note: (near initialization for ‘PySelectionKeyType.ob_base.ob_size’)
  142 |         (type)                   \
      |         ^
python.c:97:5: note: in expansion of macro ‘PyObject_HEAD_INIT’
   97 |     PyObject_HEAD_INIT(&PyType_Type)
      |     ^~~~~~~~~~~~~~~~~~
/usr/include/python3.12/object.h:142:9: error: initialization of ‘long int’ from ‘PyTypeObject *’ {aka ‘struct _typeobject *’} makes integer from pointer without a cast [-Wint-conversion]
  142 |         (type)                   \
      |         ^
python.c:182:5: note: in expansion of macro ‘PyObject_HEAD_INIT’
  182 |     PyObject_HEAD_INIT(&PyType_Type)
      |     ^~~~~~~~~~~~~~~~~~
/usr/include/python3.12/object.h:142:9: note: (near initialization for ‘PyStrategyType.ob_base.ob_size’)
  142 |         (type)                   \
      |         ^
python.c:182:5: note: in expansion of macro ‘PyObject_HEAD_INIT’
  182 |     PyObject_HEAD_INIT(&PyType_Type)
      |     ^~~~~~~~~~~~~~~~~~
make[4]: *** [Makefile:1582: python.lo] Error 1

envolution commented on 2024-12-03 15:45 (UTC)

after updating wordnet-common, configure with the following flag

./configure --with-libWN=wordnet

as per https://www.gnu.org.ua/software/dico/manual/wordnet.html

envolution commented on 2024-12-03 15:10 (UTC) (edited on 2024-12-03 15:10 (UTC) by envolution)

$ nm -D /usr/lib/libwordnet.so | grep findtheinfo
0000000000009f60 T findtheinfo
0000000000006b60 T findtheinfo_ds

Not sure why this package doesn't compile

sikmir commented on 2018-10-22 07:29 (UTC)

@rafaelff: Thanks, it works now.

rafaelff commented on 2018-10-21 17:22 (UTC)

@sikmir: Changed requirement to wordnet-common. Please check and let me know.

sikmir commented on 2018-10-19 18:25 (UTC) (edited on 2018-10-19 18:29 (UTC) by sikmir)

error: target not found: wordnet

wordnet package split into wordnet-common, wordnet-cli and wordnet-tk.