Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 163496 - net-mail/fdm - a mail delivery tool (new ebuild)
Summary: net-mail/fdm - a mail delivery tool (new ebuild)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Michael Weber (RETIRED)
URL: http://fdm.sourceforge.net/
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2007-01-23 21:17 UTC by Marcin Kowalski
Modified: 2010-09-06 00:53 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
net-mail/fdm/fdm-1.0.ebuild (fdm-1.0.ebuild,665 bytes, text/plain)
2007-03-10 13:55 UTC, Manuel Wächter
Details
fdm-1.0.ebuild (fdm-1.0.ebuild,1018 bytes, text/plain)
2007-03-11 17:43 UTC, Paul Bredbury
Details
fdm-1.0.ebuild (fdm-1.0.ebuild,1.02 KB, text/plain)
2007-03-11 17:50 UTC, Paul Bredbury
Details
Ebuild for fdm 1.1 (fdm-1.1.ebuild,690 bytes, text/plain)
2007-06-12 20:43 UTC, Maximilian Gaß
Details
ebuild for fdm-1.4 (fdm-1.4.ebuild,809 bytes, text/plain)
2007-12-02 12:34 UTC, Henri Kemppainen
Details
fdm-1.5 (fixed ebuild) (fdm-1.5.ebuild,910 bytes, text/plain)
2009-04-30 07:54 UTC, Dennis Schridde
Details
fdm-1.5 (updated deps) (fdm-1.5.ebuild,932 bytes, text/plain)
2009-08-25 19:13 UTC, Dennis Schridde
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Kowalski 2007-01-23 21:17:43 UTC
fdm combines fetchmail and procmail funcions. it can be an interesting alternative to aforementioned apps. it can also be extended with other external applications.

Reproducible: Always
Comment 1 Manuel Wächter 2007-03-10 13:52:30 UTC
I made an ebuild for net-mail/fdm/fdm-1.0

It works for me, but can surely be improved.
Comment 2 Manuel Wächter 2007-03-10 13:55:40 UTC
Created attachment 112796 [details]
net-mail/fdm/fdm-1.0.ebuild

Attached ebuild for fdm-1.0
Comment 3 Paul Bredbury 2007-03-11 17:43:21 UTC
Created attachment 112971 [details]
fdm-1.0.ebuild

Fixed Makefiles for "emake install".
Comment 4 Paul Bredbury 2007-03-11 17:50:59 UTC
Created attachment 112974 [details]
fdm-1.0.ebuild

Added BIN_OWNER=root.
Comment 5 Wolfram Schlich (RETIRED) gentoo-dev 2007-04-07 09:35:00 UTC
Version 1.1 is out.
Comment 6 Maximilian Gaß 2007-06-12 20:43:01 UTC
Created attachment 121854 [details]
Ebuild for fdm 1.1

This new ebuild changes several things:
 - Updated to version 1.1
 - Works around make install problems by doing the job by itself
 - Adds the user _fdm required for root use
 - Added zlib as a dependency (LIBS contains -lz)
 - Added RDEPEND
 - New description, taken from OpenBSD port which is maintained by the program author and should therefore fit most ;-)
Comment 7 Maximilian Gaß 2007-06-13 22:09:17 UTC
This is now in the sunrise overlay. You can find it at:
http://overlays.gentoo.org/svn/proj/sunrise/reviewed/net-mail/fdm
Comment 8 Marcin Kowalski 2007-09-07 18:59:53 UTC
1.3c is out. hopefully ebuild bump will be enough
Comment 9 tannhauser 2007-09-08 00:46:49 UTC
Just emerged 1.3c, an ebuild bump for 1.3c was enough for me.
Comment 10 tannhauser 2007-09-08 00:47:54 UTC
Just emerged 1.3c, an ebuild bump for 1.3c was enough for me.
Comment 11 Marcin Kowalski 2007-10-03 16:26:08 UTC
1.4 was released a couple of days ago. let's try the ebuild bump again, shall we? ;-)
Comment 12 Henri Kemppainen 2007-12-02 12:34:36 UTC
Created attachment 137528 [details]
ebuild for fdm-1.4

Updated ebuild for fdm-1.4

It seems that tdb is no longer optional, thus I removed
the useflag and made the ebuild always depend on dev-libs/tdb.

I also added ~amd64 keyword.
This ebuild was tested on the said arch.
Comment 13 Guillaume Hilt 2008-11-13 13:01:46 UTC
tdb isn't optional in fdm 1.5.

If you try to install fdm-1.5 without tdb, it won't compile :

~ # emerge fdm

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] net-mail/fdm-1.5  USE="pcre -tdb" 0 kB [1]

Total: 1 package (1 new), Size of downloads: 0 kB
Portage tree and overlays:
 [0] /usr/portage
 [1] /usr/portage/local/layman/sunrise

Would you like to merge these packages? [Yes/No] Yes
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) net-mail/fdm-1.5 to /
 * fdm-1.5.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                                                      [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                   [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                  [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                 [ ok ]
 * checking fdm-1.5.tar.gz ;-) ...                                                                                                                     [ ok ]
>>> Unpacking source...
>>> Unpacking fdm-1.5.tar.gz to /var/tmp/portage/net-mail/fdm-1.5/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/net-mail/fdm-1.5/work/fdm-1.5 ...
gcc -march=nocona -O2 -pipe -std=c99 -Wno-long-long -Wall -W -Wnested-externs -Wformat=2 -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -Wundef -Wshadow -Wbad-function-cast -Winline -Wcast-align  -D_GNU_SOURCE -DWITH_MREMAP -DNO_STRLCPY -DNO_STRLCAT -DNO_STRTONUM -DNO_SETPROCTITLE -DNO_QUEUE_H -DNO_TREE_H -DBUILD="\"1.5\"" -DPCRE -I. -I- -I/usr/include/openssl -Icompat  -c -o fdm.o fdm.c
gcc -march=nocona -O2 -pipe -std=c99 -Wno-long-long -Wall -W -Wnested-externs -Wformat=2 -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -Wundef -Wshadow -Wbad-function-cast -Winline -Wcast-align  -D_GNU_SOURCE -DWITH_MREMAP -DNO_STRLCPY -DNO_STRLCAT -DNO_STRTONUM -DNO_SETPROCTITLE -DNO_QUEUE_H -DNO_TREE_H -DBUILD="\"1.5\"" -DPCRE -I. -I- -I/usr/include/openssl -Icompat  -c -o attach.o attach.c
gcc -march=nocona -O2 -pipe -std=c99 -Wno-long-long -Wall -W -Wnested-externs -Wformat=2 -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -Wundef -Wshadow -Wbad-function-cast -Winline -Wcast-align  -D_GNU_SOURCE -DWITH_MREMAP -DNO_STRLCPY -DNO_STRLCAT -DNO_STRTONUM -DNO_SETPROCTITLE -DNO_QUEUE_H -DNO_TREE_H -DBUILD="\"1.5\"" -DPCRE -I. -I- -I/usr/include/openssl -Icompat  -c -o buffer.o buffer.c
cc1: note: obsolete option -I- used, please use -iquote instead
cc1: note: obsolete option -I- used, please use -iquote instead
cc1: note: obsolete option -I- used, please use -iquote instead
Dans le fichier inclus à partir de buffer.c:23:
./fdm.h:42:17: erreur: tdb.h : Aucun fichier ou répertoire de ce type
Dans le fichier inclus à partir de attach.c:24:
./fdm.h:42:17: erreur: tdb.h : Aucun fichier ou répertoire de ce type
Dans le fichier inclus à partir de fdm.c:39:
./fdm.h:42:17: erreur: tdb.h : Aucun fichier ou répertoire de ce type
In file included from buffer.c:23:
./fdm.h:319: erreur: expected specifier-qualifier-list before 'TDB_CONTEXT'
./fdm.h:880: erreur: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
./fdm.h:881: erreur: expected ')' before '*' token
./fdm.h:882: erreur: expected ')' before '*' token
./fdm.h:883: erreur: expected ')' before '*' token
./fdm.h:884: erreur: expected ')' before '*' token
./fdm.h:885: erreur: expected ')' before '*' token
./fdm.h:886: erreur: expected ')' before '*' token
./fdm.h:887: erreur: expected ')' before '*' token
./fdm.h:888: erreur: expected ')' before '*' token
make: *** [buffer.o] Erreur 1
make: *** Attente des tâches non terminées....
In file included from attach.c:24:
./fdm.h:319: erreur: expected specifier-qualifier-list before 'TDB_CONTEXT'
./fdm.h:880: erreur: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
./fdm.h:881: erreur: expected ')' before '*' token
./fdm.h:882: erreur: expected ')' before '*' token
./fdm.h:883: erreur: expected ')' before '*' token
./fdm.h:884: erreur: expected ')' before '*' token
./fdm.h:885: erreur: expected ')' before '*' token
./fdm.h:886: erreur: expected ')' before '*' token
./fdm.h:887: erreur: expected ')' before '*' token
./fdm.h:888: erreur: expected ')' before '*' token
In file included from fdm.c:39:
./fdm.h:319: erreur: expected specifier-qualifier-list before 'TDB_CONTEXT'
./fdm.h:880: erreur: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
./fdm.h:881: erreur: expected ')' before '*' token
./fdm.h:882: erreur: expected ')' before '*' token
./fdm.h:883: erreur: expected ')' before '*' token
./fdm.h:884: erreur: expected ')' before '*' token
./fdm.h:885: erreur: expected ')' before '*' token
./fdm.h:886: erreur: expected ')' before '*' token
./fdm.h:887: erreur: expected ')' before '*' token
./fdm.h:888: erreur: expected ')' before '*' token
make: *** [attach.o] Erreur 1
make: *** [fdm.o] Erreur 1
 *
 * ERROR: net-mail/fdm-1.5 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2094:  Called die
 * The specific snippet of code:
 *       emake $vars || die "emake failed"
 *  The die message:
 *   emake failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-mail/fdm-1.5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-mail/fdm-1.5/temp/environment'.
 *

But even with tdb, there's another problem :

Dans le fichier inclus à partir de lex.c:30:
./y.tab.h:145:16: attention : pas de retour chariot à la fin du fichier
./y.tab.h:37:1: erreur: #ifndef non terminé
lex.c:32: erreur: expected ',' or '}' before 'int'
make: *** [lex.o] Erreur 1
make: *** Attente des tâches non terminées....
 *
 * ERROR: net-mail/fdm-1.5 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2094:  Called die
 * The specific snippet of code:
 *       emake $vars || die "emake failed"
 *  The die message:
 *   emake failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-mail/fdm-1.5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-mail/fdm-1.5/temp/environment'.
 *
Comment 14 Guillaume Hilt 2008-11-13 13:09:50 UTC
Solution in y.tab.h line 38
Replace :
# define YYTOKENTYPE
By :
#define YYTOKENTYPE
Comment 15 Dennis Schridde 2009-04-30 07:54:38 UTC
Created attachment 189928 [details]
fdm-1.5 (fixed ebuild)

This ebuild cleanly builds fdm-1.5.

The buildsystem has a little mess-up in the way the libraries are specified for linking, and it is also parallel make incompatible. That is fixed/worked-around in my ebuild.

Additional changes:
 * EAPI2
 * Nicer way of specifying PCRE=1
 * Renamed user _fdm to fdm
 * Bumped copyright
 * Keyworded ~ia64 (confirmed to work)
Comment 16 Thomas Sachau gentoo-dev 2009-08-25 15:19:53 UTC
(In reply to comment #7)
> This is now in the sunrise overlay. You can find it at:
> http://overlays.gentoo.org/svn/proj/sunrise/reviewed/net-mail/fdm
> 

Now dropped from overlay because of missing dependency (dev-libs/tdb). Feel free to join the Sunrise project and add a new, updated and working version of this ebuild.
Comment 17 Dennis Schridde 2009-08-25 17:42:11 UTC
The Gentoo dev-libs/tdb was moved to / included in dev-libs/samba-libs.
Samba contains a maintained version of the tdb library since a while.
Comment 18 Dennis Schridde 2009-08-25 19:13:18 UTC
Created attachment 202272 [details]
fdm-1.5 (updated deps)

The ebuild I currently use.
Comment 19 Dennis Schridde 2010-09-03 19:35:22 UTC
Please note that version 1.6 was unusable for me, though sadly I keep forgetting why. I think it could have been some kind of crash, but (also sadly) I did not (yet) report any bug upstream as far as I can see.
Comment 20 Michael Weber (RETIRED) gentoo-dev 2010-09-05 22:53:14 UTC
+*fdm-1.6 (05 Sep 2010)
+*fdm-1.5 (05 Sep 2010)
+
+  05 Sep 2010; Michael Weber <xmw@gentoo.org> +fdm-1.5.ebuild,
+  +files/fdm-1.5-GNUmakefile.patch, +fdm-1.6.ebuild,
+  +files/fdm-1.6-GNUmakefile.patch, +metadata.xml:
+  Initial import, fixes bug #163496, thanks to Manuel Wächter, Paul
+  Bredbury, Maximilian Gaß, Henri Kemppainen and Dennis Schridde for the
+  original ebuilds.