Re: some try-ark suggestions
<[email protected]> Sun, 10 Jun 2001 21:10:46 -0500 (CDT)
| Newsgroups | gmane.comp.sysutils.ark.devel |
|---|---|
| Message-ID | <[email protected]> |
Date: Sun, 10 Jun 2001 23:04:11 +0100 From: Jonathan Hogg <[email protected]> Berto: please pull the latest version of xmlfile.py and utils.py and see if you get any joy. If that works for you, then you can uninstall PyXML and run without it. Jonathan: I'm getting warmer, but I don't feel fuzzy yet. I checked out everything anew, including your further revised xmlfile.py and utils.py. I also uninstalled PyXML (and blew away that /usr/local/bin/python -> /usr/bin/python kludge that enabled me to install, in a botched way, PyXML in the first place). Then: ------------------------------------------------------------------------------- [berto@localhost myteam1]$ try-ark/try-ark | tee /tmp/junk1 try-ark/try-ark: warning: this script may be overly paranoid and, um, wrong... + ./arkcmd package reveal --verbose --use-deps=max arkbase Traceback (most recent call last): File "./arkcmd", line 79, in ? main() File "./arkcmd", line 66, in main things_mgr.doToolSubcommand() File "./ark/thing.py", line 175, in doToolSubcommand victims = self.unpackSpecs(ark_ctrl.cmdLineNonOptions()) File "./ark/thing.py", line 108, in unpackSpecs thing = self.lookup(thing_name,team_id) File "./ark/thing.py", line 69, in lookup team_id = ark.team.ACTING_TEAM().id File "./ark/team.py", line 55, in ACTING_TEAM _ActingTeam.instance = ArkTeam(acting_team_id) File "./ark/team.py", line 135, in __init__ (self._is_prototype, xml_version, self._xmlf) = xml_file.read(explicit_filename="%s/team.xml" % (ark.control.ArkControl().repository(team_id))) File "./ark/xmlfile.py", line 167, in read raise ark.error.GeneralPanic,"doc name=\"%s\" does not match name `%s'" % (root_name,self._name) Panic: sigh: doc name="sample1" does not match name `myteam1' ------------------------------------------------------------------------------- After doing a 'find $ARK_SRC/myteam1 -type f -exec grep -l sample1 {} \;', I edited team.xml, changing "sample1" to "myteam1" in the following line: <team name="sample1" xml-version="1"> Note that this appears *outside* the CONFIGURE-ME section. The instruction on the try-ark1.html Web page needs to be amended, or this line needs to be moved within the CONFIGURE-ME block. Did a 'try-ark/try-ark --scrub' (output not shown). Then: ------------------------------------------------------------------------------- [berto@localhost myteam1]$ try-ark/try-ark | tee /tmp/junk3 try-ark/try-ark: warning: this script may be overly paranoid and, um, wrong... + ./arkcmd package reveal --verbose --use-deps=max arkbase doesn't apply: ark-prereq-utils reveal slicker + LNDIR=/home/berto/ark/ark/try-ark/our/bin/lndir -ignorelinks + MKDIR_P=/bin/mkdir -p + PKG_TEAM=ARK + PKG_NAME1=ark-site-gen + PKG_NAME2=arkbase + PKG_ARK_SRC_LOC1=/home/berto/ark/ark/ARK/ark-site-gen + PKG_ARK_SRC_LOC2=/home/berto/ark/ark/ARK/arkbase + cd /home/berto/ark/ark/try-ark/ark-builds/ark-site-gen + '[' -d src ']' + cd src + /home/berto/ark/ark/try-ark/our/bin/lndir -ignorelinks /home/berto/ark/ark/ARK/ark-site-gen . /bin/sh: /home/berto/ark/ark/try-ark/our/bin/lndir: No such file or directory > src-linkfarm on ark-site-gen ( not done before ) [ [u'<param name="LNDIR" from: /home/berto/ark/ark/sidai/package/ark-site-gen.xml', u'<param name="MKDIR_P" from: /home/berto/ark/ark/sidai/package/ark-site-gen.xml', u'<param name="PKG_TEAM" from: /home/berto/ark/ark/sidai/package/ark-site-gen.xml', u'<param name="PKG_NAME1" from: /home/berto/ark/ark/sidai/package/ark-site-gen.xml', u'<param name="PKG_NAME2" from: /home/berto/ark/ark/sidai/package/ark-site-gen.xml', u'<param name="PKG_ARK_SRC_LOC1" from: /home/berto/ark/ark/sidai/package/ark-site-gen.xml', u'<param name="PKG_ARK_SRC_LOC2" from: /home/berto/ark/ark/sidai/package/ark-site-gen.xml', u'code from: /home/berto/ark/ark/sidai/package/ark-site-gen.xml'] ] >> to be run on localhost for slicker [ALL] ------------------------------------------------------------------------------- Checking: [berto@localhost myteam1]$ ls -ld /home/berto/ark/ark/try-ark/our/bin/lndir ls: /home/berto/ark/ark/try-ark/our/bin/lndir: No such file or directory [berto@localhost myteam1]$ ls -ld /home/berto/ark/ark/try-ark/our/bin ls: /home/berto/ark/ark/try-ark/our/bin: No such file or directory [berto@localhost myteam1]$ ls -ld /home/berto/ark/ark/try-ark/our drwx------ 2 berto berto 4096 Jun 10 20:31 /home/berto/ark/ark/try-ark/our/ [berto@localhost myteam1]$ ls -la /home/berto/ark/ark/try-ark/our total 8 drwx------ 2 berto berto 4096 Jun 10 20:31 ./ drwx------ 9 berto berto 4096 Jun 10 20:31 ../ More checking: [berto@localhost ark]$ pwd /home/berto/ark/ark [this is my $ARK_SRC dir] [berto@localhost ark]$ ls ARK/ myteam1/ sample1/ sidai/ try-ark/ [berto@localhost ark]$ find * -type f -exec grep -l 'our/bin/lndir' {} \; [no output] ??? [berto@localhost ark]$ find * -type f -exec grep -l 'lndir' {} \; ARK/webpages/ark-conflang.htma myteam1/host/ALL.xml myteam1/host/ALL.xmla sample1/host/ALL.xml sidai/ark-prereq-utils/CVS/Entries sidai/ark-prereq-utils/Makefile sidai/ark-prereq-utils/README.lndir sidai/ark-prereq-utils/lndir-Xos.h sidai/ark-prereq-utils/lndir.c sidai/ark-prereq-utils/lndir.man sidai/ark-prereq-utils/lndir.sh sidai/package/ark-generated.xml sidai/package/ark-only-source.xml sidai/package/ark-site-gen.xml sidai/webpages/tools.htma Okay, so lndir is referenced, but this is starting to get too deep for me. Still more checking: [berto@localhost try-ark]$ pwd /home/berto/ark/ark/try-ark [this is my test-dir] [berto@localhost try-ark]$ ls ark-builds/ ark-gen-pkg/ ark-install-linux/ our/ ark-deploy-host1/ ark-install-ALL/ ark-state/ [berto@localhost try-ark]$ du -s * 16 ark-builds 4 ark-deploy-host1 4 ark-gen-pkg 4 ark-install-ALL 4 ark-install-linux 16 ark-state 4 our Essentially some empty directories. So, no joy yet. But the first hint of happiness. I think you're heading in the right direction (even if I may not be). It's a big win not requiring PyXML, because (a) it's one less hoop to make the user jump through, and (b) it's one less chance for a stumble. Berto ------------------------------------------------------------------------------- Robert Osterlund, Unix Systems Manager [email protected] Grad School of Business, U of Chicago phone: 773/702-8898 1101 E. 58th Street, #309, Chicago, IL 60637, USA fax: 773/702-0233