Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] How to run INSTALL script with bash
@ 2020-12-05 17:10 DBLouis
  2020-12-07 23:56 ` sgn
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: DBLouis @ 2020-12-05 17:10 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 312 bytes --]

New issue by DBLouis on void-packages repository

https://github.com/void-linux/void-packages/issues/26967

Description:
I want to run the INSTALL script of a package with bash instead of sh. (This is for a personal package not to be PR here)
How can I do that? Setting the hashbang to /bin/bash does not work.

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

* Re: How to run INSTALL script with bash
  2020-12-05 17:10 [ISSUE] How to run INSTALL script with bash DBLouis
@ 2020-12-07 23:56 ` sgn
  2020-12-08  8:26 ` DBLouis
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: sgn @ 2020-12-07 23:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 271 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/26967#issuecomment-740253950

Comment:
Either:

- Ship some bash script with your package and and execute that script during installation
- `bash -c '<bash code here>'`

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

* Re: How to run INSTALL script with bash
  2020-12-05 17:10 [ISSUE] How to run INSTALL script with bash DBLouis
  2020-12-07 23:56 ` sgn
@ 2020-12-08  8:26 ` DBLouis
  2020-12-08 11:59 ` Duncaen
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: DBLouis @ 2020-12-08  8:26 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 353 bytes --]

New comment by DBLouis on void-packages repository

https://github.com/void-linux/void-packages/issues/26967#issuecomment-740465534

Comment:
I was thinking that xbps must execute the INSTALL script like this `sh <script>` instead of running it as an executable. That's why the hashbang does nothing. Is there a reason for not running as an executable?

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

* Re: How to run INSTALL script with bash
  2020-12-05 17:10 [ISSUE] How to run INSTALL script with bash DBLouis
  2020-12-07 23:56 ` sgn
  2020-12-08  8:26 ` DBLouis
@ 2020-12-08 11:59 ` Duncaen
  2020-12-24 14:17 ` sgn
  2020-12-24 14:17 ` [ISSUE] [CLOSED] " sgn
  4 siblings, 0 replies; 6+ messages in thread
From: Duncaen @ 2020-12-08 11:59 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 497 bytes --]

New comment by Duncaen on void-packages repository

https://github.com/void-linux/void-packages/issues/26967#issuecomment-740577300

Comment:
The actual install scripts inside the package is generated, i.e. anything that requires a trigger is added to the script and the `INSTALL` file is just appended to it.

Not using the shebang is probably done, to allow `xbps-install -r foo` without root (which would be required for chroot) to use the shell from the chroot and not from the host system.

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

* Re: How to run INSTALL script with bash
  2020-12-05 17:10 [ISSUE] How to run INSTALL script with bash DBLouis
                   ` (2 preceding siblings ...)
  2020-12-08 11:59 ` Duncaen
@ 2020-12-24 14:17 ` sgn
  2020-12-24 14:17 ` [ISSUE] [CLOSED] " sgn
  4 siblings, 0 replies; 6+ messages in thread
From: sgn @ 2020-12-24 14:17 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 164 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/26967#issuecomment-750895246

Comment:
I guess this is resolved.

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

* Re: [ISSUE] [CLOSED] How to run INSTALL script with bash
  2020-12-05 17:10 [ISSUE] How to run INSTALL script with bash DBLouis
                   ` (3 preceding siblings ...)
  2020-12-24 14:17 ` sgn
@ 2020-12-24 14:17 ` sgn
  4 siblings, 0 replies; 6+ messages in thread
From: sgn @ 2020-12-24 14:17 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 315 bytes --]

Closed issue by DBLouis on void-packages repository

https://github.com/void-linux/void-packages/issues/26967

Description:
I want to run the INSTALL script of a package with bash instead of sh. (This is for a personal package not to be PR here)
How can I do that? Setting the hashbang to /bin/bash does not work.

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

end of thread, other threads:[~2020-12-24 14:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-05 17:10 [ISSUE] How to run INSTALL script with bash DBLouis
2020-12-07 23:56 ` sgn
2020-12-08  8:26 ` DBLouis
2020-12-08 11:59 ` Duncaen
2020-12-24 14:17 ` sgn
2020-12-24 14:17 ` [ISSUE] [CLOSED] " sgn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).