all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCHES] Add ruby-mini-portile-2, upgrade ruby-nokogiri
@ 2015-12-22 12:29 Ben Woodcroft
  2015-12-23 19:04 ` Leo Famulari
  0 siblings, 1 reply; 5+ messages in thread
From: Ben Woodcroft @ 2015-12-22 12:29 UTC (permalink / raw
  To: guix-devel@gnu.org

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

Nokogiri now requires an updated version of mini_portile (the gem was 
renamed to mini_portile2), but given that new versions of the 0.6.x 
branch still seem to be released I think keeping a separate mini_portile 
package is the go.

TIA.

[-- Attachment #2: 0001-gnu-Add-ruby-mini-portile-2.patch --]
[-- Type: text/x-patch, Size: 1064 bytes --]

From 1239963682ba7ff049fb9be8a56926ca23d32b64 Mon Sep 17 00:00:00 2001
From: Ben Woodcroft <donttrustben@gmail.com>
Date: Tue, 22 Dec 2015 21:51:43 +1000
Subject: [PATCH 1/2] gnu: Add ruby-mini-portile-2.

* gnu/packages/ruby.scm (ruby-mini-portile-2): New variable.
---
 gnu/packages/ruby.scm | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index a3eafb1..24e6359 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -1683,6 +1683,16 @@ to reproduce user environments.")
     (home-page "http://github.com/flavorjones/mini_portile")
     (license license:expat)))
 
+(define-public ruby-mini-portile-2
+  (package (inherit ruby-mini-portile)
+    (version "2.0.0")
+    (source (origin
+              (method url-fetch)
+              (uri (rubygems-uri "mini_portile2" version))
+              (sha256
+               (base32
+                "056drbn5m4khdxly1asmiik14nyllswr6sh3wallvsywwdiryz8l"))))))
+
 (define-public ruby-nokogiri
   (package
     (name "ruby-nokogiri")
-- 
2.5.0


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: 0002-gnu-ruby-nokogiri-Upgrade-to-1.6.7.1.patch --]
[-- Type: text/x-patch; name="0002-gnu-ruby-nokogiri-Upgrade-to-1.6.7.1.patch", Size: 1611 bytes --]

From e860cf565c377004d820e812d9fd7763861b0510 Mon Sep 17 00:00:00 2001
From: Ben Woodcroft <donttrustben@gmail.com>
Date: Tue, 22 Dec 2015 21:48:01 +1000
Subject: [PATCH 2/2] gnu: ruby-nokogiri: Upgrade to 1.6.7.1.

* gnu/packages/ruby.scm (ruby-nokogiri): Upgrade to 1.6.7.1.
---
 gnu/packages/ruby.scm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 24e6359..c8c3d16 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -1696,13 +1696,13 @@ to reproduce user environments.")
 (define-public ruby-nokogiri
   (package
     (name "ruby-nokogiri")
-    (version "1.6.6.2")
+    (version "1.6.7.1")
     (source (origin
               (method url-fetch)
               (uri (rubygems-uri "nokogiri" version))
               (sha256
                (base32
-                "1j4qv32qjh67dcrc1yy1h8sqjnny8siyy4s44awla8d6jk361h30"))))
+                "12nwv3lad5k2k73aa1d1xy4x577c143ixks6rs70yp78sinbglk2"))))
     (build-system ruby-build-system)
     (arguments
      ;; Tests fail because Nokogiri can only test with an installed extension,
@@ -1720,7 +1720,7 @@ to reproduce user environments.")
        ("libxml2" ,libxml2)
        ("libxslt" ,libxslt)))
     (propagated-inputs
-     `(("ruby-mini-portile" ,ruby-mini-portile)))
+     `(("ruby-mini-portile" ,ruby-mini-portile-2)))
     (synopsis "HTML, XML, SAX, and Reader parser for Ruby")
     (description "Nokogiri (鋸) parses and searches XML/HTML, and features
 both CSS3 selector and XPath 1.0 support.")
-- 
2.5.0


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

* Re: [PATCHES] Add ruby-mini-portile-2, upgrade ruby-nokogiri
  2015-12-22 12:29 [PATCHES] Add ruby-mini-portile-2, upgrade ruby-nokogiri Ben Woodcroft
@ 2015-12-23 19:04 ` Leo Famulari
  2015-12-31  0:44   ` Ben Woodcroft
  0 siblings, 1 reply; 5+ messages in thread
From: Leo Famulari @ 2015-12-23 19:04 UTC (permalink / raw
  To: Ben Woodcroft; +Cc: guix-devel@gnu.org

On Tue, Dec 22, 2015 at 10:29:49PM +1000, Ben Woodcroft wrote:
> Nokogiri now requires an updated version of mini_portile (the gem was
> renamed to mini_portile2), but given that new versions of the 0.6.x branch
> still seem to be released I think keeping a separate mini_portile package is
> the go.

These are the results of `guix refresh -l ruby-mini-portile`:

Building the following 4 packages would ensure 6 dependent packages are
rebuilt: ruby-pygmentize-0.0.3 ruby-nokogiri-diff-0.2.0
ruby-sanitize-4.0.0 bio-blastxmlparser-2.0.4

Looks like a bit of work to properly upgrade all these and their
referrers to ruby-mini-portile-2! But it may be worth it to watch them
in the future and try to drop ruby-mini-portile when it becomes
possible, assuming upstream plans to deprecate it eventually.

LGTM, thanks! Pushed as 1b9d4e2e20.

> From 1239963682ba7ff049fb9be8a56926ca23d32b64 Mon Sep 17 00:00:00 2001
> From: Ben Woodcroft <donttrustben@gmail.com>
> Date: Tue, 22 Dec 2015 21:51:43 +1000
> Subject: [PATCH 1/2] gnu: Add ruby-mini-portile-2.
> 
> * gnu/packages/ruby.scm (ruby-mini-portile-2): New variable.
> ---
>  gnu/packages/ruby.scm | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
> index a3eafb1..24e6359 100644
> --- a/gnu/packages/ruby.scm
> +++ b/gnu/packages/ruby.scm
> @@ -1683,6 +1683,16 @@ to reproduce user environments.")
>      (home-page "http://github.com/flavorjones/mini_portile")
>      (license license:expat)))
>  
> +(define-public ruby-mini-portile-2
> +  (package (inherit ruby-mini-portile)
> +    (version "2.0.0")
> +    (source (origin
> +              (method url-fetch)
> +              (uri (rubygems-uri "mini_portile2" version))
> +              (sha256
> +               (base32
> +                "056drbn5m4khdxly1asmiik14nyllswr6sh3wallvsywwdiryz8l"))))))
> +
>  (define-public ruby-nokogiri
>    (package
>      (name "ruby-nokogiri")
> -- 
> 2.5.0
> 

> From e860cf565c377004d820e812d9fd7763861b0510 Mon Sep 17 00:00:00 2001
> From: Ben Woodcroft <donttrustben@gmail.com>
> Date: Tue, 22 Dec 2015 21:48:01 +1000
> Subject: [PATCH 2/2] gnu: ruby-nokogiri: Upgrade to 1.6.7.1.
> 
> * gnu/packages/ruby.scm (ruby-nokogiri): Upgrade to 1.6.7.1.
> ---
>  gnu/packages/ruby.scm | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
> index 24e6359..c8c3d16 100644
> --- a/gnu/packages/ruby.scm
> +++ b/gnu/packages/ruby.scm
> @@ -1696,13 +1696,13 @@ to reproduce user environments.")
>  (define-public ruby-nokogiri
>    (package
>      (name "ruby-nokogiri")
> -    (version "1.6.6.2")
> +    (version "1.6.7.1")
>      (source (origin
>                (method url-fetch)
>                (uri (rubygems-uri "nokogiri" version))
>                (sha256
>                 (base32
> -                "1j4qv32qjh67dcrc1yy1h8sqjnny8siyy4s44awla8d6jk361h30"))))
> +                "12nwv3lad5k2k73aa1d1xy4x577c143ixks6rs70yp78sinbglk2"))))
>      (build-system ruby-build-system)
>      (arguments
>       ;; Tests fail because Nokogiri can only test with an installed extension,
> @@ -1720,7 +1720,7 @@ to reproduce user environments.")
>         ("libxml2" ,libxml2)
>         ("libxslt" ,libxslt)))
>      (propagated-inputs
> -     `(("ruby-mini-portile" ,ruby-mini-portile)))
> +     `(("ruby-mini-portile" ,ruby-mini-portile-2)))
>      (synopsis "HTML, XML, SAX, and Reader parser for Ruby")
>      (description "Nokogiri (???) parses and searches XML/HTML, and features
>  both CSS3 selector and XPath 1.0 support.")
> -- 
> 2.5.0
> 

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

* Re: [PATCHES] Add ruby-mini-portile-2, upgrade ruby-nokogiri
  2015-12-23 19:04 ` Leo Famulari
@ 2015-12-31  0:44   ` Ben Woodcroft
  2015-12-31  1:02     ` Leo Famulari
  0 siblings, 1 reply; 5+ messages in thread
From: Ben Woodcroft @ 2015-12-31  0:44 UTC (permalink / raw
  To: Leo Famulari; +Cc: guix-devel@gnu.org



On 24/12/15 05:04, Leo Famulari wrote:
> On Tue, Dec 22, 2015 at 10:29:49PM +1000, Ben Woodcroft wrote:
>> Nokogiri now requires an updated version of mini_portile (the gem was
>> renamed to mini_portile2), but given that new versions of the 0.6.x branch
>> still seem to be released I think keeping a separate mini_portile package is
>> the go.
> These are the results of `guix refresh -l ruby-mini-portile`:
>
> Building the following 4 packages would ensure 6 dependent packages are
> rebuilt: ruby-pygmentize-0.0.3 ruby-nokogiri-diff-0.2.0
> ruby-sanitize-4.0.0 bio-blastxmlparser-2.0.4
>
> Looks like a bit of work to properly upgrade all these and their
> referrers to ruby-mini-portile-2! But it may be worth it to watch them
> in the future and try to drop ruby-mini-portile when it becomes
> possible, assuming upstream plans to deprecate it eventually.
and I just packaged another one..
> LGTM, thanks! Pushed as 1b9d4e2e20.
I came across a subtle problem. Because the old miniportile is 
"ruby-mini-portile" and the new one is "ruby-mini-portile-2" but they 
share the same package name field, there doesn't seem to be any way to 
install the old miniportile from the command line:

$ ./pre-inst-env guix package -i ruby-mini-portile
The following package will be upgraded:
    ruby-mini-portile    0.6.2 → 2.0.0 
/gnu/store/0wlnhs4ymzj1mcm6wvc2y1ngvpj7wwls-ruby-mini-portile-2.0.0

I think maybe we should rename the old version to ruby-mini-portile-0, 
but keep the name of ruby-mini-portile-2. This would entail modifying 
the dependent packages but this is doable I would think.

WDYT?

Thanks,
ben

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

* Re: [PATCHES] Add ruby-mini-portile-2, upgrade ruby-nokogiri
  2015-12-31  0:44   ` Ben Woodcroft
@ 2015-12-31  1:02     ` Leo Famulari
  2015-12-31  1:06       ` Ben Woodcroft
  0 siblings, 1 reply; 5+ messages in thread
From: Leo Famulari @ 2015-12-31  1:02 UTC (permalink / raw
  To: Ben Woodcroft; +Cc: guix-devel@gnu.org

On Thu, Dec 31, 2015 at 10:44:36AM +1000, Ben Woodcroft wrote:
> 
> 
> On 24/12/15 05:04, Leo Famulari wrote:
> >On Tue, Dec 22, 2015 at 10:29:49PM +1000, Ben Woodcroft wrote:
> >>Nokogiri now requires an updated version of mini_portile (the gem was
> >>renamed to mini_portile2), but given that new versions of the 0.6.x branch
> >>still seem to be released I think keeping a separate mini_portile package is
> >>the go.
> >These are the results of `guix refresh -l ruby-mini-portile`:
> >
> >Building the following 4 packages would ensure 6 dependent packages are
> >rebuilt: ruby-pygmentize-0.0.3 ruby-nokogiri-diff-0.2.0
> >ruby-sanitize-4.0.0 bio-blastxmlparser-2.0.4
> >
> >Looks like a bit of work to properly upgrade all these and their
> >referrers to ruby-mini-portile-2! But it may be worth it to watch them
> >in the future and try to drop ruby-mini-portile when it becomes
> >possible, assuming upstream plans to deprecate it eventually.
> and I just packaged another one..
> >LGTM, thanks! Pushed as 1b9d4e2e20.
> I came across a subtle problem. Because the old miniportile is
> "ruby-mini-portile" and the new one is "ruby-mini-portile-2" but they share
> the same package name field, there doesn't seem to be any way to install the
> old miniportile from the command line:
> 
> $ ./pre-inst-env guix package -i ruby-mini-portile
> The following package will be upgraded:
>    ruby-mini-portile    0.6.2 → 2.0.0
> /gnu/store/0wlnhs4ymzj1mcm6wvc2y1ngvpj7wwls-ruby-mini-portile-2.0.0
> 
> I think maybe we should rename the old version to ruby-mini-portile-0, but
> keep the name of ruby-mini-portile-2. This would entail modifying the
> dependent packages but this is doable I would think.
> 
> WDYT?

What happens if you try `guix package -i ruby-mini-portile-0.6.2`?

> 
> Thanks,
> ben

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

* Re: [PATCHES] Add ruby-mini-portile-2, upgrade ruby-nokogiri
  2015-12-31  1:02     ` Leo Famulari
@ 2015-12-31  1:06       ` Ben Woodcroft
  0 siblings, 0 replies; 5+ messages in thread
From: Ben Woodcroft @ 2015-12-31  1:06 UTC (permalink / raw
  To: Leo Famulari; +Cc: guix-devel@gnu.org



On 31/12/15 11:02, Leo Famulari wrote:
> On Thu, Dec 31, 2015 at 10:44:36AM +1000, Ben Woodcroft wrote:
>>
>> On 24/12/15 05:04, Leo Famulari wrote:
>>
>>> LGTM, thanks! Pushed as 1b9d4e2e20.
>> I came across a subtle problem. Because the old miniportile is
>> "ruby-mini-portile" and the new one is "ruby-mini-portile-2" but they share
>> the same package name field, there doesn't seem to be any way to install the
>> old miniportile from the command line:
>> [..]
> What happens if you try `guix package -i ruby-mini-portile-0.6.2`?
What happens is that I learn something new: it installs 0.6.2. Thanks.

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

end of thread, other threads:[~2015-12-31  1:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-22 12:29 [PATCHES] Add ruby-mini-portile-2, upgrade ruby-nokogiri Ben Woodcroft
2015-12-23 19:04 ` Leo Famulari
2015-12-31  0:44   ` Ben Woodcroft
2015-12-31  1:02     ` Leo Famulari
2015-12-31  1:06       ` Ben Woodcroft

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.