From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Wielkiewicz Subject: Re: Packaging Jami progress Date: Tue, 3 Dec 2019 16:44:02 +0100 Message-ID: <20191203164402.77a8c728@interia.pl> References: <20191104214754.793ec2ff@interia.pl> <874kzfo21r.fsf@ambrevar.xyz> <20191108192542.5daa7a0a@interia.pl> <87zhh2kdt2.fsf@ambrevar.xyz> <20191111111423.66ec31d5@interia.pl> <87r22ek7x4.fsf@ambrevar.xyz> <874kzajvy9.fsf@ambrevar.xyz> <20191111163843.0629ef41@kompiuter> <87o8xe4d5m.fsf@ambrevar.xyz> <87eeya49hf.fsf@ambrevar.xyz> <20191114214010.7b61005f@kompiuter> <87lfsikttk.fsf@ambrevar.xyz> <20191114231605.0ecec870@kompiuter> <87a797o6hb.fsf@ambrevar.xyz> <20191125221517.1140d0c9@kompiuter> <874kyrlzmn.fsf@ambrevar.xyz> <20191126203259.0f4141ea@kompiuter> <20191130192121.11e0c968@kompiuter> <87fti52or5.fsf@ambrevar.xyz> <20191201173411.042e68f2@kompiuter> <878snw2bpn.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:35638) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1icALf-0006fn-IJ for guix-devel@gnu.org; Tue, 03 Dec 2019 10:44:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1icALY-0001NH-TN for guix-devel@gnu.org; Tue, 03 Dec 2019 10:44:20 -0500 Received: from smtpo.poczta.interia.pl ([217.74.65.239]:42426) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1icALX-000131-3C for guix-devel@gnu.org; Tue, 03 Dec 2019 10:44:16 -0500 In-Reply-To: <878snw2bpn.fsf@ambrevar.xyz> 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: Pierre Neidhardt Cc: Guix-devel Hello, I started working on updating Jami to the latest version and it seems it needs libnatpmp, because without it, compilation fails during doing something connected to UPnP. For that purpose I started packaging libnatpmp, but during the "install" stage, it fails with the following error: starting phase `install' install -p -d /usr/include install: cannot create directory =E2=80=98/usr=E2=80=99: Permission denied make: *** [Makefile:95: install] Error 1 command "make" "install" "prefix=3D/gnu/store/rn7h6irrjfcd5w2s7a1clrq91g8jxjhl-libnatpmp-20150609" failed with status 2 I tried chmoding and making files writable, but it didn't work or I did something wrong. Here's the sketch of the package: (define-public libnatpmp (package (name "libnatpmp") (version "20150609") (source (origin (method url-fetch) (uri (string-append "http://miniupnp.free.fr/files/" name "-" version ".tar.gz")) (sha256 (base32 "1c1n8n7mp0amsd6vkz32n8zj3vnsckv308bb7na0dg0r8969rap1")))) (build-system gnu-build-system) (arguments `(#:phases (modify-phases %standard-phases (delete 'configure) (delete 'check)) #:make-flags (list (string-append "prefix=3D" (assoc-ref %outputs "out"))))) (home-page "http://miniupnp.free.fr/libnatpmp.html") (synopsis "C Library implementing NAT-PMP") (description "libnatpmp is a portable and asynchronous implementaiton of the NAT Po= rt Mapping Protocol (NAT-PMP) written in C.") (license license:bsd-3))) How do we deal with problems like these? I checked the makefile and it doesn't seem to have the "/usr" path hardcoded - it has the $(PREFIX) variable. Jan Wielkiewicz