source: FUNCTION_LIST@ 9a86aa58

ablfs-more trunk
Last change on this file since 9a86aa58 was 978286a, checked in by Pierre Labastie <pierre.labastie@…>, 3 years ago

Remove legacy: remove everything about HLFS

  • Property mode set to 100644
File size: 11.7 KB
Line 
1This is the list of functions used in jhalfs, excluding BLFS tool functions
2and functions defined in {C,H}LFS/master.sh.
3I felt the need for documenting it when trying to add package management.
4Functions are listed in alphabetical order, with a short description and the
5file where they are defined.
6
7--------------------------------------------------------------------------
8install_blfs_tools():
9From common/libs/func_install_blfs.
10Description: Copy the needed files to `BLFS_ROOT'. Initialize
11the package tracking. Generates a `configuration' file from
12the tool dependencies settings, and use it to generate
13scriptlets from the blfs book. Uses those scriptlets to download the
14needed tarballs. Then generates a Makefile for building the dependencies.
15Called by: jhalfs
16--------------------------------------------------------------------------
17get_sources():
18From common/libs/func_download_pkgs.
19Description: Downloads packages if `GETPKG' is `y'. Writes package name
20and md5 checksum to `MISSING_FILES.DMP' if a package cannot be found in
21`$SRC_ARCHIVE' and cannot be downloaded, or if md5 checksum does not agree
22book's one. If `MISSING_FILES.DMP' is not empty at the end of the process,
23disable the excution of the makefile.
24Actually, if `$BUILDDIR/sources' does not exist, it is not created if
25`GETPKG' is `n'. And an empty or non existent `$BUILDDIR/sources' is
26not flagged...
27If `GETPKG' is `y', removes `MD5SUMS', `MISSING_FILES.DMP', and `urls.lst'
28from `$BUILDDIR/sources' and generates them in the course of the process.
29Called by: get_book and extract_commands
30--------------------------------------------------------------------------
31gs_wrt_message():
32From common/libs/func_download_pkgs.
33Description: internal function in get_sources. Writes a message to the screen
34and a package name to `MISSING_FILES.DMP'.
35--------------------------------------------------------------------------
36create_urls():
37From common/libs/func_download_pkgs.
38Description: Runs xsltproc with stylesheet urls.xsl on chapter 3 of the
39book. Add BLFS dependencies and custom dependencies if `BLFS_TOOLS' is `y'
40and `CUSTOM_TOOLS' is `y' respectively.
41Called by: get_sources
42--------------------------------------------------------------------------
43wrt_CustomTools_target():
44From common/libs/func_custom_pkgs.
45Description: Add users supplied scripts to `$JHALFSDIR/custom-tools', with
46corresponding entry in the Makefile.
47TODO: Add package management (instructions to user and Makefile entry)
48Called by: All master.sh `build_Makefile'.
49--------------------------------------------------------------------------
50add_CustomToolsURLS():
51From common/libs/func_custom_pkgs.
52Description: Add any users supplied scripts URL information to urls.lst
53Called by: create_urls
54--------------------------------------------------------------------------
55wrt_Makefile_header():
56From common/libs/func_wrt_Makefile.
57Description: Writes the beginning of the Makefile into $MKFILE, which created
58or erased before.
59Called by: All master.sh `build_Makefile'.
60--------------------------------------------------------------------------
61get_package_tarball_name():
62From common/libs/func_wrt_Makefile.
63Arguments: $1 contains the script_name
64Description: Retrieves the tarball name from `pkg_tarball_list' by comparing
65script-name to the beginning of a line in the list. Writes the name found
66to stdout.
67Implements the behavior described in README.CUSTOM, that is, if script_name
68begins with d-, strip that part.
69Called by: various functions in master.sh
70--------------------------------------------------------------------------
71LUSER_wrt_target():
72From common/libs/func_wrt_Makefile.
73Arguments: $1 contains target name; $2 contains dependency(ies)
74Description: Add lines in the Makefile, which create target and
75initialize log file.
76LUSER version uses $MOUNT_PT in absolute path names.
77Called by: chapter5_Makefiles and chapter6_Makefiles in LFS/master.sh
78and other master.sh
79--------------------------------------------------------------------------
80CHROOT_wrt_target():
81From common/libs/func_wrt_Makefile.
82Arguments: $1 contains target name; $2 contains dependency(ies)
83Description: Add lines in the Makefile, which create target and
84initialize log file.
85CHROOT version uses / in absolute path names.
86Called by: chapter6_Makefiles and chapter78_Makefiles in LFS/master.sh
87and other functions in other master.sh
88--------------------------------------------------------------------------
89LUSER_wrt_unpack():
90From common/libs/func_wrt_Makefile.
91Arguments: $1 contains tarball name; $2 contains 1 if the existing directory
92is to be presserved.
93Description: Add lines in the Makefile, which unpack and set 'ROOT' var and
94remove existing dir if $2 != 1
95LUSER version uses $MOUNT_PT in absolute path names.
96Uses: Makefile functions remove_existing_dirs, unpack, get_pkg_root.
97--------------------------------------------------------------------------
98CHROOT_Unpack():
99From common/libs/func_wrt_Makefile.
100Arguments: $1 contains tarball name; $2 contains 1 if the existing directory
101is to be presserved.
102Description: Add lines in the Makefile, which unpack and set 'ROOT' var and
103remove existing dir if $2 != 1
104CHROOT version uses / in absolute path names.
105Uses: Makefile functions remove_existing_dirs2, unpack2, get_pkg_root2.
106--------------------------------------------------------------------------
107LUSER_wrt_test_log():
108From common/libs/func_wrt_Makefile.
109Description: Add lines in the Makefile, which initialize testsuite
110log file.
111LUSER version uses $MOUNT_PT in absolute path names.
112--------------------------------------------------------------------------
113CHROOT_wrt_test_log():
114From common/libs/func_wrt_Makefile.
115Description: Add lines in the Makefile, which initialize testsuite
116log file.
117CHROOT version uses / in absolute path names.
118--------------------------------------------------------------------------
119wrt_RunAsRoot():
120From common/libs/func_wrt_Makefile.
121Description: Some scripts must be run as root..
122--------------------------------------------------------------------------
123LUSER_wrt_RunAsUser():
124From common/libs/func_wrt_Makefile.
125Description: Calculate time with perl, footer to log file
126--------------------------------------------------------------------------
127CHROOT_wrt_RunAsRoot():
128From common/libs/func_wrt_Makefile.
129Description:
130--------------------------------------------------------------------------
131LUSER_wrt_CopyFstab():
132From common/libs/func_wrt_Makefile.
133Description:
134--------------------------------------------------------------------------
135CHROOT_wrt_CopyFstab():
136From common/libs/func_wrt_Makefile.
137Description:
138--------------------------------------------------------------------------
139LUSER_wrt_TouchTimestamp():
140From common/libs/func_wrt_Makefile.
141Description:
142--------------------------------------------------------------------------
143CHROOT_wrt_TouchTimestamp():
144From common/libs/func_wrt_Makefile.
145Description:
146--------------------------------------------------------------------------
147LUSER_wrt_LogNewFiles():
148From common/libs/func_wrt_Makefile.
149Description:
150--------------------------------------------------------------------------
151CHROOT_wrt_LogNewFiles():
152From common/libs/func_wrt_Makefile.
153Description:
154--------------------------------------------------------------------------
155LUSER_RemoveBuildDirs():
156From common/libs/func_wrt_Makefile.
157Description:
158--------------------------------------------------------------------------
159CHROOT_wrt_RemoveBuildDirs():
160From common/libs/func_wrt_Makefile.
161Description:
162--------------------------------------------------------------------------
163wrt_touch():
164From common/libs/func_wrt_Makefile.
165Description:
166--------------------------------------------------------------------------
167wrt_compare_targets():
168From common/libs/func_compare.sh.
169Description:
170--------------------------------------------------------------------------
171wrt_system_build():
172From common/libs/func_compare.sh.
173Description:
174--------------------------------------------------------------------------
175wrt_compare_work():
176From common/libs/func_compare.sh.
177Description:
178--------------------------------------------------------------------------
179wrt_do_ica_work():
180From common/libs/func_compare.sh.
181Description:
182--------------------------------------------------------------------------
183wrt_logs():
184From common/libs/func_compare.sh.
185Description:
186--------------------------------------------------------------------------
187validate_config():
188From common/libs/func_validate_configs.sh.
189Description: Are the config values sane (within reason)
190--------------------------------------------------------------------------
191 write_error_and_die():
192From common/libs/func_validate_configs.sh.
193Description:
194--------------------------------------------------------------------------
195 validate_file():
196From common/libs/func_validate_configs.sh.
197Description:
198--------------------------------------------------------------------------
199 validate_dir():
200From common/libs/func_validate_configs.sh.
201Description:
202--------------------------------------------------------------------------
203get_book():
204From common/libs/func_book_parser.
205Description:
206--------------------------------------------------------------------------
207extract_commands():
208From common/libs/func_book_parser.
209Description:
210--------------------------------------------------------------------------
211create_package_list():
212From common/libs/func_book_parser.
213Description:
214--------------------------------------------------------------------------
215check_version():
216From common/libs/func_check_version.sh.
217Description:
218--------------------------------------------------------------------------
219 write_error_and_die():
220From common/libs/func_check_version.sh.
221Description:
222--------------------------------------------------------------------------
223check_prerequisites():
224From common/libs/func_check_version.sh.
225Description:
226--------------------------------------------------------------------------
227write_or_exit():
228From common/progress_bar.sh.
229Description:
230--------------------------------------------------------------------------
231no_empty_builddir():
232From common/common-functions.
233Description:
234--------------------------------------------------------------------------
235run_make():
236From common/common-functions.
237Description:
238--------------------------------------------------------------------------
239clean_builddir():
240From common/common-functions.
241Description:
242--------------------------------------------------------------------------
243simple_error():
244From jhalfs.
245Description: Basic error trap.... JUST DIE
246--------------------------------------------------------------------------
247see_ya():
248From jhalfs.
249Description:
250--------------------------------------------------------------------------
251chapter4_Makefiles():
252From LFS/master.sh.
253Description:
254--------------------------------------------------------------------------
255chapter5_Makefiles():
256From LFS/master.sh.
257Description:
258--------------------------------------------------------------------------
259chapter6_Makefiles():
260From LFS/master.sh.
261Description:
262--------------------------------------------------------------------------
263chapter78_Makefiles():
264From LFS/master.sh.
265Description:
266--------------------------------------------------------------------------
267build_Makefile():
268From LFS/master.sh.
269Description:
270--------------------------------------------------------------------------
271validate_opt_settings():
272From optimize/optimize_functions.
273Description: Show optimize setting and wait user agreement
274--------------------------------------------------------------------------
275wrt_optimize():
276From optimize/optimize_functions.
277Description: Apply pkg specific opt's to build
278--------------------------------------------------------------------------
279wrt_makeflags():
280From optimize/optimize_functions.
281Description: Apply MAKEFLAGS to build
282--------------------------------------------------------------------------
Note: See TracBrowser for help on using the repository browser.