Sign in Join
Wiki copytemporary

FreeBSD specific Release Engineering: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: FreeBSD specific Release Engineering

OldNewLine
1+## scripts using sh instead of bash
2+
3+(originally by Andres K. Foerster)
4+
5+Current scripts: samplecfg/install.sh/cross* known scripts not affected: makepack (no chance of running on a TARGET computer)
6+
7+The script sometimes uses one "=" and sometimes two "==" for comparisions. The /bin/sh of FreeBSD accepts just one "=" in comparisions. See test(1). or sometimes the "x" trick works: if \[ "x\$something" = "xsomething" \] ...
8+
9+"echo -n" is supported in the shell of FreeBSD, but it's not standard. You could use "printf" instead of "echo -n". That seems more standardized.
10+
11+Also the tar parameter "--directory" is a extension of GNU-tar. You could use "-C" instead of "--directory", but be careful with that. It seems "-C" is implemented differently. (My FreeBSD still comes with GNU tar, but I've heard that they switch to their own version of tar... I'll have a look at it.)
12+
13+That's all as far as I can see. Then you can use "#!/bin/sh".
14+
15+(Marco van de Voort:)
16+
17+- Also test using BSD sed and tar from time to time. (some sed constructs are already replaced by awk)
18+- In case of bash use \#!/usr/bin/env bash NEVER hardcode the shell path!
19+
20+## install.sh
21+
22+The documentation currently generates the PDF docs with a directory in the .tar.gz, which doesn't play nice with FreeBSD hierarchy. Moreover, to workaround this on Linux, they use gnu tar specific options (--directory).
23+
24+So every release the following changes are made: - the docs are repacked without the directory - the --directory option is removed from the doc tar x line in the install.sh script
25+
26+## notes from recent packaging
27+
28+- synced all ELF ABI tag versions to make it easier to patch with the i386/identpatch.sh script.
29+- FreeBSD 8.2 bsdtar seems to understand --strip fine.
30+- See sometimes "grab_vcsa" missing error.
31+- debugger of 9.0/i386 gave funny results/output. Constantly gave "errorcode=0 3 hidden steps" msgs.
32+- newer freebsd seems to have a kiconv. Maybe the RTL should use kiconv instead of iconv. If only because the iconv package has a dependency on perl 5.
33+
34+## See also
35+
36+- [[FreeBSD]]
37+
38+---
39+*From the Free Pascal wiki, page "FreeBSD specific Release Engineering", as it stood on 2020-08-26 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*
40+Category: BSD
41+Category: FPC development
42+Category: FreeBSD
43+Category: Release engineering

Back to history