Skip to contentSkip to conversation

libxslt: don't replace COPYING with symlink to Copyright

PATCH In review Martin Jansa 3 participants 4 messages Nov 1, 2011 – Nov 2, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libxslt: don't replace COPYING with symlink to Copyright

---
 .../dont.replace.COPYING.with.symlink.patch        |   27 ++++++++++++++++++++
 meta/recipes-support/libxslt/libxslt_1.1.26.bb     |    3 +-
 2 files changed, 29 insertions(+), 1 deletions(-)
 create mode 100644 meta/recipes-support/libxslt/libxslt/dont.replace.COPYING.with.symlink.patch
meta/recipes-support/libxslt/libxslt/dont.replace.COPYING.with.symlink.patch new file +27 -0
new file mode 100644
index 0000000..a38b686
@@ -0,0 +1,27 @@
+When it's replaced with symlink to Copyright, then we end with link to nonexistent file like this:
+
+OE om-gta02@shr ~/shr-core $ ll tmp/deploy/licenses/libxslt/
+total 40
+drwxr-xr-x   2 bitbake bitbake  4096 Nov  2 00:27 ./
+drwxr-xr-x 818 bitbake bitbake 32768 Nov  2 00:27 ../
+lrwxrwxrwx   1 bitbake bitbake     9 Nov  2 00:27 COPYING -> Copyright
+lrwxrwxrwx   1 bitbake bitbake    52 Nov  2 00:27 generic_MIT -> /OE/shr-core/tmp/deploy/licenses/common-licenses/MIT
+
+Upstream-Status: Pending
+
+diff -uNr libxslt-1.1.26.orig/configure.in libxslt-1.1.26/configure.in
+--- libxslt-1.1.26.orig/configure.in	2009-09-24 16:27:30.000000000 +0200
++++ libxslt-1.1.26/configure.in	2011-11-02 00:30:47.651452392 +0100
+@@ -671,12 +671,6 @@
+ RELDATE=`date +'%a %b %e %Y'`
+ AC_SUBST(RELDATE)
+ 
+-( cd $srcdir
+-rm -f COPYING.LIB COPYING
+-$LN_S Copyright COPYING
+-)
+-
+-
+ AC_OUTPUT([
+ Makefile
+ libxslt.pc
meta/recipes-support/libxslt/libxslt_1.1.26.bb +2 -1
index 96bffc6..4dd6b55 100644
@@ -7,9 +7,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0cd9a07afbeb24026c9b03aecfeba458"
 
 SECTION = "libs"
 DEPENDS = "libxml2"
-PR = "r3"
+PR = "r4"
 
 SRC_URI = "ftp://xmlsoft.org/libxslt//libxslt-${PV}.tar.gz \
+           file://dont.replace.COPYING.with.symlink.patch \
            file://pkgconfig_fix.patch"
 
 SRC_URI[md5sum] = "e61d0364a30146aaa3001296f853b2b9"
Signature · 1 line
1.7.7.1
#1 lore raw
Quoted 14 lines · Martin Jansa
---
  .../dont.replace.COPYING.with.symlink.patch        |   27 ++++++++++++++++++++
  meta/recipes-support/libxslt/libxslt_1.1.26.bb     |    3 +-
  2 files changed, 29 insertions(+), 1 deletions(-)

create mode 100644 meta/recipes-support/libxslt/libxslt/dont.replace.COPYING.with.symlink.patch

meta/recipes-support/libxslt/libxslt/dont.replace.COPYING.with.symlink.patch new file +1 -0
new file mode 100644
index 0000000..a38b686
@@ -0,0 +1,27 @@
+When it's replaced with symlink to Copyright, then we end with link to nonexistent file like this:

meta/recipes-support/libxslt/libxslt/dont.replace.COPYING.with.symlink.patch line 11

Quoted 10 lines
meta/recipes-support/libxslt/libxslt/dont.replace.COPYING.with.symlink.patch new file +10 -0
+
+OE om-gta02@shr ~/shr-core $ ll tmp/deploy/licenses/libxslt/
+total 40
+drwxr-xr-x   2 bitbake bitbake  4096 Nov  2 00:27 ./
+drwxr-xr-x 818 bitbake bitbake 32768 Nov  2 00:27 ../
+lrwxrwxrwx   1 bitbake bitbake     9 Nov  2 00:27 COPYING ->  Copyright
+lrwxrwxrwx   1 bitbake bitbake    52 Nov  2 00:27 generic_MIT ->  /OE/shr-core/tmp/deploy/licenses/common-licenses/MIT
+
+Upstream-Status: Pending
+

No Signed-off-by: in the patch itself.

Thanks
Sau!

Quoted 32 lines
meta/recipes-support/libxslt/libxslt/dont.replace.COPYING.with.symlink.patch new file +16 -0
+diff -uNr libxslt-1.1.26.orig/configure.in libxslt-1.1.26/configure.in
+--- libxslt-1.1.26.orig/configure.in	2009-09-24 16:27:30.000000000 +0200
++++ libxslt-1.1.26/configure.in	2011-11-02 00:30:47.651452392 +0100
+@@ -671,12 +671,6 @@
+ RELDATE=`date +'%a %b %e %Y'`
+ AC_SUBST(RELDATE)
+
+-( cd $srcdir
+-rm -f COPYING.LIB COPYING
+-$LN_S Copyright COPYING
+-)
+-
+-
+ AC_OUTPUT([
+ Makefile
+ libxslt.pc
meta/recipes-support/libxslt/libxslt_1.1.26.bb +2 -1
index 96bffc6..4dd6b55 100644
@@ -7,9 +7,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0cd9a07afbeb24026c9b03aecfeba458"
 
  SECTION = "libs"
  DEPENDS = "libxml2"
-PR = "r3"
+PR = "r4"
 
  SRC_URI = "ftp://xmlsoft.org/libxslt//libxslt-${PV}.tar.gz \
+           file://dont.replace.COPYING.with.symlink.patch \
             file://pkgconfig_fix.patch"
 
  SRC_URI[md5sum] = "e61d0364a30146aaa3001296f853b2b9"
#2 lore raw

PATCH 1/1 libxslt: use Copyright in LIC_FILES_CHKSUM instead of COPYING

* COPYING is replaced by symlink to Copyright during do_configure (see configure.in), then we end with link to nonexistent file like this:

OE om-gta02@shr ~/shr-core $ ll tmp/deploy/licenses/libxslt/ total 40

drwxr-xr-x   2 bitbake bitbake  4096 Nov  2 00:27 ./
drwxr-xr-x 818 bitbake bitbake 32768 Nov  2 00:27 ../
lrwxrwxrwx   1 bitbake bitbake     9 Nov  2 00:27 COPYING ->  Copyright
lrwxrwxrwx   1 bitbake bitbake    52 Nov  2 00:27 generic_MIT ->  /OE/shr-core/tmp/deploy/licenses/common-licenses/MIT
---
 meta/recipes-support/libxslt/libxslt_1.1.26.bb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
meta/recipes-support/libxslt/libxslt_1.1.26.bb +2 -2
index 96bffc6..addc863 100644
@@ -3,11 +3,11 @@ HOMEPAGE = "http://xmlsoft.org/XSLT/"
 BUGTRACKER = "https://bugzilla.gnome.org/"
 
 LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://COPYING;md5=0cd9a07afbeb24026c9b03aecfeba458"
+LIC_FILES_CHKSUM = "file://Copyright;md5=0cd9a07afbeb24026c9b03aecfeba458"
 
 SECTION = "libs"
 DEPENDS = "libxml2"
-PR = "r3"
+PR = "r4"
 
 SRC_URI = "ftp://xmlsoft.org/libxslt//libxslt-${PV}.tar.gz \
            file://pkgconfig_fix.patch"
Signature · 1 line
1.7.7.1
#3 lore raw

Re: [PATCH] libxslt: use Copyright in LIC_FILES_CHKSUM instead of COPYING

Quoted 11 lines · Martin Jansa

* COPYING is replaced by symlink to Copyright during do_configure (see configure.in), then we end with link to nonexistent file like this:

OE om-gta02@shr ~/shr-core $ ll tmp/deploy/licenses/libxslt/ total 40

drwxr-xr-x   2 bitbake bitbake  4096 Nov  2 00:27 ./
drwxr-xr-x 818 bitbake bitbake 32768 Nov  2 00:27 ../
lrwxrwxrwx   1 bitbake bitbake     9 Nov  2 00:27 COPYING ->  Copyright
lrwxrwxrwx   1 bitbake bitbake    52 Nov  2 00:27 generic_MIT ->  /OE/shr-core/tmp/deploy/licenses/common-licenses/MIT

Merged to master, thanks.

Richard