openpkg/lsync.8

Tue, 29 Mar 2011 20:04:34 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 29 Mar 2011 20:04:34 +0200
changeset 334
4a34d7a82eab
child 428
f880f219c566
permissions
-rw-r--r--

Rework package yet again, correcting and introducing new buildconf logic:
Conditionally disable bootstrap stage comparison correctly, correct
english grammar, better find system as(1) and ld(1), indotruce detailed
optimization option messages, more completely guess cpu types, allow
profiled bootstrapping without a preinstalled GCC because many other
compilers have long since implemented 64-bit arithmetic, instruct make
to build sequentially (not in sparallel) when building a profiled
bootstrap as GCC online documents recommend, and generally improve
comment blocks.

The single most important correction in this changeset relates to the
GCC changed optimization policy since at least GCC 4.5, in which -march
is always passed and not always correctly guessed. In the case of this
package, allowing GCC to guess the architecture leads to wild build
errors at various subcomponents (zlib, libgcc, libiberty...) and
bootstrap stages. It seems quite platform specific, and the safest
approach to correcting this seems to be explicitly always specifying the
-march argument when bootstrapping GCC. Because the best choice 'native'
is not available when bootstrapping using a foreign (non GCC) compiler,
a guess is made according to rpmmacros l_platform in that case.

It is questionable as to whether these recent optimization changes
on the part of GCC or this package are compatible with each other,
or if either are complete or correct at all. At least applying these
corrections allows this package to build again in most cases test.

michael@13 1 .\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.32
michael@13 2 .\"
michael@13 3 .\" Standard preamble:
michael@13 4 .\" ========================================================================
michael@13 5 .de Sh \" Subsection heading
michael@13 6 .br
michael@13 7 .if t .Sp
michael@13 8 .ne 5
michael@13 9 .PP
michael@13 10 \fB\\$1\fR
michael@13 11 .PP
michael@13 12 ..
michael@13 13 .de Sp \" Vertical space (when we can't use .PP)
michael@13 14 .if t .sp .5v
michael@13 15 .if n .sp
michael@13 16 ..
michael@13 17 .de Vb \" Begin verbatim text
michael@13 18 .ft CW
michael@13 19 .nf
michael@13 20 .ne \\$1
michael@13 21 ..
michael@13 22 .de Ve \" End verbatim text
michael@13 23 .ft R
michael@13 24 .fi
michael@13 25 ..
michael@13 26 .\" Set up some character translations and predefined strings. \*(-- will
michael@13 27 .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
michael@13 28 .\" double quote, and \*(R" will give a right double quote. | will give a
michael@13 29 .\" real vertical bar. \*(C+ will give a nicer C++. Capital omega is used to
michael@13 30 .\" do unbreakable dashes and therefore won't be available. \*(C` and \*(C'
michael@13 31 .\" expand to `' in nroff, nothing in troff, for use with C<>.
michael@13 32 .tr \(*W-|\(bv\*(Tr
michael@13 33 .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
michael@13 34 .ie n \{\
michael@13 35 . ds -- \(*W-
michael@13 36 . ds PI pi
michael@13 37 . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
michael@13 38 . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
michael@13 39 . ds L" ""
michael@13 40 . ds R" ""
michael@13 41 . ds C`
michael@13 42 . ds C'
michael@13 43 'br\}
michael@13 44 .el\{\
michael@13 45 . ds -- \|\(em\|
michael@13 46 . ds PI \(*p
michael@13 47 . ds L" ``
michael@13 48 . ds R" ''
michael@13 49 'br\}
michael@13 50 .\"
michael@13 51 .\" If the F register is turned on, we'll generate index entries on stderr for
michael@13 52 .\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
michael@13 53 .\" entries marked with X<> in POD. Of course, you'll have to process the
michael@13 54 .\" output yourself in some meaningful fashion.
michael@13 55 .if \nF \{\
michael@13 56 . de IX
michael@13 57 . tm Index:\\$1\t\\n%\t"\\$2"
michael@13 58 ..
michael@13 59 . nr % 0
michael@13 60 . rr F
michael@13 61 .\}
michael@13 62 .\"
michael@13 63 .\" For nroff, turn off justification. Always turn off hyphenation; it makes
michael@13 64 .\" way too many mistakes in technical documents.
michael@13 65 .hy 0
michael@13 66 .if n .na
michael@13 67 .\"
michael@13 68 .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
michael@13 69 .\" Fear. Run. Save yourself. No user-serviceable parts.
michael@13 70 . \" fudge factors for nroff and troff
michael@13 71 .if n \{\
michael@13 72 . ds #H 0
michael@13 73 . ds #V .8m
michael@13 74 . ds #F .3m
michael@13 75 . ds #[ \f1
michael@13 76 . ds #] \fP
michael@13 77 .\}
michael@13 78 .if t \{\
michael@13 79 . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
michael@13 80 . ds #V .6m
michael@13 81 . ds #F 0
michael@13 82 . ds #[ \&
michael@13 83 . ds #] \&
michael@13 84 .\}
michael@13 85 . \" simple accents for nroff and troff
michael@13 86 .if n \{\
michael@13 87 . ds ' \&
michael@13 88 . ds ` \&
michael@13 89 . ds ^ \&
michael@13 90 . ds , \&
michael@13 91 . ds ~ ~
michael@13 92 . ds /
michael@13 93 .\}
michael@13 94 .if t \{\
michael@13 95 . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
michael@13 96 . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
michael@13 97 . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
michael@13 98 . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
michael@13 99 . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
michael@13 100 . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
michael@13 101 .\}
michael@13 102 . \" troff and (daisy-wheel) nroff accents
michael@13 103 .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
michael@13 104 .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
michael@13 105 .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
michael@13 106 .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
michael@13 107 .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
michael@13 108 .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
michael@13 109 .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
michael@13 110 .ds ae a\h'-(\w'a'u*4/10)'e
michael@13 111 .ds Ae A\h'-(\w'A'u*4/10)'E
michael@13 112 . \" corrections for vroff
michael@13 113 .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
michael@13 114 .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
michael@13 115 . \" for low resolution devices (crt and lpr)
michael@13 116 .if \n(.H>23 .if \n(.V>19 \
michael@13 117 \{\
michael@13 118 . ds : e
michael@13 119 . ds 8 ss
michael@13 120 . ds o a
michael@13 121 . ds d- d\h'-1'\(ga
michael@13 122 . ds D- D\h'-1'\(hy
michael@13 123 . ds th \o'bp'
michael@13 124 . ds Th \o'LP'
michael@13 125 . ds ae ae
michael@13 126 . ds Ae AE
michael@13 127 .\}
michael@13 128 .rm #[ #] #H #V #F C
michael@13 129 .\" ========================================================================
michael@13 130 .\"
michael@13 131 .IX Title "LSYNC 8"
michael@13 132 .TH LSYNC 8 "OpenPKG" "LSYNC(8)" "OpenPKG"
michael@13 133 .SH "NAME"
michael@13 134 \&\fBopenpkg lsync\fR \- Access Layer Synchronization Tool
michael@13 135 .SH "SYNOPSIS"
michael@13 136 .IX Header "SYNOPSIS"
michael@13 137 \&\fBopenpkg lsync\fR
michael@13 138 [\fB\-\-version\fR|\fB\-v\fR]
michael@13 139 [\fB\-\-help\fR|\fB\-h\fR]
michael@13 140 [\fB\-\-init\fR|\fB\-i\fR]
michael@13 141 [\fB\-\-nop\fR|\fB\-n\fR]
michael@13 142 [\fB\-\-quiet\fR|\fB\-q\fR]
michael@13 143 [\fB\-\-trace\fR|\fB\-t\fR]
michael@13 144 [\fB\-\-local\fR|\fB\-l\fR]
michael@13 145 [\fB\-\-uninstall\fR|\fB\-u\fR]
michael@13 146 [\fB\-\-root=\fR\fIroot\fR]
michael@13 147 [\fB\-\-pkgdir=\fR\fIpkgdir\fR]
michael@13 148 [\fB\-\-subdirs=\fR\fIsubdir\fR[,\fIsubdir\fR,...]]
michael@13 149 .SH "DESCRIPTION"
michael@13 150 .IX Header "DESCRIPTION"
michael@13 151 This program activates software packages which were locally
michael@13 152 installed in a sub-directory of a package hierarchy (located under
michael@13 153 \&\fIroot\fR/\fIpkgdir\fR/) by managing symbolic links in an access layer
michael@13 154 (located under \fIroot\fR/) corresponding to package installation
michael@13 155 files (found in \fIroot\fR/\fIpkgdir\fR/pkgname/subdir/) which need to be
michael@13 156 collected in global directories (located under \fIroot\fR/subdir/).
michael@13 157 .PP
michael@13 158 The purpose of this is that individual packages can be installed and
michael@13 159 deinstalled seperately without interfering with other packages while
michael@13 160 all packages as a whole still can be treated like a single package
michael@13 161 (installed into the access layer).
michael@13 162 .PP
michael@13 163 The
michael@13 164 actual creation of symbolic links is as following (\*(L"foo\*(R" indicating an
michael@13 165 arbitrary file; \*(L"bar\*(R" indicating an arbitrary package name):
michael@13 166 .IP "\fIroot\fR\fB/bin/\fRfoo \-> \fB../\fR\fIpkgdir\fR\fB/\fRbar\fB/bin/\fRfoo" 4
michael@13 167 .IX Item "root/bin/foo -> ../pkgdir/bar/bin/foo"
michael@13 168 This activates the user executeable
michael@13 169 \&\fIroot\fR\fB/\fR\fIpkgdir\fR\fB/\fRbar\fB/bin\fR/foo as \fIroot\fR\fB/bin/\fRfoo. It can
michael@13 170 be found by the shell by placing \fIroot\fR\fB/bin\fR into the environment
michael@13 171 variable \f(CW\*(C`PATH\*(C'\fR (\fBPATH="..:\fR\fIroot\fR\fB/bin:.."\fR).
michael@13 172 .IP "\fIroot\fR\fB/sbin/\fRfoo \-> \fB../\fR\fIpkgdir\fR\fB/\fRbar\fB/sbin/\fRfoo" 4
michael@13 173 .IX Item "root/sbin/foo -> ../pkgdir/bar/sbin/foo"
michael@13 174 This activates the system executeable
michael@13 175 \&\fIroot\fR\fB/\fR\fIpkgdir\fR\fB/\fRbar\fB/sbin\fR/foo as \fIroot\fR\fB/sbin/\fRfoo. It can
michael@13 176 be found by the shell by placing \fIroot\fR\fB/sbin\fR into the environment
michael@13 177 variable \f(CW\*(C`PATH\*(C'\fR (\fBPATH="..:\fR\fIroot\fR\fB/sbin:.."\fR).
michael@13 178 .IP "\fIroot\fR\fB/man/man\fR\fIN\fR\fB/\fRfoo \-> \fB../\fR\fIpkgdir\fR\fB/\fRbar\fB/man/man\fR\fIN\fR\fB/\fRfoo" 4
michael@13 179 .IX Item "root/man/manN/foo -> ../pkgdir/bar/man/manN/foo"
michael@13 180 This activates the Unix manual page
michael@13 181 \&\fIroot\fR\fB/\fR\fIpkgdir\fR\fB/\fRbar\fB/man/man\fR\fIN\fR\fB/\fRfoo as
michael@13 182 \&\fIroot\fR\fB/man/man\fR\fIN\fR\fB/\fRfoo. It can be found by the \fIman\fR\|(1) tool
michael@13 183 by placing \fIroot\fR\fB/man\fR into the environment variable \f(CW\*(C`MANPATH\*(C'\fR
michael@13 184 (\fBMANPATH="..:\fR\fIroot\fR\fB/man:.."\fR). Keep in mind that \fBopenpkg lsync\fR
michael@13 185 activates any files found in the \fBman/man\f(BIN\fB\fR sub-directory of the
michael@13 186 package, but the \fIman\fR\|(1) tool usually requires the filename scheme
michael@13 187 foo\fB.\fR\fIN\fR before it can find the file.
michael@13 188 .IP "\fIroot\fR\fB/info/\fRfoo \-> \fB../\fR\fIpkgdir\fR\fB/\fRbar\fB/info/\fRfoo" 4
michael@13 189 .IX Item "root/info/foo -> ../pkgdir/bar/info/foo"
michael@13 190 This activates the \s-1GNU\s0 info page \fIroot\fR\fB/\fR\fIpkgdir\fR\fB/\fRbar\fB/info/\fRfoo
michael@13 191 as \fIroot\fR\fB/info/\fRfoo. It can be found by the \fIinfo\fR\|(1) and \fIpinfo\fR\|(1)
michael@13 192 tools by placing \fIroot\fR\fB/info\fR into the environment variable
michael@13 193 \&\f(CW\*(C`INFOPATH\*(C'\fR (\fBINFOPATH="..:\fR\fIroot\fR\fB/info:.."\fR). Keep in mind that
michael@13 194 \&\fBopenpkg lsync\fR activates any files found in the \fBinfo/\fR sub-directory of the
michael@13 195 package, but the \fIinfo\fR\|(1) and \fIpinfo\fR\|(1) tools usually require the filename
michael@13 196 scheme foo\fB.info\fR before it can find the file.
michael@13 197 .IP "\fIroot\fR\fB/include/\fRfoo \-> \fB../\fR\fIpkgdir\fR\fB/\fRbar\fB/include/\fRfoo" 4
michael@13 198 .IX Item "root/include/foo -> ../pkgdir/bar/include/foo"
michael@13 199 This activates the C header \fIroot\fR\fB/\fR\fIpkgdir\fR\fB/\fRbar\fB/include\fR/foo
michael@13 200 as \fIroot\fR\fB/include/\fRfoo. It can be found by the C/\*(C+ compilers
michael@13 201 by adding \fIroot\fR\fB/include\fR to their include search path (\fBcc ..
michael@13 202 \&\-I\fR\fIroot\fR\fB/include\fR \fB...\fR). Keep in mind that \fBopenpkg lsync\fR activates any
michael@13 203 files found in the \fBinclude/\fR sub-directory of the package, but the
michael@13 204 C/\*(C+ compiler usually by convention use the filename scheme foo\fB.h\fR.
michael@13 205 .IP "\fIroot\fR\fB/lib/\fRfoo \-> \fB../\fR\fIpkgdir\fR\fB/\fRbar\fB/lib/\fRfoo" 4
michael@13 206 .IX Item "root/lib/foo -> ../pkgdir/bar/lib/foo"
michael@13 207 This activates the C library \fIroot\fR\fB/\fR\fIpkgdir\fR\fB/\fRbar\fB/lib\fR/foo
michael@13 208 as \fIroot\fR\fB/lib/\fRfoo. It can be found by the C/\*(C+ compilers (and
michael@13 209 the linker they use) by adding \fIroot\fR\fB/lib\fR to their library search
michael@13 210 path (\fBcc .. \-L\fR\fIroot\fR\fB/lib\fR \fB...\fR). It can be found by the Unix
michael@13 211 Dynamic Loader by adding \fIroot\fR\fB/lib\fR to the environment variable
michael@13 212 \&\f(CW\*(C`LD_LIBRARY_PATH\*(C'\fR (\fBLD_LIBRARY_PATH="..:\fR\fIroot\fR\fB/lib:.."\fR).
michael@13 213 Keep in mind that \fBopenpkg lsync\fR activates any files found in the \fBlib/\fR
michael@13 214 sub-directory of the package, but the C/\*(C+ compiler usually require the
michael@13 215 filename scheme \fBlib\fRfoo\fB.a\fR and the Unix Dynamic Loader the filename
michael@13 216 scheme \fBlib\fRfoo\fB.so\fR before they actually can use the file.
michael@13 217 .PP
michael@13 218 It is obvious that more sub-directories in a package installation
michael@13 219 might exist \*(-- for instance \fBshare/\fR, \fBvar/\fR, \fBlibexec/\fR, etc. But
michael@13 220 \&\fBopenpkg lsync\fR intentionally does not link files in those directories into
michael@13 221 corresponding directories of the access layer, because those files do
michael@13 222 not require that they are located in a global area in order to be used.
michael@13 223 So \fBopenpkg lsync\fR only creates the access layer for files where a common area
michael@13 224 is required for (easy) use.
michael@13 225 .SH "SPECIAL FEATURES"
michael@13 226 .IX Header "SPECIAL FEATURES"
michael@13 227 There are two special features supported by \fBopenpkg lsync\fR:
michael@13 228 .IP "\fBRun-Command Files\fR" 4
michael@13 229 .IX Item "Run-Command Files"
michael@13 230 \&\fBopenpkg lsync\fR on startup implicitly reads command line options from
michael@13 231 \&\f(CW\*(C`.lsyncrc\*(C'\fR files. They are searched in all parent directories and in
michael@13 232 the callers home directory. Their contents is prepended to the list of
michael@13 233 given command line options.
michael@13 234 .IP "\fBMultiple Package Versions\fR" 4
michael@13 235 .IX Item "Multiple Package Versions"
michael@13 236 \&\fBopenpkg lsync\fR skips all directories under \fIroot\fR/\fIpkgdir\fR/ which contain
michael@13 237 the pattern \*(L"\-[0\-9]\*(R" in their directory name. On the other hand,
michael@13 238 \&\fBopenpkg lsync\fR follows also symbolic links under \fIroot\fR/\fIpkgdir\fR/.
michael@13 239 This can be used for installing multiple versions of a package and
michael@13 240 switching between them. For instance, if version 1.0 of package
michael@13 241 \&\*(L"foo\*(R" is installed into directory \fIroot\fR/\fIpkgdir\fR/foo\-1.0,
michael@13 242 version 1.1 into \fIroot\fR/\fIpkgdir\fR/foo\-1.1 and version 1.2 into
michael@13 243 \&\fIroot\fR/\fIpkgdir\fR/foo\-1.2, \fBopenpkg lsync\fR does skip all three. To enable
michael@13 244 version 1.1 one just creates a symbolic link \fIroot\fR/\fIpkgdir\fR/foo
michael@13 245 pointing to foo\-1.1. Then \fBopenpkg lsync\fR picks up the files in
michael@13 246 \&\fIroot\fR/\fIpkgdir\fR/foo\-1.1. If you want to temporarily upgrade to
michael@13 247 foo\-1.2, all you have to do is to change the symlink pointing from
michael@13 248 foo\-1.1 to foo\-1.2.
michael@13 249 .IP "\fBTemporarily Deactivated Package\fR" 4
michael@13 250 .IX Item "Temporarily Deactivated Package"
michael@13 251 One can deactivate a package \*(L"foo\*(R" by going to \fIroot\fR/\fIpkgdir\fR/foo/
michael@13 252 and running \*(L"openpkg lsync \-\-local \-\-uninstall\*(R", of course. Alternatively
michael@13 253 one can set the sticky bit on the directory \fIroot\fR/\fIpkgdir\fR/foo.
michael@13 254 Then \fBopenpkg lsync\fR also skips the package. Alternatively, assume
michael@13 255 package \*(L"foo\*(R" as a whole should not be deactivated, but its
michael@13 256 \&\fIroot\fR/\fIpkgdir\fR/foo/lib directory (usually because this directory
michael@13 257 unfortunately contains non-library files), one just sets the sticky bit
michael@13 258 on \fIroot\fR/\fIpkgdir\fR/foo/lib.
michael@13 259 .SH "OPTIONS"
michael@13 260 .IX Header "OPTIONS"
michael@13 261 .IP "\fB\-\-version\fR, \fB\-v\fR" 4
michael@13 262 .IX Item "--version, -v"
michael@13 263 Display program version information only.
michael@13 264 .IP "\fB\-\-help\fR, \fB\-h\fR" 4
michael@13 265 .IX Item "--help, -h"
michael@13 266 Display program usage information only.
michael@13 267 .IP "\fB\-\-init\fR, \fB\-i\fR" 4
michael@13 268 .IX Item "--init, -i"
michael@13 269 Create an initial access layer hierarchy under \fIroot\fR.
michael@13 270 .IP "\fB\-\-nop\fR, \fB\-n\fR" 4
michael@13 271 .IX Item "--nop, -n"
michael@13 272 No Operation \*(-- causes \fBopenpkg lsync\fR to not perform any filesystem
michael@13 273 operations. In conjunction with \fB\-\-trace\fR you can at least see what
michael@13 274 would be executed.
michael@13 275 .IP "\fB\-\-quiet\fR, \fB\-q\fR" 4
michael@13 276 .IX Item "--quiet, -q"
michael@13 277 Forces \fBopenpkg lsync\fR to perform the operations quietly, i.e., without any
michael@13 278 verbose messages.
michael@13 279 .IP "\fB\-\-trace\fR, \fB\-t\fR" 4
michael@13 280 .IX Item "--trace, -t"
michael@13 281 Forces \fBopenpkg lsync\fR to show what filesystem operations are performed.
michael@13 282 .IP "\fB\-\-local\fR, \fB\-l\fR" 4
michael@13 283 .IX Item "--local, -l"
michael@13 284 This restricts the operations to a local package area. This option can
michael@13 285 only be used if you are physically staying below a package sub-directory
michael@13 286 under \fIroot\fR/\fIpkgdir\fR/. For instance, when you are staying in
michael@13 287 \&\fIroot\fR/\fIpkgdir\fR/bar or \fIroot\fR/\fIpkgdir\fR/bar/bin and use \fB\-\-local\fR,
michael@13 288 all operations are restricted to the package \*(L"bar\*(R".
michael@13 289 .IP "\fB\-\-uninstall\fR, \fB\-u\fR" 4
michael@13 290 .IX Item "--uninstall, -u"
michael@13 291 This performs only package uninstallation operations, i.e., only
michael@13 292 symbolic links are removed. This can be used to completely empty the
michael@13 293 access layer. Additionally it is very useful in combination with
michael@13 294 \&\fB\-\-local\fR in order to uninstall a particular package without having to
michael@13 295 remove its files.
michael@13 296 .IP "\fB\-\-root=\fR\fIroot\fR" 4
michael@13 297 .IX Item "--root=root"
michael@13 298 Sets the root directory where the access layer and package subdirectory
michael@13 299 is located. The default can be determined by running \f(CW\*(C`openpkg lsync \-\-help\*(C'\fR
michael@13 300 (see section \*(L"Current configuration\*(R").
michael@13 301 .IP "\fB\-\-pkgdir=\fR\fIpkgdir\fR" 4
michael@13 302 .IX Item "--pkgdir=pkgdir"
michael@13 303 Sets the sub-directory under the root directory where packages are
michael@13 304 located. The default can be determined by running \f(CW\*(C`openpkg lsync \-\-help\*(C'\fR (see
michael@13 305 section \*(L"Current configuration\*(R").
michael@13 306 .IP "\fB\-\-subdirs=\fR\fIsubdirs\fR[,\fIsubdir\fR,...]" 4
michael@13 307 .IX Item "--subdirs=subdirs[,subdir,...]"
michael@13 308 Sets one or more sub-directories of the access layer on which \fBopenpkg lsync\fR
michael@13 309 should act. The default can be determined by running \f(CW\*(C`openpkg lsync \-\-help\*(C'\fR
michael@13 310 (see section \*(L"Current configuration\*(R").
michael@13 311 .SH "RESULTS"
michael@13 312 .IX Header "RESULTS"
michael@13 313 This program uses the following return codes on exit: 0 (operation
michael@13 314 successful), 1 (system error), 2 (command line error) and 3 (other user
michael@13 315 error).
michael@13 316 .SH "HISTORY"
michael@13 317 .IX Header "HISTORY"
michael@13 318 The idea of filesystem access layers consisting of symbolic links
michael@13 319 pointing to actual package installation areas is a rather old one. It
michael@13 320 dates back to the early days of Unix and was implemented many times over
michael@13 321 the last decades. One of many implementation was \fBGenOPT\fR, written by
michael@13 322 Ralf S. Engelschall for sd&m GmbH & Co \s-1KG\s0, Munich in 1992. The name
michael@13 323 indicates the programs purpose: to generate symbolic links in an access
michael@13 324 layer which was located under \f(CW\*(C`/opt\*(C'\fR. \fBGenOPT\fR was very flexible, but
michael@13 325 hence also very complex. Because of lack of documentation it was never
michael@13 326 released and so only used at sd&m and on all machines which were under
michael@13 327 control of Ralf S. Engelschall.
michael@13 328 .PP
michael@13 329 For Cable & Wireless, Munich, the old \fBGenOPT\fR principle was again
michael@13 330 needed to manage the \f(CW\*(C`/cw/local\*(C'\fR area on their servers. For this in
michael@13 331 November 2000 the functionality of \fBGenOPT\fR was revised, heavily
michael@13 332 stripped down and finally implemented from scratch. The result is the
michael@13 333 current \fBopenpkg lsync\fR.
michael@13 334 .SH "AUTHOR"
michael@13 335 .IX Header "AUTHOR"
michael@13 336 .Vb 3
michael@13 337 \& Ralf S. Engelschall
michael@13 338 \& rse@engelschall.com
michael@13 339 \& www.engelschall.com
michael@13 340 .Ve

mercurial