Your message dated Sun, 20 Aug 2023 09:51:41 +0000
with message-id <[email protected]>
and subject line Bug#1043586: fixed in dnstwist 0~20230509-2
has caused the Debian Bug report #1043586,
regarding dnstwist: Failing autopkgtest with python3-selenium 4.11.2+dfsg-1
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1043586: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1043586
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: dnstwist
Version: 0~20230509-1
Severity: important
Dear Maintainer,
the autopkgtest of dnstwist is failing with the most recent version of
python3-selenium.
This is due a internal change in Selenium upstream since version 4.11.0.
Upstream is using a method/component called Selenium Manager since then
and as we can't ship this due it's binary form calling webdriver.Chrome()
needs to be extended about the information which driver needs to be used.
Please see attached patch that will fix the autopkgtest so it can bee
succeeding as before. Feel free to modify the patch to your needs or
requirements.
Note: The attached patch is modifing the source of dnstwist, you
probably need to check my adjustments that makes the autopkgtest working
again as changing the source has a deep impact on the usage of this package.
Regards
Carsten
-- System Information:
Debian Release: trixie/sid
APT prefers testing
APT policy: (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 6.3.0-1-amd64 (SMP w/20 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
>From f4ebc3b8f71ef516efd5f56144b5fe8fb1ef7292 Mon Sep 17 00:00:00 2001
From: Carsten Schoenert <[email protected]>
Date: Sun, 13 Aug 2023 12:21:37 +0200
Subject: [PATCH] Add Set-driver-binary-manually-to-chromedriver.patch
This modification is required to make dnstwist function together with
python3-selenium 4.11.2 onwards due a internal change in the upstream
Python library of Selenium.
---
...iver-binary-manually-to-chromedriver.patch | 42 +++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 43 insertions(+)
create mode 100644
debian/patches/Set-driver-binary-manually-to-chromedriver.patch
diff --git a/debian/patches/Set-driver-binary-manually-to-chromedriver.patch
b/debian/patches/Set-driver-binary-manually-to-chromedriver.patch
new file mode 100644
index 0000000..343562c
--- /dev/null
+++ b/debian/patches/Set-driver-binary-manually-to-chromedriver.patch
@@ -0,0 +1,42 @@
+From: Carsten Schoenert <[email protected]>
+Date: Sun, 13 Aug 2023 11:48:22 +0200
+Subject: Set driver binary manually to chromedriver
+
+The Selenium upstream project is using a method/component called
+Selenium Manager since version 4.11.0+.
+This specific part is looking out which driver can be used, as this is
+shipped currently in a binary form only it's not included in
+python3-selenium. The only usable driver in Debian is chromedriver so we
+can adjust the usage of the Selenium stuff to use the binary
+/usr/bin/chromedriver.
+
+Forwared: Not-Needed
+---
+ dnstwist.py | 9 ++++++++-
+ 1 file changed, 8 insertions(+), 1 deletion(-)
+
+diff --git a/dnstwist.py b/dnstwist.py
+index 702e0ad..03b665e 100755
+--- a/dnstwist.py
++++ b/dnstwist.py
+@@ -367,12 +367,19 @@ class HeadlessBrowser():
+ )
+
+ def __init__(self, useragent=None):
++ # Upstream relies on the Selenium Manager to find the correct
++ # webdriver which isn't provided by package python3-selenium.
++ # Instead dropping the automatic detection and set the driver
hard
++ # to chromedriver and give that option to Chrome()
initialization.
++ from selenium.webdriver.chrome.service import Service as
ChromeService
++ service = ChromeService(executable_path="/usr/bin/chromedriver")
++
+ chrome_options = webdriver.ChromeOptions()
+ for opt in self.WEBDRIVER_ARGUMENTS:
+ chrome_options.add_argument(opt)
+ chrome_options.add_experimental_option('excludeSwitches',
['enable-automation'])
+
chrome_options.add_experimental_option('useAutomationExtension', False)
+- self.driver = webdriver.Chrome(options=chrome_options)
++ self.driver = webdriver.Chrome(options=chrome_options,
service=service)
+ self.driver.set_page_load_timeout(self.WEBDRIVER_TIMEOUT)
+ self.driver.execute_cdp_cmd('Network.setUserAgentOverride',
{'userAgent':
+ useragent or self.driver.execute_script('return
navigator.userAgent').replace('Headless', '')
diff --git a/debian/patches/series b/debian/patches/series
index e7c402f..4ba2989 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
patch-out-embedded-jquery-cdn.patch
issue194.patch
+Set-driver-binary-manually-to-chromedriver.patch
--
2.40.1
--- End Message ---
--- Begin Message ---
Source: dnstwist
Source-Version: 0~20230509-2
Done: Peter Wienemann <[email protected]>
We believe that the bug you reported is fixed in the latest version of
dnstwist, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Peter Wienemann <[email protected]> (supplier of updated dnstwist package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Sat, 19 Aug 2023 22:00:18 +0200
Source: dnstwist
Architecture: source
Version: 0~20230509-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Security Tools <[email protected]>
Changed-By: Peter Wienemann <[email protected]>
Closes: 1043586
Changes:
dnstwist (0~20230509-2) unstable; urgency=medium
.
[ Peter Wienemann ]
* d/t/testdebiandomain:
- Consider all DNS entries in analysis
- Stop checking number of different genuine DNS records
* Fix typo and perform cosmetic change for chromedriver patch
.
[ Carsten Schoenert ]
* Add patch to set selenium driver binary manually to chromedriver
(Closes: #1043586)
Checksums-Sha1:
3008db21c0aa6819e75a93c6c55d0fe422a6e4e4 2344 dnstwist_0~20230509-2.dsc
30dd911f2c75fa9fa3568fcd075e8af97d453993 7108
dnstwist_0~20230509-2.debian.tar.xz
165cfb87595a24edab2984ac8f07888d9868603c 6791
dnstwist_0~20230509-2_amd64.buildinfo
Checksums-Sha256:
887e975ea29dc9270057bec7206371bf3759f80e61343b7cc90fe9e8221175a6 2344
dnstwist_0~20230509-2.dsc
56c4fc753e0b989db66aa87d1a216c4906b6d0b6bdaec43eee81ebc58f98c456 7108
dnstwist_0~20230509-2.debian.tar.xz
da675aca34e2266cffbc995e5304aeb833d4c3ccfccba52b87f4dec5e5ca0a5a 6791
dnstwist_0~20230509-2_amd64.buildinfo
Files:
b330bfcfa563100a45856962eb02a157 2344 net optional dnstwist_0~20230509-2.dsc
ba5daac90ee1573061a2cd7bcf70d41d 7108 net optional
dnstwist_0~20230509-2.debian.tar.xz
37280a7c48c0778b74f836b8a3a0e676 6791 net optional
dnstwist_0~20230509-2_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQKTBAEBCgB9FiEEBrYs08CqJ6RHEajlAuXO5wyFLHsFAmTh1QFfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDA2
QjYyQ0QzQzBBQTI3QTQ0NzExQThFNTAyRTVDRUU3MEM4NTJDN0IACgkQAuXO5wyF
LHvjJQ/+IDrDeiUuQfmnXiVCeABKqqCaGZAoh4gzm0btJ8vC6WZrlMvEAzAP3oZ1
Ejiy67iuyorEXsJ4EQ+nPkt1aa4beOBnW5Bocm2YgU18ocXh9542ad82a4sNj4Uh
IKZ6DoKeW2qg/j9wOgXWB7pSXgnKa0KQ1yQaCjs8K0q8YwLPBCNWijJTV8owJ5r7
oOOMLHqa5DfDkkx5liqSXSJz4pgEXxU0bR4EouF9AwPCPCwopzWOb3Dq/Ss+f7iU
vcOoBDARLX2dW1VTjIqPVvub3HK4uVCqBWyBC1we+WbCuoymRBIzv2bcEd/9RppB
+MEzOKlnbq5hxevlrutR/wbch+cwSv7ISQqlt9iCsMG9cXUKOikRqwFcvZ9CpKSQ
QCrXiAhy+Iw5UlhG8piFZ8ZUH+/6P1fo1+0Uqus3VqlGwV8GUSxJS7YZM6CxoRzM
Jf15VLRsGk67DecrU2nWwqlKLFIBIPIWMIS3bJTJJltmi+1csY7zC2p0zpOVLmvr
UfVR1jfBcytB2vS5vxd3/2J3kbXRxayItHOc7cZvo4HzrQe9CG86usVp0XPT8y+F
BOgUpWjMwz2ES5xX+0Plc4HXS9wa5IvC+VPNESPQ7JpL6jqyXtgCzkSa8QOAnAg+
AHgDCunsuTM0lAJar/zOd7p64Je78JHccLKSGgxCXnTjZXQj89M=
=rXGN
-----END PGP SIGNATURE-----
--- End Message ---