all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#55618: Allow patching from mummi issues
@ 2022-05-24 22:14 Nicolas Graves via Bug reports for GNU Guix
  2022-05-25 11:06 ` Maxime Devos
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Graves via Bug reports for GNU Guix @ 2022-05-24 22:14 UTC (permalink / raw)
  To: 55618


Hi !

I was tring to fix a local build using an online patch on mummi, this
way :

(define-public my-emacs-list-utils
  (package
    (inherit emacs-list-utils)
    (name "my-emacs-list-utils")
    (version "0.4.6")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/rolandwalker/list-utils")
             (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "07hbz2md52ccy95gv4d5n6szrfmpfqf3w4kwqdg2cf54c7kgf7hw"))
       (patches
        (list
         (origin
            (method url-fetch)
            (uri "https://issues.guix.gnu.org/issue/55498/attachment/0")
            (sha256
             (base32
              "1ysjb23g21m0jhkn63hq56snjd6skd9pl58c365g519q03hq5s87")))))))))

As it is a quick and convenient way to apply someone's work while the
patch is not upstream, I expected it to work, but it failed with the
following error during download:

Starting download of /gnu/store/v91i1m61skr42136vnxhzm4gzyidp11y-0
From https://issues.guix.gnu.org/issue/55498/attachment/0...
Bad media-type header component: text

I don't now if the fix should come from mummi's or guix's side, but I
found it a relevant way to quickly test an existing patch for one's
needs.

Thanks if you can enable this type of patches, or get alternatives if
there are. Also thanks for all the work on guix, it's amazing.

Nicolas Graves




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

* bug#55618: Allow patching from mummi issues
  2022-05-24 22:14 bug#55618: Allow patching from mummi issues Nicolas Graves via Bug reports for GNU Guix
@ 2022-05-25 11:06 ` Maxime Devos
  2022-05-25 12:06   ` Daniel Meißner via Bug reports for GNU Guix
  2022-05-25 12:16   ` Liliana Marie Prikler
  0 siblings, 2 replies; 5+ messages in thread
From: Maxime Devos @ 2022-05-25 11:06 UTC (permalink / raw)
  To: Nicolas Graves, 55618

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

Nicolas Graves via Bug reports for GNU Guix schreef op wo 25-05-2022 om
00:14 [+0200]:
> Starting download of /gnu/store/v91i1m61skr42136vnxhzm4gzyidp11y-0
> From https://issues.guix.gnu.org/issue/55498/attachment/0...
> Bad media-type header component: text

That page sets

 Content-Type text;charset=utf-8

which apperently Guile's HTTP parser doesn't like.
Maybe it can be changed to text/patch (*) or text/diff (*) (or
text/plain) instead?

(*) x- prefixes are deprecated

Or is text;charset=utf-8 actually valid?

Greetings,
Maxime.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

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

* bug#55618: Allow patching from mummi issues
  2022-05-25 11:06 ` Maxime Devos
@ 2022-05-25 12:06   ` Daniel Meißner via Bug reports for GNU Guix
  2022-05-25 12:16   ` Liliana Marie Prikler
  1 sibling, 0 replies; 5+ messages in thread
From: Daniel Meißner via Bug reports for GNU Guix @ 2022-05-25 12:06 UTC (permalink / raw)
  To: Maxime Devos; +Cc: 55618, Nicolas Graves

Hi,

Maxime Devos writes:

> Or is text;charset=utf-8 actually valid?

There is a clear answer from RFC 2045, Section 5.1 [1]:

> Note also that a subtype specification is MANDATORY -- it may not be
> omitted from a Content-Type header field.

1: https://datatracker.ietf.org/doc/html/rfc2045#section-5.1

Best

-- 
Daniel




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

* bug#55618: Allow patching from mummi issues
  2022-05-25 11:06 ` Maxime Devos
  2022-05-25 12:06   ` Daniel Meißner via Bug reports for GNU Guix
@ 2022-05-25 12:16   ` Liliana Marie Prikler
  2022-05-25 14:21     ` Maxime Devos
  1 sibling, 1 reply; 5+ messages in thread
From: Liliana Marie Prikler @ 2022-05-25 12:16 UTC (permalink / raw)
  To: Maxime Devos, Nicolas Graves, 55618

Am Mittwoch, dem 25.05.2022 um 13:06 +0200 schrieb Maxime Devos:
> is text;charset=utf-8 actually valid?
Not as far as I'm aware.  The first part should be a proper MIME type,
which ought to be registered by the IANA [1].

> That page sets
> 
>  Content-Type text;charset=utf-8
> 
> which apperently Guile's HTTP parser doesn't like.
> Maybe it can be changed to text/patch (*) or text/diff (*) (or
> text/plain) instead?
> 
> (*) x- prefixes are deprecated
As fate would have it, neither text/patch nor text/diff are registered
over at the IANA [1].  As far as I'm aware, both (Linux/GNU)
applications and browsers should understand the x- notation.

Cheers


[1] https://www.iana.org/assignments/media-types/media-types.xhtml




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

* bug#55618: Allow patching from mummi issues
  2022-05-25 12:16   ` Liliana Marie Prikler
@ 2022-05-25 14:21     ` Maxime Devos
  0 siblings, 0 replies; 5+ messages in thread
From: Maxime Devos @ 2022-05-25 14:21 UTC (permalink / raw)
  To: Liliana Marie Prikler, Nicolas Graves, 55618

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

Liliana Marie Prikler schreef op wo 25-05-2022 om 14:16 [+0200]:
> Am Mittwoch, dem 25.05.2022 um 13:06 +0200 schrieb Maxime Devos:
> > is text;charset=utf-8 actually valid?
> Not as far as I'm aware.  The first part should be a proper MIME type,
> which ought to be registered by the IANA [1].
> 
> > That page sets
> > 
> >  Content-Type text;charset=utf-8
> > 
> > which apperently Guile's HTTP parser doesn't like.
> > Maybe it can be changed to text/patch (*) or text/diff (*) (or
> > text/plain) instead?
> > 
> > (*) x- prefixes are deprecated
> As fate would have it, neither text/patch nor text/diff are registered
> over at the IANA [1].  As far as I'm aware, both (Linux/GNU)
> applications and browsers should understand the x- notation.

Neither is text/x-patch nor text/diff.  I am not aware of any browser
that supports text/x-patch or text/x-diff (or text/patch for that
matter).  If there are any applications that understand text/x-patch
but not text/patch, it should be easy to patch them to support the more
standard-ish text/patch (or text/diff).

(Registering them would be even better, but AFAICT no-one is interested
in writing a formal spec to submit.)

Greetings,
Maxime.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

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

end of thread, other threads:[~2022-05-25 14:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-24 22:14 bug#55618: Allow patching from mummi issues Nicolas Graves via Bug reports for GNU Guix
2022-05-25 11:06 ` Maxime Devos
2022-05-25 12:06   ` Daniel Meißner via Bug reports for GNU Guix
2022-05-25 12:16   ` Liliana Marie Prikler
2022-05-25 14:21     ` Maxime Devos

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.