Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 547234 - =net-proxy/3proxy-0.7.1.2 version bump
Summary: =net-proxy/3proxy-0.7.1.2 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Alex Efros
URL: http://3proxy.ru/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-20 23:41 UTC by Yuri Tsimbaloff
Modified: 2016-03-24 09:08 UTC (History)
1 user (show)

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


Attachments
3proxy-0.7.1.2.ebuild (3proxy-0.7.1.2.ebuild,531 bytes, application/x-extension-ebuild)
2015-04-20 23:41 UTC, Yuri Tsimbaloff
Details
fixed hardcoded CFLAGS, fixed hardcoded installation into a /usr/local (3proxy-0.7.1.2-gentoo.patch,1.50 KB, patch)
2015-04-20 23:43 UTC, Yuri Tsimbaloff
Details | Diff
3proxy-0.7.1.2.ebuild (3proxy-0.7.1.2.ebuild,865 bytes, text/plain)
2016-03-23 04:58 UTC, Alex Efros
Details
3proxy-0.7.1.2.ebuild (3proxy-0.7.1.2.ebuild,808 bytes, text/plain)
2016-03-23 06:03 UTC, Alex Efros
Details
3proxy-0.7.1.4.ebuild (3proxy-0.7.1.4.ebuild,817 bytes, text/plain)
2016-03-23 06:05 UTC, Alex Efros
Details
3proxy-0.8.6.ebuild (3proxy-0.8.6.ebuild,806 bytes, text/plain)
2016-03-23 06:07 UTC, Alex Efros
Details
files/3proxy-0.8.6-gentoo.patch (3proxy-0.8.6-gentoo.patch,1.48 KB, patch)
2016-03-23 06:08 UTC, Alex Efros
Details | Diff
3proxy-0.8.6-gentoo.patch.gz (3proxy-0.8.6-gentoo.patch.gz,742 bytes, application/gzip)
2016-03-24 03:38 UTC, Alex Efros
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Tsimbaloff 2015-04-20 23:41:40 UTC
Created attachment 401710 [details]
3proxy-0.7.1.2.ebuild

Ebuild for new stable version (15 feb 2015).
Comment 1 Yuri Tsimbaloff 2015-04-20 23:43:14 UTC
Created attachment 401712 [details, diff]
fixed hardcoded CFLAGS, fixed hardcoded installation into a /usr/local
Comment 3 Yuri Tsimbaloff 2015-04-28 23:13:34 UTC
I wish co-maintain this package.
Comment 4 Ian Delaney (RETIRED) gentoo-dev 2015-05-03 01:46:46 UTC
You are welcome to  maintain this package as proxy however currently

1. Patch 3proxy-0.7.1.2-gentoo.patch appears to be lacking to line that execute the diff cmd as a line 1. Either way the patch didn't take. .
2. The ebuild submitted in its current form simply lacks the phases src_compile and src_install present in the prior ebuilds.

Because the patch doesn't take I cannot even attempt a build test.
Comment 5 Yuri Tsimbaloff 2015-05-05 09:54:25 UTC
(In reply to Ian Delaney from comment #4)
> You are welcome to  maintain this package as proxy however currently
> 
> 1. Patch 3proxy-0.7.1.2-gentoo.patch appears to be lacking to line that
> execute the diff cmd as a line 1. Either way the patch didn't take. .
> 2. The ebuild submitted in its current form simply lacks the phases
> src_compile and src_install present in the prior ebuilds.
> 
> Because the patch doesn't take I cannot even attempt a build test.

But when I emerge 3proxy from local overlay with this path, it seems that the patch works...
Comment 6 Yuri Tsimbaloff 2015-05-05 11:00:45 UTC
(In reply to Ian Delaney from comment #4)
> You are welcome to  maintain this package as proxy however currently
> 
> 1. Patch 3proxy-0.7.1.2-gentoo.patch appears to be lacking to line that
> execute the diff cmd as a line 1. Either way the patch didn't take. .
> 2. The ebuild submitted in its current form simply lacks the phases
> src_compile and src_install present in the prior ebuilds.
> 
> Because the patch doesn't take I cannot even attempt a build test.

I have done the following steps:
1) download and unpack tarball with sources into ~/3proxy
2) cd 3proxy
3) cp Makefile.Linux Makefile.Linux.orig
4) nano Makefile.Linux
5) diff -Nru Makefile.Linux.orig Makefile.Linux >> 3proxy-0.7.1.2-gentoo.patch
6) cd src
7) cp stringtable.c stringtable.c.orig
8) nano stringtable.c
9) diff -Nru stringtable.c.orig stringtable.c >> ../3proxy-0.7.1.2-gentoo.patch
10) cp ../3proxy-0.7.1.2-gentoo.patch <my localoverlay>/net-proxy/3proxy/files/

What's wrong?
Comment 7 Ian Delaney (RETIRED) gentoo-dev 2015-05-10 08:45:41 UTC
This patch can substitute with 2 sed statements and achieve the same end.  The Makefile.Linux has line endings that clash with path / epatch and its options.  This has been confirmed by at least one other dev. I think the file Makefile.unix used in previous versions might be fine.

src_prepare() {
        sed -e 's:-g -O2 -c:-g -c:' -e 's:-Wall -O2:-Wall:' -e 's/; make ;/; ${MAKE} ;/' \
                -e 's: /usr/local::' -e 's:/share:/usr/share:' \
                -i Makefile.Linux || die
        sed -e 's:/usr/local/etc/:/etc/:' \
                -i src/stringtable.c || die
}

This is in fact lighter weighter than classic patch and has equivalemt functionality. It appears the changes in stringtable.c assist in a dafeult compile install working fine without the phases. I will attempt to confirm that more before I would commit. For now there is this that needs a 'clean up';

>>> Completed installing 3proxy-0.7.1.2 into /mnt/gen2/TmpDir/portage/net-proxy/3proxy-0.7.1.2/image/

 * QA Notice: Pre-stripped files found:
 * /bin/3proxy
 * /bin/countersutil
 * /bin/dighosts
 * /bin/ftppr
 * /bin/mycrypt
 * /bin/pop3p
 * /bin/proxy
 * /bin/socks
 * /bin/tcppm
 * /bin/udppm
ecompressdir: bzip2 -9 /usr/share/man

This I believe can be made fixed by setting the apt var. The 3proxy-0.6.1.ebuild
 suffers a different * QA Notice:
Comment 8 Yixun Lan archtester gentoo-dev 2015-05-14 03:39:48 UTC
(In reply to Ian Delaney from comment #7)
> 
> This I believe can be made fixed by setting the apt var. The
> 3proxy-0.6.1.ebuild
>  suffers a different * QA Notice:

set a apt QA var to ignore this warnings? oh, please NO!

instead, please check why this package try to strip, and disable/fix it.
usually we let portage handle the strip-the-symbols job
Comment 9 Ian Delaney (RETIRED) gentoo-dev 2015-05-20 01:53:24 UTC
I said this can be made fixed by setting the apt var, however I never said it was the optimum solution. Maintainer dlan sets you good advice. 
Normally the use of a patch is preferred however this file you have patched in this package appears to be the exception to the rule. I suggest you remake a path for the ebuild incorporating this sed statement, We can do it ourselves, but the idea here is to allow you to manage it.
Comment 10 Alex Efros 2015-08-01 21:52:25 UTC
Right now this ebuild install binaries into /bin/, which isn't nice.

In case of installing into /usr/bin/ it conflicts with /usr/bin/proxy from net-libs/libproxy package. Current 3proxy ebuilds in portage rename all 3proxy binaries and man pages by adding "3proxy-" prefix (except for 3proxy binary itself) - I suppose this is done to work around this conflict.

In case Yuri Tsimbaloff doesn't want to continue his work on this ebuild then I can try to fix it and continue to support it (I'm using 3proxy, need this version to fix bug in 0.5.3k, so I'll have to support it in my own overlay anyway - if it won't be added to main portage, of course).
Comment 11 Ian Delaney (RETIRED) gentoo-dev 2015-08-03 03:36:44 UTC
(In reply to Alex Efros from comment #10)
> Right now this ebuild install binaries into /bin/, which isn't nice.
> 
> In case Yuri Tsimbaloff doesn't want to continue his work on this ebuild
> then I can try to fix it and continue to support it (I'm using 3proxy, need
> this version to fix bug in 0.5.3k, so I'll have to support it in my own
> overlay anyway - if it won't be added to main portage, of course).

At this point, the bug has no designated proxy maintainer. You both qualify, and Yuri Tsimbaloff declared his interest in Comment 3. You offer is equally valid. Yuri Tsimbaloff has been offered some advice / feedback then silence for 3 months. We here are not to know of the cause since so many are possible.

You (plural) are welcome to contribute either independently as co-contributors. The concern now is that the first has stopped supplying input.  So feel free to pick up from where Yuri left off or restart.  What we don't yet have is a working ebuild.

Tip.  Preparing ebuilds in a personal overlay is prone to not working when dropped into a system like mine that relies on the actual portage tree.  Work your ebuild in your overlay then drop it into your proper portage tree and repeat run tests. Then make patches for presentation here. Drawing from a customised repo and dropping them into SRC_URI may not always work. Have seen this a few times.

Any patches you present need work as presented so that any dev can patch without replying "your patch didn't work", then stalling any progress.
Comment 12 Sam Jorna (wraeth) (RETIRED) gentoo-dev 2016-03-22 10:48:02 UTC
Alex, do you wish to pursue maintaining this package through the Proxy Maintainers[0] project? If so, please attach an ebuild to this bug and we can organise getting it committed.

For reference, it appears that Yuri is unable to do so based on the closure of the PR mentioned in comment 2.

0: https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers
Comment 13 Alex Efros 2016-03-23 04:58:08 UTC
Created attachment 428790 [details]
3proxy-0.7.1.2.ebuild

Also available at https://github.com/gentoo/gentoo/pull/1118
Comment 14 Alex Efros 2016-03-23 06:03:18 UTC
Created attachment 428794 [details]
3proxy-0.7.1.2.ebuild

cleanup for EAPI 6
Comment 15 Alex Efros 2016-03-23 06:05:43 UTC
Created attachment 428796 [details]
3proxy-0.7.1.4.ebuild

bump to latest 0.7.x (not supported anymore except for security fixes)
Comment 16 Alex Efros 2016-03-23 06:07:22 UTC
Created attachment 428798 [details]
3proxy-0.8.6.ebuild

bump to latest stable (0.8.x)
this ebuild require own patch file, to be attached next
Comment 17 Alex Efros 2016-03-23 06:08:07 UTC
Created attachment 428800 [details, diff]
files/3proxy-0.8.6-gentoo.patch
Comment 18 Patrice Clement (RETIRED) gentoo-dev 2016-03-23 18:36:11 UTC
commit 7a1d01d00d0cb307935c30e3f38ea47b23acc9fc (HEAD -> master)
Author:     Patrice Clement <monsieurp@gentoo.org>
AuthorDate: Wed Mar 23 18:20:39 2016 +0000
Commit:     Patrice Clement <monsieurp@gentoo.org>
CommitDate: Wed Mar 23 18:21:28 2016 +0000

net-proxy/3proxy: Grant maintainership to Alex Efros <powerman@powerman.name>.

This commit merges a string of commits pulled from
gentoo/gentoo#1118 and closes bug 547234.

Gentoo-Bug: https://bugs.gentoo.org/547234
Package-Manager: portage-2.2.26
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>

net-proxy/3proxy/metadata.xml | 27 +++++++++++++++++++++------
1 file changed, 21 insertions(+), 6 deletions(-)
Comment 19 Alex Efros 2016-03-23 19:56:05 UTC
> net-proxy/3proxy: Grant maintainership to Alex Efros <powerman@powerman.name>.
> Assignee: maintainer-needed@gentoo.orgpowerman-asdf@yandex.ru

I'm using different emails in bugzilla and github - hope this won't be an issue.
Comment 20 Sam Jorna (wraeth) (RETIRED) gentoo-dev 2016-03-23 22:30:48 UTC
(In reply to Alex Efros from comment #19)
> > net-proxy/3proxy: Grant maintainership to Alex Efros <powerman@powerman.name>.
> > Assignee: maintainer-needed@gentoo.orgpowerman-asdf@yandex.ru
> 
> I'm using different emails in bugzilla and github - hope this won't be an
> issue.

No, this won't be an issue so long as your Bugzilla address at least remains monitored/in-use.

If you need to change address, you will need to have the metadata of any packages you maintain updated with the address to match your Bugzilla account (for bug assignment).

Thanks for the contribution, and welcome to the Proxy Maintainers project!
Comment 21 Patrice Clement (RETIRED) gentoo-dev 2016-03-23 23:52:19 UTC
This has been fixed. Thanks for the heads up.
Comment 22 Alex Efros 2016-03-24 02:16:59 UTC
Well, it turns out while copying patch files from my PR to portage tree \r was stripped from line endings. Personally I hate \r too, but it's used in 3proxy sources which we needs to patch. So, how this should be handled? Is I should reopen this bug, open new one, and which options I've to fix it (rewrite patch using sed? change patch file itself on-the-fly by adding \r? use .patch.gz to keep \r from being stripped? add some magic flag to ebuild to avoid stripping \r from patches?)?

 * Applying 3proxy-0.8.6-gentoo.patch ...

 * Failed Patch: 3proxy-0.8.6-gentoo.patch !
 *  ( /usr/portage/net-proxy/3proxy/files/3proxy-0.8.6-gentoo.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/net-proxy/3proxy-0.8.6/temp/3proxy-0.8.6-gentoo.patch.out

# cat /var/tmp/portage/net-proxy/3proxy-0.8.6/temp/3proxy-0.8.6-gentoo.patch.out
...
checking file Makefile.Linux
Hunk #1 FAILED at 10 (different line endings).
Hunk #2 FAILED at 39 (different line endings).
2 out of 2 hunks FAILED
checking file src/stringtable.c
Hunk #1 FAILED at 38 (different line endings).
1 out of 1 hunk FAILED
Comment 23 Sam Jorna (wraeth) (RETIRED) gentoo-dev 2016-03-24 03:11:42 UTC
Since it's a problem with the fix of this bug, re-opening this is fine.

Can you attach a gzipped version of the working patch so I can have a look?

Thanks.
Comment 24 Alex Efros 2016-03-24 03:37:22 UTC
(In reply to Sam Jorna (wraeth) from comment #23)
> Can you attach a gzipped version of the working patch so I can have a look?

I've just tried to download patch attached to this bug
https://bugs.gentoo.org/attachment.cgi?id=428800 and it is correct (1512 bytes, md5sum a4509afb9613aa07c53241a95bee6426). Same file was in my PR. So I don't really understand why you need gzipped version, but I'll attach it now, just in case.
Comment 25 Alex Efros 2016-03-24 03:38:01 UTC
Created attachment 428884 [details]
3proxy-0.8.6-gentoo.patch.gz
Comment 26 Sam Jorna (wraeth) (RETIRED) gentoo-dev 2016-03-24 04:20:31 UTC
I'm not sure what caused the line endings to be flipped in the first place, but
this should now be resolved (I tested the patch applied before pushing).


commit 1cf47799c54ca2484060751d56d673da928f3831
Author: Sam Jorna <wraeth@gentoo.org>
Date:   Thu Mar 24 15:15:02 2016 +1100

    net-proxy/3proxy: add fixed patch, bug 547234

    When originally added, line endings in patch somehow got modified.
Comment 27 Alex Efros 2016-03-24 08:29:34 UTC
(In reply to Sam Jorna (wraeth) from comment #26)
> I'm not sure what caused the line endings to be flipped in the first place,
> but this should now be resolved (I tested the patch applied before pushing).

It is resolved - for 0.8.6. But 3proxy-0.7.1.2-gentoo.patch also needs to be fixed in same way. Attached to this bug version https://bugs.gentoo.org/attachment.cgi?id=401712 is correct (1536 bytes) while one currently in portage is not (1500 bytes).
Comment 28 Sam Jorna (wraeth) (RETIRED) gentoo-dev 2016-03-24 09:08:58 UTC
Fixed the remaining patch, also verified that all 3proxy ebuilds now complete
prepare stage successfully.


commit 1493b3ed1027bf1f52b28f87ff0e2c4947cd6a95
Author: Sam Jorna <wraeth@gentoo.org>
Date:   Thu Mar 24 20:06:22 2016 +1100

    net-proxy/3proxy: fix broken patch, #547234
    
    Gentoo-bug: 547234
    Package-Manager: portage-2.2.28
    Signed-off-by: Sam Jorna <wraeth@gentoo.org>