all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Cannot run texlive context: permission denied
@ 2024-03-01 10:21 Reza Housseini
  2024-03-24 14:36 ` Taha Aziz Ben Ali
  0 siblings, 1 reply; 11+ messages in thread
From: Reza Housseini @ 2024-03-01 10:21 UTC (permalink / raw)
  To: help-guix

Hi Guixers

When running context inside

  guix shell texlive-context --container

I get the error

   sh: /gnu/store/l4r1y73grs5mvx2jz1hndwgnxcgys9sj-profile/bin/context: 
Permission denied

What is the reason for this?

Thanks for your help.

Best regards
Reza

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Cannot run texlive context: permission denied
  2024-03-01 10:21 Reza Housseini
@ 2024-03-24 14:36 ` Taha Aziz Ben Ali
  0 siblings, 0 replies; 11+ messages in thread
From: Taha Aziz Ben Ali @ 2024-03-24 14:36 UTC (permalink / raw)
  To: help-guix

I'm also experiencing this same issue on two different installations of
Guix.

Running `context` directly yields the same result as Reza's. However, I
was able to successfully run the `mtxrun` binary and to generate the
database files using `mtxrun --generate`.

While `context` is unable to execute, `mtxrun --script context` throws
the following error:

   unknown script 'context.lua' or 'mtx-context.lua'

Kind regards,
-- 
Aziz


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Cannot run texlive context: permission denied
@ 2024-05-05 14:21 Taha Aziz Ben Ali
  2024-05-18 14:35 ` Nicolas Goaziou via
  0 siblings, 1 reply; 11+ messages in thread
From: Taha Aziz Ben Ali @ 2024-05-05 14:21 UTC (permalink / raw)
  To: help-guix; +Cc: ba.tahaaziz, reza.housseini

I'm here to tell you that I found a working workaround for making
ConTeXt work through `mtxrun --script context`.

Create a "texmf/web2c/texmfcnf.lua" file (and preceeding directories)
under your user's home directory and add the following:


    return {
      content = {
         variables = {
           TEXMF = os.getenv("GUIX_ENVIRONMENT") .. "/share/texmf-dist"
        },
      },
    }


That should be enough to get the ball rolling. Note however that running
`context` independently from `mtxrun` continues to fail.

These changes should probably be added to the build derivation, it seems
that Guix' non-standard filesystem don't work well with TeXLive's
default settings.

Kind regards,
-- 
Aziz


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Cannot run texlive context: permission denied
  2024-05-05 14:21 Cannot run texlive context: permission denied Taha Aziz Ben Ali
@ 2024-05-18 14:35 ` Nicolas Goaziou via
  2024-05-20  6:54   ` Taha Aziz Ben Ali
  0 siblings, 1 reply; 11+ messages in thread
From: Nicolas Goaziou via @ 2024-05-18 14:35 UTC (permalink / raw)
  To: Taha Aziz Ben Ali; +Cc: help-guix, reza.housseini

Hello,

Taha Aziz Ben Ali <ba.tahaaziz@gmail.com> writes:

> I'm here to tell you that I found a working workaround for making
> ConTeXt work through `mtxrun --script context`.
>
> Create a "texmf/web2c/texmfcnf.lua" file (and preceeding directories)
> under your user's home directory and add the following:
>
>
>     return {
>       content = {
>          variables = {
>            TEXMF = os.getenv("GUIX_ENVIRONMENT") .. "/share/texmf-dist"
>         },
>       },
>     }
>
>
> That should be enough to get the ball rolling. Note however that running
> `context` independently from `mtxrun` continues to fail.
>
> These changes should probably be added to the build derivation, it seems
> that Guix' non-standard filesystem don't work well with TeXLive's
> default settings.

I think it is fixed in "tex-team" branch.

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Cannot run texlive context: permission denied
  2024-05-18 14:35 ` Nicolas Goaziou via
@ 2024-05-20  6:54   ` Taha Aziz Ben Ali
  2024-05-20  8:28     ` Nicolas Goaziou via
  0 siblings, 1 reply; 11+ messages in thread
From: Taha Aziz Ben Ali @ 2024-05-20  6:54 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: help-guix, reza.housseini

> I think it is fixed in "tex-team" branch.

Thank you Nicolas,

I tried out your changes, and although the "permission denied" error no
longer shows up, running context in the terminal (user home intact,
i.e. without my previous configuration hack) yields the following
message:


mtxrun          | forcing cache reload
resolvers       | resolving | configuration files already identified
resolvers       | resolving | loading configuration file '/gnu/store/s0xbwkg8jqhbn85rqv90g30lxn5agf88-texlive-luatex-66594/share/texmf-dist/web2c/texmfcnf.lua'
resolvers       | resolving |
resolvers       | resolving | locating list of 'home:.texlive2023/texmf-config' (runtime) (tree:///home:.texlive2023/texmf-config)
resolvers       | methods | resolving, method 'locators', how 'uri', handler 'tree', argument 'tree:///home:.texlive2023/texmf-config'
resolvers       | trees | locator 'home:.texlive2023/texmf-config' not found
resolvers       | resolving | locating list of 'home:.texlive2023/texmf-var' (runtime) (tree:///home:.texlive2023/texmf-var)
resolvers       | methods | resolving, method 'locators', how 'uri', handler 'tree', argument 'tree:///home:.texlive2023/texmf-var'
resolvers       | trees | locator 'home:.texlive2023/texmf-var' not found
resolvers       | resolving | locating list of 'home:texmf' (runtime) (tree:///home:texmf)
resolvers       | methods | resolving, method 'locators', how 'uri', handler 'tree', argument 'tree:///home:texmf'
resolvers       | trees | locator 'home:texmf' not found
resolvers       | resolving | locating list of 'selfautoparent:texmf-local' (runtime) (tree:///selfautoparent:texmf-local)
resolvers       | methods | resolving, method 'locators', how 'uri', handler 'tree', argument 'tree:///selfautoparent:texmf-local'
resolvers       | trees | locator 'selfautoparent:texmf-local' not found
resolvers       | resolving |
resolvers       | resolving |
mtxrun          | the resolver databases are not present or outdated
resolvers       | resolving | using suffix based filetype 'scripts'
resolvers       | resolving | remembering file 'mtx-context.lua' using hash 'lua::mtx-context.lua'
resolvers       | resolving | using suffix based filetype 'scripts'
resolvers       | resolving | remembering file 'mtx-contexts.lua' using hash 'lua::mtx-contexts.lua'
resolvers       | resolving | remembered file 'mtx-context.lua'
resolvers       | resolving | using suffix based filetype 'scripts'
resolvers       | resolving | remembering file 'mtx-t-context.lua' using hash 'lua::mtx-t-context.lua'
resolvers       | resolving | using suffix based filetype 'scripts'
resolvers       | resolving | remembering file 'mtx-t-contexts.lua' using hash 'lua::mtx-t-contexts.lua'
resolvers       | resolving | remembered file 'mtx-t-context.lua'
resolvers       | resolving | using suffix based filetype 'scripts'
resolvers       | resolving | remembering file 'context.lua' using hash 'lua::context.lua'
mtxrun          | unknown script 'context.lua' or 'mtx-context.lua

It seems that mtxrun fails to find either files, the same message will
also appear if invoking context through mtxrun via the --script flag.

-- 
Aziz


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Cannot run texlive context: permission denied
  2024-05-20  6:54   ` Taha Aziz Ben Ali
@ 2024-05-20  8:28     ` Nicolas Goaziou via
  2024-05-20  8:57       ` Nicolas Goaziou via
  0 siblings, 1 reply; 11+ messages in thread
From: Nicolas Goaziou via @ 2024-05-20  8:28 UTC (permalink / raw)
  To: Taha Aziz Ben Ali; +Cc: help-guix, reza.housseini

Hello,

Taha Aziz Ben Ali <ba.tahaaziz@gmail.com> writes:

>> I think it is fixed in "tex-team" branch.
>
> Thank you Nicolas,
>
> I tried out your changes, and although the "permission denied" error no
> longer shows up, running context in the terminal (user home intact,
> i.e. without my previous configuration hack) yields the following
> message:

[...]

> It seems that mtxrun fails to find either files, the same message will
> also appear if invoking context through mtxrun via the --script flag.

Could you trying clearing out your cache, i.e.
"~/.texlive2023/texmf-var/"? It may contain bogus information.

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Cannot run texlive context: permission denied
  2024-05-20  8:28     ` Nicolas Goaziou via
@ 2024-05-20  8:57       ` Nicolas Goaziou via
  2024-05-20 19:11         ` Taha Aziz Ben Ali
  2024-05-27 21:23         ` Taha Aziz Ben Ali
  0 siblings, 2 replies; 11+ messages in thread
From: Nicolas Goaziou via @ 2024-05-20  8:57 UTC (permalink / raw)
  To: Nicolas Goaziou via; +Cc: Taha Aziz Ben Ali, reza.housseini

Nicolas Goaziou via <help-guix@gnu.org> writes:

> Taha Aziz Ben Ali <ba.tahaaziz@gmail.com> writes:
>
>>> I think it is fixed in "tex-team" branch.
>>
>> Thank you Nicolas,
>>
>> I tried out your changes, and although the "permission denied" error no
>> longer shows up, running context in the terminal (user home intact,
>> i.e. without my previous configuration hack) yields the following
>> message:
>
> [...]
>
>> It seems that mtxrun fails to find either files, the same message will
>> also appear if invoking context through mtxrun via the --script flag.
>
> Could you trying clearing out your cache, i.e.
> "~/.texlive2023/texmf-var/"? It may contain bogus information.

Nevermind! I misread your error message; your cache seems OK.

I think you created an incomplete environment, i.e., you used something
such as:

  ./pre-inst-env guix shell texlive-context

But `texlive-context' alone is not sufficient. You need at least
a scheme or a collection in this environment, as mentioned in the
manual, or, if you really want to be minimal, `texlive-bin'. E.g., in
decreasing size:

  ./pre-inst-env guix shell texlive-collection-context

     or

  ./pre-inst-env guix shell texlive-scheme-minimal texlive-context

     or

  ./pre-inst-env guix shell texlive-bin texlive-context


HTH,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Cannot run texlive context: permission denied
  2024-05-20  8:57       ` Nicolas Goaziou via
@ 2024-05-20 19:11         ` Taha Aziz Ben Ali
  2024-05-27 21:23         ` Taha Aziz Ben Ali
  1 sibling, 0 replies; 11+ messages in thread
From: Taha Aziz Ben Ali @ 2024-05-20 19:11 UTC (permalink / raw)
  To: Nicolas Goaziou, Nicolas Goaziou via; +Cc: reza.housseini

> Nevermind! I misread your error message; your cache seems OK.
>
> I think you created an incomplete environment, i.e., you used something
> such as:
>
>   ./pre-inst-env guix shell texlive-context

Yes, you're totally right.

> But `texlive-context' alone is not sufficient. You need at least
> a scheme or a collection in this environment, as mentioned in the
> manual, or, if you really want to be minimal, `texlive-bin'. E.g., in
> decreasing size:

I used texlive-scheme-context and texlive-collection-context and both
worked without a problem. I took a .tex file for a spin just to make
sure compilation worked without issue, and as you'd expect, all was
good.

Thank you so much for fixing this, Nicolas.

Kind regards,
-- 
Aziz


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Cannot run texlive context: permission denied
  2024-05-20  8:57       ` Nicolas Goaziou via
  2024-05-20 19:11         ` Taha Aziz Ben Ali
@ 2024-05-27 21:23         ` Taha Aziz Ben Ali
  2024-05-28 19:11           ` Nicolas Goaziou via
  1 sibling, 1 reply; 11+ messages in thread
From: Taha Aziz Ben Ali @ 2024-05-27 21:23 UTC (permalink / raw)
  To: Nicolas Goaziou, Nicolas Goaziou via; +Cc: reza.housseini

Hello there,

I've been following the master branch ever since the changes you've
introduced and I was wondering whether there was a particular reason
they haven't been merged yet.

If additional testing is required, I'd be happy to help out, but as I
previously pointed out, ConTeXt is working properly now.

Kind regards,
-- 
Aziz


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Cannot run texlive context: permission denied
  2024-05-27 21:23         ` Taha Aziz Ben Ali
@ 2024-05-28 19:11           ` Nicolas Goaziou via
  2024-05-29  7:05             ` Taha Aziz Ben Ali
  0 siblings, 1 reply; 11+ messages in thread
From: Nicolas Goaziou via @ 2024-05-28 19:11 UTC (permalink / raw)
  To: Taha Aziz Ben Ali; +Cc: Nicolas Goaziou via, reza.housseini

Hello,

Taha Aziz Ben Ali <ba.tahaaziz@gmail.com> writes:

> I've been following the master branch ever since the changes you've
> introduced and I was wondering whether there was a particular reason
> they haven't been merged yet.

Branches are merged in a FIFO order. Two branches are currently located
before "tex-team", as pointed out at <https://qa.guix.gnu.org>. I think
"gnome-team" will be merged very soon. I have no idea about
"core-updates".

Meanwhile, I'm polishing "tex-team" so it will be absolutely fantastic
(or utterly broken) once merged ;)

> If additional testing is required, I'd be happy to help out, but as I
> previously pointed out, ConTeXt is working properly now.

Thank you for your feedback! For now, waiting is the only thing to do,
however.

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Cannot run texlive context: permission denied
  2024-05-28 19:11           ` Nicolas Goaziou via
@ 2024-05-29  7:05             ` Taha Aziz Ben Ali
  0 siblings, 0 replies; 11+ messages in thread
From: Taha Aziz Ben Ali @ 2024-05-29  7:05 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Nicolas Goaziou via, reza.housseini

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Branches are merged in a FIFO order. Two branches are currently located
> before "tex-team", as pointed out at <https://qa.guix.gnu.org>. I think
> "gnome-team" will be merged very soon. I have no idea about
> "core-updates".

I really appreciate the explanation, thank you. I was taken aback by the
transparency of the whole process, it looks like a really well-polished
experience.

> Meanwhile, I'm polishing "tex-team" so it will be absolutely fantastic
> (or utterly broken) once merged ;)

I'm sure it'll be great.

> Thank you for your feedback! For now, waiting is the only thing to do,
> however.

Gotcha, thanks!

Kind regards,
-- 
Aziz


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-05-29  7:06 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-05 14:21 Cannot run texlive context: permission denied Taha Aziz Ben Ali
2024-05-18 14:35 ` Nicolas Goaziou via
2024-05-20  6:54   ` Taha Aziz Ben Ali
2024-05-20  8:28     ` Nicolas Goaziou via
2024-05-20  8:57       ` Nicolas Goaziou via
2024-05-20 19:11         ` Taha Aziz Ben Ali
2024-05-27 21:23         ` Taha Aziz Ben Ali
2024-05-28 19:11           ` Nicolas Goaziou via
2024-05-29  7:05             ` Taha Aziz Ben Ali
  -- strict thread matches above, loose matches on Subject: below --
2024-03-01 10:21 Reza Housseini
2024-03-24 14:36 ` Taha Aziz Ben Ali

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.