all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Erroneous uses of regex in the invokation of FIND-FILES
@ 2019-08-22 10:04 Alex Vong
  2019-08-22 20:49 ` Mark H Weaver
  2019-09-20 20:31 ` Maxim Cournoyer
  0 siblings, 2 replies; 7+ messages in thread
From: Alex Vong @ 2019-08-22 10:04 UTC (permalink / raw)
  To: guix-devel

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

Hello guix,

I find out that there are a lof of erroneous uses of regex in the
invokation of FIND-FILES. The correct usage should be:

  (find-files "." "\\.c$")

Instead people write:

  (find-files "." ".*\\.c")

which match unwanted files.

For examples, in the procedure CUSTOM-GCC, the correct regex should be:

  "(c\\+\\+|cpp|g\\+\\+|gcov|gcc|gcc-.*)$"

instead of:

  ".*(c\\+\\+|cpp|g\\+\\+|gcov|gcc|gcc-.*)"

Please correct me if I am wrong.

Right now, the erroneous use of regex in CUSTOM-GCC casues the 'bin/'
directory of the output of gccgo, gcc-objc and gcc-objc++ to be empty.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Erroneous uses of regex in the invokation of FIND-FILES
@ 2019-08-22 10:14 Alex Vong
  2019-09-20 19:52 ` Maxim Cournoyer
  0 siblings, 1 reply; 7+ messages in thread
From: Alex Vong @ 2019-08-22 10:14 UTC (permalink / raw)
  To: guix-devel

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

[Resending...]

Hello guix,

I find out that there are a lof of erroneous uses of regex in the
invokation of FIND-FILES. The correct usage should be:

  (find-files "." "\\.c$")

Instead people write:

  (find-files "." ".*\\.c")

which match unwanted files.

For examples, in the procedure CUSTOM-GCC, the correct regex should be:

  "(c\\+\\+|cpp|g\\+\\+|gcov|gcc|gcc-.*)$"

instead of:

  ".*(c\\+\\+|cpp|g\\+\\+|gcov|gcc|gcc-.*)"

Please correct me if I am wrong.

Right now, the erroneous use of regex in CUSTOM-GCC casues the 'bin/'
directory of the output of gccgo, gcc-objc and gcc-objc++ to be empty.

-- 
Stand with Hong Kong!
#Eye4HK
Alex

https://twitter.com/freedomhkg

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

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

end of thread, other threads:[~2019-09-20 20:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-22 10:04 Erroneous uses of regex in the invokation of FIND-FILES Alex Vong
2019-08-22 20:49 ` Mark H Weaver
2019-08-23  2:50   ` bug#37150: " Alex Vong
2019-08-23  3:55     ` Alex Vong
2019-09-20 20:31 ` Maxim Cournoyer
  -- strict thread matches above, loose matches on Subject: below --
2019-08-22 10:14 Alex Vong
2019-09-20 19:52 ` Maxim Cournoyer

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.