← Back to team overview

openjdk team mailing list archive

Bug#816440: openjdk-9-jdk: file conflict jawt.h

 

On Tue, 1 Mar 2016 12:44:41 -0800 Joseph Ferguson <joe@xxxxxxxxxxxxx> wrote:
> Here is the truncated output of "apt-get install openjdk-9-jdk":
> Unpacking openjdk-9-jdk:amd64 (9~b107-1) ...
> dpkg: error processing archive
> /var/cache/apt/archives/openjdk-9-jdk_9~b107-1_amd64.deb (--unpack):
> trying to overwrite
> '/usr/lib/jvm/java-9-openjdk-amd64/include/jawt.h', which is also in
> package openjdk-9-jdk-headless:amd64 9~b107-1

It looks like the conflict on "jawt.h" is fixed, but a new one on
"jawt_md.h" is being hit:

| Unpacking openjdk-9-jdk:amd64 (9~b112-2) ...
| dpkg: error processing archive
/var/cache/apt/archives/openjdk-9-jdk_9~b112-2_amd64.deb (--unpack):
|  trying to overwrite
'/usr/lib/jvm/java-9-openjdk-amd64/include/linux/jawt_md.h', which is
also in package openjdk-9-jdk-headless:amd64 9~b112-2

It looks like https://sources.debian.net/src/openjdk-9/9~b107-1/debian/rules/#L1809
needs something like "|*/jawt_md.h" added to the case in order to
account for "echo '$(basedir)/include/*/jawt_md.h'; \" in the section
below.

I've attached a patch against 9~b112-2 (current version in
experimental) which is a more concrete explanation of what I think
will fix the issue, but I haven't had a chance to test it.

♥,
- Tianon
  4096R / B42F 6819 007F 00F8 8E36  4FD4 036A 9C25 BF35 7DD4
diff --git a/debian/rules b/debian/rules
index 854ddc6..8aff450 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1806,7 +1806,7 @@ endif
 	  done; \
 	  cd $(d); \
 	  for i in $(basedir)/include/*.h; do \
-	    case $$i in */jawt.h) continue; esac; \
+	    case $$i in */jawt.h|*/jawt_md.h) continue; esac; \
 	    [ -h $$i ] && continue; \
 	    echo $$i; \
 	  done; \