unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] wxwidgets: enable extended regexps
@ 2016-02-15 16:28 Danny Milosavljevic
  2016-02-15 22:04 ` Leo Famulari
  0 siblings, 1 reply; 5+ messages in thread
From: Danny Milosavljevic @ 2016-02-15 16:28 UTC (permalink / raw)
  To: guix-devel

Hi,

the following patch enables "extended" regexps as required by kicad.
It could conceivably inadvertedly change behaviour of other wxwidgets apps. 
What do you think? Is this the right way?

diff --git a/gnu/packages/wxwidgets.scm b/gnu/packages/wxwidgets.scm
index b49fb2f..65adfc1 100644
--- a/gnu/packages/wxwidgets.scm
+++ b/gnu/packages/wxwidgets.scm
@@ -61,7 +61,7 @@
      `(("pkg-config" ,pkg-config)))
     (arguments
      '(#:configure-flags
-       '("--with-regex=sys" "--with-libmspack" "--with-sdl")
+       '("--with-regex" "--with-libmspack" "--with-sdl")
        #:make-flags
        (list (string-append "LDFLAGS=-Wl,-rpath="
                             (assoc-ref %outputs "out") "/lib"))

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

* Re: [PATCH] wxwidgets: enable extended regexps
  2016-02-15 16:28 [PATCH] wxwidgets: enable extended regexps Danny Milosavljevic
@ 2016-02-15 22:04 ` Leo Famulari
  2016-02-15 22:07   ` Andreas Enge
  0 siblings, 1 reply; 5+ messages in thread
From: Leo Famulari @ 2016-02-15 22:04 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: guix-devel

On Mon, Feb 15, 2016 at 05:28:39PM +0100, Danny Milosavljevic wrote:
> Hi,
> 
> the following patch enables "extended" regexps as required by kicad.
> It could conceivably inadvertedly change behaviour of other wxwidgets apps. 
> What do you think? Is this the right way?

Can you test that some of these other apps still work with this change?

> 
> diff --git a/gnu/packages/wxwidgets.scm b/gnu/packages/wxwidgets.scm
> index b49fb2f..65adfc1 100644
> --- a/gnu/packages/wxwidgets.scm
> +++ b/gnu/packages/wxwidgets.scm
> @@ -61,7 +61,7 @@
>       `(("pkg-config" ,pkg-config)))
>      (arguments
>       '(#:configure-flags
> -       '("--with-regex=sys" "--with-libmspack" "--with-sdl")
> +       '("--with-regex" "--with-libmspack" "--with-sdl")
>         #:make-flags
>         (list (string-append "LDFLAGS=-Wl,-rpath="
>                              (assoc-ref %outputs "out") "/lib"))
> 

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

* Re: [PATCH] wxwidgets: enable extended regexps
  2016-02-15 22:04 ` Leo Famulari
@ 2016-02-15 22:07   ` Andreas Enge
  2016-02-15 22:47     ` Thompson, David
  0 siblings, 1 reply; 5+ messages in thread
From: Andreas Enge @ 2016-02-15 22:07 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel

On Mon, Feb 15, 2016 at 05:04:09PM -0500, Leo Famulari wrote:
> Can you test that some of these other apps still work with this change?

$ guix refresh -l wxwidgets
A single dependent package: wxmaxima-15.04.0

Andreas

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

* Re: [PATCH] wxwidgets: enable extended regexps
  2016-02-15 22:07   ` Andreas Enge
@ 2016-02-15 22:47     ` Thompson, David
  2016-02-16 19:42       ` Danny Milosavljevic
  0 siblings, 1 reply; 5+ messages in thread
From: Thompson, David @ 2016-02-15 22:47 UTC (permalink / raw)
  To: Andreas Enge; +Cc: guix-devel

On Mon, Feb 15, 2016 at 5:07 PM, Andreas Enge <andreas@enge.fr> wrote:
> On Mon, Feb 15, 2016 at 05:04:09PM -0500, Leo Famulari wrote:
>> Can you test that some of these other apps still work with this change?
>
> $ guix refresh -l wxwidgets
> A single dependent package: wxmaxima-15.04.0

Additionally, the wxwidgets-2 package, which inherits from wxwidgets,
is used by Audacity.

- Dave

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

* Re: [PATCH] wxwidgets: enable extended regexps
  2016-02-15 22:47     ` Thompson, David
@ 2016-02-16 19:42       ` Danny Milosavljevic
  0 siblings, 0 replies; 5+ messages in thread
From: Danny Milosavljevic @ 2016-02-16 19:42 UTC (permalink / raw)
  To: Thompson, David; +Cc: guix-devel

Hi,

On Mon, 15 Feb 2016 17:47:36 -0500
"Thompson, David" <dthompson2@worcester.edu> wrote:

> On Mon, Feb 15, 2016 at 5:07 PM, Andreas Enge <andreas@enge.fr> wrote:
> > On Mon, Feb 15, 2016 at 05:04:09PM -0500, Leo Famulari wrote:  
> >> Can you test that some of these other apps still work with this change?  
> >
> > $ guix refresh -l wxwidgets
> > A single dependent package: wxmaxima-15.04.0  
> 
> Additionally, the wxwidgets-2 package, which inherits from wxwidgets,
> is used by Audacity.

Thanks.

For the record (since it will take some time for this to be able to be tested), the only place wxRegEx is used in in audacity is in the Help, which I'm currently trying to get to work at all (see bug# 22705).

It's mangling the pagename of the page it's supposed to open like this:

- Replace pattern-matched "%.." => "_"
- Replace all non-alphanumeric which aren't space or "." by "_"
- Replace space => "+"
- Replace multiple underscores by single underscore (__+ => _)
- Non-regex-Replace "_." by "."
- concatenate the result and ReleaseSuffix and anchor in order to yield a filename and an URL to look up.

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

end of thread, other threads:[~2016-02-16 19:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-15 16:28 [PATCH] wxwidgets: enable extended regexps Danny Milosavljevic
2016-02-15 22:04 ` Leo Famulari
2016-02-15 22:07   ` Andreas Enge
2016-02-15 22:47     ` Thompson, David
2016-02-16 19:42       ` Danny Milosavljevic

Code repositories for project(s) associated with this public inbox

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

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 read-only IMAP folder(s) and NNTP newsgroup(s).