Skip to contentSkip to conversation

clamav: freshclam need bind to run

PATCH Superseded Armin Kuster 2 participants 8 messages Apr 6, 2019 – Apr 8, 2019

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clamav: freshclam need bind to run

Add it to the rdepends for that package

---
 recipes-security/clamav/clamav_0.99.4.bb | 2 ++
 1 file changed, 2 insertions(+)
recipes-security/clamav/clamav_0.99.4.bb +2 -0
index 6219d9e..dbe903f 100644
@@ -152,3 +152,5 @@ RCONFLICTS_${PN} += "${PN}-systemd"
 SYSTEMD_SERVICE_${PN} = "${BPN}.service"
 
 RDEPENDS_${PN} += "openssl ncurses-libncurses libbz2 ncurses-libtinfo clamav-freshclam clamav-libclamav"
+
+RDEPENDS_freshclam = "bind"
Signature · 1 line
2.7.4
#1 lore raw
Quoted 12 lines · Armin Kuster

Add it to the rdepends for that package

---
 recipes-security/clamav/clamav_0.99.4.bb | 2 ++
 1 file changed, 2 insertions(+)
recipes-security/clamav/clamav_0.99.4.bb +0 -0
index 6219d9e..dbe903f 100644

recipes-security/clamav/clamav_0.99.4.bb RCONFLICTS_${PN} += "${PN}-systemd" · line 156

Quoted 5 lines
recipes-security/clamav/clamav_0.99.4.bb +2 -0
@@ -152,3 +152,5 @@ RCONFLICTS_${PN} += "${PN}-systemd"
 SYSTEMD_SERVICE_${PN} = "${BPN}.service"
 
 RDEPENDS_${PN} += "openssl ncurses-libncurses libbz2 ncurses-libtinfo clamav-freshclam clamav-libclamav"
+
+RDEPENDS_freshclam = "bind"

freshclam depending on a DNS server looks very wrong.

What is the actual problem?

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed
author
#2 lore raw
Quoted 15 lines · Adrian Bunk
Quoted 14 lines · Armin Kuster

Add it to the rdepends for that package

---
 recipes-security/clamav/clamav_0.99.4.bb | 2 ++
 1 file changed, 2 insertions(+)
recipes-security/clamav/clamav_0.99.4.bb +0 -0
index 6219d9e..dbe903f 100644
@@ -152,3 +152,5 @@ RCONFLICTS_${PN} += "${PN}-systemd"
 SYSTEMD_SERVICE_${PN} = "${BPN}.service"
 
Quoted 4 lines

recipes-security/clamav/clamav_0.99.4.bb RCONFLICTS_${PN} += "${PN}-systemd" · line 156

Quoted 3 lines
recipes-security/clamav/clamav_0.99.4.bb +2 -0
 RDEPENDS_${PN} += "openssl ncurses-libncurses libbz2 ncurses-libtinfo clamav-freshclam clamav-libclamav"
+
+RDEPENDS_freshclam = "bind"

freshclam depending on a DNS server looks very wrong.

got talk to clamav folks then.

Quoted 2 lines

What is the actual problem?

ClamAV update process started at Sat Apr 6 14:59:25 2019
WARNING: Can't query current.cvd.clamav.net
WARNING: Invalid DNS reply. Falling back to HTTP mode.
ERROR: Can't get information about database.clamav.net: Temporary failure in name resolution
ERROR: Can't download main.cvd from database.clamav.net
Giving up on database.clamav.net...

because

Use DNS to verify virus database version. Freshclam uses DNS TXT records to verify database and software versions

therefor I am including bind.

- Armin

Quoted 3 lines

cu
Adrian

#3 lore raw
Quoted 34 lines · On Sun, Apr 07, 2019 at 01:38:38AM +0530, akuster808 wrote:
Quoted 15 lines · Adrian Bunk
Quoted 14 lines · Armin Kuster

Add it to the rdepends for that package

---
 recipes-security/clamav/clamav_0.99.4.bb | 2 ++
 1 file changed, 2 insertions(+)
recipes-security/clamav/clamav_0.99.4.bb +0 -0
index 6219d9e..dbe903f 100644
@@ -152,3 +152,5 @@ RCONFLICTS_${PN} += "${PN}-systemd"
 SYSTEMD_SERVICE_${PN} = "${BPN}.service"
 
Quoted 4 lines

recipes-security/clamav/clamav_0.99.4.bb RCONFLICTS_${PN} += "${PN}-systemd" · line 156

Quoted 3 lines
recipes-security/clamav/clamav_0.99.4.bb +2 -0
 RDEPENDS_${PN} += "openssl ncurses-libncurses libbz2 ncurses-libtinfo clamav-freshclam clamav-libclamav"
+
+RDEPENDS_freshclam = "bind"

freshclam depending on a DNS server looks very wrong.

got talk to clamav folks then.

Quoted 2 lines

What is the actual problem?

ClamAV update process started at Sat Apr 6 14:59:25 2019
WARNING: Can't query current.cvd.clamav.net
WARNING: Invalid DNS reply. Falling back to HTTP mode.
ERROR: Can't get information about database.clamav.net: Temporary failure in name resolution
ERROR: Can't download main.cvd from database.clamav.net
Giving up on database.clamav.net...

Quoted 6 lines

because

Use DNS to verify virus database version. Freshclam uses DNS TXT records to verify database and software versions

therefor I am including bind.

freshclam needing DNS information makes sense, which means it must be configured how to access a DNS server.

On the local machine you need only DNS client funtionality, just like every user needs for a web browser.

Forcing installation of a DNS server is not the correct solution when the actual problem is just a configuration issue on the machine where you were trying it.

Quoted 1 line

- Armin

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed
author
#4 lore raw
Quoted 41 lines · Adrian Bunk
Quoted 31 lines · On Sun, Apr 07, 2019 at 01:38:38AM +0530, akuster808 wrote:
Quoted 15 lines · Adrian Bunk
Quoted 14 lines · Armin Kuster

Add it to the rdepends for that package

---
 recipes-security/clamav/clamav_0.99.4.bb | 2 ++
 1 file changed, 2 insertions(+)
recipes-security/clamav/clamav_0.99.4.bb +0 -0
index 6219d9e..dbe903f 100644
@@ -152,3 +152,5 @@ RCONFLICTS_${PN} += "${PN}-systemd"
 SYSTEMD_SERVICE_${PN} = "${BPN}.service"
 
Quoted 4 lines

recipes-security/clamav/clamav_0.99.4.bb RCONFLICTS_${PN} += "${PN}-systemd" · line 156

Quoted 3 lines
recipes-security/clamav/clamav_0.99.4.bb +2 -0
 RDEPENDS_${PN} += "openssl ncurses-libncurses libbz2 ncurses-libtinfo clamav-freshclam clamav-libclamav"
+
+RDEPENDS_freshclam = "bind"

freshclam depending on a DNS server looks very wrong.

got talk to clamav folks then.

Quoted 1 line

What is the actual problem?

ClamAV update process started at Sat Apr 6 14:59:25 2019
WARNING: Can't query current.cvd.clamav.net
WARNING: Invalid DNS reply. Falling back to HTTP mode.
ERROR: Can't get information about database.clamav.net: Temporary failure in name resolution
ERROR: Can't download main.cvd from database.clamav.net
Giving up on database.clamav.net...

Quoted 6 lines

because

Use DNS to verify virus database version. Freshclam uses DNS TXT records to verify database and software versions

therefor I am including bind.

freshclam needing DNS information makes sense, which means it must be configured how to access a DNS server.

Quoted 7 lines

On the local machine you need only DNS client funtionality, just like every user needs for a web browser.

Forcing installation of a DNS server is not the correct solution when the actual problem is just a configuration issue on the machine where you were trying it.

So I can expect a patch to provide such configuration. I would like to see how you would solve this.
Maybe an FAQ we can add to the layer for this package?

- armin

Quoted 4 lines
Quoted 1 line

- Armin

cu
Adrian

#5 lore raw
Quoted 48 lines · On Sun, Apr 07, 2019 at 11:45:18AM +0530, akuster808 wrote:
Quoted 45 lines · Adrian Bunk
Quoted 31 lines · On Sun, Apr 07, 2019 at 01:38:38AM +0530, akuster808 wrote:
Quoted 15 lines · Adrian Bunk
Quoted 14 lines · Armin Kuster

Add it to the rdepends for that package

---
 recipes-security/clamav/clamav_0.99.4.bb | 2 ++
 1 file changed, 2 insertions(+)
recipes-security/clamav/clamav_0.99.4.bb +0 -0
index 6219d9e..dbe903f 100644
@@ -152,3 +152,5 @@ RCONFLICTS_${PN} += "${PN}-systemd"
 SYSTEMD_SERVICE_${PN} = "${BPN}.service"
 
Quoted 4 lines

recipes-security/clamav/clamav_0.99.4.bb RCONFLICTS_${PN} += "${PN}-systemd" · line 156

Quoted 3 lines
recipes-security/clamav/clamav_0.99.4.bb +2 -0
 RDEPENDS_${PN} += "openssl ncurses-libncurses libbz2 ncurses-libtinfo clamav-freshclam clamav-libclamav"
+
+RDEPENDS_freshclam = "bind"

freshclam depending on a DNS server looks very wrong.

got talk to clamav folks then.

Quoted 1 line

What is the actual problem?

ClamAV update process started at Sat Apr 6 14:59:25 2019
WARNING: Can't query current.cvd.clamav.net
WARNING: Invalid DNS reply. Falling back to HTTP mode.
ERROR: Can't get information about database.clamav.net: Temporary failure in name resolution
ERROR: Can't download main.cvd from database.clamav.net
Giving up on database.clamav.net...

Quoted 6 lines

because

Use DNS to verify virus database version. Freshclam uses DNS TXT records to verify database and software versions

therefor I am including bind.

freshclam needing DNS information makes sense, which means it must be configured how to access a DNS server.

On the local machine you need only DNS client funtionality, just like every user needs for a web browser.

Quoted 6 lines
Quoted 3 lines

Forcing installation of a DNS server is not the correct solution when the actual problem is just a configuration issue on the machine where you were trying it.

So I can expect a patch to provide such configuration. I would like to see how you would solve this.

How are you configuring networking on your device?

Quoted 1 line

Maybe an FAQ we can add to the layer for this package?

From the error message you gave it is not obvious that there is any problem that would be specific to this package.

I would guess that DNS configuration is missing or incorrect on your device, and that "ping www.google.com" would also fail with a name resolution error.

Quoted 1 line

- armin

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed
author
#6 lore raw
Quoted 43 lines · Adrian Bunk
Quoted 42 lines · On Sun, Apr 07, 2019 at 11:45:18AM +0530, akuster808 wrote:
Quoted 40 lines · Adrian Bunk
Quoted 30 lines · On Sun, Apr 07, 2019 at 01:38:38AM +0530, akuster808 wrote:
Quoted 15 lines · Adrian Bunk
Quoted 14 lines · Armin Kuster

Add it to the rdepends for that package

---
 recipes-security/clamav/clamav_0.99.4.bb | 2 ++
 1 file changed, 2 insertions(+)
recipes-security/clamav/clamav_0.99.4.bb +0 -0
index 6219d9e..dbe903f 100644
@@ -152,3 +152,5 @@ RCONFLICTS_${PN} += "${PN}-systemd"
 SYSTEMD_SERVICE_${PN} = "${BPN}.service"
 
Quoted 4 lines

recipes-security/clamav/clamav_0.99.4.bb RCONFLICTS_${PN} += "${PN}-systemd" · line 156

Quoted 3 lines
recipes-security/clamav/clamav_0.99.4.bb +2 -0
 RDEPENDS_${PN} += "openssl ncurses-libncurses libbz2 ncurses-libtinfo clamav-freshclam clamav-libclamav"
+
+RDEPENDS_freshclam = "bind"

freshclam depending on a DNS server looks very wrong.

got talk to clamav folks then.

Quoted 1 line

What is the actual problem?

ClamAV update process started at Sat Apr 6 14:59:25 2019
WARNING: Can't query current.cvd.clamav.net
WARNING: Invalid DNS reply. Falling back to HTTP mode.
ERROR: Can't get information about database.clamav.net: Temporary failure in name resolution
ERROR: Can't download main.cvd from database.clamav.net
Giving up on database.clamav.net...

Quoted 6 lines

because

Use DNS to verify virus database version. Freshclam uses DNS TXT records to verify database and software versions

therefor I am including bind.

freshclam needing DNS information makes sense, which means it must be configured how to access a DNS server.

Quoted 8 lines
Quoted 7 lines
Quoted 5 lines

On the local machine you need only DNS client funtionality, just like every user needs for a web browser.
Forcing installation of a DNS server is not the correct solution when the actual problem is just a configuration issue on the machine where you were trying it.

So I can expect a patch to provide such configuration. I would like to see how you would solve this.

How are you configuring networking on your device?

I figured it out.

Quoted 8 lines
Quoted 2 lines

Maybe an FAQ we can add to the layer for this package?

From the error message you gave it is not obvious that there is any problem that would be specific to this package.

I would guess that DNS configuration is missing or incorrect on your device, and that "ping www.google.com" would also fail with a name resolution error.

The runtime test I added creates a /etc/resolve.conf , that allows me to ping to the outside but I missed including the local ip ( 127.)   I am running this two systems to verify this my flurry of changes. One system in at home on real hardware and other in qemu my laptop while I am traveling. With that being said, I can drop the bind requirement and I need to update the runtime test.

I do appreciate the reviews , questions and push back.

Kind regards,
Armin

Quoted 5 lines
Quoted 2 lines

- armin

cu
Adrian

author
#7 lore raw
In reply to Armin Kuster

sent the wrong version. v2 later

Ill deal with it tomorrow after some much need sleep -armin

Quoted 17 lines · Armin Kuster

Add it to the rdepends for that package

---
 recipes-security/clamav/clamav_0.99.4.bb | 2 ++
 1 file changed, 2 insertions(+)
recipes-security/clamav/clamav_0.99.4.bb +2 -0
index 6219d9e..dbe903f 100644
@@ -152,3 +152,5 @@ RCONFLICTS_${PN} += "${PN}-systemd"
 SYSTEMD_SERVICE_${PN} = "${BPN}.service"
 
 RDEPENDS_${PN} += "openssl ncurses-libncurses libbz2 ncurses-libtinfo clamav-freshclam clamav-libclamav"
+
+RDEPENDS_freshclam = "bind"