Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 171414 - app-antivirus/klamav shouldn't update itself and clamav, some utf8 fix
Summary: app-antivirus/klamav shouldn't update itself and clamav, some utf8 fix
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-19 10:00 UTC by Ali Erdinc Koroglu
Modified: 2008-02-09 16:34 UTC (History)
3 users (show)

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


Attachments
No update patch (noupdate.patch,10.66 KB, patch)
2007-03-19 10:01 UTC, Ali Erdinc Koroglu
Details | Diff
klamav-0.42.ebuild.patch (klamav-0.42.ebuild.patch,821 bytes, patch)
2008-02-05 21:33 UTC, Andrei Slavoiu
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ali Erdinc Koroglu 2007-03-19 10:00:13 UTC
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 Ali Erdinc Koroglu 2007-03-19 10:01:48 UTC
Created attachment 113760 [details, diff]
No update patch

Patch to disable update gui in klamav and some utf8 fix
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-03-19 11:57:40 UTC
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 Andrej Kacian (RETIRED) gentoo-dev 2007-03-25 19:28:32 UTC
(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 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-03-26 14:18:55 UTC
(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 Ali Erdinc Koroglu 2007-03-27 07:45:22 UTC
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 Ali Erdinc Koroglu 2007-07-13 14:09:01 UTC
I believe that we should disable update option in klamav

comments?
Comment 7 Marcus D. Hanwell (RETIRED) gentoo-dev 2007-07-15 23:27:52 UTC
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 Wulf Krueger (RETIRED) gentoo-dev 2007-07-21 23:52:01 UTC
Did anyone contact upstream about this?
Comment 9 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-07-22 10:37:59 UTC
(In reply to comment #8)
> Did anyone contact upstream about this?

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

I did! :-)
Comment 11 Wulf Krueger (RETIRED) gentoo-dev 2008-01-27 21:54:18 UTC
I've just committed klamav 0.42 which includes a switch to turn off updates from the GUI. Those are now disabled.
Comment 12 Andrei Slavoiu 2008-02-05 21:33:36 UTC
Created attachment 142749 [details, diff]
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 Andrej Kacian (RETIRED) gentoo-dev 2008-02-09 12:53:26 UTC
(In reply to comment #12)
> Created an attachment (id=142749) [edit]
> 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 Andrei Slavoiu 2008-02-09 16:34:08 UTC
(In reply to comment #13)
> (In reply to comment #12)
> > Created an attachment (id=142749) [edit]
> > 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.