Package Details: ded 20250117-2

Git Clone URL: https://aur.archlinux.org/ded.git (read-only, click to copy)
Package Base: ded
Description: directory editor, file manager similar to Emacs dired
Upstream URL: https://invisible-island.net/ded/ded.html
Licenses: custom:BSD
Submitter: aksr
Maintainer: TwoFinger
Last Packager: TwoFinger
Votes: 3
Popularity: 0.95
First Submitted: 2015-09-22 19:42 (UTC)
Last Updated: 2025-01-31 10:40 (UTC)

Latest Comments

TwoFinger commented on 2025-01-31 11:09 (UTC) (edited on 2025-01-31 12:20 (UTC) by TwoFinger)

micwoj92, it's a quirk of ded's build system, it checks for a default editor/browser that is to be used if the user has not set $EDITOR/$BROWSE when running ded. You seem to haven't set $EDITOR, $BROWSE (at build time), nor have any of the fallback editors (vi, vim, vile, ed) installed.

I don't feel like fixing/reporting it upstream, so I just added one of the possible editors, vile, to makedepends. You can uninstall it once ded has been built.

For posterity, let me elaborate a bit.

This check being done at build time is poor style, because it doesn't guarantee that the selected editor will be there later, at run time. This applies even more to package repositories, because the build server the executable was built on is never the machine the users will run it on.

Moreover, if the selected editor is not there at run time, ded will not crash, it will just do nothing. One more reason to retire this check from the build system.

micwoj92 commented on 2025-01-29 23:31 (UTC)

Build fails:

In file included from ./ded.c:177:
./ded.c: In function ‘run_editor’:
./ded.c:184:17: error: ‘DEFAULT_BROWSE’ undeclared (first use in this function)
  184 | #define BROWSE  DEFAULT_BROWSE
      |                 ^~~~~~~~~~~~~~
./ded.h:62:25: note: in definition of macro ‘ENV’
   62 | #  define ENV(n) dftenv(n,#n)
      |                         ^
./ded.c:580:42: note: in expansion of macro ‘BROWSE’
  580 |     const char *editor = (readonly ? ENV(BROWSE) : ENV(EDITOR));
      |                                          ^~~~~~
./ded.c:184:17: note: each undeclared identifier is reported only once for each function it appears in
  184 | #define BROWSE  DEFAULT_BROWSE
      |                 ^~~~~~~~~~~~~~
./ded.h:62:25: note: in definition of macro ‘ENV’
   62 | #  define ENV(n) dftenv(n,#n)
      |                         ^
./ded.c:580:42: note: in expansion of macro ‘BROWSE’
  580 |     const char *editor = (readonly ? ENV(BROWSE) : ENV(EDITOR));
      |                                          ^~~~~~
./ded.c:183:17: error: ‘DEFAULT_EDITOR’ undeclared (first use in this function)
  183 | #define EDITOR  DEFAULT_EDITOR
      |                 ^~~~~~~~~~~~~~
./ded.h:62:25: note: in definition of macro ‘ENV’
   62 | #  define ENV(n) dftenv(n,#n)
      |                         ^
./ded.c:580:56: note: in expansion of macro ‘EDITOR’
  580 |     const char *editor = (readonly ? ENV(BROWSE) : ENV(EDITOR));
      |                                                        ^~~~~~
make[1]: *** [/build/ded/src/td_lib/support/td_lib.mk:99: ded.o] Error 1
make[1]: Leaving directory '/build/ded/src/ded-20250117/src'
make: *** [makefile:53: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Andrei_Korshikov commented on 2024-05-13 14:10 (UTC)

If I understand the configure script, there is no need to explicitly set --mandir=/usr/share/man when --prefix=/usr is set:

datarootdir='${prefix}/share'
mandir='${datarootdir}/man'

magiblot commented on 2019-01-08 15:02 (UTC)

Fix for PKGBUILD:

diff --git a/PKGBUILD b/PKGBUILD
index 7f3b9e3..46dfe8b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,25 +1,17 @@
 # Maintainer: Christian Neukirchen <chneukirchen@gmail.com>
 pkgname=ded
-pkgver=20131205
-_td_pkgver=20131205
+pkgver=20180324
+_td_pkgver=20180324
 pkgrel=2
 pkgdesc="directory editor, file manager similar to Emacs dired"
 arch=('i686' 'x86_64')
 url="http://invisible-island.net/ded/ded.html"
 license=('custom:BSD')
 depends=('ncurses')
-source=(ftp://invisible-island.net/ded/ded-$pkgver.tgz
-        ftp://invisible-island.net/ded/ded-$pkgver.tgz.asc
-        ftp://invisible-island.net/ded/td_lib-$_td_pkgver.tgz
-        ftp://invisible-island.net/ded/td_lib-$_td_pkgver.tgz.asc)
-md5sums=('6a6c70cd356be36251d977efe2e97245'
-         'SKIP'
-         'f16c323c1e072b21ac829f2ae5a93cf0'
+source=(ftp://ftp.invisible-island.net/ded/ded.tar.gz
+        ftp://ftp.invisible-island.net/ded/td_lib.tar.gz)
+md5sums=('SKIP'
          'SKIP')
-sha256sums=('44f336f7457de65d6d5c645a0334e283453c3649582b2e38baa807b05ab49ff9'
-            'SKIP'
-            '1215084ec099f961a8a4de01959c6e894cd5003847c5a10290e1e782f2a0721b'
-            'SKIP')

 build() {
   cd "$srcdir/td_lib-$_td_pkgver"