List Info

Thread: How to bump the API version?




How to bump the API version?
user name
2006-11-03 14:18:30

I've rebuilt p4ruby using the 2006.1 p4Api, but it still complains that I need to upgrade to 2004.2 when I try to access tickets. What's up? I noticed the problem when I was running the script on our build server and it complained that P4PASSWD was invalid or unset, which it isn't. (All other p4 commands work)

/axl

Here's the p4conf.rb output:

C:Workwsp4ruby-main-axl>ruby p4conf.rb --apidir C:Workwsuser-axlp4api 
Starting to configure P4/Ruby for building

P4/Ruby Configuration Summary
-----------------------------
Using Perforce API Version: 2006.1
API headers and libs from : C:/Work/ws/user-axl/p4api
OS name           ;        : NT
OS version           ;     :
Platform           ;       : X86
CFLAGS           ;         : -MD -Zi -O2b2xg- -G6 -IC:/Work/ws/user-axl/p4api -DOS_NT -DOS_NT -DOS_NTX86 /DCASE_INSENSITIVE /MT -Dconst_char="const char"
LIBPATH           ;        : $(libdir):C:/Work/ws/user-axl/p4api
libs           ;           : libclient.lib librpc.lib libsupp.lib libcmt.lib oldnames.lib kernel32.lib wsock32.lib advapi32.lib

Creating extconf.h
creating Makefile
 

And here's the p4.rb test output:

irb(main):001:0> require 'P4'
=> true
irb(main):002:0> p4 = P4.new
=&gt; #<P4:0x28b9d20&gt;
irb(main):003:0> p4.connect
=> true
irb(main):004:0> p4.run_tickets
P4Exception: [P4#run] Warnings during command execution( "p4 tickets&quot; ) 
 &nbsp; &nbsp; &nbsp;  [Warning]: Must upgrade to 2004.2 p4 to access tickets.

 &nbsp; &nbsp; &nbsp;  from C:/Work/ws/common-main-axl/Bin/Ruby/lib/ruby/site_ruby/1.8/P4.rb:131:in `run'
 &nbsp; &nbsp; &nbsp;  from C:/Work/ws/common-main-axl/Bin/Ruby/lib/ruby/site_ruby/1.8/P4.rb:131:in `method_missing'
 &nbsp; &nbsp; &nbsp;  from (irb):4

And to make sure the right version was loaded:
irb(main):010:0> puts P4.identify

P4/Ruby Build Summary:

 &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; Author : Tony Smith < tonysmee.org">tonysmee.org&gt; or < tonyperforce.com">tonyperforce.com>
 &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp;  Version : 1.5693
 &nbsp;  Perforce API Version : 2006.1
 &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; CFLAGS : -MD -Zi -O2b2xg- -G6 -IC:/Work/ws/user-axl/p4api -DOS _NT -DOS_NT -DOS_NTX86 /DCASE_INSENSITIVE /MT -Dconst_char="const char"
 &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp; LIBS : libclient.lib librpc.lib libsupp.lib libcmt.lib oldnames.lib kernel32.lib wsock32.lib advapi32.lib
 &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp;  LIBPATH : $(libdir):C:/Work/ws/user-axl/p4api

=> nil
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )