How to install ddate

ddate is a ‘fun’ program to display the date in Discordian calendar.

ddate prints the date in Discordian date format.


Today is Setting Orange, the 14th day of Confusion in the YOLD 3178

Unfortunately, ddate was disabled / removed from util-linux.

Discussion on Arch Linux
Fedora mailing list

If you would like to use ddate, it is rather trivial to compile.

Download the latest util-linux (2.21.2 at the time of this post)

Extract the archive:

tar xzvf util-linux-2.21.2.tar.gz

If needed, install gcc and ncurses headers (ncurses-devel on Fedora or libncurses5-dev on Ubuntu)

sudo yum install gcc ncurses-devel

sudo apt-get install gcc libncurses5-dev

Update: I also had to install the pam headers

sudo yum install pam-devel

Compile and install ddate

cd util-linux-2.21.2
./configure --prefix=/usr --enable-ddate
cd misc-utils
make ddate
sudo cp ddate /usr/local/bin

This entry was posted in Linux and tagged . Bookmark the permalink.

8 Responses to How to install ddate

  1. Pingback: Ubuntu developers: Bodhi.Zazen: How to install ddate |

  2. Dru'el the Chaotic says:

    good to see the Greyfaces haven’t sucked all the fun out of life,yet.

    -><- DtC

  3. bochecha says:

    Note that you could make this much easier:
    # yum install fedpkg
    $ fedpkg clone -a util-linux
    $ cd util-linux
    $ vim util-linux.spec

    Add the `–enable-ddate` option to the `%configure` line, save, close.

    $ fedpkg mockbuild

    You’ll end up with a RPM package built just like the official one, but with ddate included.

    You could even share that rpm in your own private repository on

  4. bodhi.zazen says:

    @bochecha Thank you very much, I am going to try this, including the repository.

    update: it is not so easy, fedpkg is pulling rawhide (fc18) rather then fc17 packages and it errors out

    ERROR: Cannot find/open srpm: /home/bodhi/src/util-linux/util-linux-2.21.2-2.fc18.src.rpm. Error: Unable to open file
    Could not run mockbuild: Command ‘[‘mock’, ‘-r’, ‘fedora-devel-x86_64’, ‘–resultdir’, ‘/home/bodhi/src/util-linux/results_util-linux/2.21.2/2.fc18’, ‘–rebuild’, ‘/home/bodhi/src/util-linux/util-linux-2.21.2-2.fc18.src.rpm’]’ returned non-zero exit status 1

  5. bodhi.zazen says:

    @bochecha – Unfortunately it is not so easy. You first need to install a few dependencies, (70 packages or so). You then need to add a few files to the %files section of util-linux.spec , otherwise you get an error “RPM build errors: Installed (but unpackaged) file(s) found: …”

    So add

    %files -f %{name}.files

    You then have to specify fedora 17

    fedpkg –dist f17 mockbuild

    Even then, after all this, fedpkg fails to build

    ERROR: Command failed. See logs for output.
    # [‘bash’, ‘–login’, ‘-c’, ‘rpmbuild -bb –target x86_64 –nodeps builddir/build/SPECS/util-linux.spec’]
    Could not run mockbuild: Command ‘[‘mock’, ‘-r’, ‘fedora-17-x86_64’, ‘–resultdir’, ‘/home/bodhi/src/util-linux/results_util-linux/2.21.2/2.fc17’, ‘–rebuild’, ‘/home/bodhi/src/util-linux/util-linux-2.21.2-2.fc17.src.rpm’]’ returned non-zero exit status 1

    From the log:

    configure: error: udev selected but libudev not found
    error: Bad exit status from /var/tmp/rpm-tmp.8m8UUK (%build)
    Bad exit status from /var/tmp/rpm-tmp.8m8UUK (%build)

    I was able to build the rpm manually with rpmbuild -ba util-linux.spec but the resulting rpm do not install due to a dependency error with systemd

    Error: Package: util-linux-2.21.2-2.fc17.x86_64 (/util-linux-2.21.2-2.fc17.x86_64)
    Requires: systemd >= 185
    Installed: systemd-44-12.fc17.x86_64 (@updates)
    systemd = 44-12.fc17
    Available: systemd-44-8.fc17.i686 (fedora)
    systemd = 44-8.fc17

    Any suggestions ?

    Seems like a lot of work for a single binary file (ddate)

  6. franko says:

    That Karel Zak guy is a crazy inquisitor. I really can’t see what harm this command does to anyone. Truly, I think only people of dubious moral and ethical compasses can be bothered by something like this. What Zak does is, in my opinion, an insane crusade against the witches. TOTALLY out of line with the whole free software philosophy.

  7. lopac says:

    Thanks for this. You should treat yourself to a hotdog.

  8. Pingback: colorgcc – Color your compiler output on Fedora | Linux and Photography Blog

Leave a Reply

Your email address will not be published. Required fields are marked *