Hi Jean,

After looking into the opkgc codes more carefully, I figured out the problems.
1. missing opkg.xsd was my fault because I did not fully regenerate the 
"configure" file via autogen.sh once opkgc is up.
   After regenerating the "configure" file via autogen.sh, getting the correct 
/etc/opkgc.conf file was just fine.
2. I found that the author of the "changelog" should be in the list of 
maintainer or upstream of the package. If not, opkgc fails.

For the 2nd case, I don't think that it is a good idea to restrict the author 
of the changelog to the only authors of the specific packages.

What do you guys think about this?

Regards,

- DongInn


DongInn Kim wrote:
> Hi Jean,
> 
> Can you please take a look at opkgc:trunk to see what happened on the new 
> opkgc?
>> [INFO] Read config file /etc/opkgc.conf
>> [ERROR] [Errno 2] No such file or directory: '@datadir@/@PACKAGE@/opkg.xsd'
> 
> This error happened when I had the following /etc/opkgc.conf.
>> [EMAIL PROTECTED] packages]# cat /etc/opkgc.conf 
>> [GENERAL]
>> xsdfile: @datadir@/@PACKAGE@/opkg.xsd
>>
>> [DEBIAN]
>> templatedir: @datadir@/@PACKAGE@/tmpl/debian
>>
>> [RPM]
>> templatedir: @datadir@/@PACKAGE@/tmpl/rpm
>> [EMAIL PROTECTED] packages]# 
> 
> And then I tried to tweak this thing(/etc/opkgc.conf) to get the right xsd 
> file and then I got the following errors.
>> [EMAIL PROTECTED] packages]# cat /etc/opkgc.conf 
>> [GENERAL]
>> xsdfile: /usr/local/share/opkgc/opkg.xsd
>>
>> [DEBIAN]
>> templatedir: /usr/local/share/opkgc/tmpl/debian
>>
>> [RPM]
>> templatedir: /usr/local/share/opkgc/tmpl/rpm
> 
> 
> 
> 
>> Traceback (most recent call last):
>>   File "/usr/local/lib/python2.4/site-packages/Opkgc/Tools.py", line 210, in 
>> cheetahCompile
>>     f.write(t.respond())
>>   File "_usr_local_share_opkgc_tmpl_rpm_opkg_spec_tmpl.py", line 300, in 
>> respond
>>   File "/usr/local/lib/python2.4/site-packages/Opkgc/Rpm.py", line 169, in 
>> formatCEntry
>>     raise SystemExit(2)
>> SystemExit: 2
>> [INFO] Read config file /etc/opkgc.conf
>> [DEBUG] /usr/local/share/opkgc/opkg.xsd loaded
>> [DEBUG] apitest/config.xml loaded
>> [INFO] Validating XML file against schema
>> [DEBUG] Package name: apitest
>> [DEBUG] Create dir: /tmp/tmp2Pt8el.opkgc/opkg-apitest-1.0.0/doc
>> [DEBUG] Copy apitest/doc/install.tex to 
>> /tmp/tmp2Pt8el.opkgc/opkg-apitest-1.0.0/doc
>> [DEBUG] Copy apitest/doc/APItest-userguide-1_0.pdf to 
>> /tmp/tmp2Pt8el.opkgc/opkg-apitest-1.0.0/doc
>> [DEBUG] Create dir: /tmp/tmp2Pt8el.opkgc/opkg-apitest-1.0.0/scripts
>> [DEBUG] Copy apitest/config.xml to /tmp/tmp2Pt8el.opkgc/opkg-apitest-1.0.0
>> [DEBUG] Create tarball 
>> '/home/oscar/crispy_5.1/packages/opkg-apitest-1.0.0.tar.gz' with ' 
>> opkg-apitest-1.0.0' into '/tmp/tmp2Pt8el.opkgc'
>> [DEBUG] Execute: tar zcf 
>> /home/oscar/crispy_5.1/packages/opkg-apitest-1.0.0.tar.gz  opkg-apitest-1.0.0
>> [DEBUG] Delete temp dir: /tmp/tmp2Pt8el.opkgc
>> [TRACE] Remove file: /tmp/tmp2Pt8el.opkgc/opkg-apitest-1.0.0/doc/install.tex
>> [TRACE] Remove file: 
>> /tmp/tmp2Pt8el.opkgc/opkg-apitest-1.0.0/doc/APItest-userguide-1_0.pdf
>> [TRACE] Remove dir: /tmp/tmp2Pt8el.opkgc/opkg-apitest-1.0.0/doc
>> [TRACE] Remove file: /tmp/tmp2Pt8el.opkgc/opkg-apitest-1.0.0/config.xml
>> [TRACE] Remove dir: /tmp/tmp2Pt8el.opkgc/opkg-apitest-1.0.0/scripts
>> [TRACE] Remove dir: /tmp/tmp2Pt8el.opkgc/opkg-apitest-1.0.0
>> [TRACE] Remove dir: /tmp/tmp2Pt8el.opkgc
>> [INFO] opkg tarball created: ./opkg-apitest-1.0.0.tar.gz
>> [DEBUG] Copying ./opkg-apitest-1.0.0.tar.gz to /usr/src/redhat/SOURCES
>> [INFO] Generates /usr/src/redhat/SPECS/opkg-apitest.spec from template 
>> /usr/local/share/opkgc/tmpl/rpm/opkg.spec.tmpl
>> [DEBUG] maintainer: 1
>> [ERROR] Author Erich Focht is not declared in author list
>> [ERROR] 2
>> ~           
> 
> Jean, I believe that opkgc worked just fine before you added the new feature 
> about the "conflict" thing.
> 
> Regards,
> 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Oscar-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oscar-devel

Reply via email to