From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dan Kegel Newsgroups: gmane.lisp.guile.user Subject: Re: Ubuntu 14.04 build for Guile? Date: Fri, 29 Dec 2017 15:48:34 -0800 Message-ID: References: <151457143101.32472.6841010602282989126.launchpad@wampee.canonical.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1514591237 6237 195.159.176.226 (29 Dec 2017 23:47:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 29 Dec 2017 23:47:17 +0000 (UTC) Cc: guile-user@gnu.org To: Craig Maloney Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Dec 30 00:47:13 2017 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eV4Mj-0000uD-C3 for guile-user@m.gmane.org; Sat, 30 Dec 2017 00:47:05 +0100 Original-Received: from localhost ([::1]:59717 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eV4Oi-0003z5-1Z for guile-user@m.gmane.org; Fri, 29 Dec 2017 18:49:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45603) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eV4OE-0003yM-Ig for guile-user@gnu.org; Fri, 29 Dec 2017 18:48:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eV4OC-0003XF-QJ for guile-user@gnu.org; Fri, 29 Dec 2017 18:48:38 -0500 Original-Received: from mail-pg0-x231.google.com ([2607:f8b0:400e:c05::231]:44071) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eV4OC-0003WG-Ka for guile-user@gnu.org; Fri, 29 Dec 2017 18:48:36 -0500 Original-Received: by mail-pg0-x231.google.com with SMTP id i5so5451582pgq.11 for ; Fri, 29 Dec 2017 15:48:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=sWQg26X0h7LXo0z/v2QCoA+MX3SPnqhbXrtdcwGbLEY=; b=gv87eZwvuvG9Hch9XomSwymB/leKdK4pJ2B0bwWF3KjsLXjysMB7FALmqKw+AhPIGo +y7Hicu6EoMgyviUzkNpvqL12ccE4+3WDXf9YbBv9JaxZl1Njdhx8UV2xw7vb/4vDMjZ zO3afKAKGho1n6SIyJzNOgKnpwERZXmRSoeBuR6h+G2njz69zN6LqfHBIuBLLnBoy+Zo JNmKzlH2NciePq1zCAK6fzkkF9ku6tFA1kh3FAPONd/imBGeZ1B4MDdbNSAIARH6Pn/c GeyWUnkW5iDjTSad2EZqESoOHUOnCbw8WTSkR9iK/VsHDAV5Pzo8m1NHUz0fqNZvfQih 4FCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=sWQg26X0h7LXo0z/v2QCoA+MX3SPnqhbXrtdcwGbLEY=; b=BJNmECLuIdiH4avEU77wjCmecCMIoTv+obsU6rCEavM7R7R5HBrUxouM9Hm08ba8f2 AGvHSoTCRP1q/9CFt8aIciQbFMd7XdX5Jnt6KzHWF7iRx+J68Ob0h0kU7abcSqpxE5E9 SQtQvVPd2pOIJZANbpjnP/SUTOauZg+GCtFP8SItsQOo3Bhrzpx72Kqb3zj3epUbnhBb hvCfqNmrFuJQ3mVccfeL034uKj9/e1sULYGzOvQx8fVt+A33YXPnhUJmvNpGA6omPHDn 90hdvdIkfype2GwQokkKt5XV5VTOwpTuDmvFqicQHGk2K3d8jENOFbRpUhIgOswZLwSR DmcA== X-Gm-Message-State: AKGB3mLxiXYBJWGoJEDIS3IFjKqSl3I/+Icjgk2gc9avGdnJnQtkACNL 6d7UYFsOOTF3EbIDLJbOOWWksxkJRMgwY5Pd1c0= X-Google-Smtp-Source: ACJfBovq5EjevBGE+5VrjoEy8MAHmjITQvDe0rqcMvngdSLSTDRVqVhWzedGNc8rhgd63uNUiXnN4muIXX54RygNYO0= X-Received: by 10.98.208.67 with SMTP id p64mr36480644pfg.111.1514591314904; Fri, 29 Dec 2017 15:48:34 -0800 (PST) Original-Received: by 10.100.170.79 with HTTP; Fri, 29 Dec 2017 15:48:34 -0800 (PST) In-Reply-To: <151457143101.32472.6841010602282989126.launchpad@wampee.canonical.com> X-Google-Sender-Auth: _-u218yCjqePO4TZK_GwKyEBxBQ X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::231 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:14389 Archived-At: On Fri, Dec 29, 2017 at 10:17 AM, Craig Maloney wrote: > Thank you so much for making the 16.04 builds available. > > I was wondering if you might be able to do a build for Ubuntu 14.04 as > that is what I'm currently running? > > If not would you be able to share what you did in order to get guile > packaged? Hi Craig, All I did was follow https://www.debian.org/doc/manuals/maint-guide/ starting with https://packages.qa.debian.org/g/guile-2.2.html in a sid container. I don't have the exact commands handy. I plan to drop my stuff after Rob finishes the official packaging, but I might backport his stuff and upload it to my ppa. In the meantime, as practice, I just now backported my ppa's package to ubuntu 14.04 and reuploaded, so the ppa also has 14.04 packages for your testing pleasure via the usual commands, e.g. $ sudo add-apt-repository ppa:dank/guile-2.2 $ sudo apt-get update $ sudo apt-get install guile-2.2 $ guile scheme@(guile-user)> (display (version)) 2.2.3 Here are the steps I followed, with most mistakes edited out. This took about three hours of wall clock time, and it's nice to have the steps written down. ## Set up clean development system (starting from an ubuntu 16.04 host, ## and having previously exported my launchpad secret key to a text file) $ sudo lxc-create -n trusty -t download -- --dist ubuntu --release trusty --arch amd64 $ sudo lxc-start -n trusty $ sudo lxc-attach -n trusty apt install openssh-server build-essential devscripts xz-utils equivs $ sudo lxc-attach -n trusty passwd ubuntu $ scp dank-secret-key-ppa*.txt trusty.lxc: $ ssh ubuntu@trusty.lxc ## Grab the package to backport and unpack it $ wget https://launchpad.net/~dank/+archive/ubuntu/guile-2.2/+files/guile-2.2_2.2.3+2.orig.tar.gz $ wget https://launchpad.net/~dank/+archive/ubuntu/guile-2.2/+files/guile-2.2_2.2.3+2-1.debian.tar.xz $ tar -xf guile-2.2_2.2.3+2.orig.tar.gz $ cd guile-2.2.3 $ tar -xf ../guile-2.2_2.2.3+2-1.debian.tar.xz ## Four fixes to build on trusty, discovered from build failures on earlier runs: ## Change distro and version to placate dput; see also ## https://askubuntu.com/questions/30145/ppa-packaging-having-versions-of-packages-for-multiple-distros $ vi debian/changelog ## Comment out line to placate old tools and avoid ## "dpkg-gencontrol: warning: can't parse dependency guile-2.2:native " $ vi debian/control ## Change -S to --show-field to placate confused old tools and avoid ## "dpkg-parsechangelog: unknown option `-S'" $ vi debian/rules ## change guile*.info to *.info to avoid ## "dh_install: usr/share/info/r5rs.info exists in debian/tmp but is not installed" ## FIXME: does 'info r5rs' work on sid? $ vi debian/guile-doc.install ## Install build dependencies $ mk-build-deps $ sudo dpkg -i guile-2.2-build-deps_2.2.3+2-1_all.deb $ sudo apt install -f ## get gpg stuff right so dpkg-buildpackage doesn't explode when signing result $ gpg --import dank-secret-key-ppa.txt $ gpg --import-ownertrust dank-secret-key-ppa-trust.txt $ DEBEMAIL="dank@kegel.com" $ DEBFULLNAME="Dan Kegel (ppa)" $ export DEBEMAIL DEBFULLNAME ## Do a check build $ dpkg-buildpackage -b -k"${DEBFULLNAME} <${DEBEMAIL}>" ## Build the source package and upload to ppa $ dpkg-buildpackage -S -k"${DEBFULLNAME} <${DEBEMAIL}>" $ dput ppa:dank/guile-2.2 guile-2.2_2.2.3+2-1~trusty_source.changes ## Result: https://launchpad.net/~dank/+archive/ubuntu/guile-2.2/ now also has ubuntu 14.04 packages