Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 238288 - net-ftp/proftpd-1.3* ebuilds: several improvements (USE flag checking and others)
Summary: net-ftp/proftpd-1.3* ebuilds: several improvements (USE flag checking and oth...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Luca Longinotti (RETIRED)
URL:
Whiteboard:
Keywords:
: 242306 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-09-21 15:43 UTC by John Koutras
Modified: 2009-02-18 10:41 UTC (History)
7 users (show)

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


Attachments
proftpd-1.3.2_rc2.ebuild (proftpd-1.3.2_rc2.ebuild,7.72 KB, text/plain)
2008-10-10 20:15 UTC, Joakim
Details
Cross-site request forgery patch 1 (proftpd-1.3.2_rc2-bug3115-1.patch,2.11 KB, patch)
2008-10-10 20:17 UTC, Joakim
Details | Diff
Cross-site request forgery patch 2 (proftpd-1.3.2_rc2-bug3115-2.patch,2.83 KB, patch)
2008-10-10 20:18 UTC, Joakim
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John Koutras 2008-09-21 15:43:46 UTC
I just noticed this version has been released.

A very important fix presented in this version is the proper handling of SSL/TLS session shutdowns on data connections. This issue was causing problems for users of recent FileZilla versions which insisted on proper SSL/TLS session shutdowns.

I've tried to just rename a previous ebuild, but it didn't work.

Reproducible: Always
Comment 1 Jacek 2008-09-22 19:03:29 UTC
Please add this security bug which exist in 1.3.2_rc2:
http://secunia.com/Advisories/31930/
http://bugs.proftpd.org/show_bug.cgi?id=3115
Comment 2 Joakim 2008-10-10 19:02:22 UTC
I think I have this all working, the security patch included. Basically I looked at some related bugs, checked the proftpd docs and put it all together. I will attach it all here for more to test. When this one is fixed it could also close
#221275
#212763
#234003
Comment 3 Joakim 2008-10-10 20:15:33 UTC
Created attachment 167914 [details]
proftpd-1.3.2_rc2.ebuild

ebuild based on an ebuild from #219404 including a fix for the libtool 2.2 problem. Removed the bug218850 patch as no longer apply and doesn't seem to be needed (no compile problems at least).

Also removed the faulty assumption that mysql and postgres can't both be compiled in and also added support for sqlite3 (not tested yet). the new patches will be attached separately.
Comment 4 Joakim 2008-10-10 20:17:59 UTC
Created attachment 167916 [details, diff]
Cross-site request forgery patch 1

Cross-site request forgery patch, 1 of 2, for proftpd-1.3.2_rc2.ebuild
Comment 5 Joakim 2008-10-10 20:18:44 UTC
Created attachment 167918 [details, diff]
Cross-site request forgery patch 2

Cross-site request forgery patch, 2 of 2, for proftpd-1.3.2_rc2.ebuild
Comment 6 Robert Förster 2008-10-27 11:33:53 UTC
could you please save the file with UNIX line endings next time and not with DOS ones? portage doesn't seem to like that :)
Comment 7 Christian Hoffmann (RETIRED) gentoo-dev 2008-11-06 12:26:32 UTC
*** Bug 242306 has been marked as a duplicate of this bug. ***
Comment 8 Christian Hoffmann (RETIRED) gentoo-dev 2008-11-06 12:54:23 UTC
I bumped to _rc2 including the patch for security reasons (bug 238762), but as I'm not the maintainer and I did not want to break anything, I didn't use your (probably) way better ebuild. As such, I'll rename this bug and leave it open.
Comment 9 Christian Hoffmann (RETIRED) gentoo-dev 2008-11-10 20:40:55 UTC
(In reply to comment #3)
> Created an attachment (id=167914) [edit]
> proftpd-1.3.2_rc2.ebuild
> 
> ebuild based on an ebuild from #219404 including a fix for the libtool 2.2
> problem.
=proftpd-1.3.1-r1 and =proftpd-1.3.2_rc2-r2 should work flawlessly with regards to libtool-2.2. I took your fix as a base and replaced it by a version which does not hardcode the line number. Thanks.
Comment 10 Joakim 2009-02-05 15:27:11 UTC
Ops! Sorry about the dos line endings, apparently did this from my win box months back. However, now I have problem to get this babe to compile again, it complains about something with the mod_rewrite code.

x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include -I/usr/include/mysql -march=nocona -O2 -pipe -DHAVE_OPENSSL -Wall -c mod_rewrite.c
In function 'open',
    inlined from 'rewrite_subst_maps_fifo' at mod_rewrite.c:907,
    inlined from 'rewrite_subst_maps' at mod_rewrite.c:836,
    inlined from 'rewrite_subst' at mod_rewrite.c:736:
/usr/include/bits/fcntl2.h:51: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT in second argument needs 3 arguments
make[1]: *** [mod_rewrite.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-ftp/proftpd-1.3.2_rc2-r2/work/proftpd-1.3.2rc2/modules'
make: *** [modules] Error 2
 * 
 * ERROR: net-ftp/proftpd-1.3.2_rc2-r2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2988:  Called die

Ok to run this here or should I open a new bug?
Comment 11 Bernard Cafarelli gentoo-dev 2009-02-18 10:41:52 UTC
As for this bugreport, 1.3.2-r1 is in portage and allows multiple SQL backends. Upstream bug 3115 was fixed in 1.3.2_rc3, so it's also included. So it looks like all improvements from here are included, thanks!

As for your compilation failure, please try with 1.3.2 and indeed open a new bug if you still have the problem