bug#63975: Broken link (404) in blog post breadcrumbs

2023-06-10 Thread pelzflorian (Florian Pelz)
Maxime Devos  writes:
> then click on the link ‘Parameterized Packages for GNU Guix’ in the
> breadcrumbs ‘Home -> Blog -> Parameterized Packages for GNU Guix’.
>
> This goes to
>
> https://guix.gnu.org/blog/2023/parameterized-packages-for-gnu-guix
>
> which is a 404 Not Found.

Thank you Maxime for spotting it!

The attached patch should fix it; I still need to test if it works
before pushing.

(Old blog posts still have a redirect from
https://guix.gnu.org/blog/2019/post-url-path to
https://guix.gnu.org/en/blog/2019/post-url-path in maintenance.git,
but we do not want to add a redirect for each new blog post.)

Regards,
Florian

From: Florian Pelz 
Date: Sat, 10 Jun 2023 13:26:55 +0200
Subject: [PATCH] website: blog: Refer to the localized URL in breadcrumbs.

Fixes .
Reported by Maxime Devos 

* website/apps/blog/templates/post.scm (post-t)[#:crumbs]: Append a
slash to the URL, so the guix-url procedure will treat it as a web
page and localize it.
---
 website/apps/blog/templates/post.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/website/apps/blog/templates/post.scm b/website/apps/blog/templates/post.scm
index 0d6b08e..aba6fb9 100644
--- a/website/apps/blog/templates/post.scm
+++ b/website/apps/blog/templates/post.scm
@@ -1,4 +1,5 @@
 ;;; GNU Guix web site
+;;; Copyright © 2023 Florian Pelz 
 ;;; Initially written by sirgazil who waives all
 ;;; copyright interest on this file.
 
@@ -34,7 +35,8 @@
  #:crumbs
  (list (crumb (C_ "website menu" "Blog") (guix-url "blog/"))
 	   (crumb (post-ref post 'title)
-		  (guix-url (post-url-path post
+  (guix-url (string-append (post-url-path post)
+   "/"
  #:content
  `(main
(article

base-commit: 0250b260c880aa43fcd0bd2655d924d4719082c4
-- 
2.40.1



bug#53325: povray: Fails to build (_Pragma errors) [FIXED]

2023-06-10 Thread Ivan Vilata i Balaguer
I tried installing the package again under Guix 44bbfc24 and it installed
successfully.  It was probably working after a59afdc9 (2022-02-03), which
updated Boost to 1.78.0.

This issue may be closed, thanks!


Ivan Vilata i Balaguer (2022-02-07 23:43:18 +0100) wrote:

> Ivan Vilata i Balaguer (2022-01-26 22:57:18 +0100) wrote:
> 
> > Ivan Vilata i Balaguer (2022-01-17 20:58:40 +0100) wrote:
> > 
> > > Hi!  When trying to upgrade package `povray 3.7.0.8` from Guix commit
> > > `404f6953` to that of commit `4a943cfd`, the build fails showing errors 
> > > like
> > > these: […]
> > 
> > I found what looks like the same issue reported in
> > .
> > 
> > As a commenter suggested, I succeeded to build the package using Boost 1.78,
> > […]  BTW, this is where I think they fixed the Boost issue for 1.78:
> > 
> 
> So I tried to create a patch (attached) which just drops the fixed version of
> `header_deprecated.hpp` from Boost 1.78 [1] in Povray's `source` directory,
> since that include path has priority over the profile's Boost one during
> build.  I tried building with:
> 
> $ guix build povray 
> --with-patch=povray=./povray-fix-boost-1.77-math-tools-pragma.patch
> […]
> /gnu/store/mp687jry3rb96ff3jbaijibz4klhjicd-povray-3.7.0.8
> 
> So it built successfully.
> 
> [1]: 
> https://github.com/boostorg/math/blob/boost-1.78.0/include/boost/math/tools/header_deprecated.hpp
> 
> Thus, the patch may be applied until Boost is upgraded to 1.78, at which point
> it can be removed.
> 
> Thanks!

-- 
Ivan Vilata i Balaguer -- https://elvil.net/


signature.asc
Description: PGP signature


bug#63975: Broken link (404) in blog post breadcrumbs

2023-06-10 Thread pelzflorian (Florian Pelz)
Pushed as bf07f52a57505c4b12fa6b384b79751e387ae624 with some changes;
the change is effected in the post-url-path procedure now.





bug#63977: Incorrect language tags in case of incomplete translations

2023-06-10 Thread pelzflorian (Florian Pelz)
Maxime Devos  writes:
> This French web page has an English blog post.  This is OK, HTML
> supports that.  Just put a "lang="en"' attribute in the 'article' tag

Done in c392a144df6c1e11ec5a672f7e2c00fbfc51f5bd.  Thank you for the
report!  I do not have a screen reader to test though.

Regards,
Florian