I'm trying to create a package, from a tree of files, by following the instructions in pkg-create(8)(). I'm perplexed:
* the package manifests created by
* if I follow the instructions in the manpage, I get... weird errors
The +MANIFEST files created by
Oddness 2: If I follow the manpage and create a manifest file freebsd/manifest which contains lots of lines like
that looks like it matches the file sha256-hash path described in the manpage. But when I run
Line 77 is the one file 7860e8311..., and I get an error reported on this line even when move it elsewhere, or change the hash in another line to start with '7'. It's not clear just what links this error message to external reality!
So I generate an alternative manifest with lines like
and now
which I similarly can't relate to the documentation of the pkg-create
I feel like I'm reading the wrong manpage! What am I misunderstanding?
Norman
* the package manifests created by
pkg create -o /tmp foo
don't seem to match what's described in the manpage* if I follow the instructions in the manpage, I get... weird errors
The +MANIFEST files created by
pkg create
(acting a currently installed package) include a files: { "filename": "hash", ...} key which isn't mentioned in the manpage. Also, the hashes all start 1$..., which is also un-mentioned in the manpage, which simply refers to sha256-hash. Oddness number 1.Oddness 2: If I follow the manpage and create a manifest file freebsd/manifest which contains lots of lines like
Code:
...
file 5c6a0998512f902de57525713ef1b3ab1144c2f41b4c6861e3be6aa494080dcc usr/local/motherhen/lib/plt/motherhen/exts/ert/r6/default-web-root/htdocs/servlets/examples/clear.rkt
file 9685f028ac25a1f24244ce6bd13878a135137102611bdffe42f8a9742ef5a248 usr/local/motherhen/lib/plt/motherhen/exts/ert/r6/default-web-root/htdocs/servlets/examples/response.rktd
file ea1f1c890625bdf3547a1bea6542456c20f78a62285f163e4c6f2c176019d991 usr/local/motherhen/lib/plt/motherhen/exts/ert/r6/default-web-root/htdocs/servlets/examples/info.rkt
file 7860e83116a92fec0d2564d727aabb308a425302a1736692d8840b809b8b2322 usr/local/motherhen/lib/plt/motherhen/exts/ert/r6/default-web-root/htdocs/servlets/examples/digest.rkt
file b9b0517e79cfce3d765affed339ddd5d89c6dbd9444993481ac60b4b948574b2 usr/local/motherhen/lib/plt/motherhen/exts/ert/r6/default-web-root/htdocs/servlets/examples/add-ssd.rkt
file 487295da908e00ebe70ea2424d83efebdd57e2cd717db5aa8a08e169629b8913 usr/local/motherhen/lib/plt/motherhen/exts/ert/r6/default-web-root/htdocs/servlets/examples/fupload.rkt
...
that looks like it matches the file sha256-hash path described in the manpage. But when I run
pkg create -M freebsd/manifest -r dist
(the above files are rooted below the directory dist/), I consistently get an error
Code:
pkg: manifest parsing error: error while parsing <unknown>: line: 77, column: 5 - 'numeric value out of range', character: '7'
Line 77 is the one file 7860e8311..., and I get an error reported on this line even when move it elsewhere, or change the hash in another line to start with '7'. It's not clear just what links this error message to external reality!
So I generate an alternative manifest with lines like
Code:
files {
"usr/local/motherhen/man/man8/motherhen.8":"1$0f12ec2037765ce9ef20b32b5a28d95b04bc3486f8027ec6718d9d5d1f23f71e",
...
}
and now
pkg create -r freebsd/manifest -r dist
produces errors like
Code:
pkg: fstat() failed for(dist//usr/home/norman/checkouts/motherhen/usr/local/motherhen/man/man8/motherhenctl.8): No such file or directory
which I similarly can't relate to the documentation of the pkg-create
-r
option. Using instead -r $PWD/dist
just produces a differently unexpected generated path.I feel like I'm reading the wrong manpage! What am I misunderstanding?
Norman