Debian Codegraph @

MAINTENANCE

raw
1 These are notes for the maintainer.
2
3 Steps to release:
4
5 - Update ChangeLog file with description of new stuff and release date.
6
7 - Update version number in Curses.pm (search for VERSION).
8
9 - Test the build:
10
11 make realclean
12 Set up environment variables, c-config.h if required.
13 perl Makefile.PL PANELS MENUS FORMS
14 make
15 perl -Mblib -MCurses -e1
16 perl demo
17
18 - Make a tarball:
19
20 $ make dist
21 $ mv Curses-1.33.tar.gz /tmp/
22
23 - Upload via pause.perl.org. Use "upload a file to CPAN" link. You have to
24 login to make that link appear. PAUSE gives you various options for
25 uploading, tells you how to follow the progress of the uploading and
26 indexing, and sends you emails about it.
27
28 Or do:
29
30 $ cpan-upload-http -verbose -user ... -mailto ... \
31 /tmp/Curses-1.33.tar.gz
32 (Get cpan-upload-http from CPAN)
33
34 It goes into CPAN in the directory belonging to the user who uploaded it.
35
36 - PAUSE will automatically extract the README file from the tarball
37 and install it as e.g. Curses-1.33.readme
38
39 - PAUSE will open the tarball automatically and index the packages it finds
40 in there by name (Curses::Window, Curses::Screen, etc.).
41
42
43 For Bryan's Rhino test system:
44
45 Copy hints/c-linux.ncurses.h as c-config.h and edit it
46 to say #include "/usr/include/form.h" instead of <form.h>
47
48
49 GEN
50 ---
51
52 The package is designed to have all the distributed code files
53 (Curses.pm, CursesFun.c, etc.) generated by the programs in gen.tar .
54 This is supposed to handle the myriad Ncurses functions with less
55 tedium than manually editing the files.
56
57 However, Bryan doesn't know how the Gen stuff works, so he has been
58 making the small updates necessary directly to the distributed files.
59 But the changes are modest, so it should be possible some day to
60 generate new files, diff to see what changed, and put those changes
61 into the Gen programs.
62
63 Originally, what is in gen.tar was a directory named 'gen' in the Curses
64 package on CPAN, and CPAN unfortunately indexes the Perl modules in there as
65 public modules. And because make.Curses.pm contains the perldoc stuff for
66 Curses.pm, people have even been misled into using that unmaintained file
67 for documentation of the functions in Curses.pm.
68
69 Since I don't know how to stop CPAN from doing that, I solved that problem
70 by tarring up the directory.
71
72
73 ppport.h
74 --------
75
76 You generate this by running the function Devel::PPPort::WriteFile().
77
78 There shouldn't be any need to generate a new one unless there are
79 updates to the Devel::PPPort package.
80
81 A comment in ppport.h says it was generated by Perl 5.006002. That's
82 a lie.
83
84
85 HOW SYMBOL EXISTENCE DETECTION WORKS
86 ------------------------------------
87
88 Part of 'make' is determining which Curses functions, etc. exist in the
89 target system's Curses library.
90
91 It runs the program 'testsyms' to do this.
92
93 'testsyms' is hardcoded to take the file 'list.syms' as input. That file
94 lists the symbols for which to test.
95
96 'testsyms' does a test compile, and if the compile fails, assumes it is
97 because the symbol for which it was testing is not in the Curses library.
98 The program it compiles is one of the following, depending upon what kind of
99 symbol 'list.syms' says it is:
100
101 testsym.c
102 testint.c
103 testtyp.c
104
105 The output of 'testsyms' is hardcoded to 'CursesDef.h'. Each line of that
106 looks like
107
108 #define C_ADDCH /* Does function 'addch' exist? */
109
110 or
111
112 #undef C_ADDCH /* Does function 'addch' exist? */
113
114 depending on whether 'testsyms' found the symbol to exist.
115
116 THERE IS A SPECIAL CASE for "w" symbols. Where the symbol starts with "w"
117 (e.g. "waddch"), the C_ macro name in CursesDef.h omits the "w"
118 (e.g. "C_ADDCH").
119
120 Curses.c #includes CursesDef.h and subsequently #includes CursesFun.c
121 CursesFun.c uses the definition from CursesDef.h of C_ADDCH to decide whether
122 to build into the Perl module a function for 'addch'. CursesFun.c is a long
123 file with a section for every Curses function that we know, defining
124 a Perl XS function for it such as 'XS_Curses_addch'.
125
126 N.B. CursesFun.c get #included by Curses.c. It cannot be compiled itself.
127
128 Curses.c also includes CursesBoot.c, which contains a line for every
129 function we know about and binds the Perl function (e.g. Curses::addch)
130 to the C XS function (e.g. 'XS_Curses_addch').
131
132 In some cases,
133
134