【问题标题】:linux metamail package - how to buildlinux metamail 包 - 如何构建
【发布时间】:2020-05-09 15:06:42
【问题描述】:

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

我有兴趣使用 metamail 包中的 mimencode 实用程序来处理收到的邮件(通过 procmail 调用 mimencode)

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

附:我的 SRPM 可以为我的旧操作系统构建,但它在 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.

【问题讨论】:

  • metamail 已从大多数发行版中删除,因为它已经很长时间没有收到更新了。您可能最好安装像 GNU Coreutils 这样的替代品,其中包含一个专用的 base64 命令,因为很长时间以来;引用打印的编码和解码应该是一个简单的单行与 Perl 或 Python(甚至是 Awk,但不要重新发明轮子)。

标签: linux email c rpmbuild


【解决方案1】:

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 都是在几十年 内没有收到更新的项目。例如,上面使用的 metamail 包中的来源日期为 1994。我不会尝试使用这些工具来处理任何远程重要的事情。

【讨论】:

    猜你喜欢
    • 2019-06-15
    • 1970-01-01
    • 2011-10-30
    • 1970-01-01
    • 1970-01-01
    • 2012-06-30
    • 1970-01-01
    • 2011-12-23
    • 2020-08-20
    相关资源
    最近更新 更多