View previous topic :: View next topic |
Author |
Message |
untiefe Apprentice
Joined: 12 Jan 2004 Posts: 230 Location: the nonexisting Bielefeld, Germany
|
Posted: Tue Apr 14, 2009 8:13 pm Post subject: |
|
|
Please read the docs before asking!!!!!
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 |
|
|
ToeiRei Veteran
Joined: 03 Jan 2005 Posts: 1191 Location: Austria
|
Posted: Thu Apr 16, 2009 6:18 am Post subject: |
|
|
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 |
|
|
untiefe Apprentice
Joined: 12 Jan 2004 Posts: 230 Location: the nonexisting Bielefeld, Germany
|
Posted: Thu Apr 16, 2009 8:38 am Post subject: |
|
|
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 |
|
|
wlchase Tux's lil' helper
Joined: 04 Jul 2003 Posts: 81 Location: Texas
|
Posted: Wed Mar 03, 2010 3:38 pm Post subject: |
|
|
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 |
|
|
untiefe Apprentice
Joined: 12 Jan 2004 Posts: 230 Location: the nonexisting Bielefeld, Germany
|
Posted: Sat Mar 06, 2010 12:41 am Post subject: |
|
|
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 |
|
|
ToeiRei Veteran
Joined: 03 Jan 2005 Posts: 1191 Location: Austria
|
Posted: Fri Mar 12, 2010 7:52 pm Post subject: |
|
|
So you're putting the glcu down? _________________ Please stand by - The mailer daemon is busy burning your messages in hell... |
|
Back to top |
|
|
untiefe Apprentice
Joined: 12 Jan 2004 Posts: 230 Location: the nonexisting Bielefeld, Germany
|
Posted: Mon Mar 15, 2010 9:48 pm Post subject: |
|
|
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 |
|
|
ReD-BaRoN Apprentice
Joined: 06 Feb 2004 Posts: 208
|
Posted: Sat Aug 07, 2010 1:01 am Post subject: |
|
|
So does anyone know if there a newer way to achieve what this package is meant to achieve? |
|
Back to top |
|
|
ReD-BaRoN Apprentice
Joined: 06 Feb 2004 Posts: 208
|
Posted: Sat Aug 07, 2010 2:26 am Post subject: |
|
|
BTW, the sourceforge page for this is blank. How does one get the code for this?
Thanks,
Brian |
|
Back to top |
|
|
untiefe Apprentice
Joined: 12 Jan 2004 Posts: 230 Location: the nonexisting Bielefeld, Germany
|
Posted: Sat Aug 21, 2010 9:35 am Post subject: |
|
|
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 |
|
|
ReD-BaRoN Apprentice
Joined: 06 Feb 2004 Posts: 208
|
Posted: Sat Aug 21, 2010 12:59 pm Post subject: |
|
|
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 |
|
|
chuchao2000 n00b
Joined: 17 Nov 2008 Posts: 3 Location: Geneva, Switzerland
|
Posted: Sun Jan 23, 2011 7:28 am Post subject: glcu dont work anymore :-( |
|
|
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 |
|
|
haven Tux's lil' helper
Joined: 19 Nov 2003 Posts: 141 Location: Belfast, Uk
|
Posted: Wed Feb 16, 2011 9:21 am Post subject: |
|
|
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 |
|
|
ToeiRei Veteran
Joined: 03 Jan 2005 Posts: 1191 Location: Austria
|
Posted: Wed Feb 16, 2011 9:38 am Post subject: |
|
|
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 |
|
|
ToeiRei Veteran
Joined: 03 Jan 2005 Posts: 1191 Location: Austria
|
Posted: Wed Feb 16, 2011 10:33 am Post subject: |
|
|
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 |
|
|
untiefe Apprentice
Joined: 12 Jan 2004 Posts: 230 Location: the nonexisting Bielefeld, Germany
|
Posted: Thu Feb 17, 2011 9:44 am Post subject: |
|
|
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 |
|
|
ToeiRei Veteran
Joined: 03 Jan 2005 Posts: 1191 Location: Austria
|
Posted: Tue Apr 05, 2011 7:24 am Post subject: |
|
|
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 |
|
|
jkomar Apprentice
Joined: 24 Sep 2004 Posts: 192 Location: Calgary, Canada
|
|
Back to top |
|
|
ToeiRei Veteran
Joined: 03 Jan 2005 Posts: 1191 Location: Austria
|
Posted: Mon Jun 13, 2011 11:51 am Post subject: |
|
|
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 |
|
|
ToeiRei Veteran
Joined: 03 Jan 2005 Posts: 1191 Location: Austria
|
Posted: Wed Nov 02, 2011 8:22 am Post subject: |
|
|
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 |
|
|
|