kvalobs:kvoss:system:qc2:8hdk376snf09zj37dk82s92:debian-build-notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
kvalobs:kvoss:system:qc2:8hdk376snf09zj37dk82s92:debian-build-notes [2010-05-30 21:59:08]
paule
kvalobs:kvoss:system:qc2:8hdk376snf09zj37dk82s92:debian-build-notes [2022-05-31 09:29:32] (current)
Line 367: Line 367:
 /usr/bin/kvqc2 /usr/bin/kvqc2
 </code> </code>
 +
 +
 +
 +====== ToDos ======
 +
 +  * Add full copyright information
 +
 +====== Make New Package ======
 +
 +1. First prepare the source. Make a new branch in the svn distribution. Copy the development tree. Actually not a branch but a tagged version!!!
 +
 +Make a copy of the development directory ... first to a branch:
 +<code>
 +svn copy https://svn.met.no/kvoss/kvQc2/trunk/ https://svn.met.no/kvoss/kvQc2/branches/kvqc2-1.0.1/ -m 'branch for preparation of version 1.0.1 for debianisation'
 +</code>
 +
 +Check out:
 +
 +<code>
 +$ # On the development machine:
 +$ cd $HOME
 +$ svn co https://svn.met.no/kvoss/kvQc2/branches/kvqc2-1.0.1
 +</code>
 +platform)
 +
 +CHANGES: To make a clean/safe distribution:
 +
 +  * Remove unnecessarf files from References directory
 +  * Change ReadProgramOptions file to use correct boost library on debian etch system (target platform)
 +  * Edit ProcessImpl.cc to turn off algorithms not required
 +  * Commit changes and then test on dev-vm116 ...
 +
 +
 +When work is finished for the release then I copy to the tags!
 +<code>
 +svn copy https://svn.met.no/kvoss/kvQc2/branches/kvqc2-1.0.1/ https://svn.met.no/kvoss/kvQc2/tags/kvqc2-1.0.1/ -m 'finalised version'
 +</code>
 +
  
 ====== kvqc2-1.0.0 ====== ====== kvqc2-1.0.0 ======
Line 406: Line 444:
 </code> </code>
  
-====== ToDos ======+To run
  
-  * Add full copyright information+  * Log into dev-vm101 as kvalobs 
 +  * Check it is there, e.g. which kvqc2 -> /usr/bin/kvqc2 
 +  * Run it and add config files and odirectories as needed ... 
 + 
 +!!! 
 +Is this a problem: 
 +<code> 
 +kvalobs@dev-vm101:~$ ls -l /usr/bin/kvQabased  
 +-rwxrwxr-- 1 root kvalobs 6564612 May 21 15:13 /usr/bin/kvQabased 
 +kvalobs@dev-vm101:~$ ls -l /usr/bin/kvqc2      
 +-rwxr-xr-x 1 root root 937716 May 30 23:41 /usr/bin/kvqc2 
 +</code> 
 + 
 +Results of test run: 
 + 
 +<code> 
 + 
 +ONE TIME SERIES: 
 + 
 +kvalobs=# select * from data where obstime>'2010-05-29 05:00:00' and  obstime<'2010-05-29 12:00:00'  and stationID=24710 and paramid=211; 
 + stationid |       obstime       | original | paramid |       tbtime        | typeid | sensor | level | corrected |   controlinfo    |     useinfo      |             cfailed              
 +-----------+---------------------+----------+---------+---------------------+--------+--------+-------+-----------+------------------+------------------+--------------------------------- 
 +     24710 | 2010-05-29 06:00:00 |      5.9 |     211 | 2010-05-29 05:57:26 |    342 | 0      |     0 |       5.9 | 1111000000000010 | 7000000000000000 |  
 +     24710 | 2010-05-29 07:00:00 |      7.4 |     211 | 2010-05-29 19:57:21 |    342 | 0      |     0 |       7.4 | 1111000000100010 | 7100000400000000 |  
 +     24710 | 2010-05-29 08:00:00 |   -32767 |     211 | 2010-05-29 08:30:09 |    342 | 0      |     0 |      11.2 | 0000001100000000 | 9894900000000000 |  Qc2 UnitT corrected was:-32767 
 +     24710 | 2010-05-29 09:00:00 |     12.9 |     211 | 2010-05-29 19:57:21 |    342 | 0      |     0 |      12.9 | 1110000000100010 | 7100000400000000 |  
 +     24710 | 2010-05-29 10:00:00 |   -32767 |     211 | 2010-05-29 10:30:13 |    342 | 0      |     0 |    -32767 | 0000003000000000 | 9899900000000000 |  
 +     24710 | 2010-05-29 11:00:00 |   -32767 |     211 | 2010-05-29 11:30:07 |    342 | 0      |     0 |    -32767 | 0000003000000000 | 9899900000000000 |  
 +(6 rows) 
 + 
 +OTHER EXAMPLES CAN BE FOUND HERE: 
 + 
 +kvalobs=# select * from data where cfailed like '%Qc2%' and obstime>'2010-05-28'; 
 + stationid |       obstime       | original | paramid |       tbtime        | typeid | sensor | level | corrected |   controlinfo    |     useinfo      |             cfailed              
 +-----------+---------------------+----------+---------+---------------------+--------+--------+-------+-----------+------------------+------------------+--------------------------------- 
 +     72580 | 2010-05-30 21:00:00 |   -32767 |     211 | 2010-05-30 21:30:04 |    311 | 0      |     0 |       7.6 | 0000001100000000 | 9894900000000000 |  Qc2 UnitT corrected was:-32767 
 +     72580 | 2010-05-30 19:00:00 |   -32767 |     211 | 2010-05-30 19:30:11 |    311 | 0      |     0 |       8.6 | 0000001100000000 | 9894900000000000 |  Qc2 UnitT corrected was:-32767 
 +     99754 | 2010-05-30 18:00:00 |   -32767 |     211 | 2010-05-30 18:30:09 |    330 | 0      |     0 |       0.6 | 0000001100000000 | 9894900000000000 |  Qc2 UnitT corrected was:-32767 
 +     25110 | 2010-05-30 03:00:00 |   -32767 |     211 | 2010-05-30 03:30:04 |    311 | 0      |     0 |      -1.3 | 0000001100000000 | 9894900000000000 |  Qc2 UnitT corrected was:-32767 
 +     10380 | 2010-05-29 10:00:00 |   -32767 |     211 | 2010-05-29 10:30:11 |    311 | 0      |     0 |       5.7 | 0000001100000000 | 9894900000000000 |  Qc2 UnitT corrected was:-32767 
 +     47260 | 2010-05-29 10:00:00 |   -32767 |     211 | 2010-05-29 10:30:10 |    311 | 0      |     0 |      11.2 | 0000001100000000 | 9894900000000000 |  Qc2 UnitT corrected was:-32767 
 +     99754 | 2010-05-29 09:00:00 |   -32767 |     211 | 2010-05-29 09:30:07 |    330 | 0      |     0 |       0.8 | 0000001100000000 | 9894900000000000 |  Qc2 UnitT corrected was:-32767 
 +     24710 | 2010-05-29 08:00:00 |   -32767 |     211 | 2010-05-29 08:30:09 |    342 | 0      |     0 |      11.2 | 0000001100000000 | 9894900000000000 |  Qc2 UnitT corrected was:-32767 
 +     90490 | 2010-05-29 07:00:00 |   -32767 |     211 | 2010-05-29 07:30:11 |    311 | 0      |     0 |      12.8 | 0000001100000000 | 9894900000000000 |  Qc2 UnitT corrected was:-32767 
 +     18500 | 2010-05-29 05:00:00 |   -32767 |     211 | 2010-05-29 05:30:07 |    342 | 0      |     0 |       6.3 | 0000001100000000 | 9894900000000000 |  Qc2 UnitT corrected was:-32767 
 +     96310 | 2010-05-29 03:00:00 |   -32767 |     211 | 2010-05-29 03:30:09 |    311 | 0      |     0 |       2.9 | 0000001100000000 | 9894900000000000 |  Qc2 UnitT corrected was:-32767 
 +     18500 | 2010-05-28 20:00:00 |   -32767 |     211 | 2010-05-28 20:30:08 |    342 | 0      |     0 |       5.9 | 0000001100000000 | 9894900000000000 |  Qc2 UnitT corrected was:-32767 
 +     29720 | 2010-05-28 17:00:00 |   -32767 |     211 | 2010-05-28 17:30:04 |    311 | 0      |     0 |       3.4 | 0000001100000000 | 9894900000000000 |  Qc2 UnitT corrected was:-32767 
 +     29720 | 2010-05-28 13:00:00 |   -32767 |     211 | 2010-05-28 13:30:11 |    311 | 0      |     0 |       5.4 | 0000001100000000 | 9894900000000000 |  Qc2 UnitT corrected was:-32767 
 +     98580 | 2010-05-28 10:00:00 |   -32767 |     211 | 2010-05-28 10:30:10 |    311 | 0      |     0 |       2.4 | 0000001100000000 | 9894900000000000 |  Qc2 UnitT corrected was:-32767 
 +     93900 | 2010-05-28 04:00:00 |   -32767 |     211 | 2010-05-28 04:30:14 |    330 | 0      |     0 |       0.3 | 0000001100000000 | 9894900000000000 |  Qc2 UnitT corrected was:-32767 
 +     90490 | 2010-05-28 04:00:00 |   -32767 |     211 | 2010-05-28 04:30:12 |    311 | 0      |     0 |         9 | 0000001100000000 | 9894900000000000 |  Qc2 UnitT corrected was:-32767 
 +(17 rows) 
 +</code> 
 + 
 +**Dupload the Package** 
 + 
 +Some first steps: 
 + 
 +FIXME THat which follows is a debian hardy dupload ... should be etch. This is corrected at the bottom of this documentation! 
 + 
 +<code> 
 +From the met.no pc: 
 +$ ssh-copy-id repo.met.no 
 +$ ssh 'repo.met.no'   # to check 
 + 
 +... on dev-vm101 
 + 
 +$  sudo apt-get install dupload 
 +# I then had to edit the conf file as root (dodgy) perhaps I should have made a local one?? 
 + 
 +$ sudo vi /etc/dupload.conf  
 + 
 +and sneaked the following info in: 
 + 
 +$cfg{'hardy-devel'} = { 
 + fqdn => "repo.met.no", 
 + method => "scpb", 
 + incoming => "/incoming/devel/hardy/main", 
 + dinstall_runs => 1, 
 + preupload=>
 + changes=>'sed -i "s/^Distribution:.*$/Distribution: hardy/g" %1', 
 + }, 
 +}; 
 +</code> 
 + 
 +See https://dokit.met.no/sysdok/linux/server/utviklingsspeil_reprepro for wonderful documentation on this! 
 + 
 +**And now the actual DupLoad** 
 + 
 +... the following was all done on dev-vm101 
 + 
 +<code> 
 +NB NB first good to use the "--no" option that will tell you the results without 
 +doing anything!!! 
 +paule@dev-vm101:~/kvqc2-1.0.0$ sudo dupload --no --to hardy-devel /home/paulee 
 +... 
 +... 
 + 
 +And now lets go for it ... 
 + 
 +paule@dev-vm101:~/kvqc2-1.0.0$ sudo dupload --to hardy-devel /home/paulee/kvqc2-1.0.0/kvqc2_1.0.0-1_i386.changes  
 +dupload note: no announcement will be sent. 
 +Uploading (scpb) to repo.met.no:/incoming/devel/hardy/main 
 +[ job kvqc2_1.0.0-1_i386 from kvqc2_1.0.0-1_i386.changes 
 + kvqc2_1.0.0-1_i386.deb, md5sum ok 
 + kvqc2_1.0.0.orig.tar.gz, md5sum ok 
 + kvqc2_1.0.0-1.diff.gz, md5sum ok 
 + kvqc2_1.0.0-1.dsc, md5sum ok 
 + kvqc2_1.0.0-1_i386.changes ok ] 
 +Uploading (scp) to hardy-devel (repo.met.no) 
 +[ Uploading job kvqc2_1.0.0-1_i386 
 + kvqc2_1.0.0-1_i386.deb 269.3 kB, ok 
 + kvqc2_1.0.0.orig.tar.gz 410.9 kB, ok 
 + kvqc2_1.0.0-1.diff.gz 8.1 kB, ok 
 + kvqc2_1.0.0-1.dsc 0.7 kB, ok 
 + kvqc2_1.0.0-1_i386.changes 0.7 kB, ok 
 +The authenticity of host 'repo.met.no (157.249.16.133)' can't be established. 
 +RSA key fingerprint is b5:6a:9d:fb:37:1d:8c:13:b7:ef:f2:d8:0e:07:60:86. 
 +Are you sure you want to continue connecting (yes/no)? yes 
 +Warning: Permanently added 'repo.met.no,157.249.16.133' (RSA) to the list of known hosts. 
 +paule@repo.met.no's password:  
 +Permission denied, please try again. 
 +paule@repo.met.no's password:  
 +kvqc2_1.0.0-1_i386.deb                                                                                             100%  269KB 269.3KB/  00:00     
 +kvqc2_1.0.0.orig.tar.gz                                                                                            100%  411KB 410.9KB/  00:00     
 +kvqc2_1.0.0-1.diff.gz                                                                                              100% 8297     8.1KB/  00:00     
 +kvqc2_1.0.0-1.dsc                                                                                                  100%  692     0.7KB/  00:00     
 +kvqc2_1.0.0-1_i386.changes                                                                                         100%  704     0.7KB/  00:00     
 + ] 
 +paule@dev-vm101:~/kvqc2-1.0.0$  
 + 
 +Yiiippeeee 
 + 
 +</code> 
 + 
 +**The above was a little weird** 
 + 
 +  * Did not need to edit /etc/dupload.conf 
 +  * It is enough to have a personal .dupload.conf 
 +  * Generated .dupload.conf from all the contents in the main documentation 
 +  * And then: 
 + 
 +<code> 
 +paule@dev-vm101:~/kvqc2-1.0.0$ dupload --no --to etch-devel /home/paulee/kvqc2-1.0.0/kvqc2_1.0.0-1_i386.changes 
 +dupload note: no announcement will be sent. 
 +Uploading (scpb) to repo.met.no:/incoming/devel/etch/main 
 +[ job kvqc2_1.0.0-1_i386 from kvqc2_1.0.0-1_i386.changes 
 + kvqc2_1.0.0-1_i386.deb, md5sum ok 
 + kvqc2_1.0.0.orig.tar.gz, md5sum ok 
 + kvqc2_1.0.0-1.diff.gz, md5sum ok 
 + kvqc2_1.0.0-1.dsc, md5sum ok 
 + kvqc2_1.0.0-1_i386.changes ok ] 
 +Uploading (scp) to etch-devel (repo.met.no) 
 +[ Uploading job kvqc2_1.0.0-1_i386 
 + kvqc2_1.0.0-1_i386.deb 269.3 kB, ok 
 + kvqc2_1.0.0.orig.tar.gz 410.9 kB, ok 
 + kvqc2_1.0.0-1.diff.gz 8.1 kB, ok 
 + kvqc2_1.0.0-1.dsc 0.7 kB, ok 
 + kvqc2_1.0.0-1_i386.changes 0.7 kB, ok 
 ++ scp  kvqc2_1.0.0-1_i386.deb kvqc2_1.0.0.orig.tar.gz kvqc2_1.0.0-1.diff.gz kvqc2_1.0.0-1.dsc kvqc2_1.0.0-1_i386.changes  paule@repo.met.no:/incoming/devel/etch/main 
 ++ ssh -x -l paule repo.met.no 'cd /incoming/devel/etch/main;' 
 ++ log to kvqc2_1.0.0-1_i386.upload 
 + 
 ++ log successful upload 
 + ] 
 +paule@dev-vm101:~/kvqc2-1.0.0$ dupload --to etch-devel /home/paulee/kvqc2-1.0.0/kvqc2_1.0.0-1_i386.changes 
 +dupload note: no announcement will be sent. 
 +Uploading (scpb) to repo.met.no:/incoming/devel/etch/main 
 +[ job kvqc2_1.0.0-1_i386 from kvqc2_1.0.0-1_i386.changes 
 + kvqc2_1.0.0-1_i386.deb, md5sum ok 
 + kvqc2_1.0.0.orig.tar.gz, md5sum ok 
 + kvqc2_1.0.0-1.diff.gz, md5sum ok 
 + kvqc2_1.0.0-1.dsc, md5sum ok 
 + kvqc2_1.0.0-1_i386.changes ok ] 
 +Uploading (scp) to etch-devel (repo.met.no) 
 +[ Uploading job kvqc2_1.0.0-1_i386 
 + kvqc2_1.0.0-1_i386.deb 269.3 kB, ok 
 + kvqc2_1.0.0.orig.tar.gz 410.9 kB, ok 
 + kvqc2_1.0.0-1.diff.gz 8.1 kB, ok 
 + kvqc2_1.0.0-1.dsc 0.7 kB, ok 
 + kvqc2_1.0.0-1_i386.changes 0.7 kB, ok 
 +Enter passphrase for key '/home/paulee/.ssh/id_dsa':  
 +kvqc2_1.0.0-1_i386.deb                        100%  269KB 269.3KB/  00:00     
 +kvqc2_1.0.0.orig.tar.gz                       100%  411KB 410.9KB/  00:00     
 +kvqc2_1.0.0-1.diff.gz                         100% 8297     8.1KB/  00:00     
 +kvqc2_1.0.0-1.dsc                             100%  692     0.7KB/  00:00     
 +kvqc2_1.0.0-1_i386.changes                    100%  703     0.7KB/  00:00     
 + ] 
 +paule@dev-vm101:~/kvqc2-1.0.0$  
 +</code> 
 + 
 +And Bob is once more your Uncle!
  
 +Note: the kvqc2 package is debian etch and not hardy!!!!!
  • kvalobs/kvoss/system/qc2/8hdk376snf09zj37dk82s92/debian-build-notes.1275256748.txt.gz
  • Last modified: 2022-05-31 09:23:18
  • (external edit)