all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* patch-shebang and Rust - Change on core-updates?
@ 2020-01-20 19:28 Danny Milosavljevic
  2020-01-20 23:24 ` Andreas Rottmann
  2020-01-25 17:26 ` Ludovic Courtès
  0 siblings, 2 replies; 4+ messages in thread
From: Danny Milosavljevic @ 2020-01-20 19:28 UTC (permalink / raw)
  To: guix-devel

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

Hi,

Rust uses #![...] for something that is definitely not a shebang
(file-wide feature tests).

Currently, our patch-shebang[1] emits a lot of warnings because of those.

Should we change patch-shebang to ignore lines starting with "#![" ?

If so, how?  There's some get-char* magic that I don't understand.

The easiest way would be to add peek-char after the two calls to get-char*,
but not sure if that would work.

Alternatively, we could adapt the regexp.

>(define patch-shebang
>  (let ((shebang-rx (make-regexp "^[[:blank:]]*([[:graph:]]+)[[:blank:]]*([[:graph:]]*)(.*)$")))

The [[:graph:]]+ would have to change to something like 

  [[:graph-without-opening-bracket:]][[:graph:]]+

[1] ./guix/build/utils.scm patch-shebang

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

end of thread, other threads:[~2020-02-17 15:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-20 19:28 patch-shebang and Rust - Change on core-updates? Danny Milosavljevic
2020-01-20 23:24 ` Andreas Rottmann
2020-01-25 17:26 ` Ludovic Courtès
2020-02-17 15:55   ` Danny Milosavljevic

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.