Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
glcu - gentoo linux cron update (python version)
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6, 7  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
untiefe
Apprentice
Apprentice


Joined: 12 Jan 2004
Posts: 230
Location: the nonexisting Bielefeld, Germany

PostPosted: Tue Apr 14, 2009 8:13 pm    Post subject: Reply with quote

Please read the docs before asking!!!!! 8O

Of course you cannot run glcu /etc/glcu.conf. glcu is run automatically by cron, reads the config file and will send you an eMail when there is somthing to update - but the generated update file will be stored in your temp!


Bye, Michael
_________________
"I'm an angel bored like hell
And you're a devil meaning well"

:: Cardigans - You're The Storm ::

glcu - gentoo linux cron update (full featured semi-automatic updates via cron)
Back to top
View user's profile Send private message
ToeiRei
Veteran
Veteran


Joined: 03 Jan 2005
Posts: 1191
Location: Austria

PostPosted: Thu Apr 16, 2009 6:18 am    Post subject: Reply with quote

Just a rough guess and hint: did you already try the python-updater?
_________________
Please stand by - The mailer daemon is busy burning your messages in hell...
Back to top
View user's profile Send private message
untiefe
Apprentice
Apprentice


Joined: 12 Jan 2004
Posts: 230
Location: the nonexisting Bielefeld, Germany

PostPosted: Thu Apr 16, 2009 8:38 am    Post subject: Reply with quote

ToeiRei wrote:
Just a rough guess and hint: did you already try the python-updater?


This has nothing to do with python - he just hands over a wrong file to glcu, where glcu does not find the expected structure...
_________________
"I'm an angel bored like hell
And you're a devil meaning well"

:: Cardigans - You're The Storm ::

glcu - gentoo linux cron update (full featured semi-automatic updates via cron)
Back to top
View user's profile Send private message
wlchase
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jul 2003
Posts: 81
Location: Texas

PostPosted: Wed Mar 03, 2010 3:38 pm    Post subject: Reply with quote

In the off chance this is still being watched...

Two things are occurring... OK, three things (nobody expects.....)

Every time glcu runs, it gets a deprecation warning:

Code:
/usr/lib/portage/pym/output.py:45: DeprecationWarning: DEPRECATION NOTICE: The output module was replaced by portage.output


and another:

Code:
./glcu:20: DeprecationWarning: the sets module is deprecated


and now is dying at "update-eix". This one I was clever enough to fix, that eix was changed so the command now is "eix-update."

Any ideas how to fix the other 2, which don't seem to impede the operation, as far as I know?

Bill
Back to top
View user's profile Send private message
untiefe
Apprentice
Apprentice


Joined: 12 Jan 2004
Posts: 230
Location: the nonexisting Bielefeld, Germany

PostPosted: Sat Mar 06, 2010 12:41 am    Post subject: Reply with quote

Hi,
I still watch this, but I'm not using my own glcu any more, because I don't have a glcu server any more.

The second point is the deprecation of the Sets module. You can change the sets commands with the new python variant, but this would be a lot of work.
Although you get this warning, glcu should still work. So please have another look at the output glcu generates.

Bye, Michael
_________________
"I'm an angel bored like hell
And you're a devil meaning well"

:: Cardigans - You're The Storm ::

glcu - gentoo linux cron update (full featured semi-automatic updates via cron)
Back to top
View user's profile Send private message
ToeiRei
Veteran
Veteran


Joined: 03 Jan 2005
Posts: 1191
Location: Austria

PostPosted: Fri Mar 12, 2010 7:52 pm    Post subject: Reply with quote

So you're putting the glcu down? :(
_________________
Please stand by - The mailer daemon is busy burning your messages in hell...
Back to top
View user's profile Send private message
untiefe
Apprentice
Apprentice


Joined: 12 Jan 2004
Posts: 230
Location: the nonexisting Bielefeld, Germany

PostPosted: Mon Mar 15, 2010 9:48 pm    Post subject: Reply with quote

Hi,
read my post from the 22nd of August 2008. I've put it down since one and a half year now...
But portage ist very stable and glcu ist quite stable, so it still works ;-)

Have fun with it, but don't bother me with any updates needed. I won't be doing them...

I'll still read it here, and give tips for the usage - if necessary...


Bye, Michael
_________________
"I'm an angel bored like hell
And you're a devil meaning well"

:: Cardigans - You're The Storm ::

glcu - gentoo linux cron update (full featured semi-automatic updates via cron)
Back to top
View user's profile Send private message
ReD-BaRoN
Apprentice
Apprentice


Joined: 06 Feb 2004
Posts: 208

PostPosted: Sat Aug 07, 2010 1:01 am    Post subject: Reply with quote

So does anyone know if there a newer way to achieve what this package is meant to achieve?
Back to top
View user's profile Send private message
ReD-BaRoN
Apprentice
Apprentice


Joined: 06 Feb 2004
Posts: 208

PostPosted: Sat Aug 07, 2010 2:26 am    Post subject: Reply with quote

BTW, the sourceforge page for this is blank. How does one get the code for this?

Thanks,
Brian
Back to top
View user's profile Send private message
untiefe
Apprentice
Apprentice


Joined: 12 Jan 2004
Posts: 230
Location: the nonexisting Bielefeld, Germany

PostPosted: Sat Aug 21, 2010 9:35 am    Post subject: Reply with quote

Sorry, but you look at my page the 2 days, when my server was down and I was on holiday...

Check GLCU again, if you like...
_________________
"I'm an angel bored like hell
And you're a devil meaning well"

:: Cardigans - You're The Storm ::

glcu - gentoo linux cron update (full featured semi-automatic updates via cron)
Back to top
View user's profile Send private message
ReD-BaRoN
Apprentice
Apprentice


Joined: 06 Feb 2004
Posts: 208

PostPosted: Sat Aug 21, 2010 12:59 pm    Post subject: Reply with quote

untiefe wrote:
Sorry, but you look at my page the 2 days, when my server was down and I was on holiday...

Check GLCU again, if you like...


Thanks, I'll check it out.
Back to top
View user's profile Send private message
chuchao2000
n00b
n00b


Joined: 17 Nov 2008
Posts: 3
Location: Geneva, Switzerland

PostPosted: Sun Jan 23, 2011 7:28 am    Post subject: glcu dont work anymore :-( Reply with quote

Hi

4 years using glcu and very satisfied but since some weeks...
Here is the mail i receive every day :

Code:
Traceback (most recent call last):
File "/etc/cron.daily/glcu", line 16, in <module>
import output
ImportError: No module named output


Is there something do fix it ?

Thanks
Back to top
View user's profile Send private message
haven
Tux's lil' helper
Tux's lil' helper


Joined: 19 Nov 2003
Posts: 141
Location: Belfast, Uk

PostPosted: Wed Feb 16, 2011 9:21 am    Post subject: Reply with quote

Only just had a go with this script today and got the same "import output" issue. That module seems to no longer be a part of python. Since its only used for the printHelp function you can easily modify a couple of lines and bypass the requirement for it.

Edit: /usr/sbin/glcu

Code:
 35 def printHelp():
 36     print "  glcu - "+output.bold("g")+"entoo "+output.bold("l")+"inux "+output.bold("c")+"ron "+output.bold("u")+"pdate"


Becomes:

Code:
 35 def printHelp():
 36     print "  glcu gentoo linux cron update"


Then make sure you comment/remove the "import output" line and you should be all good.

If you want fancy formatting you can always throw in some bash formatting codes to prettify it.

I then hit other errors with Pickle that I've not worked through yet but this should solve your first issue :)
Back to top
View user's profile Send private message
ToeiRei
Veteran
Veteran


Joined: 03 Jan 2005
Posts: 1191
Location: Austria

PostPosted: Wed Feb 16, 2011 9:38 am    Post subject: Reply with quote

I will test things today - maybe we can write a patch and bump the ebuild... (at least for overlays)
_________________
Please stand by - The mailer daemon is busy burning your messages in hell...
Back to top
View user's profile Send private message
ToeiRei
Veteran
Veteran


Joined: 03 Jan 2005
Posts: 1191
Location: Austria

PostPosted: Wed Feb 16, 2011 10:33 am    Post subject: Reply with quote

As promised, haven's changes as a patch:

Code:

--- a/glcu.py   2011-02-16 10:46:48.794680657 +0100
+++ b/glcu.py   2011-02-16 10:46:26.177482091 +0100
@@ -13,7 +13,7 @@
 import os
 import ConfigParser
 import getopt
-import output
+# import output
 import re
 import pickle
 import string
@@ -33,7 +33,7 @@
     sys.exit(9)
 
 def printHelp():
-    print "  glcu - "+output.bold("g")+"entoo "+output.bold("l")+"inux "+output.bold("c")+"ron "+output.bold("u")+"pdate"
+    print "  glcu gentoo linux cron update"
     print "       a program to keep your gentoo linux up to date!"
     print "       see: http://glcu.sourceforge.net/ for more information\n"
     print "                 ( Version" , VERSION , ")\n"


as eix changed (eix-update to be correct) we need that patch here too:
Code:

--- a/glcu.py   2011-02-16 12:00:13.837000024 +0100
+++ b/glcu.py   2011-02-16 12:00:50.801000017 +0100
@@ -511,9 +511,9 @@
     # 3.b) run update-eix
 
     if (mainConfig.getMainConfig('updateix')):
-        eupdatedb = ShellExecution('/usr/bin/update-eix')
+        eupdatedb = ShellExecution('/usr/bin/eix-update')
         if (eupdatedb.getExitStatus() != 0):
-            mail.earlyErrorMail('update-eix failed','Error log for update-eix:\n\n' + eupdatedb.getOutput())
+            mail.earlyErrorMail('eix-update failed','Error log for eix-update:\n\n' + eupdatedb.getOutput())
             
             
     # 4. check for security updates (if wanted)



an ebuild (glcu-0.9.7.2-r1.ebuild) could look like that:

Code:

# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

inherit eutils

DESCRIPTION="gentoo linux cron update. Full featured semi-automatic updates for your gentoo box."
HOMEPAGE="http://glcu.sourceforge.net/"
SRC_URI="mirror://sourceforge/glcu/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="esearch eix"

RDEPEND=">=dev-lang/python-2.2
         >=sys-apps/portage-2.0.50
         >=app-portage/gentoolkit-0.2.0
         mail-client/mailx
         esearch? ( >=app-portage/esearch-0.7 )
         eix? ( >=app-portage/eix-0.2.2 )"

src_prepare() {
        epatch "${FILESDIR}/output.patch"
        epatch "${FILESDIR}/eix.patch"
}


src_install() {
        dodir /usr/sbin/
        dodir /etc/cron.daily/

        exeinto /usr/lib/glcu
        doexe glcu.py || die "doexe failed"

        dosym /usr/lib/glcu/glcu.py /etc/cron.daily/glcu
        dosym /usr/lib/glcu/glcu.py /usr/sbin/glcu

        insinto /etc/
        doins glcu.conf

}

pkg_postinst() {
    einfo ""
    einfo " Before you can use glcu, you must edit the config file:"
    einfo "   /etc/glcu.conf"
    einfo ""
    use esearch && einfo " For esearch support set 'eupdatedb: yes' in the config file"
    use eix && einfo " For eix support set 'updateix: yes' in the config file"
}


Patches and Corrections welcome.
_________________
Please stand by - The mailer daemon is busy burning your messages in hell...
Back to top
View user's profile Send private message
untiefe
Apprentice
Apprentice


Joined: 12 Jan 2004
Posts: 230
Location: the nonexisting Bielefeld, Germany

PostPosted: Thu Feb 17, 2011 9:44 am    Post subject: Reply with quote

Hallo allerseits,

schön zu sehen, dass GLCU nach so langer Zeit immer noch seine Anhänger hat.
Leider habe ich keinerlei Zeit mehr mich um GLCU zu kümmern (ich habe aktuell auch leider keinen einzigen Gentoo Rechner mehr am laufen) und darum würde Euch darum bitten dies selber in die Hand zu nehmen.

Die Sourcen sind ja alle vollständig vorhanden, und falls jemand mit den neuen Patches daraus neue Releases bauen möchte übergebe ich auch gerne den Sourceforge Zugang für GLCU. Die Webseite steht auch nur noch aus nostalgischen Gründen im Netz und kann gerne übernommen werden. Es ist ja auch alles unter der GPL veröffentlicht.

Freiwillige vor! Hier oder per PM oder per eMail (siehe glcu.sourceforge.net)


Viele Grüße,

Michael
_________________
"I'm an angel bored like hell
And you're a devil meaning well"

:: Cardigans - You're The Storm ::

glcu - gentoo linux cron update (full featured semi-automatic updates via cron)
Back to top
View user's profile Send private message
ToeiRei
Veteran
Veteran


Joined: 03 Jan 2005
Posts: 1191
Location: Austria

PostPosted: Tue Apr 05, 2011 7:24 am    Post subject: Reply with quote

Okay folks - if needed, I got my group's repository opened. (GLCU included)
just add "http://www.stargazer.at/layman.txt" to the overlays in the layman config.
_________________
Please stand by - The mailer daemon is busy burning your messages in hell...
Back to top
View user's profile Send private message
jkomar
Apprentice
Apprentice


Joined: 24 Sep 2004
Posts: 192
Location: Calgary, Canada

PostPosted: Tue Apr 05, 2011 10:00 pm    Post subject: Reply with quote

I have updated the ebuild for glcu hosted at the stormfront overlay with the new patches as well.

Cheers,
Jason
_________________
www.jbox.ca
www.flashinthepan.ca
stormfront Portage/Paludis overlay
Back to top
View user's profile Send private message
ToeiRei
Veteran
Veteran


Joined: 03 Jan 2005
Posts: 1191
Location: Austria

PostPosted: Mon Jun 13, 2011 11:51 am    Post subject: Reply with quote

Small update:

Hostname determination requires a small change:

Line 291:
Code:
getHostname = ShellExecution('grep HOSTNAME /etc/conf.d/hostname')


needs to be adapted to be:
Code:
getHostname = ShellExecution('grep hostname /etc/conf.d/hostname')


to reflect the openrc changes.
Cheers

Rei

Edit:
But I'd say we should go for something more foolproof like the shell command 'hostname' to avoid hitting those problems again. I'll test booth cases and come up with a patch.
_________________
Please stand by - The mailer daemon is busy burning your messages in hell...
Back to top
View user's profile Send private message
ToeiRei
Veteran
Veteran


Joined: 03 Jan 2005
Posts: 1191
Location: Austria

PostPosted: Wed Nov 02, 2011 8:22 am    Post subject: Reply with quote

I never posted the patch for the hostname change - so here we go:

Code:
--- a/glcu.py   2011-11-01 21:25:52.798841635 +0100
+++ b/glcu.py   2011-11-01 21:23:35.958527234 +0100
@@ -288,7 +288,7 @@
         self.__hostname = False


-        getHostname = ShellExecution('grep HOSTNAME /etc/conf.d/hostname')
+        getHostname = ShellExecution('grep hostname /etc/conf.d/hostname')
         if (getHostname.getExitStatus() == 0 ):
             fileHostname = re.findall("\"(.+)\"",getHostname.getOutput())
             self.__hostname = '('  + str(fileHostname[0]) + ')'


All you need to do is add an epatch line (look at the src_prepare part) to the ebuild and you're ready to roll:
Code:
epatch "${FILESDIR}/hostname.patch"


the ebuild at my overlay got bumped and got the patch included.
_________________
Please stand by - The mailer daemon is busy burning your messages in hell...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7
Page 7 of 7

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum