Bug 171414 - app-antivirus/klamav shouldn't update itself and clamav, some utf8 fix
Bug#: 171414 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: kde@gentoo.org Reported By: erdinc@erdinc.info
Component: Applications
URL: 
Summary: app-antivirus/klamav shouldn't update itself and clamav, some utf8 fix
Keywords:  
Status Whiteboard: 
Opened: 2007-03-19 10:00 0000
Description:   Opened: 2007-03-19 10:00 0000
Klamav has an option to update itself and clamav from gui, but this option is
not good and secure cause patches and configure parameters will not be included
to those updates so it should be disabled in the gui.

Reproducible: Always

------- Comment #1 From Ali Erdinc Koroglu 2007-03-19 10:01:48 0000 -------
Created an attachment (id=113760) [details]
No update patch

Patch to disable update gui in klamav and some utf8 fix

------- Comment #2 From Arfrever Frehtes Taifersar Arahesis 2007-03-19 11:57:40 0000 -------
I think that instead comments the following is better:

#ifdef GUI_UPDATE
Some code
#endif

Gentoo is about choices and the above solution adds users the possibility of
the enabling of the updating of Klamav from GUI by using CXXFLAGS="${CXXFLAGS}
-DGUI_UPDATE" (If they very need it.).
The ebuild also needs to have appropriate `einfo` message telling about it.

------- Comment #3 From Andrej Kacian (RETIRED) 2007-03-25 19:28:32 0000 -------
(In reply to comment #2)
> I think that instead comments the following is better:
> 
> #ifdef GUI_UPDATE
> Some code
> #endif
> 
> Gentoo is about choices and the above solution adds users the possibility of
> the enabling of the updating of Klamav from GUI by using CXXFLAGS="${CXXFLAGS}
> -DGUI_UPDATE" (If they very need it.).
> The ebuild also needs to have appropriate `einfo` message telling about it.
> 

That sounds messy, and it's not a good idea to add arbitrary -D flags into
C(XX)FLAGS. How about a local USE flag, if you really want the option to be
there?

------- Comment #4 From Arfrever Frehtes Taifersar Arahesis 2007-03-26 14:18:55 0000 -------
(In reply to comment #3)
> That sounds messy, and it's not a good idea to add arbitrary -D flags into
> C(XX)FLAGS. How about a local USE flag, if you really want the option to be
> there?

So it's better to unconditionally disable this feature.

------- Comment #5 From Ali Erdinc Koroglu 2007-03-27 07:45:22 0000 -------
Why we dont just disable to update klamav and clamav from klamav gui :)
This job is not klamav's duty but emerge, isn't it?

------- Comment #6 From Ali Erdinc Koroglu 2007-07-13 14:09:01 0000 -------
I believe that we should disable update option in klamav

comments?

------- Comment #7 From Marcus D. Hanwell 2007-07-15 23:27:52 0000 -------
This looks like a feature enhancement that should really be pushed upstream. I
agree that it is portage's job to update these packages and would like to see
an option to disable updates from the GUI.

------- Comment #8 From Wulf Krueger (RETIRED) 2007-07-21 23:52:01 0000 -------
Did anyone contact upstream about this?

------- Comment #9 From Arfrever Frehtes Taifersar Arahesis 2007-07-22 10:37:59 0000 -------
(In reply to comment #8)
> Did anyone contact upstream about this?

Probably no.

------- Comment #10 From Wulf Krueger (RETIRED) 2007-08-10 19:19:50 0000 -------
 (In reply to comment #9)
> (In reply to comment #8)
> > Did anyone contact upstream about this?
> Probably no.

I did! :-)

------- Comment #11 From Wulf Krueger (RETIRED) 2008-01-27 21:54:18 0000 -------
I've just committed klamav 0.42 which includes a switch to turn off updates
from the GUI. Those are now disabled.

------- Comment #12 From Andrei Slavoiu 2008-02-05 21:33:36 0000 -------
Created an attachment (id=142749) [details]
klamav-0.42.ebuild.patch

The ebuild in portage ignores the standard kde useflags because it calls econf
by itself. This is especially a problem since klamav fails to build if arts is
not installed even with USE=-arts.
The attached patch adds the --with-disableupdates parameter to configure "the
KDE way".

------- Comment #13 From Andrej Kacian (RETIRED) 2008-02-09 12:53:26 0000 -------
(In reply to comment #12)
> Created an attachment (id=142749) [edit] [details]
> klamav-0.42.ebuild.patch
> 
> The ebuild in portage ignores the standard kde useflags because it calls econf
> by itself. This is especially a problem since klamav fails to build if arts is
> not installed even with USE=-arts.
> The attached patch adds the --with-disableupdates parameter to configure "the
> KDE way".
> 

Andrei, please open a separate bug for this, as it is not in any way related to
what this bug was about. Thanks.

------- Comment #14 From Andrei Slavoiu 2008-02-09 16:34:08 0000 -------
(In reply to comment #13)
> (In reply to comment #12)
> > Created an attachment (id=142749) [edit] [details]
> > klamav-0.42.ebuild.patch
> > 
> > The ebuild in portage ignores the standard kde useflags because it calls econf
> > by itself. This is especially a problem since klamav fails to build if arts is
> > not installed even with USE=-arts.
> > The attached patch adds the --with-disableupdates parameter to configure "the
> > KDE way".
> > 
> 
> Andrei, please open a separate bug for this, as it is not in any way related to
> what this bug was about. Thanks.
> 

I placed the patch here because the problem I was relating is a collateral of
the fix for this bug. Maybe I was not clear in my comment about this. Anyway,
this patch made it to portage so it's fine now.