Debian Codegraph @

dist/RELEASE-INSTRUCTIONS

raw
1 This is a summary of the steps required to make a new release. Do not
2 attempt to run these manually - instead use the 'makerelease'
3 application and makerelease.xml file. Get 'makerelease' from the
4 makerelease repository:
5
6 git clone https://github.com/hardaker/makerelease
7 cd makerelease
8 perl Makefile.PL
9 make
10 sudo make install
11
12 Then to run it from a directory to release:
13
14 makerelease -c NETSNMPTRUNK/dist/makerelease.xml
15
16 It will prompt you for all needed information and tasks to be done.
17
18 IMPORTANT NOTE:
19 Don't *ever* release a second tar ball under the same name as the
20 first. It's much much much better to release another version
21 instead, since you don't have to figure out from the bug reports
22 that a user really grabbed the first snapshot instead of the
23 second when they complain about version "XXX" not working.
24
25 ====== makerelease -n output showing makerelease documented steps ======
26
27 STEP: 1: Setup Steps
28
29 This set of steps will do some preliminary "safety" checks to ensure the
30 local environment is ok and setup some important information.
31
32 ===== Entering Step: 1 =====
33
34 STEP: 1.1: Setup Checck
35
36 This should show the last version number published in this branch by
37 looking at the time line in the README file:
38
39 Commands to execute:
40
41 head -1 README
42
43 STEP: 1.2: Pick a Version Number
44
45 Please enter the version number to publish. Net-SNMP convention dictates
46 that this be a version number like 5.4 or 5.4.1. Pre-releases that occur
47 before a branch freezes should be appended with ".preN" like 5.4.1.pre2.
48 Release-candidates should be labeled ".rcN" like 5.4.1.rc1.
49
50 Decide on a value for parameter 'VERSION'
51
52 parameter: VERSION
53
54 prompt: Enter the new version number:
55
56 STEP: 1.3: Defining a second internal version string
57
58 Internal perl code will be executed
59
60 STEP: 1.4: Release Parameter Information
61
62 Here is the configured information we'll be using:
63
64 VERSION: {VERSION}
65
66 VERSION with dashes: {VERSIONDASHES}
67
68 Floating point VERSION: {VERSIONFLOAT}
69
70 Branch URL: {BRANCHPATH}
71
72 STEP: 1.5: update
73
74 We need to make sure your code is up to date and matches the latest
75 sources in this branch.
76
77 Commands to execute:
78
79 svn update
80
81 STEP: 1.6: Check for changes
82
83 This steps looks for outstanding files that have been modified. There
84 should be no outstanding modifications! If this step finds outstanding
85 modified files you need to check them in or revert them before
86 continuing!
87
88 Commands to execute:
89
90 svn -u status | egrep '^[^\?]'
91
92 (Leaving Step: 1)
93
94 STEP: 2: Source Code Setup
95
96 This set of steps will modify various places within the source code tree
97 to bring it up to date with the new version number about to be published.
98
99 ===== Entering Step: 2 =====
100
101 STEP: 2.1: Libtool / Library versioning setup
102
103 These steps will modify the various files in the source tree that contain
104 the version number, show you the changes that will be made and then check
105 in the resulting changes if you approve of them.
106
107 ===== Entering Step: 2.1 =====
108
109 STEP: 2.1.1: version:libtoolmanualedit
110
111 You (may) need to edit Makefile.top to update the library version
112 numbering (usually just for the first pre-release of a given version).
113 See the comments in RELEASE-INSTRUCTIONS about LIBCURRENT, LIBAGE and
114 LIBREVISION.
115
116 This script will commit the file for you after you're done.
117
118 STEP: 2.1.2: version:commit
119
120 We'll now commit the Makefile.top file if you've modified it.
121
122 Commands to execute:
123
124 svn commit -m "version update" Makefile.top
125
126 (Leaving Step: 2.1)
127
128 STEP: 2.2: Change The Version Number
129
130 These steps will modify the various files in the source tree that contain
131 the version number, show you the changes that will be made and then check
132 in the resulting changes if you approve of them.
133
134 ===== Entering Step: 2.2 =====
135
136 STEP: 2.2.1: Modify the source files
137
138 We will now modify files through the code to replace the version number
139 with the newer one.
140
141 Modifying files:
142
143 replacing: 'VERSION = '(.*)'' with: 'VERSION = \'{VERSIONFLOAT}\''
144
145
146 files: glob=ARRAY(0x8dc9064)
147
148 perl/SNMP/SNMP.pm
149
150 perl/agent/agent.pm
151
152 perl/agent/Support/Support.pm
153
154 perl/agent/default_store/default_store.pm
155
156 perl/default_store/default_store.pm
157
158 perl/OID/OID.pm
159
160 perl/ASN/ASN.pm
161
162 perl/AnyData_SNMP/Storage.pm
163
164 perl/AnyData_SNMP/Format.pm
165
166 perl/TrapReceiver/TrapReceiver.pm
167
168
169
170 Modifying files:
171
172 replacing: 'NetSnmpVersionInfo = "[\d\.]+"' with: 'NetSnmpVersionInfo =
173 "{VERSION}"'
174
175
176 files: glob=ARRAY(0x8dc8fd4)
177
178 snmplib/snmp_version.c
179
180
181
182 Modifying files:
183
184 replacing: 'Version: [\.0-9a-zA-Z]+' with: 'Version: {VERSION}'
185
186
187 files: glob=ARRAY(0x8dc8f44)
188
189 README
190
191 FAQ
192
193 dist/net-snmp.spec
194
195
196
197 Modifying files:
198
199 replacing: 'VERSION = [\.0-9a-zA-Z]+' with: 'VERSION = {VERSION}'
200
201
202 files: glob=ARRAY(0x8dc8ed4)
203
204 dist/Makefile
205
206
207
208 Modifying files:
209
210 replacing: 'AC_INIT\(\[Net-SNMP\], \[([^\]]+)\]' with:
211 'AC_INIT([Net-SNMP], [{VERSION}]'
212
213
214 files: glob=ARRAY(0x8dc8e64)
215
216 configure.in
217
218
219
220 Modifying files:
221
222 replacing: 'NetSnmpVersionInfo = "[^"]+"' with: 'NetSnmpVersionInfo =
223 "{VERSION}"'
224
225
226 files: glob=ARRAY(0x8dc8df4)
227
228 snmplib/snmp_version.c
229
230
231
232 STEP: 2.2.2: Running autoconf to rebuild configure
233
234 We modified configure.in, so we now need to run autoconf to rebuild
235 configure.
236
237 XXX: in the future we should verify the correct autoconf version number
238
239 Commands to execute:
240
241 autoconf
242
243 STEP: 2.2.3: Running svn diff to check changes
244
245 Check the following changes for proper version number differences before
246 we commit the chances.
247
248 Commands to execute:
249
250 svn diff
251
252 STEP: 2.2.4: Running svn commit to commit the changes
253
254 Check the changes in the above diff and then we'll commit the results
255 here if they look ok.
256
257 Commands to execute:
258
259 svn commit -m "Version number update"
260
261 (Leaving Step: 2.2)
262
263 STEP: 2.3: docs:make
264
265 This step will create manual pages from doxygen instrumented code files.
266
267 Commands to execute:
268
269 make docs
270
271 make mancp
272
273 STEP: 2.4: docs:update
274
275 This will run svn status to figure out what files have changed since the
276 previous man page generation steps were done. After this step, we'll
277 commit all the modified files.
278
279 You may find additional files (marked with a ?) that should be added to
280 the svn repository and you'll need to do this by hand before going on to
281 the next step.
282
283 Note: based on a recent net-snmp-admin discussion, we're no longer going
284 to be adding the bazillions of man pages that doxygen generates by
285 default. Only important ones should be added.
286
287 Commands to execute:
288
289 svn -u status man
290
291 STEP: 2.5: docs:manualaddnewman
292
293 Update man/Makefile.in with details of any new man pages, and run 'svn
294 add' on them.
295
296 I'll commit these changes for you after you're done.
297
298 STEP: 2.6: docs:commit
299
300 Commands to execute:
301
302 svn commit -m "documentation update" man
303
304 (Leaving Step: 2)
305
306 STEP: 3: Testing Steps
307
308 These steps will help you test the source code to ensure it passes some
309 simple "it works" tests.
310
311 ===== Entering Step: 3 =====
312
313 STEP: 3.1: build:distclean
314
315 First we need to clean the existing build tree and start from scratch.
316
317 Commands to execute:
318
319 make distclean
320
321 STEP: 3.2: build:configure
322
323 We need to run configure to set up the build tree.
324
325 Commands to execute:
326
327 ./configure --cache=config.cache --with-defaults
328 --with-mib-modules='host examples examples/example testhandler smux Rmon
329 disman/event-mib' --with-transports=IPX --enable-ipv6
330 --enable-embedded-perl --enable-shared
331
332 STEP: 3.3: build:make
333
334 Then we need to build the code
335
336 Commands to execute:
337
338 make
339
340 STEP: 3.4: build:test
341
342 Now we run "make test" which should produce a perfect set up test
343 results. If not, this needs to be fixed or at least understood and
344 accepted as is for some other reason.
345
346 Commands to execute:
347
348 make test TESTOPTS=-n
349
350 STEP: 3.5: code:checkcomments
351
352 This command looks for source code oddities and policy violations.
353
354 Commands to execute:
355
356 make checks
357
358 (Leaving Step: 3)
359
360 STEP: 4: Release File Steps
361
362 Certain files in the distribution and built on a per-release basis.
363 These steps will help set up these files.
364
365 ===== Entering Step: 4 =====
366
367 STEP: 4.1: code:makedepend
368
369 This step creates Makefile dependencies using the "distdepend" rule in
370 the top level Makefile.
371
372 Commands to execute:
373
374 make distdepend
375
376 STEP: 4.2: code:commitdepend
377
378 This step commits the dependency changes done in the previous step.
379
380 Commands to execute:
381
382 svn commit -m "make depend" `find . -name Makefile.depend`
383
384 STEP: 4.3: changelog:svn2cl
385
386 We need to extract the portions of the change logs committed to the
387 repository.
388
389 Commands to execute:
390
391 svn2cl -f ChangeLog.add --break-before-msg --stop-on-copy
392
393 perl dist/changelogfix < ChangeLog.add > ChangeLog.reallyadd
394
395 STEP: 4.4: changelog:manualedit
396
397 You need to manually insert the *relevent* portions of
398 'ChangeLog.reallyadd' into the ChangeLog file. I'll commit these changes
399 for you after you finish cutting out the proper changes.
400
401 STEP: 4.5: changelog:commit
402
403 Commands to execute:
404
405 svn commit -m "version update" ChangeLog
406
407 STEP: 4.6: docs:newnews
408
409 Commands to execute:
410
411 perl dist/extractnews -s ----- -e ----- ChangeLog
412
413 STEP: 4.7: docs:newnews
414
415 Commands to execute:
416
417 perl dist/extractnews -c CHANGES.new2 -n NEWS.new2 ChangeLog.reallyadd
418
419 STEP: 4.8: docs:README
420
421 You need to manually insert the relevent portions of 'CHANGES.new' and
422 'NEWS.new' into the CHANGES and NEWS file. (There are alternative
423 versions in 'CHANGES.new2' and 'NEWS.new2') You may wish to update the
424 README file as well. I'll commit these changes for you afterwards
425
426 STEP: 4.9: docs:commit
427
428 Commands to execute:
429
430 svn commit -m "version update" README NEWS CHANGES
431
432 STEP: 4.10: release:update
433
434 One more svn update and status to make sure nothing odd exists in your
435 source tree. Please check the results!
436
437 Commands to execute:
438
439 svn -u status
440
441 (Leaving Step: 4)
442
443 STEP: 5: Make the Release
444
445 This is it! After this point it's much harder to turn back. If
446 everything is ok until this point and you're ready to actually stamp the
447 release in git and make release files, these steps will do that for you.
448
449 ===== Entering Step: 5 =====
450
451 STEP: 5.1: release:tag
452
453 This will actually svn copy the current checked out branch to the new tag
454 name. Specifically:
455
456 svn copy {BRANCHPATH} .../tags/Ext-{VERSIONDASHES}
457
458 Commands to execute:
459
460 svn copy -m "{VERSION} release" {BRANCHPATH}
461 https://net-snmp.svn.sourceforge.net/svnroot/net-snmp/tags/Ext-{VERSIONDA
462 SHES}
463
464 STEP: 5.2: release:makedist
465
466 Commands to execute:
467
468 svn export
469 https://net-snmp.svn.sourceforge.net/svnroot/net-snmp/tags/Ext-{VERSIONDA
470 SHES}/net-snmp net-snmp-{VERSION}
471
472 STEP: 5.3: release:removefiles
473
474 Commands to execute:
475
476 net-snmp-{VERSION}/remove-files net-snmp-{VERSION}
477
478 STEP: 5.4: release:makedist
479
480 Commands to execute:
481
482 star artype=ustar -c -z -f net-snmp-{VERSION}.tar.gz
483 net-snmp-{VERSION}
484
485 STEP: 5.5: release:makezipclean
486
487 Commands to execute:
488
489 rm -f net-snmp-{VERSION}.zip
490
491 STEP: 5.6: release:makezip
492
493 Commands to execute:
494
495 zip -r net-snmp-{VERSION}.zip net-snmp-{VERSION}
496
497 STEP: 5.7: release:searching-gpg-keys
498
499 Commands to execute:
500
501 gpg --list-secret-keys net-snmp-admin
502
503 STEP: 5.8: release:gpg
504
505 Commands to execute:
506
507 gpg -u 317F8F64 -a --detach-sign net-snmp-{VERSION}.tar.gz
508
509 STEP: 5.9: release:gpg
510
511 Commands to execute:
512
513 gpg -u 317F8F64 -a --detach-sign net-snmp-{VERSION}.zip
514
515 STEP: 5.10: Release File Test
516
517 We'll also re-build the source and retest a few things to ensure the
518 packaged file can actually be built.
519
520 ===== Entering Step: 5.10 =====
521
522 STEP: 5.10.1: posttest:untar
523
524 Commands to execute:
525
526 rm -rf net-snmp-{VERSION}
527
528 STEP: 5.10.2: posttest:untar
529
530 Commands to execute:
531
532 tar xzf net-snmp-{VERSION}.tar.gz
533
534 STEP: 5.10.3: posttest:configure
535
536 Commands to execute:
537
538 cd net-snmp-{VERSION} && ./configure --cache=config.cache
539 --with-defaults --with-mib-modules='host examples examples/example
540 testhandler smux Rmon disman/event-mib' --with-transports=IPX
541 --enable-ipv6 --enable-embedded-perl --enable-shared
542
543 STEP: 5.10.4: posttest:make
544
545 Commands to execute:
546
547 cd net-snmp-{VERSION} && make
548
549 STEP: 5.10.5: posttest:test
550
551 Commands to execute:
552
553 cd net-snmp-{VERSION} && make test
554
555 (Leaving Step: 5.10)
556
557 (Leaving Step: 5)
558
559 STEP: 6: Release the results
560
561 Now we'll publish the results to the SF server
562
563 ===== Entering Step: 6 =====
564
565 STEP: 6.1: rsync the new files
566
567 This will copy the results to the SF uploads directory in your account on
568 frs.sourceforge.net
569
570 Commands to execute:
571
572 rsync -v net-snmp-{VERSION}.tar.gz net-snmp-{VERSION}.tar.gz.asc
573 net-snmp-{VERSION}.zip net-snmp-{VERSION}.zip.asc
574 frs.sourceforge.net:uploads/
575
576 STEP: 6.2: Update the SF release web page
577
578 Commands to execute:
579
580 firefox
581 'http://sourceforge.net/project/admin/editpackages.php?group_id=12694'
582
583 (Leaving Step: 6)
584
585 STEP: 7:
586
587 Binaries: build rpms, .tar.gzs, etc.
588
589 STEP: 8: Advertise it!
590
591 ===== Entering Step: 8 =====
592
593 STEP: 8.1:
594
595 Add a note to the source forge news system:
596
597 http://sourceforge.net/news/submit.php?group_id=12694
598
599 Commands to execute:
600
601 firefox 'http://sourceforge.net/news/submit.php?group_id=12694'
602
603 STEP: 8.2:
604
605 Send an announcement message to one of the following mailing lists based
606 on it's type:
607
608 pre: [email protected]
609
610 rc: [email protected]
611
612 final: [email protected]
613
614 STEP: 8.3:
615
616 Update the topic on the #Net-SNMP channel if this is a trunk based
617 release.
618
619 STEP: 8.4:
620
621 Update the freshmeat listing (Wes needs to do this):
622
623 http://freshmeat.net/projects/net-snmp/
624
625 Commands to execute:
626
627 firefox http://freshmeat.net/projects/net-snmp/
628
629 (Leaving Step: 8)
630
631 STEP: 9:
632
633 Advertise: NEWS upload to sf, publish on -announce, freshmeat, and the
634 GNU FSF directory (http://directory.fsf.org/project/net-snmp/)... (send
635 mail to [email protected])
636
637
638
639
640
641 ====== BEGIN OBSOLETE (pre-makerelease) DOCUMENTATION ======
642
643 ***************************************************************************
644 TESTING:
645
646 1) Update the source tree to catch all recent commits,
647 and check that all local changes have been committed.
648
649 $ svn -u status
650 $ svn update
651
652 2) Change the libtool version information in Makefile.top.
653 See MANUAL - STEP 1 later in these instructions.
654 'makerelease' will commit this file automatically.
655
656 3) Configure the suite with as many modules as possible,
657 build and test it. The makerelease script will use
658 the options:
659
660 $ ./configure '--with-mib-modules=host examples examples/example \
661 testhandler smux Rmon disman/event-mib' \
662 --with-transports=IPX --enable-ipv6 \
663 --enable-embedded-perl --enable-shared
664
665 Ideally this should be repeated on as many systems as possible
666 (including running "make install"). However the makerelease
667 script will only test things on the current box, and will not
668 try to install the software.
669
670
671 ***************************************************************************
672 DOCUMENTATION:
673
674 4) Update the version number in the doxygen.conf file
675 (handled automatically by 'makerelease') and generate
676 the doxygen extracted manual pages.
677
678 $ make docs
679 $ make mancp
680
681 'makerelease' will commit this file automatically.
682 Note that any new man pages should be added to Makefile.in.
683 This is *NOT* currently handled by the makerelease script.
684
685 5) Check the code for illegal constructs (e.g. C++ style comments
686 or GNU make specific constructs in Makefiles):
687
688 $ make checks
689
690 6) Update Makefile dependencies:
691
692 $ make distdepend
693
694 'makerelease' will commit these dependencies automatically.
695
696 7) Update the ChangeLog file with details of all (recent) changes
697 to the suite. See MANUAL - STEP 2 later in these instructions.
698 'makerelease' will commit this file automatically.
699
700 8) Update the README, NEWS, and CHANGES files with details of
701 significant changes to the suite. See MANUAL - STEP 3 later
702 in these instructions.
703 'makerelease' will commit these files automatically.
704
705
706 ***************************************************************************
707 RELEASE:
708
709 9) Make sure all changes are checked in:
710
711 $ svn -u status
712 $ svn update
713
714 [Note that this step is omitted when running "makerelease"]
715
716 10) Change the version number in various files
717 (README, FAQ, configure.in, net-snmp.spec and assorted Perl modules).
718 'makerelease' will update and commit these files automatically.
719
720 11) Create a tag checkpoint for this release:
721
722 $ svn copy /trunk /tags/Ext-5-x
723 or
724 $ svn copy /branches/V5-x-patches /tags/Ext-5-x-y
725
726 12) Construct the source packages:
727
728 $ svn export /tags/Ext-5-x-y/net-snmp net-snmp-5.x.y
729 $ net-snmp-5.x.y/remove-files net-snmp-5.x.y
730 $ star artype=ustar -c -z -f net-snmp-5.x.y.tar.gz net-snmp-5.x.y
731 $ rm -f net-snmp-5.x.y.zip"
732 $ zip -r net-snmp-5.x.y.zip net-snmp-5.x.y"
733
734
735 13) Sign (or checksum) the packages:
736
737 Wes/Robert:
738 $ gpg -u net-snmp-admin -a --detach-sign net-snmp-5.x.y.tar.gz
739 $ gpg -u net-snmp-admin -a --detach-sign net-snmp-5.x.y.zip
740 Others:
741 $ md5sum net-snmp-5.x.y.tar.gz > net-snmp-5.x.y.tar.gz.md5
742 $ md5sum net-snmp-5.x.y.zip > net-snmp-5.x.y.zip.md5
743
744
745 ***************************************************************************
746 RELEASE TESTING:
747
748 14) Unpack a clean copy of the tarball, configure, build and
749 test the release tarball.
750
751 15) Double-check that there are no outstanding changes that have
752 been missed from the CVS checkin:
753
754 $ svn status
755
756 Note: This is the last stage that is handled by the "makerelease" script
757 Everything following will need to be done manually.
758
759 15) Upload the packages (and signature files) to the SourceForge server:
760
761 $ ncftpput upload.sf.net incoming net-snmp-5.x.y.tar.gz
762 $ ncftpput upload.sf.net incoming net-snmp-5.x.y.zip
763 * SF pages: "Admin" -> "File Releases"
764 * net-snmp: "Add Release" (or "Edit Release")
765 * Create (or choose) an appropriate release name
766 e.g. "5.x.y source code" (or "5.x.y pre-releases")
767 * "Edit This Release"
768 * Select the tarball and/or other relevant files
769
770 16) Announce the release on the appropriate list.
771 Pre-release announcements (and a call for testing) should be
772 sent to net-snmp-coders, release-candidates to net-snmp-users.
773
774 Full releases should be announced on net-snmp-users, and as a
775 news item on the project home page - including the NEWS snippet
776 of significant changes since the last release.
777
778 17) Update the following htdocs files (in the main git trunk):
779 htdocs/download.html
780 htdocs/dev/schedule.html
781
782 [Make sure you have permissions set up properly on the web
783 server so that files created become group-writable!!!]
784
785 That concludes the process for pre-releases and release-candidates.
786 For full releases, wait a week to ensure that there are no major
787 problems, before continuing with the remaining steps.
788
789 If there are known problems and another release is planned to
790 fix them, don't announce the broken version - wait for the updated
791 one instead.
792
793 18) Once this week has elapsed, submit an announement of the new
794 release to net-snmp-announce. This message will need to be
795 explicitly authorized via MailMan.
796
797 Also update the IRC topic to include mention of this release.
798
799 19) For a release on the most recent development line, start bugging
800 Wes to update the freshmeat, Free Software Directory and
801 Wikipedia entries.
802
803 20) For a release on the most recent development line, update the
804 'htdocs/page-top.html' file (in the main git trunk) to reference
805 the latest version.
806
807 Update the following files with any changes:
808
809 htdocs/docs/readmefiles/NEWS
810 htdocs/docs/readmefiles/CHANGES
811 htdocs/docs/readmefiles/README*
812 htdocs/COPYING
813
814 [Make sure you have permissions set up properly on the web
815 server so that files created become group-writable!!!]
816
817
818 21) For a major new-feature release (i.e. 5.x), create the patches
819 branch:
820
821 $ git co -b V5-x-patches
822
823 and update the git main trunk with a new version number:
824
825 $ local/Version-Munge.pl -v 5.(x+1).dev -M -P -C
826
827 The 1 week delay (and continued code freeze) is to to ensure that
828 developer effort is concentrated on immediate problems following
829 the release. Any major problems should hopefully come to light
830 during this period, so after a week it should be safe to create
831 the patches branch and officially end the code freeze on MAIN.
832
833 22) Update the official patches tracker set:
834
835 - any patches for this new release tarball should be given
836 priority 9
837 - all patches for the previous release on this line should
838 be marked at priority 5
839 - all patches for earlier releases on this line should
840 be marked at priority 1, and closed
841
842 If a line has been designated closed, then all official
843 patches for that line should be marked as closed as well.
844
845 23) Hide the pre-release repository from the File Releases
846 admin pages.
847
848 24) Clean up the 'dist' dir of the relevant V5-x-patches branch.
849 Only leave the following files:
850
851 changelogfix cvsshow cvsup extractnews makerelease
852 net-snmp.spec snmpd-init.d snmptrapd-init.d
853
854 Note that any files removed should also be deleted from
855 git repository.
856
857
858 ***************************************************************************
859 CREATING BINARY DISTRIBUTIONS
860
861 0) Always REMOVE ALL PREVIOUS INSTALLS FIRST, then do a make install
862 from the tar-ball extracted sources and *THEN* rebuild all
863 binaries again. This ensures that everything (especially perl
864 modules) are properly linked against the right libraries.
865
866 1) always build releases from a tarball, not from git.
867
868 2) Add mib modules that are common. Basically, add:
869
870 host -- where supported.
871 disman/event-mib
872 smux
873
874 3) use --with-defaults --with-syscontact="Unknown"
875 --with-syslocation="Unknown"
876
877 4) when running make install, do it like:
878
879 $ make install prefix=/some/path/to/home/ARCH/usr/local \
880 exec_prefix=/some/path/to/home/ARCH/usr/local
881
882 5) Tar it up:
883
884 $ cd /some/path/to/home/ARCH
885 $ tar czf net-snmp-5.0.3-ARCH.tar.gz usr/local
886
887 6) upload and release, like you did for the source code but with a
888 different package name for binaries (5.0.3 binaries).
889
890 7) RPMs [do this in main line even if its for a patch branch]:
891 $ cd dist
892 $ cp ../net-snmp-5.0.8.tar.gz rpm/SOURCES
893 $ make RELEASE=1
894
895 This should put multiple binary rpm files in:
896 dist/rpm/RPMS/i386/
897 And one source RPM in:
898 dist/rpm/SRPMS/
899
900 *** These files need to be renamed to include the OS version.
901
902 EG: ...i386.rpm needs to become ...fc5.i386.rpm
903
904 8) Remove (or hide) binaries from older releases of the same line,
905 where you have submitted a newer binary for the same architecture.
906 Once the last binary for a particular release version has been
907 removed, hide that repository.
908
909
910 ***************************************************************************
911 ***************************************************************************
912 MANUAL - STEP 1
913
914 Changing the libtool version information in Makefile.top.
915
916 - If any interfaces/structures have been removed or changed since the
917 last update, increment current (+5), and set age and revision to 0.
918 Stop!
919
920 - If any interfaces have been added since the last public release,
921 then increment current and age, and set revision to 0.
922 Stop!
923
924 - If the source code has changed at all since the last update,
925 then increment revision (c:r:a becomes c:r+1:a).
926
927 Note: maintenance releases (eg 5.2.x) should never have changes
928 that would require current to be incremented.
929
930 The check-api-changes script in the dist directory will construct a
931 diff of all headers, which can be useful for determining if anything
932 needs bumping.
933
934 Update these variables now, so that when you run
935 make in a second to test things you can spot libtool yelling
936 about improper numbering before you make the release and not
937 after you've uploaded the tar ball :-/
938
939
940 ***************************************************************************
941 MANUAL - STEP 2
942
943 Changing the libtool version information in Makefile.top.
944 Updating the ChangeLog file
945
946 - The ChangeLog entries are extracted (normally automatically)
947 using the command:
948
949 $ svn2cl -f ChangeLog.add --break-before-msg --stop-on-copy
950
951 If you don't have svn2cl installed, you can try and find a
952 suitable binary package for your architecture, or you can
953 get it directly from
954 http://ch.tudelft.nl/~arthur/svn2cl
955 You may need to rename the script from 'svn2cl.sh' to 'svn2cl'
956
957 - In either case, they are fixed up (automatically) using:
958
959 $ perl dist/changelogfix < ChangeLog.add > ChangeLog.reallyadd
960 or
961 $ perl dist/changelogfix V5-{N}-patches < ChangeLog.add > ChangeLog.reallyadd
962
963 - The manual processing step is to insert the appropriate portion
964 of the file 'ChangeLog.reallyadd' into 'ChangeLog'. You can
965 usually find the point where the previous release started in
966 the file by searching for "version tag".
967
968 - Please keep the line of dashes at the top of the file, as this
969 makes it easier to copy during the next release.
970
971 - If using emacs, switch from changelog-mode to text-mode.
972
973 - Check in the new ChangeLog:
974
975 $ svn commit -m "update for release X" ChangeLog
976
977 This is done automatically by "makerelease"
978
979
980 ***************************************************************************
981 MANUAL - STEP 3
982
983 Updating README, NEWS, and CHANGES files
984
985 [ This information has been moved to:
986
987 http://www.net-snmp.org/wiki/index.php/Commit_message_auto-extraction_formats
988
989 ]
990
991 However, leaving some examples here for quick referral:
992
993 git commit messages that generate auto-NEWS and auto-CHANGES
994 extractions should be formatted like the following examples:
995
996 NEWS: snmpd: I did something really cool to the agent
997 CHANGES: snmptrapd: fixed something minor in snmptrapd
998 NEWS: perl: PATCH: 123,456: Applied patches 123 and 456 to support perl6
999 CHANGES: BUG: 13: Fixed bug 13 & secured the world at large against hackers
1000 NEWS: perl: PATCH: 123: from Robert: did something
1001 NEWS: perl: PATCH: 123: from "Robert Story": did something else