Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #8578
| Path | csiph.com!news.mixmin.net!aioe.org!gothmog.csi.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Fiedler Roman <Roman.Fiedler@ait.ac.at> |
| Newsgroups | linux.debian.maint.python, linux.debian.bugs.dist |
| Subject | AW: Bug#813096: ITP: logdata-anomaly-miner -- lightweight tool for log checking, log analysis |
| Date | Thu, 09 Jun 2016 11:50:02 +0200 |
| Message-ID | <rI4L8-4zR-39@gated-at.bofh.it> (permalink) |
| References | <rI2Jk-3h2-21@gated-at.bofh.it> <rI3m2-3Lg-19@gated-at.bofh.it> |
| X-Original-To | Gianfranco Costamagna <locutusofborg@debian.org>, "debian-python@lists.debian.org" <debian-python@lists.debian.org> |
| X-Mailbox-Line | From debian-python-request@lists.debian.org Thu Jun 9 09:43:23 2016 |
| Old-Return-Path | <Roman.Fiedler@ait.ac.at> |
| X-Amavis-Spam-Status | No, score=0.794 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, MURPHY_DRUGS_REL8=0.02, NEXTPART=2.5, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-1.426, THREADTOPIC=2, XMSATT=2] autolearn=no autolearn_force=no |
| X-Policyd-Weight | using cached result; rate:hard: -6.1 |
| Thread-Topic | Bug#813096: ITP: logdata-anomaly-miner -- lightweight tool for log checking, log analysis |
| Thread-Index | AdHCIR616MtzY/d2TNyXumqyA6TO7P//6TeA///bD0A= |
| Accept-Language | en-US, de-AT |
| Content-Language | de-DE |
| X-Ms-Has-Attach | yes |
| X-Originating-IP | [172.30.249.121] |
| Content-Type | multipart/signed; micalg=SHA1; protocol="application/x-pkcs7-signature"; boundary="----=_NextPart_000_0079_01D1C244.0C9E2330" |
| MIME-Version | 1.0 |
| X-Proofpoint-Virus-Version | vendor=fsecure engine=2.50.10432:,, definitions=2016-06-09_03:,, signatures=0 |
| X-Mailing-List | <debian-python@lists.debian.org> archive/latest/13909 |
| List-ID | <debian-python.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-python/> |
| List-Archive | https://lists.debian.org/msgid-search/2ECE9D9EEF1F524185270138AE23265954F8CD82@S0MSMAIL112.arc.local |
| Approved | robomod@news.nic.it |
| Lines | 248 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Cc | "813096@bugs.debian.org" <813096@bugs.debian.org> |
| X-Original-Date | Thu, 9 Jun 2016 09:42:49 +0000 |
| X-Original-Message-ID | <2ECE9D9EEF1F524185270138AE23265954F8CD82@S0MSMAIL112.arc.local> |
| X-Original-References | <2ECE9D9EEF1F524185270138AE23265954F8CB97@S0MSMAIL112.arc.local> <574888305.106524.1465459875508.JavaMail.yahoo@mail.yahoo.com> |
| Xref | csiph.com linux.debian.maint.python:8578 linux.debian.bugs.dist:744767 |
Cross-posted to 2 groups.
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
> Von: Gianfranco Costamagna [mailto:locutusofborg@debian.org] > Hi, > > (answering where I can!) >> Moving the code to "/usr/lib/python2.7/dist-packages/aminer" in fact allows >> dh_python2 to extract the version information: >> >> Depends: python:any (<< 2.8), python:any (>= 2.7.5-5~), python-tz, >> init-system-helpers (>= 1.18~) >> >> (Remark: Is there any reason to restrict the versions to >=2.7.5? The tools >> should have compatibility with >=2.6 and I would expect the "Depends" >> section >> to somehow reflect that reality. Is DEBPYTHON_SUPPORTED and >> DEBPYTHON_DEFAULT intended to be used to fix that?) > > that stuff is built for unstable/testing, so the variables are filled > with the current python situation > (2.6 is only on old-stable, and Stretch has 2.7.11 already). > > Probably if you try to build it with a jessie chroot, you get different values, and this is correct. > (you can't in general install deb built against stretch into wheezy/jessie, without > breaking stuff, this is why some dependencies are not too relaxed, to avoid people > doing that, but instead upgrading the minimal set of packages to make sure > things will work after the apt-pinning). > > I don't foresee any issue here, because even in case of a backport, the > package will need to be rebuilt on top of that. OK, so I will not attempt to fiddle with that and stick to the stricter versions. > >But doing the move, lintian will not like the produced package any more: > > > >E: logdata-anomaly-miner: python-script-but-no-python-dep usr/lib/aminer/AMiner > > I can't say, I don't see the package installing stuff in usr/lib/python* on > mentors Maybe the hints from Piotr Ożarowski's followup mail will fix that, using his hints. > >The rationale behind not putting aminer into dist-packages (and removing > >dist-packages from python-path) was: >> [Snip] > > >b) prepare against possible future risks due to accidental loading (call to > >__init__) of other packages residing in dist-packages, that may give rise to > >privilege escalation (like the GNU-TLS CVE from this/last week) > > mmm you want to avoid people importing your library? > > ok Not directly avoid, but make them think more about it before adding. I also remember having issues with some svg-python library, that starts to misbehave as soon as other packages are installed because of "try: import xxx; ..." blocks. Just want to reduce the risks. > >Of course, it should be possible to move the code to > >/usr/lib/python2.7/dist-packages/aminer and perform the "link" operation, > but > >this could make it more "sexy" for an admin to include whole dist-packages > in > >python path again. > >In that light, should the code be moved? > > leaving to other folks the answer > >Apart from that, this will also make it harder to use the same codebase for > >both python2.6/python2.7, but that should be fixable by providing more > >patches. > > you can't use python2.6 on Stretch, so no issue here. Understood, dropping the 2.6/2.7 compatibility stuff > >> >-#!/usr/bin/python2 -BEsSt > >> >+#!/usr/bin/python2.7 -BEsSt > >> > >> this should be also handled by dh_python2 AFAIK > > > >Even with move dh_python2 does not touch the files. The only difference is, > >that lintian does not like the files any more. > > can you please double check with the documentation? > https://wiki.debian.org/Python/LibraryStyleGuide The "python2" selection in the binaries was effect of reading it, but perhaps I got something wrong: Intro: "It (the LibraryStyleGuide) is not intended to supplant the Debian Python Policy and in fact, if you have not read that document, stop now and go read it" And from " Debian Python Policy" https://www.debian.org/doc/packaging-manuals/python-policy/ch-python.html#s-interpreter_name "Python scripts that require the default Python 2 version should specify python2 as the interpreter name." So should be OK in my opinion. > [Snip]
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Bug#813096: ITP: logdata-anomaly-miner -- lightweight tool for log checking, log analysis Fiedler Roman <Roman.Fiedler@ait.ac.at> - 2016-06-09 09:50 +0200
Re: Bug#813096: ITP: logdata-anomaly-miner -- lightweight tool for log checking, log analysis Gianfranco Costamagna <locutusofborg@debian.org> - 2016-06-09 10:40 +0200
AW: Bug#813096: ITP: logdata-anomaly-miner -- lightweight tool for log checking, log analysis Fiedler Roman <Roman.Fiedler@ait.ac.at> - 2016-06-09 11:50 +0200
Re: Bug#813096: ITP: logdata-anomaly-miner -- lightweight tool for log checking, log analysis Piotr Ożarowski <piotr@debian.org> - 2016-06-09 10:40 +0200
AW: Bug#813096: ITP: logdata-anomaly-miner -- lightweight tool for log checking, log analysis Fiedler Roman <Roman.Fiedler@ait.ac.at> - 2016-06-09 13:30 +0200
Re: Bug#813096: ITP: logdata-anomaly-miner -- lightweight tool for log checking, log analysis Piotr Ożarowski <piotr@debian.org> - 2016-06-09 14:40 +0200
csiph-web