From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1W5eH9-00074A-UA for mharc-grub-devel@gnu.org; Tue, 21 Jan 2014 11:34:08 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52684) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5eH2-00073M-6Q for grub-devel@gnu.org; Tue, 21 Jan 2014 11:34:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W5eGw-0002wO-2q for grub-devel@gnu.org; Tue, 21 Jan 2014 11:34:00 -0500 Received: from mail-lb0-x231.google.com ([2a00:1450:4010:c04::231]:54056) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5eGv-0002wB-RB for grub-devel@gnu.org; Tue, 21 Jan 2014 11:33:54 -0500 Received: by mail-lb0-f177.google.com with SMTP id z5so5999369lbh.22 for ; Tue, 21 Jan 2014 08:33:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-type; bh=ObT1n7QcdXOhYPu8rCgM+6wtfVvDTKQRZb8OkoF8ImY=; b=lvJo12cHEPwO4tDPbOmJ5d9LlbeO0A4insKXEnZ5Z+ukc1pnBLanEO7uTuBaTTAsSM 5KrJKY+2r6LLQMUR5m8SE48sn0wsThiUl8TCHunCz9SiT2KMDB8F1eVaB5XZIygENw28 f9scTaV6QAXzxqlr9+mRSqpJ3BId4ed58QlMoY5G+p2cfZrBfUTXEdAqifYpD3bddbBZ m9lApqKVMEXJ5aza+IjPOJPoJbkFUOy2CzmNAcxvC6oSkbffrNRXqhwqAhaRZ5G7gGw1 p/2aH2zVeaWqjy3lr6NcLBQTkTvycAKdd7LTSIgmXxwxodUzjuPbDKz4gk8gKiHzqGuC RcuQ== X-Received: by 10.152.28.137 with SMTP id b9mr17028107lah.4.1390322032678; Tue, 21 Jan 2014 08:33:52 -0800 (PST) Received: from opensuse.site (ppp91-76-154-95.pppoe.mtu-net.ru. [91.76.154.95]) by mx.google.com with ESMTPSA id n13sm4553241lbl.17.2014.01.21.08.33.51 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Tue, 21 Jan 2014 08:33:51 -0800 (PST) Date: Tue, 21 Jan 2014 20:33:51 +0400 From: Andrey Borzenkov To: grub-devel@gnu.org Subject: Re: [PATCH] add GRUB_WINDOWS_DLLS to make windowsdir to allow shipping runtime files Message-ID: <20140121203351.36c3aaff@opensuse.site> In-Reply-To: <52DE210C.1080407@gmail.com> References: <1390062368-17349-1-git-send-email-arvidjaar@gmail.com> <52DB291D.5050800@gmail.com> <20140119081509.1db69b7c@opensuse.site> <52DE210C.1080407@gmail.com> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.22; x86_64-suse-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/.vE.SWgGjOPCpNgUim4bD7P"; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::231 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jan 2014 16:34:05 -0000 --Sig_/.vE.SWgGjOPCpNgUim4bD7P Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable =D0=92 Tue, 21 Jan 2014 08:26:04 +0100 Vladimir '=CF=86-coder/phcoder' Serbinenko =D0=BF=D0=B8= =D1=88=D0=B5=D1=82: > On 19.01.2014 05:15, Andrey Borzenkov wrote: > > =D0=92 Sun, 19 Jan 2014 02:23:41 +0100 > > Vladimir '=CF=86-coder/phcoder' Serbinenko =D0=BF= =D0=B8=D1=88=D0=B5=D1=82: > >=20 > >> On 18.01.2014 17:26, Andrey Borzenkov wrote: > >>> export GRUB_EXTRA_DLLS=3D"/path/to/liblzma.dll /path/to/libintl.dll" > >>> make > >>> make windowszip > >> Perhaps a better name to indicate that you could use it to add any ext= ra > >> files to zip. Perhaps GRUB_WINDOWS_EXTRA_DIST ? > >> > >=20 > > I thought about it, but was not sure - *DIST would imply arbitrary > > file location inside archive and that becomes far too complicated. > I don't think that just fixing target would be of any issue. Is it OK? From: Andrey Borzenkov Subject: [PATCH] add GRUB_WINDOWS_EXTRA_DIST to allow shipping runtime files Not all toolkits provide static libraries. This patch enables creation of s= elf contained distribution that does not require pre-existing runtime libraries. Intended usage is export GRUB_WINDOWS_EXTRA_DIST=3D"/path/to/liblzma.dll /path/to/libintl.dll" make make windowszip As those libraries and locations are dependent on toolchain in use, trying to autodetect them is likely impossible. So just provide a simple way to package everything in one step. Also remove $(windowsdir) after ZIP was created same as other "make dist" targets. --- Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile.am b/Makefile.am index 97c062d..f02ae0a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -420,10 +420,14 @@ windowsdir: $(PROGRAMS) $(starfield_DATA) $(platform_= DATA) for x in $(starfield_DATA); do \ cp -fp $$x $(windowsdir)/themes/starfield/$$(basename $$x); \ done + for x in $(GRUB_WINDOWS_EXTRA_DIST); do \ + cp -fp $$x $(windowsdir); \ + done =20 windowszip=3D$(top_builddir)/$(PACKAGE)-$(VERSION)-for-windows.zip windowszip: windowsdir test -f $(windowszip) && rm $(windowszip) || true zip -r $(windowszip) $(windowsdir) + rm -rf $(windowsdir) =20 EXTRA_DIST +=3D linguas.sh --=20 tg: (443b322..) u/mingw/extra_windows_dist (depends on: master) --Sig_/.vE.SWgGjOPCpNgUim4bD7P Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAlLeoW8ACgkQR6LMutpd94wdqgCgrsrqPM+f2SZap+tDzASMg3ME G9QAn199u06ojIYstdTY/4SO9Y/YcpHO =hArB -----END PGP SIGNATURE----- --Sig_/.vE.SWgGjOPCpNgUim4bD7P--