linux 元邮件包 - 如何构建

linux metamail package - how to build

我搜索了 metamail 包 Linux 以及如何在 Centos 7 下构建它。

我有兴趣使用 mimencode 实用程序,它是 metamail 包的一部分来处理我收到的邮件(通过调用 mimencode procmail)

问: 任何人都可以提供在 Centos 7 下构建的工作源代码压缩包和构建脚本吗?

P.S。我有 SRPM,它可以为我的旧 OS 构建,但它在 Centons 7 下会产生错误。

....
rm -f uue.o
gcc -c  -I../. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic -g -pipe -DLINUX -DSTDC_HEADERS -I.   uue.c
uue.c:36:1: error: conflicting types for 'getline'
 getline (buf, size, fp)
 ^
In file included from uue.c:1:0:
/usr/include/stdio.h:678:20: note: previous declaration of 'getline' was here
 extern _IO_ssize_t getline (char **__restrict __lineptr,
                    ^
make[1]: *** [uue.o] Error 1
make[1]: Leaving directory `/usr/src/rpm.d/BUILD/metamail-2.7-19/metamail'
make: *** [basics] Error 2
error: Bad exit status from /usr/src/rpm.d/tmp/rpm-tmp.kxUBlg (%build)

RPM build errors:
    Bad exit status from /usr/src/rpm.d/tmp/rpm-tmp.kxUBlg (%build)
rpmbuild -ba metamail.spec fail with non-zero exitcode.

来自 here 的源 rpm 在 CentOS 7 上构建似乎没有问题:

# yum -y install @development rpm-build ncurses-devel
# rpmbuild --rebuild metamail-2.7-30.lux.1.src.rpm
Installing metamail-2.7-30.lux.1.src.rpm
warning: metamail-2.7-30.lux.1.src.rpm: Header V4 DSA/SHA1 Signature, key ID 53e4e7a9: NOKEY
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Y75vCZ
[...]
Wrote: /root/rpmbuild/RPMS/x86_64/metamail-2.7-30.lux.1.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/metamail-debuginfo-2.7-30.lux.1.x86_64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.IBRR21
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd mm2.7
+ rm -rf /root/rpmbuild/BUILDROOT/metamail-2.7-30.lux.1.x86_64
+ exit 0
Executing(--clean): /bin/sh -e /var/tmp/rpm-tmp.qiPoiU
+ umask 022
+ cd /root/rpmbuild/BUILD
+ rm -rf mm2.7
+ exit 0

话虽如此,我想附和@tripleee:procmailmetamail 都是 十年 没有收到更新的项目.例如,上面使用的元邮件包中的源日期为 1994。我不会尝试使用这些工具来处理任何重要的事情。