LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Bedrock Linux (https://www.linuxquestions.org/questions/bedrock-linux-118/)
-   -   Bedrock Tutorial (https://www.linuxquestions.org/questions/bedrock-linux-118/bedrock-tutorial-4175698002/)

steveh537 07-20-2021 07:12 AM

Bedrock Tutorial
 
On a base Gentoo system I have installed Bedrock and have started the tutorial.

brl list shows:
bedrock
gentoo
tut-alpine
tut-void

Following the tutorial I have run:

man jq | head | tee /tmp/tut1

in another terminal but get:

man: can't create temporary cat for /bedrock/cross/man/cat1/jq.1.gz: Function not implemented

brl which man gives me gentoo but the tutorial wants me to use Void's man command so I tried:

strat tut-void man jq

man: can't set the locale; make sure $LC_* and $LANG are correct
mandb: can't create index cache /bedrock/cross/man/19348: Function not implemented
man: can't create temporary cat for /bedrock/cross/man/cat1/jq.1.gz: Function not implemented

locale is:
LANG=en_GB.utf8
LC_CTYPE="en_GB.utf8"
LC_NUMERIC=POSIX
LC_TIME="en_GB.utf8"
LC_COLLATE="en_GB.utf8"
LC_MONETARY="en_GB.utf8"
LC_MESSAGES="en_GB.utf8"
LC_PAPER="en_GB.utf8"
LC_NAME="en_GB.utf8"
LC_ADDRESS="en_GB.utf8"
LC_TELEPHONE="en_GB.utf8"
LC_MEASUREMENT="en_GB.utf8"
LC_IDENTIFICATION="en_GB.utf8"
LC_ALL=

What do I need to do to sort this out so I can complete the tutorial please?

ParadigmComplex 07-21-2021 08:35 AM

This is strange, I've never seen anyone report this. Maybe recent changes in Gentoo, Void, or Alpine broke something that I didn't catch yet.

Quote:

man: can't create temporary cat for /bedrock/cross/man/cat1/jq.1.gz: Function not implemented
`/bedrock/cross` is read-only, but this error indicates that, for some reason, `man` is trying to write into it. I don't know why it'd try to do that.

Quote:

brl which man gives me gentoo but the tutorial wants me to use Void's man command so I tried:

strat tut-void man jq
This was a good idea, props for thinking this through. Part of the intent here is to show that you don't have to run `strat` all the time; Bedrock will usually figure out what is needed from context. But if it picks something wrong, manually calling strat is absolutely the correct thing to do.

Quote:

man: can't set the locale; make sure $LC_* and $LANG are correct
When you had Bedrock `--hijack` your install, it tried to detect your install distro's locale and stored it in `/bedrock/etc/bedrock.conf` toward the top in the `[locale]` section. It then uses that later to setup the locale of strata you `brl fetch`. It's possible Bedrock didn't properly capture that information when hijacking and set up `tut-void` properly. Check the values in the `[locale]` section of `/bedrock/etc/bedrock.conf`.

Quote:

mandb: can't create index cache /bedrock/cross/man/19348: Function not implemented
IIRC Void's `man` is mandoc, not mandb. I'm not sure why mandb is coming up here at all, let alone trying to write into `/bedrock/cross`.

Quote:

man: can't create temporary cat for /bedrock/cross/man/cat1/jq.1.gz: Function not implemented
More trying to write into `/bedrock/cross` that I don't understand.

Quote:

What do I need to do to sort this out so I can complete the tutorial please?
Ideally I'd want to fix the underlying issue to make this functionality work as expected. However, I can't seem to reproduce it, and I don't have any leads from your description.

What the tutorial is actually looking for at this step is if a file at `/tmp/tut1` (or possibly `/tmp/tut2` etc if you're running multiple tutorials at once) contains "jq". You can trick the tutorial into thinking you ran the desired command by instead just running

Code:

echo "jq" > /tmp/tut1
Hopefully that unblocks you here and you don't run into any other issues. I'll try to dig into this further independently to see if I can figure it out and ensure it doesn't bite anyone else.

steveh537 07-21-2021 12:17 PM

Appreciate the reply. Thanks to your knowledge I got through the remainder of the tutorial.

Locale in bedrock.conf was 'localegen = en_US.utf8 UTF-8, en_GB.utf8 UTF-8'

I'm happy to redo the tutorial and probe for any other information that might be useful to you if that assists?

I've previously had Bedrock installed on a base Linux Mint system and had no bother at all with a Void/Alpine/Gentoo setup hence installing your excellent work first thing on this new laptop

ParadigmComplex 07-21-2021 07:17 PM

Quote:

Originally Posted by steveh537 (Post 6268494)
Appreciate the reply. Thanks to your knowledge I got through the remainder of the tutorial.

Excellent :)

Quote:

Originally Posted by steveh537 (Post 6268494)
Locale in bedrock.conf was 'localegen = en_US.utf8 UTF-8, en_GB.utf8 UTF-8'

That seems fine. Presumably the locale issue is something else.

Quote:

Originally Posted by steveh537 (Post 6268494)
I'm happy to redo the tutorial and probe for any other information that might be useful to you if that assists?

While appreciated, I can't think of anything in particular for you to look at. If I do I'll reach out

Quote:

Originally Posted by steveh537 (Post 6268494)
I've previously had Bedrock installed on a base Linux Mint system and had no bother at all with a Void/Alpine/Gentoo setup hence installing your excellent work first thing on this new laptop

Happy to hear it worked well for you there. Perhaps the key difference here is which distro you hijacked. I didn't yet try to hijack a fresh Gentoo install, instead just having minimal instances of three strata on my test system. I'll try to give that a look.


All times are GMT -5. The time now is 12:14 PM.