Bug#852441: [Pkg-julia-devel] Bug#852441: openlibm FTBFS on mips, mipsel and mips64el: missing support for mips architectures

2017-01-24 Thread Graham Inggs
On 24 January 2017 at 16:41, Graham Inggs  wrote:
> Peter, any reason not to upload this?  Feel free to go ahead if you want.
> Otherwise, I'm waiting on your answer.

This patch doesn't seem to break any of the other builds and it needs
to be uploaded soon if it is going to migrate to testing before
February 5, so I'm going to go ahead.



Bug#852441: openlibm FTBFS on mips, mipsel and mips64el: missing support for mips architectures

2017-01-24 Thread Graham Inggs

On 24/01/2017 16:10, Radovan Birdic wrote:

I added all the necessary changes that are needed.
Code for files openlibm_fenv_mips.h, mips_fpmath.h and fenv.c was taken from 
https://github.com/freebsd/freebsd
It was also necessary to change libopenlibm2.symbols file, to update the 
missing symbols for mips arches.

I have created and attached patches that include these changes and resolve 
these issues.
Patch add-mips-support.patch adds support for mips architectures.
Patch update-mips-symbols.patch update symbols for mips architectures.

With these patches package builds successfully on mips, mipsel, mips64el.


Thanks, Radovan!  I tested on mips64el and it works for me.

Peter, any reason not to upload this?  Feel free to go ahead if you 
want.  Otherwise, I'm waiting on your answer.




Bug#852441: openlibm FTBFS on mips, mipsel and mips64el: missing support for mips architectures

2017-01-24 Thread Radovan Birdic
Package: openlibm
Version: 0.5.4+dfsg-2
Severity: important
Tags: sid + patch
Justification: FTBFS
User: debian-m...@lists.debian.org
Usertags: mips-patch


Package openlibm_0.5.4+dfsg-2 FTBFS on mips, mipsel, mips64el with following 
error:

> make[1]: Entering directory '/«BUILDDIR»/openlibm-0.5.4+dfsg'
> Makefile:20: mips/Make.files: No such file or directory
> make[1]: *** No rule to make target 'mips/Make.files'.  Stop.
> make[1]: Leaving directory '/«BUILDDIR»/openlibm-0.5.4+dfsg'
> dh_auto_clean: make -j2 distclean returned exit code 2
> debian/rules:6: recipe for target 'clean' failed
> make: *** [clean] Error 2
> dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2

Full build log:
https://buildd.debian.org/status/fetch.php?pkg=openlibm&arch=mips&ver=0.5.4%2Bdfsg-2&stamp=1484767295&raw=0

Build fails because there is no support for mips architectures.

I added all the necessary changes that are needed.
Code for files openlibm_fenv_mips.h, mips_fpmath.h and fenv.c was taken from 
https://github.com/freebsd/freebsd
It was also necessary to change libopenlibm2.symbols file, to update the 
missing symbols for mips arches.

I have created and attached patches that include these changes and resolve 
these issues.
Patch add-mips-support.patch adds support for mips architectures.
Patch update-mips-symbols.patch update symbols for mips architectures.

With these patches package builds successfully on mips, mipsel, mips64el.


Regards,
Radovan--- openlibm-0.5.4+dfsg_orig/debian/libopenlibm2.symbols	2017-01-24 08:51:29.0 +
+++ openlibm-0.5.4+dfsg/debian/libopenlibm2.symbols	2017-01-24 09:51:16.0 +
@@ -1,20 +1,20 @@
 libopenlibm.so.2 libopenlibm2 #MINVER#
- (arch=!armhf !arm64 !powerpc !ppc64el !ppc64)_ItL_aT@Base 0.4
- (arch=!armhf !arm64 !powerpc !ppc64el !ppc64)_ItL_atanhi@Base 0.4
- (arch=!armhf !arm64 !powerpc !ppc64el !ppc64)_ItL_atanlo@Base 0.4
- (arch=!armhf !arm64 !powerpc !ppc64el !ppc64)_ItL_pS0@Base 0.4
- (arch=!armhf !arm64 !powerpc !ppc64el !ppc64)_ItL_pS1@Base 0.4
- (arch=!armhf !arm64 !powerpc !ppc64el !ppc64)_ItL_pS2@Base 0.4
- (arch=!armhf !arm64 !powerpc !ppc64el !ppc64)_ItL_pS3@Base 0.4
- (arch=!armhf !arm64 !powerpc !ppc64el !ppc64)_ItL_pS4@Base 0.4
- (arch=!armhf !arm64 !powerpc !ppc64el !ppc64)_ItL_pS5@Base 0.4
- (arch=!armhf !arm64 !powerpc !ppc64el !ppc64)_ItL_pS6@Base 0.4
- (arch=!armhf !arm64 !powerpc !ppc64el !ppc64)_ItL_pi_lo@Base 0.4
- (arch=!armhf !arm64 !powerpc !ppc64el !ppc64)_ItL_qS1@Base 0.4
- (arch=!armhf !arm64 !powerpc !ppc64el !ppc64)_ItL_qS2@Base 0.4
- (arch=!armhf !arm64 !powerpc !ppc64el !ppc64)_ItL_qS3@Base 0.4
- (arch=!armhf !arm64 !powerpc !ppc64el !ppc64)_ItL_qS4@Base 0.4
- (arch=!armhf !arm64 !powerpc !ppc64el !ppc64)_ItL_qS5@Base 0.4
+ (arch=!armhf !arm64 !powerpc !ppc64el !ppc64 !mips !mipsel !mips64el)_ItL_aT@Base 0.4
+ (arch=!armhf !arm64 !powerpc !ppc64el !ppc64 !mips !mipsel !mips64el)_ItL_atanhi@Base 0.4
+ (arch=!armhf !arm64 !powerpc !ppc64el !ppc64 !mips !mipsel !mips64el)_ItL_atanlo@Base 0.4
+ (arch=!armhf !arm64 !powerpc !ppc64el !ppc64 !mips !mipsel !mips64el)_ItL_pS0@Base 0.4
+ (arch=!armhf !arm64 !powerpc !ppc64el !ppc64 !mips !mipsel !mips64el)_ItL_pS1@Base 0.4
+ (arch=!armhf !arm64 !powerpc !ppc64el !ppc64 !mips !mipsel !mips64el)_ItL_pS2@Base 0.4
+ (arch=!armhf !arm64 !powerpc !ppc64el !ppc64 !mips !mipsel !mips64el)_ItL_pS3@Base 0.4
+ (arch=!armhf !arm64 !powerpc !ppc64el !ppc64 !mips !mipsel !mips64el)_ItL_pS4@Base 0.4
+ (arch=!armhf !arm64 !powerpc !ppc64el !ppc64 !mips !mipsel !mips64el)_ItL_pS5@Base 0.4
+ (arch=!armhf !arm64 !powerpc !ppc64el !ppc64 !mips !mipsel !mips64el)_ItL_pS6@Base 0.4
+ (arch=!armhf !arm64 !powerpc !ppc64el !ppc64 !mips !mipsel !mips64el)_ItL_pi_lo@Base 0.4
+ (arch=!armhf !arm64 !powerpc !ppc64el !ppc64 !mips !mipsel !mips64el)_ItL_qS1@Base 0.4
+ (arch=!armhf !arm64 !powerpc !ppc64el !ppc64 !mips !mipsel !mips64el)_ItL_qS2@Base 0.4
+ (arch=!armhf !arm64 !powerpc !ppc64el !ppc64 !mips !mipsel !mips64el)_ItL_qS3@Base 0.4
+ (arch=!armhf !arm64 !powerpc !ppc64el !ppc64 !mips !mipsel !mips64el)_ItL_qS4@Base 0.4
+ (arch=!armhf !arm64 !powerpc !ppc64el !ppc64 !mips !mipsel !mips64el)_ItL_qS5@Base 0.4
  __exp__D@Base 0.4
  __fe_dfl_env@Base 0.4
 #MISSING: 0.5.0# (arch=!armhf)__fedisableexcept@Base 0.4
@@ -37,23 +37,23 @@ libopenlibm.so.2 libopenlibm2 #MINVER#
  (arch=!armhf)__isnormall@Base 0.4
  __kernel_cos@Base 0.4
  __kernel_cosdf@Base 0.4
- (arch=!armhf !arm64 !powerpc !ppc64el !ppc64)__kernel_cosl@Base 0.4
+ (arch=!armhf !arm64 !powerpc !ppc64el !ppc64 !mips !mipsel !mips64el)__kernel_cosl@Base 0.4
  __kernel_rem_pio2@Base 0.4
  __kernel_sin@Base 0.4
 #MISSING: 0.5.0# __kernel_sincos@Base 0.4
 #MISSING: 0.5.0# __kernel_sincosdf@Base 0.4
  __kernel_sindf@Base 0.4
- (arch=!armhf !arm64 !powerpc !ppc64el !ppc64)__kernel_sinl@Base 0.4
+ (arch=!armhf !arm64 !powerpc !ppc64el !ppc64 !mips !mipsel !mips64el)__kernel_sinl@Base 0.4
  __kernel_tan@Base 0.4
  __kernel_tandf@Base 0.