rpmbuild spamassassin - SpamAssassin

This is a discussion on rpmbuild spamassassin - SpamAssassin ; Hi! since you guys told be that version 3.1.8 wasn't receiving updates because it's to old, I trying to upgrade spamassassin. Since I can't upgrade the server (I'm using Fedora 3), I've downloaded the latest tarball and did rpmbuild -tb ...

+ Reply to Thread
Results 1 to 6 of 6

Thread: rpmbuild spamassassin

  1. rpmbuild spamassassin

    Hi! since you guys told be that version 3.1.8 wasn't receiving updates
    because it's to old, I trying to upgrade spamassassin. Since I can't
    upgrade the server (I'm using Fedora 3), I've downloaded the latest
    tarball and did rpmbuild -tb Mail-SpamAssassin-3.2.5.tar.gz.
    When trying to install the rpm, I got a an error that some perl modules
    were outdates. So, i run cpan> install Bundle::CPAN, which upgrade my perl
    environment. Now, when trying to build the rpm from the tarball again,
    after a while I get

    -------------------------------------
    + cp -pr README Changes sample-nonspam.txt sample-spam.txt
    spamd/README.spamd INSTALL BUGS LICENSE TRADEMARK USAGE sql UPGRADE
    /var/tmp/spamassassin-root/usr/share/doc/spamassassin-3.2.5
    cp: cannot stat `BUGS': No such file
    or directory error: Bad exit status from /var/tmp/rpm-tmp.80526 (%doc)
    Provides: config(spamassassin) = 3.2.5-1
    Requires(interp): /bin/sh /bin/sh /bin/sh
    Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
    rpmlib(PayloadFilesHavePrefix) <= 4.0-1
    Requires(post): /bin/sh
    Requires(preun): /bin/sh
    Requires(postun): /bin/sh
    Requires: /bin/sh /usr/bin/perl config(spamassassin) = 3.2.5-1 libc.so.6
    libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libdl.so.2 libz.so.1
    perl(Archive::Tar) >= 1.23 perl(Carp) perl(Config) perl(Cwd)
    perl(Data:umper) perl(Digest::SHA1) perl(DynaLoader) perl(Errno)
    perl(ExtUtils::MakeMaker) perl(File::Copy) perl(File::Path)
    perl(File::Spec) perl(File::Spec) >= 0.8 perl(Getopt::Long)
    perl(HTTP:ate) perl(IO::Handle) perl(IO::Pipe) perl(IO::Zlib) >= 1.04
    perl(LWP::UserAgent) perl(Mail::SpamAssassin)
    perl(Mail::SpamAssassin::ArchiveIterator) perl(Mail::SpamAssassin::Logger)
    perl(Mail::SpamAssassin::Message) perl(Mail::SpamAssassin::NetSet)
    perl(Mail::SpamAssassin::PerMsgLearner)
    perl(Mail::SpamAssassin::SpamdForkScaling)
    perl(Mail::SpamAssassin::SubProcBackChannel)
    perl(Mail::SpamAssassin::Timeout) perl(Mail::SpamAssassin::Util::Progress)
    perl(Net:NS) perl(POSIX) perl(Pod::Usage) perl(Pod::Usage) perl(Socket)
    perl(bytes) perl(constant) perl(lib) perl(strict) perl(vars)
    perl(warnings) perl-Mail-SpamAssassin = 3.2.5-1
    Processing files: perl-Mail-SpamAssassin-3.2.5-1
    error: File not found: /var/tmp/spamassassin-root/usr/share/spamassassin


    RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.80526 (%doc)
    File not found: /var/tmp/spamassassin-root/usr/share/spamassassin
    ----------------------------------------------------



    Any ideas please ?
    thanks and regards.
    David


  2. Re: rpmbuild spamassassin

    Same thing happened to me when I tried that . I had to do the build on a
    different server and copy the rpm file back to the server I orginally
    intended to run it on . I know that doesn't answer your question on why ,
    but that is how I got my install to work .

    Best,
    Jeremy

    David Carvalho
    09/03/2008 06:17 AM

    To
    users@spamassassin.apache.org
    cc

    Subject
    rpmbuild spamassassin






    Hi! since you guys told be that version 3.1.8 wasn't receiving updates
    because it's to old, I trying to upgrade spamassassin. Since I can't
    upgrade the server (I'm using Fedora 3), I've downloaded the latest
    tarball and did rpmbuild -tb Mail-SpamAssassin-3.2.5.tar.gz.
    When trying to install the rpm, I got a an error that some perl modules
    were outdates. So, i run cpan> install Bundle::CPAN, which upgrade my perl

    environment. Now, when trying to build the rpm from the tarball again,
    after a while I get

    -------------------------------------
    + cp -pr README Changes sample-nonspam.txt sample-spam.txt
    spamd/README.spamd INSTALL BUGS LICENSE TRADEMARK USAGE sql UPGRADE
    /var/tmp/spamassassin-root/usr/share/doc/spamassassin-3.2.5
    cp: cannot stat `BUGS': No such file
    or directory error: Bad exit status from /var/tmp/rpm-tmp.80526 (%doc)
    Provides: config(spamassassin) = 3.2.5-1
    Requires(interp): /bin/sh /bin/sh /bin/sh
    Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
    rpmlib(PayloadFilesHavePrefix) <= 4.0-1
    Requires(post): /bin/sh
    Requires(preun): /bin/sh
    Requires(postun): /bin/sh
    Requires: /bin/sh /usr/bin/perl config(spamassassin) = 3.2.5-1 libc.so.6
    libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libdl.so.2 libz.so.1
    perl(Archive::Tar) >= 1.23 perl(Carp) perl(Config) perl(Cwd)
    perl(Data:umper) perl(Digest::SHA1) perl(DynaLoader) perl(Errno)
    perl(ExtUtils::MakeMaker) perl(File::Copy) perl(File::Path)
    perl(File::Spec) perl(File::Spec) >= 0.8 perl(Getopt::Long)
    perl(HTTP:ate) perl(IO::Handle) perl(IO::Pipe) perl(IO::Zlib) >= 1.04
    perl(LWP::UserAgent) perl(Mail::SpamAssassin)
    perl(Mail::SpamAssassin::ArchiveIterator) perl(Mail::SpamAssassin::Logger)

    perl(Mail::SpamAssassin::Message) perl(Mail::SpamAssassin::NetSet)
    perl(Mail::SpamAssassin::PerMsgLearner)
    perl(Mail::SpamAssassin::SpamdForkScaling)
    perl(Mail::SpamAssassin::SubProcBackChannel)
    perl(Mail::SpamAssassin::Timeout) perl(Mail::SpamAssassin::Util::Progress)

    perl(Net:NS) perl(POSIX) perl(Pod::Usage) perl(Pod::Usage) perl(Socket)
    perl(bytes) perl(constant) perl(lib) perl(strict) perl(vars)
    perl(warnings) perl-Mail-SpamAssassin = 3.2.5-1
    Processing files: perl-Mail-SpamAssassin-3.2.5-1
    error: File not found: /var/tmp/spamassassin-root/usr/share/spamassassin


    RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.80526 (%doc)
    File not found: /var/tmp/spamassassin-root/usr/share/spamassassin
    ----------------------------------------------------



    Any ideas please ?
    thanks and regards.
    David


  3. RE: rpmbuild spamassassin

    Thanks for the reply...
    I was able to build the rpm on a Fedora 7. Copyied to my Fedora 3,
    But couldn't install (dependency issues, as I expected)
    Is it possible/safe to install it from cpan, since I already have it running
    Through rpm ?
    regards

    -----Original Message-----
    From: Jeremy Davila [mailto:JDavila@languageworks.com]
    Sent: quarta-feira, 3 de Setembro de 2008 13:58
    To: David Carvalho
    Cc: users@spamassassin.apache.org
    Subject: Re: rpmbuild spamassassin

    Same thing happened to me when I tried that . I had to do the build on a
    different server and copy the rpm file back to the server I orginally
    intended to run it on . I know that doesn't answer your question on why ,
    but that is how I got my install to work .

    Best,
    Jeremy

    David Carvalho
    09/03/2008 06:17 AM

    To
    users@spamassassin.apache.org
    cc

    Subject
    rpmbuild spamassassin






    Hi! since you guys told be that version 3.1.8 wasn't receiving updates
    because it's to old, I trying to upgrade spamassassin. Since I can't
    upgrade the server (I'm using Fedora 3), I've downloaded the latest
    tarball and did rpmbuild -tb Mail-SpamAssassin-3.2.5.tar.gz.
    When trying to install the rpm, I got a an error that some perl modules
    were outdates. So, i run cpan> install Bundle::CPAN, which upgrade my perl

    environment. Now, when trying to build the rpm from the tarball again,
    after a while I get

    -------------------------------------
    + cp -pr README Changes sample-nonspam.txt sample-spam.txt
    spamd/README.spamd INSTALL BUGS LICENSE TRADEMARK USAGE sql UPGRADE
    /var/tmp/spamassassin-root/usr/share/doc/spamassassin-3.2.5
    cp: cannot stat `BUGS': No such file
    or directory error: Bad exit status from /var/tmp/rpm-tmp.80526 (%doc)
    Provides: config(spamassassin) = 3.2.5-1
    Requires(interp): /bin/sh /bin/sh /bin/sh
    Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
    rpmlib(PayloadFilesHavePrefix) <= 4.0-1
    Requires(post): /bin/sh
    Requires(preun): /bin/sh
    Requires(postun): /bin/sh
    Requires: /bin/sh /usr/bin/perl config(spamassassin) = 3.2.5-1 libc.so.6
    libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libdl.so.2 libz.so.1
    perl(Archive::Tar) >= 1.23 perl(Carp) perl(Config) perl(Cwd)
    perl(Data:umper) perl(Digest::SHA1) perl(DynaLoader) perl(Errno)
    perl(ExtUtils::MakeMaker) perl(File::Copy) perl(File::Path)
    perl(File::Spec) perl(File::Spec) >= 0.8 perl(Getopt::Long)
    perl(HTTP:ate) perl(IO::Handle) perl(IO::Pipe) perl(IO::Zlib) >= 1.04
    perl(LWP::UserAgent) perl(Mail::SpamAssassin)
    perl(Mail::SpamAssassin::ArchiveIterator) perl(Mail::SpamAssassin::Logger)

    perl(Mail::SpamAssassin::Message) perl(Mail::SpamAssassin::NetSet)
    perl(Mail::SpamAssassin::PerMsgLearner)
    perl(Mail::SpamAssassin::SpamdForkScaling)
    perl(Mail::SpamAssassin::SubProcBackChannel)
    perl(Mail::SpamAssassin::Timeout) perl(Mail::SpamAssassin::Util::Progress)

    perl(Net:NS) perl(POSIX) perl(Pod::Usage) perl(Pod::Usage) perl(Socket)
    perl(bytes) perl(constant) perl(lib) perl(strict) perl(vars)
    perl(warnings) perl-Mail-SpamAssassin = 3.2.5-1
    Processing files: perl-Mail-SpamAssassin-3.2.5-1
    error: File not found: /var/tmp/spamassassin-root/usr/share/spamassassin


    RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.80526 (%doc)
    File not found: /var/tmp/spamassassin-root/usr/share/spamassassin
    ----------------------------------------------------



    Any ideas please ?
    thanks and regards.
    David


  4. RE: rpmbuild spamassassin

    Meanwhile, I was able to find in DAG repository
    A package called spamassassin-3.2.4-1.rf-src-rpm
    I installed it, and generated the rpm binary with rpmbuild from the spec
    file.
    When trying to install, again dependency problems, (IO::Zlib,
    IO::Socket:SSL, HTML::Parser).
    But when I try to install them from the cpan prompt, I get that
    These are up to date...
    I'm avoiding to use the --force option to install spamassassin....




    -----Original Message-----
    From: Jeremy Davila [mailto:JDavila@languageworks.com]
    Sent: quarta-feira, 3 de Setembro de 2008 13:58
    To: David Carvalho
    Cc: users@spamassassin.apache.org
    Subject: Re: rpmbuild spamassassin

    Same thing happened to me when I tried that . I had to do the build on a
    different server and copy the rpm file back to the server I orginally
    intended to run it on . I know that doesn't answer your question on why ,
    but that is how I got my install to work .

    Best,
    Jeremy

    David Carvalho
    09/03/2008 06:17 AM

    To
    users@spamassassin.apache.org
    cc

    Subject
    rpmbuild spamassassin






    Hi! since you guys told be that version 3.1.8 wasn't receiving updates
    because it's to old, I trying to upgrade spamassassin. Since I can't
    upgrade the server (I'm using Fedora 3), I've downloaded the latest
    tarball and did rpmbuild -tb Mail-SpamAssassin-3.2.5.tar.gz.
    When trying to install the rpm, I got a an error that some perl modules
    were outdates. So, i run cpan> install Bundle::CPAN, which upgrade my perl

    environment. Now, when trying to build the rpm from the tarball again,
    after a while I get

    -------------------------------------
    + cp -pr README Changes sample-nonspam.txt sample-spam.txt
    spamd/README.spamd INSTALL BUGS LICENSE TRADEMARK USAGE sql UPGRADE
    /var/tmp/spamassassin-root/usr/share/doc/spamassassin-3.2.5
    cp: cannot stat `BUGS': No such file
    or directory error: Bad exit status from /var/tmp/rpm-tmp.80526 (%doc)
    Provides: config(spamassassin) = 3.2.5-1
    Requires(interp): /bin/sh /bin/sh /bin/sh
    Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
    rpmlib(PayloadFilesHavePrefix) <= 4.0-1
    Requires(post): /bin/sh
    Requires(preun): /bin/sh
    Requires(postun): /bin/sh
    Requires: /bin/sh /usr/bin/perl config(spamassassin) = 3.2.5-1 libc.so.6
    libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libdl.so.2 libz.so.1
    perl(Archive::Tar) >= 1.23 perl(Carp) perl(Config) perl(Cwd)
    perl(Data:umper) perl(Digest::SHA1) perl(DynaLoader) perl(Errno)
    perl(ExtUtils::MakeMaker) perl(File::Copy) perl(File::Path)
    perl(File::Spec) perl(File::Spec) >= 0.8 perl(Getopt::Long)
    perl(HTTP:ate) perl(IO::Handle) perl(IO::Pipe) perl(IO::Zlib) >= 1.04
    perl(LWP::UserAgent) perl(Mail::SpamAssassin)
    perl(Mail::SpamAssassin::ArchiveIterator) perl(Mail::SpamAssassin::Logger)

    perl(Mail::SpamAssassin::Message) perl(Mail::SpamAssassin::NetSet)
    perl(Mail::SpamAssassin::PerMsgLearner)
    perl(Mail::SpamAssassin::SpamdForkScaling)
    perl(Mail::SpamAssassin::SubProcBackChannel)
    perl(Mail::SpamAssassin::Timeout) perl(Mail::SpamAssassin::Util::Progress)

    perl(Net:NS) perl(POSIX) perl(Pod::Usage) perl(Pod::Usage) perl(Socket)
    perl(bytes) perl(constant) perl(lib) perl(strict) perl(vars)
    perl(warnings) perl-Mail-SpamAssassin = 3.2.5-1
    Processing files: perl-Mail-SpamAssassin-3.2.5-1
    error: File not found: /var/tmp/spamassassin-root/usr/share/spamassassin


    RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.80526 (%doc)
    File not found: /var/tmp/spamassassin-root/usr/share/spamassassin
    ----------------------------------------------------



    Any ideas please ?
    thanks and regards.
    David


  5. RE: rpmbuild spamassassin

    Not to sure . I would install the dependencies. and re-run the RPM ....if
    you primarily use RPM you should stick with that . Same thing if you build
    from source files. I could be wrong...

    "David Carvalho"
    09/03/2008 09:33 AM

    To

    cc

    Subject
    RE: rpmbuild spamassassin






    Thanks for the reply...
    I was able to build the rpm on a Fedora 7. Copyied to my Fedora 3,
    But couldn't install (dependency issues, as I expected)
    Is it possible/safe to install it from cpan, since I already have it
    running
    Through rpm ?
    regards

    -----Original Message-----
    From: Jeremy Davila [mailto:JDavila@languageworks.com]
    Sent: quarta-feira, 3 de Setembro de 2008 13:58
    To: David Carvalho
    Cc: users@spamassassin.apache.org
    Subject: Re: rpmbuild spamassassin

    Same thing happened to me when I tried that . I had to do the build on a
    different server and copy the rpm file back to the server I orginally
    intended to run it on . I know that doesn't answer your question on why ,
    but that is how I got my install to work .

    Best,
    Jeremy

    David Carvalho
    09/03/2008 06:17 AM

    To
    users@spamassassin.apache.org
    cc

    Subject
    rpmbuild spamassassin






    Hi! since you guys told be that version 3.1.8 wasn't receiving updates
    because it's to old, I trying to upgrade spamassassin. Since I can't
    upgrade the server (I'm using Fedora 3), I've downloaded the latest
    tarball and did rpmbuild -tb Mail-SpamAssassin-3.2.5.tar.gz.
    When trying to install the rpm, I got a an error that some perl modules
    were outdates. So, i run cpan> install Bundle::CPAN, which upgrade my perl


    environment. Now, when trying to build the rpm from the tarball again,
    after a while I get

    -------------------------------------
    + cp -pr README Changes sample-nonspam.txt sample-spam.txt
    spamd/README.spamd INSTALL BUGS LICENSE TRADEMARK USAGE sql UPGRADE
    /var/tmp/spamassassin-root/usr/share/doc/spamassassin-3.2.5
    cp: cannot stat `BUGS': No such file
    or directory error: Bad exit status from /var/tmp/rpm-tmp.80526 (%doc)
    Provides: config(spamassassin) = 3.2.5-1
    Requires(interp): /bin/sh /bin/sh /bin/sh
    Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
    rpmlib(PayloadFilesHavePrefix) <= 4.0-1
    Requires(post): /bin/sh
    Requires(preun): /bin/sh
    Requires(postun): /bin/sh
    Requires: /bin/sh /usr/bin/perl config(spamassassin) = 3.2.5-1 libc.so.6
    libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libdl.so.2 libz.so.1
    perl(Archive::Tar) >= 1.23 perl(Carp) perl(Config) perl(Cwd)
    perl(Data:umper) perl(Digest::SHA1) perl(DynaLoader) perl(Errno)
    perl(ExtUtils::MakeMaker) perl(File::Copy) perl(File::Path)
    perl(File::Spec) perl(File::Spec) >= 0.8 perl(Getopt::Long)
    perl(HTTP:ate) perl(IO::Handle) perl(IO::Pipe) perl(IO::Zlib) >= 1.04
    perl(LWP::UserAgent) perl(Mail::SpamAssassin)
    perl(Mail::SpamAssassin::ArchiveIterator) perl(Mail::SpamAssassin::Logger)


    perl(Mail::SpamAssassin::Message) perl(Mail::SpamAssassin::NetSet)
    perl(Mail::SpamAssassin::PerMsgLearner)
    perl(Mail::SpamAssassin::SpamdForkScaling)
    perl(Mail::SpamAssassin::SubProcBackChannel)
    perl(Mail::SpamAssassin::Timeout) perl(Mail::SpamAssassin::Util::Progress)


    perl(Net:NS) perl(POSIX) perl(Pod::Usage) perl(Pod::Usage) perl(Socket)
    perl(bytes) perl(constant) perl(lib) perl(strict) perl(vars)
    perl(warnings) perl-Mail-SpamAssassin = 3.2.5-1
    Processing files: perl-Mail-SpamAssassin-3.2.5-1
    error: File not found: /var/tmp/spamassassin-root/usr/share/spamassassin


    RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.80526 (%doc)
    File not found: /var/tmp/spamassassin-root/usr/share/spamassassin
    ----------------------------------------------------



    Any ideas please ?
    thanks and regards.
    David


  6. Re: rpmbuild spamassassin

    --On Wednesday, September 03, 2008 11:16 AM +0100 David Carvalho
    wrote:

    > Hi! since you guys told be that version 3.1.8 wasn't receiving updates
    > because it's to old, I trying to upgrade spamassassin. Since I can't
    > upgrade the server (I'm using Fedora 3), I've downloaded the latest
    > tarball and did rpmbuild -tb Mail-SpamAssassin-3.2.5.tar.gz.
    > When trying to install the rpm, I got a an error that some perl modules
    > were outdates. So, i run cpan> install Bundle::CPAN, which upgrade my
    > perl environment. Now, when trying to build the rpm from the tarball
    > again,
    > after a while I get


    Don't mix package managers!!! CPAN and RPM don't know what each other
    install, so installing dependencies from one won't satisfy the other. (A
    package manager is just a database that tracks what's installed, what
    package owns which file.)

    If you want to run an RPM-based distro, you need to get all your packages
    as RPMs, so that your RPM database knows what you have.

    If you use the SA package from RPMForge, set up yum to use RPMForge as a
    yum repository and you can use it to find all the dependencies as RPMs and
    install them at the same time automagically. Install the rpmforge-release
    package for FC3 to get the necessary yum config.




+ Reply to Thread