Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 513616 - net-proxy/ntlmaps - migrate to python-r1 (python-exec)
Summary: net-proxy/ntlmaps - migrate to python-r1 (python-exec)
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at if you want to take care of it
Depends on:
Blocks: python-r1-tracker 522702
  Show dependency tree
Reported: 2014-06-17 23:12 UTC by StalkerNOVA
Modified: 2015-05-19 13:00 UTC (History)
1 user (show)

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

ntlmaps- (ntlmaps-,1.54 KB, patch)
2015-04-01 03:32 UTC, Ian Delaney (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description StalkerNOVA 2014-06-17 23:12:51 UTC
net-proxy/ntlmaps support python < 3

Fist line in /usr/bin/ntlmaps should be changed:
#! /usr/bin/python2.7

Also had problems with line #51 in /usr/lib/ntlmaps/
externalIP = socket.gethostbyname_ex(hostname)[2]

Commented in and added following
externalIP = []

Reproducible: Always
Comment 1 Ian Delaney (RETIRED) gentoo-dev 2015-04-01 03:31:07 UTC
I'm going to add this out of principle.  I found Bug 513616 via Bug 455102 and subsequently spent around 2 hours revising the methods of conversions because it was still OPEN, only to discover
  21 Mar 2015; Justin Lecher <> metadata.xml,
  Bump to new python eclasses

and yes I hadn't update that folder for a while but that isn't the point here.  If this bug had been closed back on 21 Mar 2015 I would never have looked at it and sunk > 2 hours into it. Having done so, I find some elements of the bump that I would query if not challenge outright.

1. It was established form the outset (Dec 2012) that any conversion qualifies as a revbump.  The ebuild should be a ntlmaps-
2. This ebuild utilises python-r1 which is not wrong. I elected to use a python-single-r1 considering it is a py2.7 only.  Both in fact work, but this ambiguity of the eclasses is beginning to cause confusion and unwanted conflict in pursuing conversions.
3. python_domodule lib/*.py would be interchangeable with the form I chose and it seems to me both are correct.
4. ditto python_newscript ntlmaps vs exeinto. In this case the python_newscript represents a progression to the new. Both work.
5. The dodoc I decided was installing stuff unlikely to ever be used. I reduced it to commonly accepted essentials.
6. dohtml I gather is on the way out so I replaced it with the cited option, a forward move.
7. The use of python_foreach_impl is what perplexes me.  
PYTHON_COMPAT=( python2_7 ). I see no use for python_foreach_imp in an ebuild of an old package that is limited to py2.7. Or is this an obligatory entry required in python-r1 ebuilds with which I am yet to become proficiently practiced??
Comment 2 Ian Delaney (RETIRED) gentoo-dev 2015-04-01 03:32:25 UTC
Created attachment 400310 [details, diff]
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2015-04-01 12:01:17 UTC
(In reply to Ian Delaney from comment #2)
> Created attachment 400310 [details, diff] [details, diff]
> ntlmaps-

Seriously, no reason to change this ebuild. It works, it is correct. So better focus on other stuff.
Comment 4 Pacho Ramos gentoo-dev 2015-05-19 13:00:12 UTC
this was migrated