From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Pimentel Subject: Guix build package and publish Date: Sun, 31 May 2015 12:25:24 -0300 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=_9390beeabaecd296cc92ea375cc81690" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35486) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yz57O-0001Fo-4V for guix-devel@gnu.org; Sun, 31 May 2015 11:25:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yz57K-0005Bs-0N for guix-devel@gnu.org; Sun, 31 May 2015 11:25:42 -0400 Received: from smtp20.openmailbox.org ([62.4.1.54]:34679) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yz57J-0005BH-Eo for guix-devel@gnu.org; Sun, 31 May 2015 11:25:37 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.openmailbox.org (Postfix) with ESMTP id 4BF2C2E00CA for ; Sun, 31 May 2015 17:25:30 +0200 (CEST) Received: from mail.openmailbox.org ([62.4.1.34]) by localhost (mail.openmailbox.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9zCdNG0puoP6 for ; Sun, 31 May 2015 17:25:25 +0200 (CEST) Received: from www.openmailbox.org (mail.openmailbox.org [62.4.1.34]) by mail.openmailbox.org (Postfix) with ESMTP id C98F92E0090 for ; Sun, 31 May 2015 17:25:24 +0200 (CEST) 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org --=_9390beeabaecd296cc92ea375cc81690 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Hi Guix, I'm trying create package with Guix. Initially I choose a simple package (ipcalc) but after success I'll create complex package (thanks Andreas and Ludo for you advice). So, I'd like help for it :) My steps (I'm used GuixSD) based Ludo and Andreas talk: 1. Clone Guix repository: git clone git://git.savannah.gnu.org/guix.git 2. Create ipcalc.scm file (in attach) based in gnu/packages/indent.scm and update it: cd guix; cp gnu/packages/indent.scm gnu/packages/ipcalc.scm; emacs gnu/packages/ipcalc.scm 3. Add ipcalc to gnu-system.am file: ... gnu/packages/ipcalc.scm \ ... 4. Download package: guix download http://url.package.tar.gz 5. Update hash to ipcalc.scm file: emacs gnu/packages/ipcalc.scm 6. Build package: ./pre-inst-env.in guix build ipcalc -K But there's errors, running with normal user (last lines): guix build: error: ipcalc: unknown package Running with sudo (last lines): ./pre-inst-env.in: line 32: cd: @abs_top_srcdir@: No such file or directory ./pre-inst-env.in: line 33: cd: @abs_top_builddir@: No such file or directory Backtrace: In ice-9/psyntax.scm: 989: 19 [scan ((define-module (guix ui) #:use-module ...)) () ...] 279: 18 [scan ((#(syntax-object let # ...) (#) (# #) ...)) () ...] In ice-9/eval.scm: 411: 17 [eval # ()] In ice-9/boot-9.scm: 2951: 16 [define-module* (guix ui) #:filename ...] 2926: 15 [resolve-imports (((guix utils)) ((guix store)) ((guix config)) ...)] 2864: 14 [resolve-interface (guix utils) #:select ...] 2789: 13 [# # ...] 3065: 12 [try-module-autoload (guix utils) #f] 2401: 11 [save-module-excursion #] 3085: 10 [#] In unknown file: ?: 9 [primitive-load-path "guix/utils" ...] In ice-9/eval.scm: 505: 8 [# (define-module # # ...)] In ice-9/psyntax.scm: 1106: 7 [expand-top-sequence ((define-module (guix utils) #:use-module ...)) () ...] 989: 6 [scan ((define-module (guix utils) #:use-module ...)) () ...] 279: 5 [scan ((#(syntax-object let # ...) (#) (# #) ...)) () ...] In ice-9/eval.scm: 411: 4 [eval # ()] In ice-9/boot-9.scm: 2951: 3 [define-module* (guix utils) #:filename ...] 2926: 2 [resolve-imports (((guix config)) ((srfi srfi-1)) ((srfi srfi-9)) ...)] 2867: 1 [resolve-interface (guix config) #:select ...] In unknown file: ?: 0 [scm-error misc-error #f "~A ~S" ("no code for module" (guix config)) #f] ERROR: In procedure scm-error: ERROR: no code for module (guix config) Help me, thanks. -- Daniel Pimentel (d4n1) GnuPG (0B1A1914) FSF (13054) --=_9390beeabaecd296cc92ea375cc81690 Content-Transfer-Encoding: base64 Content-Type: text/plain; name=ipcalc.scm Content-Disposition: attachment; filename=ipcalc.scm; size=2186 Ozs7IEdOVSBHdWl4IC0tLSBGdW5jdGlvbmFsIHBhY2thZ2UgbWFuYWdlbWVudCBmb3IgR05VCjs7 OyBDb3B5cmlnaHQgwqkgMjAxMyBBbmRyZWFzIEVuZ2UgPGFuZHJlYXNAZW5nZS5mcj4KOzs7IENv cHlyaWdodCDCqSAyMDE0IE1hcmsgSCBXZWF2ZXIgPG1od0BuZXRyaXMub3JnPgo7OzsKOzs7IFRo aXMgZmlsZSBpcyBwYXJ0IG9mIEdOVSBHdWl4Lgo7OzsKOzs7IEdOVSBHdWl4IGlzIGZyZWUgc29m dHdhcmU7IHlvdSBjYW4gcmVkaXN0cmlidXRlIGl0IGFuZC9vciBtb2RpZnkgaXQKOzs7IHVuZGVy IHRoZSB0ZXJtcyBvZiB0aGUgR05VIEdlbmVyYWwgUHVibGljIExpY2Vuc2UgYXMgcHVibGlzaGVk IGJ5Cjs7OyB0aGUgRnJlZSBTb2Z0d2FyZSBGb3VuZGF0aW9uOyBlaXRoZXIgdmVyc2lvbiAzIG9m IHRoZSBMaWNlbnNlLCBvciAoYXQKOzs7IHlvdXIgb3B0aW9uKSBhbnkgbGF0ZXIgdmVyc2lvbi4K Ozs7Cjs7OyBHTlUgR3VpeCBpcyBkaXN0cmlidXRlZCBpbiB0aGUgaG9wZSB0aGF0IGl0IHdpbGwg YmUgdXNlZnVsLCBidXQKOzs7IFdJVEhPVVQgQU5ZIFdBUlJBTlRZOyB3aXRob3V0IGV2ZW4gdGhl IGltcGxpZWQgd2FycmFudHkgb2YKOzs7IE1FUkNIQU5UQUJJTElUWSBvciBGSV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