Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 264910 - mail-filter/popfile-1.1.1 version bump
Summary: mail-filter/popfile-1.1.1 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 294218
  Show dependency tree
 
Reported: 2009-04-04 19:31 UTC by Robert T Childers
Modified: 2010-01-07 16:05 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert T Childers 2009-04-04 19:31:36 UTC
Popfile version 1.1.0 was released in November of 2008. After checking the website and not seeing anything new in the the listed requirements for the program I copied popfile-1.0.1.ebuild to popfile-1.1.0.ebuild. Popfile built and installed with no problems except that ./popfile.pl wouldn't execute I had to execute the program with perl popfile.pl.

I get an error message of
-bash: ./popfile.pl:/usr/bin/perl^M:bad interpreter:no such file found.
I looked at popfile.pl and it has #!/usr/bin/perl at the start so I cant find where its getting a ^M from. But it runs just fine when called via perl popfile.pl 

So my init file had to be adjusted to use perl popfile.pl instead of ./popfile.pl but other than that it does work. If possible can a new ebuild for popfile be built and see if you can duplicate this odd behavior in startup. Until then i will use the version I placed in local.

Reproducible: Always
Comment 1 Patrick Lauer gentoo-dev 2009-05-24 18:48:19 UTC
> I get an error message of
> -bash: ./popfile.pl:/usr/bin/perl^M:bad interpreter:no such file found.
> I looked at popfile.pl and it has #!/usr/bin/perl at the start so I cant find
> where its getting a ^M from. But it runs just fine when called via perl
> popfile.pl 

That's an MS-DOS linebreak. If you use dos2unix on the file it should work (and someone should slap upstream because it's a silly mistake) 
Comment 2 Michael 2009-11-10 10:34:30 UTC
The old ebuild requires popfile to run as root. Generally, popfile has poor programming parctice, eventho this is a very cool project. It does its job pretty well.

To not compromise the security of my system, I installed it from upstream and ran it as a limited user.

After downloading release 1.1.1, additionally installed:
dev-perl/DBI
dev-perl/DBD-SQLite
dev-perl/HTML-Template
dev-perl/DateTime-Format-DateParse
dev-perl/DBD-SQLite2
dev-perl/IO-Socket-SSL
(No idea if there are additional things that were on my system anyways before)

and started it. First it complains about not being able to open the port 110. In the configuration-page you can change the port and restart popfile.
Comment 3 Patrick Lauer gentoo-dev 2010-01-07 15:39:53 UTC
1.1.1 also has broken linefeeds
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2010-01-07 16:05:27 UTC
+*popfile-1.1.1 (07 Jan 2010)
+
+  07 Jan 2010; Samuli Suominen <ssuominen@gentoo.org> +popfile-1.1.1.ebuild:
+  Version bump wrt #264910, thanks to Robert T. Childers for reporting.