From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id hoR4FZzNK2FVKgEAgWs5BA (envelope-from ) for ; Sun, 29 Aug 2021 20:10:36 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id s41oEJzNK2EuVQAAB5/wlQ (envelope-from ) for ; Sun, 29 Aug 2021 18:10:36 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9169E15F7C for ; Sun, 29 Aug 2021 20:10:35 +0200 (CEST) Received: from localhost ([::1]:59222 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKPGK-0007Xc-ND for larch@yhetil.org; Sun, 29 Aug 2021 14:10:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44302) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKOHP-0007KM-Pv for help-guix@gnu.org; Sun, 29 Aug 2021 13:07:35 -0400 Received: from mx1.liltechdude.xyz ([78.141.217.207]:29974) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKOHN-0008Ld-Rw for help-guix@gnu.org; Sun, 29 Aug 2021 13:07:35 -0400 Received: from localhost ( [194.247.25.14]) by freebsd (OpenSMTPD) with ESMTPSA id 25d0cc2e (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Sun, 29 Aug 2021 17:07:31 +0000 (UTC) From: Dmitry Polyakov To: help-guix@gnu.org Subject: Request for help with writing defenition for pyxel. Date: Sun, 29 Aug 2021 22:07:29 +0500 Message-ID: <878s0kdvse.fsf@liltechdude.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=78.141.217.207; envelope-from=polyakov@liltechdude.xyz; helo=mx1.liltechdude.xyz X-Spam_score_int: 2 X-Spam_score: 0.2 X-Spam_bar: / X-Spam_report: (0.2 / 5.0 requ) BAYES_00=-1.9, FROM_SUSPICIOUS_NTLD=0.499, FROM_SUSPICIOUS_NTLD_FP=1.599, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 29 Aug 2021 14:10:06 -0400 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1630260636; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=wuq1vxNMlkWsOPGn8Ob99eP0dbUJcp/c80qIV/qY/mM=; b=jXdguaqG2stv6DHjcaUh1scrLO0cQuj4QbEgxKxeoyZUeTzloNB2tmiNrn85IYmVl21YzQ 2Z/RA8LHZEARSiQ7UaQckhszTXAoWxsK/5XZqF20rGOF84IdodXAnwDVwDmbpgVZrmmIng YzxqfKP/o1hvotuQ9bHf528zJ6FpmfUOcrBYWsMJvn2vZUxqqf77AIbFuXvCnF8sKg/5bD FtxeM32iwqeiOfv7xiZYOO74PHeS3BGdEoN5+vT8I8nYrjI5bGJA6lsvU96at1xKEqeQZQ Y7HUMFkQWGE8RvDYKaQ3qF9D4vkZ9ICLbzdFshyhVno2RRzxSfAFeldcQl/SuQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630260636; a=rsa-sha256; cv=none; b=rXPTORZZdrctGkvmGJpld7lmxCB4poVgF3wgr8YHxdCIgzt4EQ5lbEgrg45iaRojE8b88X 9m5cdBgTRBBoe8x2o6VKf3KB3Zt4Tn+gDN8RkYt7oc1YYRYOWWr6wpGQBAJkbGavhYJBnF +8dr+CCOhaUWR0xTNCPz1i83kuHSnENV3bw2zEo1slva83mBTsPpXzcO5Wt21kEEsP6Z8r r53j4Gm6y0k59wF8eq9+9c+okjeNAy5qs4//fUXux6aG32dT82Lqkl4mIN0nEjgaVABv/E S2s4Wpkcv0mhD5rjpJJfI4kFtdfL81d60TaTXjofUz1U+D6Mereraz+jYMYGWw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=liltechdude.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -0.83 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=liltechdude.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 9169E15F7C X-Spam-Score: -0.83 X-Migadu-Scanner: scn0.migadu.com X-TUID: DrTNIW4WK90a I requesting for help with writing defenition for python retro game engine[= fn:1]. There are steps according to manual to build this engine[fn:2]: 1. Get sources with ~git clone https://github.com/kitao/pyxel~ 2. "cd" to this dir 3. Invoke ~guix environment --pure --ad-hoc gcc make python python-pip coreutils findutils sdl2 sdl2-image~ 4. Appnend this to in file pyxel/core/Makefile on line 50 ~-I/gnu/store/flvzd76nb8xzbp1sf5ckkvpwhspz9fqx-sdl-union-1.2.15/include/= SDL2~ 5. Invoke ~make -C pyxel/core clean all~ 6. Invoke ~pip3 install .~ to install this package And I got fully functional (according to examples) package in my system, but when I was tried to write defenition: #+begin_src scheme (define-public python-pyxel (package (name "python-pyxel") (version "1.4.3") (source (origin (method url-fetch) (uri "file:///home/lil/src/ring/pyxel" ;; this is version with modifie= d Makefile ;; (pypi-uri "pyxel" version) <- this is original content from $ guix im= port pypi pyxel ) (sha256 (base32 "1gxvagmj37gs871bh77xafm5jyiaw1hvs76wb97w96kf3g8abhkz")))) (build-system python-build-system) (inputs `(("gifsicle" ,gifsicle) ("sdl2" ,(sdl-union (list sdl2 sdl2-image))))) (home-page "https://github.com/kitao/pyxel") (synopsis "A retro game engine for Python") (description "A retro game engine for Python") (license license:expat))) #+end_src I was stacked with that error[fn:3] #+begin_src bash starting phase `build' running "python setup.py" with command "build" and parameters () Traceback (most recent call last): File "", line 1, in File "setup.py", line 2, in from pyxel import VERSION File "/tmp/guix-build-python-pyxel-1.4.3.drv-0/source/pyxel/__init__.py",= line 10, in from . import core # type: ignore File "/tmp/guix-build-python-pyxel-1.4.3.drv-0/source/pyxel/core/__init__= .py", line 42, in _lib =3D _load_library() File "/tmp/guix-build-python-pyxel-1.4.3.drv-0/source/pyxel/core/__init__= .py", line 39, in _load_library return cdll.LoadLibrary(lib_path) File "/gnu/store/9w9jvy3bgjg4qaqmrij01nbppiccqr7c-python-3.8.2/lib/python= 3.8/ctypes/__init__.py", line 451, in LoadLibrary return self._dlltype(name) File "/gnu/store/9w9jvy3bgjg4qaqmrij01nbppiccqr7c-python-3.8.2/lib/python= 3.8/ctypes/__init__.py", line 373, in __init__ self._handle =3D _dlopen(self._name, mode) OSError: libSDL2-2.0.so.0: cannot open shared object file: No such file or = directory command "python" "-c" "import setuptools, tokenize;__file__=3D'setup.py';f= =3Dgetattr(tokenize, 'open', open)(__file__);code=3Df.read().replace('\\r\\= n', '\\n');f.close();exec(compile(code, __file__, 'exec'))" "build" failed = with status 1 builder for `/gnu/store/2v3wlpjg2mg3mllc4qkb22b34cmymiab-python-pyxel-1.4.3= .drv' failed with exit code 1 build of /gnu/store/2v3wlpjg2mg3mllc4qkb22b34cmymiab-python-pyxel-1.4.3.drv= failed View build log at '/var/log/guix/drvs/2v/3wlpjg2mg3mllc4qkb22b34cmymiab-pyt= hon-pyxel-1.4.3.drv.bz2'. guix build: error: build of `/gnu/store/2v3wlpjg2mg3mllc4qkb22b34cmymiab-py= thon-pyxel-1.4.3.drv' failed #+end_src As far as I can understand, firstly guix should build C++ dependencies and /then/ install python package. Isn't it? But I don't know how to do this. * Footnotes [fn:1] https://github.com/kitao/pyxel Actually is C++ and Python engine [fn:2] https://github.com/kitao/pyxel#execute-the-following-command-in-any-= folder [fn:3] For full error see https://pastebin.com/d18Wrrq4 --=20 =E9=AD=94=E6=B3=95=E5=B0=91=E5=A5=B3=E3=83=AA=E3=83=AB=E3=83=86=E3=83=81=E3= =83=85=E3=83=87=E3=81=A7=E3=81=99=E3=82=88=E3=80=82