This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
Re: [ITP] libsass v3.3.6
- From: Marco Atzeri <marco dot atzeri at gmail dot com>
- To: cygwin-apps at cygwin dot com
- Date: Tue, 7 Jun 2016 12:02:18 +0200
- Subject: Re: [ITP] libsass v3.3.6
- Authentication-results: sourceware.org; auth=none
- References: <CABKfh3zJMhb3z=zoibB=0eb1q32NKOTJ4t_gj7FCi0rX8w98Sg at mail dot gmail dot com> <8005b674-1e74-a909-50ca-2a0b4fb0e570 at gmail dot com> <CABKfh3y80xOvhVSGguLB+Ygt2y3DahmfUbtJcSWHdqHGY76ioA at mail dot gmail dot com> <878tyiz1o6 dot fsf at Rainer dot invalid> <CABKfh3zMEN_O3fvaqtxRZjWCw8eLspS2W3X9XrJqYrMaA3Ndrw at mail dot gmail dot com> <loom dot 20160607T114139-971 at post dot gmane dot org>
On 07/06/2016 11:49, Achim Gratz wrote:
Marcos Vives Del Sol <socram8888@...> writes:
This script is called using m4_esyscmd_s from configure.ac line 6:
-----------------
AC_INIT([libsass], m4_esyscmd_s([./version.sh]), [support@...])
-----------------
to set the library version at compile time. Then configure uses it to
generate the version.h file.
Make a patch for configure.ac and add it to PATCH_URI, then. That will
patch in origsrc/ and hence not produce a libsass.src.patch file later on.
Based on the way configure is supposed to be working it seems that either
the tarball you're using is incomplete (did you use a Git snapshot?) or they
forgot to package the VERSION file.
Regards,
Achim.
in an case Marcos the patch is not doing what
you think it should do.
------------------------------------------------------------
$ cat libsass-3.3.6-1.src.patch
--- origsrc/libsass-3.3.6/VERSION 1970-01-01 01:00:00.000000000 +0100
+++ src/libsass-3.3.6/VERSION 2016-06-02 16:25:17.016583300 +0200
@@ -0,0 +1 @@
+3.3.6
------------------------------------------------------------
As VERSION doesn't exist is is not created in the
src root (libsass-3.3.6-1.x86_64/src/libsass-3.3.6)
but two level upper:
$ find libsass-3.3.6-1.x86_64 -name VERSION
libsass-3.3.6-1.x86_64/src/libsass-3.3.6/src/libsass-3.3.6/VERSION
It is a side unwanted effect of the smart patching.
If you want to create it, you should rewrite it as:
------------------------------------------------------------
$ cat libsass-VERSION.patch
--- VERSION 1970-01-01 01:00:00.000000000 +0100
+++ VERSION 2016-06-02 16:25:17.016583300 +0200
@@ -0,0 +1 @@
+3.3.6
------------------------------------------------------------
and define PATCH_URI="libsass-VERSION.patch"
Regards
Marco