From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kei Kebreau Subject: [PATCH] gnu: windowmaker: Fix invocation of 'wmsetbg'. Date: Tue, 25 Oct 2016 13:46:03 -0400 Message-ID: <87mvhs725g.fsf@openmailbox.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43840) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bz5o3-00058y-9W for guix-devel@gnu.org; Tue, 25 Oct 2016 13:46:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bz5ng-00057R-Mz for guix-devel@gnu.org; Tue, 25 Oct 2016 13:46:35 -0400 Received: from smtp29.openmailbox.org ([62.4.1.63]:59499 helo=smtp14.openmailbox.org) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bz5ng-00056C-EO for guix-devel@gnu.org; Tue, 25 Oct 2016 13:46:12 -0400 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain This patch allows Window Maker to run wmsetbg properly instead of showing an error as it has been. --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=0001-gnu-windowmaker-Fix-invocation-of-wmsetbg.patch Content-Transfer-Encoding: quoted-printable From=20a113116da6f9f6574e9fde12e69a9d3acdc87769 Mon Sep 17 00:00:00 2001 From: Kei Kebreau Date: Sun, 23 Oct 2016 13:50:05 -0400 Subject: [PATCH] gnu: windowmaker: Fix invocation of 'wmsetbg'. * gnu/packages/gnustep.scm (windowmaker)[arguments]: Add substitution of 40-character limit with a 107-character limit. =2D-- gnu/packages/gnustep.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gnu/packages/gnustep.scm b/gnu/packages/gnustep.scm index 6c365cb..8f72bb3 100644 =2D-- a/gnu/packages/gnustep.scm +++ b/gnu/packages/gnustep.scm @@ -60,7 +60,13 @@ (string-append "\"" bin "/wmaker.inst"))) (substitute* '("src/defaults.c" "WPrefs.app/Menu.c") (("\"wmsetbg") =2D (string-append "\"" bin "/wmsetbg"))))) + (string-append "\"" bin "/wmsetbg"))) + ;; Add enough cells to the command character array to + ;; allow passing our large path to the wmsetbg binary. + ;; The path to wmsetbg in Guix requires 67 extra char= acters. + (substitute* "src/defaults.c" + (("len =3D strlen\\(text\\) \\+ 40;") + (string-append "len =3D strlen(text) + 107;"))))) (alist-cons-after 'install 'wrap (lambda* (#:key outputs #:allow-other-keys) =2D-=20 2.10.1 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJYD5pbAAoJEOal7jwZRnoNwNgP/R7yxkArfZGf1E7taAWgY9A5 iyTXH5pCNOePlP6RtS0ipEQhRcPpca5fCKRddFn+BQatxEDrnv7awZuFo8Mivd71 AEgHgQlL7+QYFyQ9DDVK8M7Z8gmMuUsb2i0q+GnVQE15ddvY/mMLz421hpp5Fmjr PpK/nmam4OMnFtoc45tLYamlBOwa9/3sxQ9tk393lv5M+Bahgk4LglbKD/VLfZON k/aygRwJiAmdlVwS0qw7LYVkGm3V7aFuOZH/2eqiHmSxC7kYKpgt1RaMIp6k9fIg Y3BRu90AF8HL0eNrDq4omqR40pDcLhl3VpQW193Yvk7MIdjEwf9BMX19eKjWRvxf UJjHVOkwEcbZiTQz/6wQjTpcbQ4Bn5oZOkewfMufPTRURCCC75oLbM9jUNJ0ZDyJ bnOvA3a9IqsZkKd3F0JwWjOF1X+ZuNH4hAauzm734FAfzErjJTLLQNyRDuHtsxOU xtX0YSZ/gTR/f/sdq6P+/nbStZDVmA4wSV3CJ32NNGeKYfEVUNPL7Xk+1sbbB9Yv eZCpeb23FdRpRCkpyuUPOG7sU8+SUdoNUhatBm3jpQErTlEyZkA5E2lSr38iFnKu CzxlZ/xUBYK7iSvXcdLg8y1lB0X+o5z9QeaT7rKC5LhhJlgGYVjvQLQ/hUPF6iDu 9h9m2ltVFS1Oc+XO5ISL =p/1w -----END PGP SIGNATURE----- --==-=-=--