Discussion:
Help with jmagick
(too old to reply)
Bastien Roucariès
2024-08-30 13:50:02 UTC
Permalink
Hi,

Can someone get a glimpse at jmagick

It tried to import newer java version for imagemagick7 but it FTBFS

Bastien
Emmanuel Bourg
2024-08-30 18:00:01 UTC
Permalink
Post by Bastien Roucariès
Can someone get a glimpse at jmagick
It tried to import newer java version for imagemagick7 but it FTBFS
Hi Bastien,

Do you have a build log to share so we can look into it?

Emmanuel Bourg
Bastien Roucariès
2024-08-31 00:10:01 UTC
Permalink
Post by Emmanuel Bourg
Post by Bastien Roucariès
Can someone get a glimpse at jmagick
It tried to import newer java version for imagemagick7 but it FTBFS
Hi Bastien,
Do you have a build log to share so we can look into it?
You could begin to build here
https://salsa.debian.org/java-team/jmagick

I have not achieved to add the salsa pipeline

Bastien
Post by Emmanuel Bourg
Emmanuel Bourg
Bastien Roucariès
2024-08-31 17:50:02 UTC
Permalink
Post by Emmanuel Bourg
Hi Bastien,
Post by Bastien Roucariès
Post by Emmanuel Bourg
Post by Bastien Roucariès
Can someone get a glimpse at jmagick
It tried to import newer java version for imagemagick7 but it FTBFS
Hi Bastien,
Do you have a build log to share so we can look into it?
You could begin to build here
https://salsa.debian.org/java-team/jmagick
I guess the "--with javahelper" in d/rules can be removed, else add
javahelper as a B-D.
Once this is done, there is a problem in the configure step
/* confdefs.h */
#define PACKAGE_NAME "jmagick"
#define PACKAGE_TARNAME "jmagick"
#define PACKAGE_VERSION "7.0.4"
#define PACKAGE_STRING "jmagick 7.0.4"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define PACKAGE "jmagick"
#define VERSION "7.0.4"
configure: exit 1
dh_auto_configure: error: ./configure --build=x86_64-linux-gnu
--prefix=/usr --includedir=\${prefix}/include
--mandir=\${prefix}/share/man --infodir=\${prefix}/share/info
--sysconfdir=/etc --localstatedir=/var --disable-option-checking
--disable-silent-rules --libdir=\${prefix}/lib/x86_64-linux-gnu
--libexecdir=\${prefix}/lib/x86_64-linux-gnu --disable-maintainer-mode
--disable-dependency-tracking returned exit code 1
But this is not Java-related.
Ok now it fail during test with a java error

Can you get a glimpse?

bastien
Post by Emmanuel Bourg
Post by Bastien Roucariès
I have not achieved to add the salsa pipeline
Bastien
Post by Emmanuel Bourg
Emmanuel Bourg
Best,
--
Pierre
Bastien Roucariès
2024-08-31 19:50:01 UTC
Permalink
Post by Emmanuel Bourg
Hi Bastien,
Post by Bastien Roucariès
Post by Emmanuel Bourg
Hi Bastien,
Post by Bastien Roucariès
Post by Emmanuel Bourg
Post by Bastien Roucariès
Can someone get a glimpse at jmagick
It tried to import newer java version for imagemagick7 but it FTBFS
Hi Bastien,
Do you have a build log to share so we can look into it?
You could begin to build here
https://salsa.debian.org/java-team/jmagick
I guess the "--with javahelper" in d/rules can be removed, else add
javahelper as a B-D.
Once this is done, there is a problem in the configure step
/* confdefs.h */
#define PACKAGE_NAME "jmagick"
#define PACKAGE_TARNAME "jmagick"
#define PACKAGE_VERSION "7.0.4"
#define PACKAGE_STRING "jmagick 7.0.4"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define PACKAGE "jmagick"
#define VERSION "7.0.4"
configure: exit 1
dh_auto_configure: error: ./configure --build=x86_64-linux-gnu
--prefix=/usr --includedir=\${prefix}/include
--mandir=\${prefix}/share/man --infodir=\${prefix}/share/info
--sysconfdir=/etc --localstatedir=/var --disable-option-checking
--disable-silent-rules --libdir=\${prefix}/lib/x86_64-linux-gnu
--libexecdir=\${prefix}/lib/x86_64-linux-gnu --disable-maintainer-mode
--disable-dependency-tracking returned exit code 1
But this is not Java-related.
Ok now it fail during test with a java error
Can you get a glimpse?
bastien
I have pushed a commit which includes the Debian-packaged junit4 jar in
the classpath for the tests, this removes the error you saw.
1) testDespeckle(magicktest.TestJMagick)java.io.IOException: Cannot run
program "compare": error=2, No such file or directory
at
java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
at
java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
at java.base/java.lang.Runtime.exec(Runtime.java:681)
at java.base/java.lang.Runtime.exec(Runtime.java:577)
at
magicktest.MagickTesttools.compareImage(MagickTesttools.java:101)
at
magicktest.MagickTesttools.writeAndCompare(MagickTesttools.java:161)
at magicktest.TestJMagick.testDespeckle(TestJMagick.java:465)
at
java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
Caused by: java.io.IOException: error=2, No such file or directory
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
at
java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
... 19 more
[...]
Also when I first built the package pulled from the Salsa repo, I got
the failure
magick_PixelPacket.c:12:14: fatal error: wand/magick-wand.h: No such
file or directory
2812 12 | # include <wand/magick-wand.h>
2813 | ^~~~~~~~~~~~~~~~~~~~
2814 compilation terminated.
which was solved by adding libmagickwand-6-headers to the B-D. Perhaps
you should also to this.
Thanks

Can you also enable salsa pipeline ?

bastien
Post by Emmanuel Bourg
Best,
--
Pierre
Bastien Roucariès
2024-09-24 13:00:01 UTC
Permalink
Le samedi 31 août 2024, 19:46:14 UTC Bastien RoucariÚs a écrit :
Hi Pierre,

I could achieve to get the last step packaged

Can you get a glimpse

bastien
Post by Bastien Roucariès
Post by Emmanuel Bourg
Hi Bastien,
Post by Bastien Roucariès
Post by Emmanuel Bourg
Hi Bastien,
Post by Bastien Roucariès
Post by Emmanuel Bourg
Post by Bastien Roucariès
Can someone get a glimpse at jmagick
It tried to import newer java version for imagemagick7 but it FTBFS
Hi Bastien,
Do you have a build log to share so we can look into it?
You could begin to build here
https://salsa.debian.org/java-team/jmagick
I guess the "--with javahelper" in d/rules can be removed, else add
javahelper as a B-D.
Once this is done, there is a problem in the configure step
/* confdefs.h */
#define PACKAGE_NAME "jmagick"
#define PACKAGE_TARNAME "jmagick"
#define PACKAGE_VERSION "7.0.4"
#define PACKAGE_STRING "jmagick 7.0.4"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define PACKAGE "jmagick"
#define VERSION "7.0.4"
configure: exit 1
dh_auto_configure: error: ./configure --build=x86_64-linux-gnu
--prefix=/usr --includedir=\${prefix}/include
--mandir=\${prefix}/share/man --infodir=\${prefix}/share/info
--sysconfdir=/etc --localstatedir=/var --disable-option-checking
--disable-silent-rules --libdir=\${prefix}/lib/x86_64-linux-gnu
--libexecdir=\${prefix}/lib/x86_64-linux-gnu --disable-maintainer-mode
--disable-dependency-tracking returned exit code 1
But this is not Java-related.
Ok now it fail during test with a java error
Can you get a glimpse?
bastien
I have pushed a commit which includes the Debian-packaged junit4 jar in
the classpath for the tests, this removes the error you saw.
1) testDespeckle(magicktest.TestJMagick)java.io.IOException: Cannot run
program "compare": error=2, No such file or directory
at
java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
at
java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
at java.base/java.lang.Runtime.exec(Runtime.java:681)
at java.base/java.lang.Runtime.exec(Runtime.java:577)
at
magicktest.MagickTesttools.compareImage(MagickTesttools.java:101)
at
magicktest.MagickTesttools.writeAndCompare(MagickTesttools.java:161)
at magicktest.TestJMagick.testDespeckle(TestJMagick.java:465)
at
java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
Caused by: java.io.IOException: error=2, No such file or directory
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
at
java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
... 19 more
[...]
Also when I first built the package pulled from the Salsa repo, I got
the failure
magick_PixelPacket.c:12:14: fatal error: wand/magick-wand.h: No such
file or directory
2812 12 | # include <wand/magick-wand.h>
2813 | ^~~~~~~~~~~~~~~~~~~~
2814 compilation terminated.
which was solved by adding libmagickwand-6-headers to the B-D. Perhaps
you should also to this.
Thanks
Can you also enable salsa pipeline ?
bastien
Post by Emmanuel Bourg
Best,
Loading...