libmpc: Update to version 1.4.0

Message ID 20260405120354.137211-36-adolf.belka@ipfire.org
State Staged
Commit 4b895c655be5cd843fc0e46c00639b665444c7a7
Headers
Series libmpc: Update to version 1.4.0 |

Commit Message

Adolf Belka 5 Apr 2026, 12:03 p.m. UTC
- Update from version 1.3.1 to 1.4.0
- Update of rootfile
- Changelog
    1.4.0
	  - New functions: mpc_exp10, mpc_exp2, mpc_log2
	  - Bug fixes:
	    - mpc_tan and mpc_tanh:
	      Fix wrong values and slowness for large imaginary part.
	    - mpc_pow: Agree on and implement the sign of the imaginary part when
	      both inputs are real.
	    - mpc_fr_div and mpc_ui_div: Treat the imaginary part of the dividend
	      as an exact zero and not as +0, following the C2Y draft of the C
	      standard. This changes the signs of zeroes in some results.
	  - Generate the pkg-config file mpc.pc
	  - Add support for non-standard complex types (_Dcomplex, _Lcomplex) under
	    Windows

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
---
 config/rootfiles/common/libmpc |  3 ++-
 lfs/libmpc                     | 11 ++++++-----
 2 files changed, 8 insertions(+), 6 deletions(-)
  

Patch

diff --git a/config/rootfiles/common/libmpc b/config/rootfiles/common/libmpc
index 298a52a09..60e08c62d 100644
--- a/config/rootfiles/common/libmpc
+++ b/config/rootfiles/common/libmpc
@@ -3,5 +3,6 @@ 
 #usr/lib/libmpc.la
 #usr/lib/libmpc.so
 usr/lib/libmpc.so.3
-usr/lib/libmpc.so.3.3.1
+usr/lib/libmpc.so.3.4.0
+#usr/lib/pkgconfig/mpc.pc
 #usr/share/info/mpc.info
diff --git a/lfs/libmpc b/lfs/libmpc
index 7c90e40f9..ffdf11ec4 100644
--- a/lfs/libmpc
+++ b/lfs/libmpc
@@ -1,7 +1,7 @@ 
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+# Copyright (C) 2007-2026  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
@@ -24,10 +24,10 @@ 
 
 include Config
 
-VER        = 1.3.1
+VER        = 1.4.0
 
 THISAPP    = mpc-$(VER)
-DL_FILE    = $(THISAPP).tar.gz
+DL_FILE    = $(THISAPP).tar.xz
 DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
@@ -40,7 +40,7 @@  objects = $(DL_FILE)
 
 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
 
-$(DL_FILE)_BLAKE2 = 76434e6f8830af3571836d51576bfebbc9701e9bbb5c4686f134081cd96cd90ae02f7ff42bf9e3957c7a7ba92b6b2d9cdabe18f0269271147521cd7f6a2d551c
+$(DL_FILE)_BLAKE2 = d00dbc52a92efd619498671475743c9f35797343c731542f881c04c4a0b198f5b36df51bfde3ce520866d1851958409a6dd0de02d85d7b2e0ba00ccb27a30464
 
 install : $(TARGET)
 
@@ -71,7 +71,8 @@  $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
 	@$(PREBUILD)
 	@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
 	$(UPDATE_AUTOMAKE)
-	cd $(DIR_APP) && ./configure --prefix=/usr
+	cd $(DIR_APP) && ./configure \
+				--prefix=/usr
 	cd $(DIR_APP) && make $(MAKETUNING)
 	cd $(DIR_APP) && make install
 	@rm -rf $(DIR_APP)