Discussion:
Rebuilding RPM file
Stef Morrell
2014-02-21 11:17:52 UTC
Permalink
Hi all,

I'm trying to get an up to date RPM built, using a CentOS 6 machine do the building.

I've downloaded mailscanner-4.84.6-1.src.rpm

I've unpacked using rpm -i and that seems fine, I can see the source tgz and specs file as I would expect.

I've then unpacked the tgz, pulled in latest files from git and made a patch which I've added to the specs, then rebuilt the rpm. So far no problem.

When I come to install, however I have the following dependency issues:

--> Processing Dependency: perl(MailScanner::FileInto) for package: mailscanner-4.84.6-1.noarch
--> Processing Dependency: perl(MailScanner::MCPMessage) for package: mailscanner-4.84.6-1.noarch
--> Finished Dependency Resolution
Error: Package: mailscanner-4.84.6-1.noarch (/mailscanner-4.84.6-1.noarch)
Requires: perl(MailScanner::FileInto)
Error: Package: mailscanner-4.84.6-1.noarch (/mailscanner-4.84.6-1.noarch)
Requires: perl(MailScanner::MCPMessage)

And on further investigation, if I simply 'rpmbuild --rebuild' the src rpm, the same dependency issues are present. I also notice the rpm I've generated is some 140k smaller than the one downloaded from the MS webpage.

So - I suspect I'm missing a trick with the rebuild. I have been simply doing ' rpmbuild -ba MailScanner4.spec'. Is there something else I should be putting on this command line?

Thanks

Stef
Jason Ede
2015-02-18 09:42:14 UTC
Permalink
I know this is an old message, but did you get this sorted?

I'm trying to rebuild the srpm and having the same issue when I try to install it.

Jason


-----Original Message-----
From: mailscanner-***@lists.mailscanner.info [mailto:mailscanner-***@lists.mailscanner.info] On Behalf Of Stef Morrell
Sent: 21 February 2014 11:18
To: ***@lists.mailscanner.info
Subject: Rebuilding RPM file

Hi all,

I'm trying to get an up to date RPM built, using a CentOS 6 machine do the building.

I've downloaded mailscanner-4.84.6-1.src.rpm

I've unpacked using rpm -i and that seems fine, I can see the source tgz and specs file as I would expect.

I've then unpacked the tgz, pulled in latest files from git and made a patch which I've added to the specs, then rebuilt the rpm. So far no problem.

When I come to install, however I have the following dependency issues:

--> Processing Dependency: perl(MailScanner::FileInto) for package:
--> mailscanner-4.84.6-1.noarch Processing Dependency:
--> perl(MailScanner::MCPMessage) for package:
--> mailscanner-4.84.6-1.noarch Finished Dependency Resolution
Error: Package: mailscanner-4.84.6-1.noarch (/mailscanner-4.84.6-1.noarch)
Requires: perl(MailScanner::FileInto)
Error: Package: mailscanner-4.84.6-1.noarch (/mailscanner-4.84.6-1.noarch)
Requires: perl(MailScanner::MCPMessage)

And on further investigation, if I simply 'rpmbuild --rebuild' the src rpm, the same dependency issues are present. I also notice the rpm I've generated is some 140k smaller than the one downloaded from the MS webpage.

So - I suspect I'm missing a trick with the rebuild. I have been simply doing ' rpmbuild -ba MailScanner4.spec'. Is there something else I should be putting on this command line?

Thanks

Stef

--
MailScanner mailing list
***@lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner

Before posting, read http://wiki.mailscanner.info/posting

Support MailScanner development - buy the book off the website!
--
MailScanner mailing list
***@lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner

Before posting, read http://wiki.mailscanner.info/posting

Support MailScanner development - buy the book off the website!
Jerry Benton
2015-02-18 10:33:16 UTC
Permalink
You seem to have missed this message I sent out 3 days ago:

http://comments.gmane.org/gmane.mail.virus.mailscanner/80742


-
Jerry Benton
www.mailborder.com
Post by Jason Ede
I know this is an old message, but did you get this sorted?
I'm trying to rebuild the srpm and having the same issue when I try to install it.
Jason
-----Original Message-----
Sent: 21 February 2014 11:18
Subject: Rebuilding RPM file
Hi all,
I'm trying to get an up to date RPM built, using a CentOS 6 machine do the building.
I've downloaded mailscanner-4.84.6-1.src.rpm
I've unpacked using rpm -i and that seems fine, I can see the source tgz and specs file as I would expect.
I've then unpacked the tgz, pulled in latest files from git and made a patch which I've added to the specs, then rebuilt the rpm. So far no problem.
--> mailscanner-4.84.6-1.noarch Finished Dependency Resolution
Error: Package: mailscanner-4.84.6-1.noarch (/mailscanner-4.84.6-1.noarch)
Requires: perl(MailScanner::FileInto)
Error: Package: mailscanner-4.84.6-1.noarch (/mailscanner-4.84.6-1.noarch)
Requires: perl(MailScanner::MCPMessage)
And on further investigation, if I simply 'rpmbuild --rebuild' the src rpm, the same dependency issues are present. I also notice the rpm I've generated is some 140k smaller than the one downloaded from the MS webpage.
So - I suspect I'm missing a trick with the rebuild. I have been simply doing ' rpmbuild -ba MailScanner4.spec'. Is there something else I should be putting on this command line?
Thanks
Stef
--
MailScanner mailing list
http://lists.mailscanner.info/mailman/listinfo/mailscanner
Before posting, read http://wiki.mailscanner.info/posting
Support MailScanner development - buy the book off the website!
--
MailScanner mailing list
http://lists.mailscanner.info/mailman/listinfo/mailscanner
Before posting, read http://wiki.mailscanner.info/posting
Support MailScanner development - buy the book off the website!
--
MailScanner mailing list
***@lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner

Before posting, read http://wiki.mailscanner.info/posting

Support MailScanner development - buy the book off the website!
Jason Ede
2015-02-18 10:44:21 UTC
Permalink
I saw that, but I'm rebuilding a production machine and not happy using a beta version on it...

Is there a copy of the .spec file available so I can work out the dependency problem for my version?

Jason

--
Dr Jason Ede
Development Manager, BirchenallHowden Ltd

-----Original Message-----
From: mailscanner-***@lists.mailscanner.info [mailto:mailscanner-***@lists.mailscanner.info] On Behalf Of Jerry Benton
Sent: 18 February 2015 10:33
To: MailScanner discussion
Subject: Re: Rebuilding RPM file

You seem to have missed this message I sent out 3 days ago:

http://comments.gmane.org/gmane.mail.virus.mailscanner/80742


-
Jerry Benton
www.mailborder.com
Post by Jason Ede
I know this is an old message, but did you get this sorted?
I'm trying to rebuild the srpm and having the same issue when I try to install it.
Jason
-----Original Message-----
Sent: 21 February 2014 11:18
Subject: Rebuilding RPM file
Hi all,
I'm trying to get an up to date RPM built, using a CentOS 6 machine do the building.
I've downloaded mailscanner-4.84.6-1.src.rpm
I've unpacked using rpm -i and that seems fine, I can see the source tgz and specs file as I would expect.
I've then unpacked the tgz, pulled in latest files from git and made a patch which I've added to the specs, then rebuilt the rpm. So far no problem.
--> mailscanner-4.84.6-1.noarch Finished Dependency Resolution
Error: Package: mailscanner-4.84.6-1.noarch (/mailscanner-4.84.6-1.noarch)
Requires: perl(MailScanner::FileInto)
Error: Package: mailscanner-4.84.6-1.noarch (/mailscanner-4.84.6-1.noarch)
Requires: perl(MailScanner::MCPMessage)
And on further investigation, if I simply 'rpmbuild --rebuild' the src rpm, the same dependency issues are present. I also notice the rpm I've generated is some 140k smaller than the one downloaded from the MS webpage.
So - I suspect I'm missing a trick with the rebuild. I have been simply doing ' rpmbuild -ba MailScanner4.spec'. Is there something else I should be putting on this command line?
Thanks
Stef
--
MailScanner mailing list
http://lists.mailscanner.info/mailman/listinfo/mailscanner
Before posting, read http://wiki.mailscanner.info/posting
Support MailScanner development - buy the book off the website!
--
MailScanner mailing list
http://lists.mailscanner.info/mailman/listinfo/mailscanner
Before posting, read http://wiki.mailscanner.info/posting
Support MailScanner development - buy the book off the website!
--
MailScanner mailing list
***@lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner

Before posting, read http://wiki.mailscanner.info/posting

Support MailScanner development - buy the book off the website!
--
MailScanner mailing list
***@lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner

Before posting, read http://wiki.mailscanner.info/posting

Support MailScanner development - buy the book off the website!
Jerry Benton
2015-02-18 11:29:36 UTC
Permalink
Jason,

If you are installing from source using the stuff at github, then you are installing the same exact thing, but without the 200 hours or so of research and review that I have put into this. In short, you are installing alpha. If you give me a couple of hours I will have a newer package available. It is going to be the final in a day or two unless someone else reports a problem with the version I posted. I can let you know today when it is ready.

Or, you can march on with what you are doing. To do so, add this to your spec file:

Provides: perl(MailScanner::FileInto), perl(next_item_here), perl(and_the_next)

And your RPM will install. However, you will be missing a lot of MailScanner dependencies that the RPM installer does not catch that is installed with the version I am making.


Its your barbecue.


-
Jerry Benton
www.mailborder.com
Post by Jason Ede
I saw that, but I'm rebuilding a production machine and not happy using a beta version on it...
Is there a copy of the .spec file available so I can work out the dependency problem for my version?
Jason
--
Dr Jason Ede
Development Manager, BirchenallHowden Ltd
-----Original Message-----
Sent: 18 February 2015 10:33
To: MailScanner discussion
Subject: Re: Rebuilding RPM file
http://comments.gmane.org/gmane.mail.virus.mailscanner/80742
-
Jerry Benton
www.mailborder.com
Post by Jason Ede
I know this is an old message, but did you get this sorted?
I'm trying to rebuild the srpm and having the same issue when I try to install it.
Jason
-----Original Message-----
Sent: 21 February 2014 11:18
Subject: Rebuilding RPM file
Hi all,
I'm trying to get an up to date RPM built, using a CentOS 6 machine do the building.
I've downloaded mailscanner-4.84.6-1.src.rpm
I've unpacked using rpm -i and that seems fine, I can see the source tgz and specs file as I would expect.
I've then unpacked the tgz, pulled in latest files from git and made a patch which I've added to the specs, then rebuilt the rpm. So far no problem.
--> mailscanner-4.84.6-1.noarch Finished Dependency Resolution
Error: Package: mailscanner-4.84.6-1.noarch (/mailscanner-4.84.6-1.noarch)
Requires: perl(MailScanner::FileInto)
Error: Package: mailscanner-4.84.6-1.noarch (/mailscanner-4.84.6-1.noarch)
Requires: perl(MailScanner::MCPMessage)
And on further investigation, if I simply 'rpmbuild --rebuild' the src rpm, the same dependency issues are present. I also notice the rpm I've generated is some 140k smaller than the one downloaded from the MS webpage.
So - I suspect I'm missing a trick with the rebuild. I have been simply doing ' rpmbuild -ba MailScanner4.spec'. Is there something else I should be putting on this command line?
Thanks
Stef
--
MailScanner mailing list
http://lists.mailscanner.info/mailman/listinfo/mailscanner
Before posting, read http://wiki.mailscanner.info/posting
Support MailScanner development - buy the book off the website!
--
MailScanner mailing list
http://lists.mailscanner.info/mailman/listinfo/mailscanner
Before posting, read http://wiki.mailscanner.info/posting
Support MailScanner development - buy the book off the website!
--
MailScanner mailing list
http://lists.mailscanner.info/mailman/listinfo/mailscanner
Before posting, read http://wiki.mailscanner.info/posting
Support MailScanner development - buy the book off the website!
--
MailScanner mailing list
http://lists.mailscanner.info/mailman/listinfo/mailscanner
Before posting, read http://wiki.mailscanner.info/posting
Support MailScanner development - buy the book off the website!
--
MailScanner mailing list
***@lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner

Before posting, read http://wiki.mailscanner.info/posting

Support MailScanner development - buy the book off the website!
Jason Ede
2015-02-18 11:55:38 UTC
Permalink
I'll hang on till the final version then



-----Original Message-----
From: mailscanner-***@lists.mailscanner.info [mailto:mailscanner-***@lists.mailscanner.info] On Behalf Of Jerry Benton
Sent: 18 February 2015 11:30
To: MailScanner discussion
Subject: Re: Rebuilding RPM file

Jason,

If you are installing from source using the stuff at github, then you are installing the same exact thing, but without the 200 hours or so of research and review that I have put into this. In short, you are installing alpha. If you give me a couple of hours I will have a newer package available. It is going to be the final in a day or two unless someone else reports a problem with the version I posted. I can let you know today when it is ready.

Or, you can march on with what you are doing. To do so, add this to your spec file:

Provides: perl(MailScanner::FileInto), perl(next_item_here), perl(and_the_next)

And your RPM will install. However, you will be missing a lot of MailScanner dependencies that the RPM installer does not catch that is installed with the version I am making.


Its your barbecue.


-
Jerry Benton
www.mailborder.com
Post by Jason Ede
I saw that, but I'm rebuilding a production machine and not happy using a beta version on it...
Is there a copy of the .spec file available so I can work out the dependency problem for my version?
Jason
--
Dr Jason Ede
Development Manager, BirchenallHowden Ltd
-----Original Message-----
Sent: 18 February 2015 10:33
To: MailScanner discussion
Subject: Re: Rebuilding RPM file
http://comments.gmane.org/gmane.mail.virus.mailscanner/80742
-
Jerry Benton
www.mailborder.com
Post by Jason Ede
I know this is an old message, but did you get this sorted?
I'm trying to rebuild the srpm and having the same issue when I try to install it.
Jason
-----Original Message-----
Sent: 21 February 2014 11:18
Subject: Rebuilding RPM file
Hi all,
I'm trying to get an up to date RPM built, using a CentOS 6 machine do the building.
I've downloaded mailscanner-4.84.6-1.src.rpm
I've unpacked using rpm -i and that seems fine, I can see the source tgz and specs file as I would expect.
I've then unpacked the tgz, pulled in latest files from git and made a patch which I've added to the specs, then rebuilt the rpm. So far no problem.
--> mailscanner-4.84.6-1.noarch Finished Dependency Resolution
Error: Package: mailscanner-4.84.6-1.noarch (/mailscanner-4.84.6-1.noarch)
Requires: perl(MailScanner::FileInto)
Error: Package: mailscanner-4.84.6-1.noarch (/mailscanner-4.84.6-1.noarch)
Requires: perl(MailScanner::MCPMessage)
And on further investigation, if I simply 'rpmbuild --rebuild' the src rpm, the same dependency issues are present. I also notice the rpm I've generated is some 140k smaller than the one downloaded from the MS webpage.
So - I suspect I'm missing a trick with the rebuild. I have been simply doing ' rpmbuild -ba MailScanner4.spec'. Is there something else I should be putting on this command line?
Thanks
Stef
--
MailScanner mailing list
http://lists.mailscanner.info/mailman/listinfo/mailscanner
Before posting, read http://wiki.mailscanner.info/posting
Support MailScanner development - buy the book off the website!
--
MailScanner mailing list
http://lists.mailscanner.info/mailman/listinfo/mailscanner
Before posting, read http://wiki.mailscanner.info/posting
Support MailScanner development - buy the book off the website!
--
MailScanner mailing list
http://lists.mailscanner.info/mailman/listinfo/mailscanner
Before posting, read http://wiki.mailscanner.info/posting
Support MailScanner development - buy the book off the website!
--
MailScanner mailing list
http://lists.mailscanner.info/mailman/listinfo/mailscanner
Before posting, read http://wiki.mailscanner.info/posting
Support MailScanner development - buy the book off the website!
--
MailScanner mailing list
***@lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner

Before posting, read http://wiki.mailscanner.info/posting

Support MailScanner development - buy the book off the website!
--
MailScanner mailing list
***@lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner

Before posting, read http://wiki.mailscanner.info/posting

Support MailScanner development - buy the book off the website!
Loading...