[1/2] rng-tools: Update to version 2.16

Message ID 20230508113439.2241-1-adolf.belka@ipfire.org
State Superseded
Headers
Series [1/2] rng-tools: Update to version 2.16 |

Commit Message

Adolf Belka May 8, 2023, 11:34 a.m. UTC
  - Update from version 2.14 to 2.16
- Update of rootfile not required
- Version 2.16 required libcap to be available, which it is, but it could not be found by
   rng-tools. This is because rng-tools is using pkg-config and the required libcap.pc file
   was not stored in the standard directory location for .pc files. Therefore a patch for
   libcap is bundled together with this update to fix this.

Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
---
 lfs/rng-tools | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
  

Comments

Michael Tremer May 9, 2023, 7:38 a.m. UTC | #1
Hello Adolf,

> On 8 May 2023, at 12:34, Adolf Belka <adolf.belka@ipfire.org> wrote:
> 
> - Update from version 2.14 to 2.16
> - Update of rootfile not required
> - Version 2.16 required libcap to be available, which it is, but it could not be found by
>   rng-tools. This is because rng-tools is using pkg-config and the required libcap.pc file
>   was not stored in the standard directory location for .pc files. Therefore a patch for
>   libcap is bundled together with this update to fix this.
> 
> Tested-by: Adolf Belka <adolf.belka@ipfire.org>
> Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
> ---
> lfs/rng-tools | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/lfs/rng-tools b/lfs/rng-tools
> index 6a85a8482..8c9c338cf 100644
> --- a/lfs/rng-tools
> +++ b/lfs/rng-tools
> @@ -24,7 +24,7 @@
> 
> include Config
> 
> -VER        = 6.14
> +VER        = 6.16
> SUMMARY    = This is a random number generator daemon
> 
> THISAPP    = rng-tools-$(VER)
> @@ -33,7 +33,7 @@ DL_FROM    = $(URL_IPFIRE)
> DIR_APP    = $(DIR_SRC)/$(THISAPP)
> TARGET     = $(DIR_INFO)/$(THISAPP)
> PROG       = rng-tools
> -PAK_VER    = 1
> +PAK_VER    = 2
> 
> DEPS       =
> 
> @@ -47,7 +47,7 @@ objects = $(DL_FILE)
> 
> $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
> 
> -$(DL_FILE)_BLAKE2 = 177065f9ea68b68459d034d38278f866a0c9d5c499578fabcc29ceb387b49667393f23dcae9f13ff401599846e872dbada73f5e319a99dfa4605cdb77ee3e896
> +$(DL_FILE)_BLAKE2 = ab1a84c9a298e71ea5cdc1e91004ac069199a0128ee9701b1b3e24b6c705c63a642ab3db260a2c6c910c185e8fc75d5775caa3b7c370f102c75fac496e9bca17
> 
> install : $(TARGET)
> 
> @@ -81,8 +81,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
> @$(PREBUILD)
> @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
> cd $(DIR_APP) && ./autogen.sh
> - cd $(DIR_APP) && ./configure \
> -                --prefix=/usr \
> + cd $(DIR_APP) && echo libcap_LIBS && ./configure \
> +  --prefix=/usr \
>                --without-pkcs11 \
>                --without-rtlsdr

What is the echo for?

> cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE)
> -- 
> 2.40.1
>
  
Adolf Belka May 9, 2023, 7:49 a.m. UTC | #2
Hi Michael,

On 09/05/2023 09:38, Michael Tremer wrote:
> Hello Adolf,
> 
>> On 8 May 2023, at 12:34, Adolf Belka <adolf.belka@ipfire.org> wrote:
>>
>> - Update from version 2.14 to 2.16
>> - Update of rootfile not required
>> - Version 2.16 required libcap to be available, which it is, but it could not be found by
>>    rng-tools. This is because rng-tools is using pkg-config and the required libcap.pc file
>>    was not stored in the standard directory location for .pc files. Therefore a patch for
>>    libcap is bundled together with this update to fix this.
>>
>> Tested-by: Adolf Belka <adolf.belka@ipfire.org>
>> Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
>> ---
>> lfs/rng-tools | 10 +++++-----
>> 1 file changed, 5 insertions(+), 5 deletions(-)
>>
>> diff --git a/lfs/rng-tools b/lfs/rng-tools
>> index 6a85a8482..8c9c338cf 100644
>> --- a/lfs/rng-tools
>> +++ b/lfs/rng-tools
>> @@ -24,7 +24,7 @@
>>
>> include Config
>>
>> -VER        = 6.14
>> +VER        = 6.16
>> SUMMARY    = This is a random number generator daemon
>>
>> THISAPP    = rng-tools-$(VER)
>> @@ -33,7 +33,7 @@ DL_FROM    = $(URL_IPFIRE)
>> DIR_APP    = $(DIR_SRC)/$(THISAPP)
>> TARGET     = $(DIR_INFO)/$(THISAPP)
>> PROG       = rng-tools
>> -PAK_VER    = 1
>> +PAK_VER    = 2
>>
>> DEPS       =
>>
>> @@ -47,7 +47,7 @@ objects = $(DL_FILE)
>>
>> $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
>>
>> -$(DL_FILE)_BLAKE2 = 177065f9ea68b68459d034d38278f866a0c9d5c499578fabcc29ceb387b49667393f23dcae9f13ff401599846e872dbada73f5e319a99dfa4605cdb77ee3e896
>> +$(DL_FILE)_BLAKE2 = ab1a84c9a298e71ea5cdc1e91004ac069199a0128ee9701b1b3e24b6c705c63a642ab3db260a2c6c910c185e8fc75d5775caa3b7c370f102c75fac496e9bca17
>>
>> install : $(TARGET)
>>
>> @@ -81,8 +81,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
>> @$(PREBUILD)
>> @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
>> cd $(DIR_APP) && ./autogen.sh
>> - cd $(DIR_APP) && ./configure \
>> -                --prefix=/usr \
>> + cd $(DIR_APP) && echo libcap_LIBS && ./configure \
>> +  --prefix=/usr \
>>                 --without-pkcs11 \
>>                 --without-rtlsdr
> 
> What is the echo for?
Whoops. That was a debug addition when I was trying to define the 
libcap_LIBS flag and wanted to find out what the default value was. 
Forgot to take it back out again.

Will do a v2 of the patch set.

Regards,
Adolf.
> 
>> cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE)
>> -- 
>> 2.40.1
>>
>
  

Patch

diff --git a/lfs/rng-tools b/lfs/rng-tools
index 6a85a8482..8c9c338cf 100644
--- a/lfs/rng-tools
+++ b/lfs/rng-tools
@@ -24,7 +24,7 @@ 
 
 include Config
 
-VER        = 6.14
+VER        = 6.16
 SUMMARY    = This is a random number generator daemon
 
 THISAPP    = rng-tools-$(VER)
@@ -33,7 +33,7 @@  DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG       = rng-tools
-PAK_VER    = 1
+PAK_VER    = 2
 
 DEPS       =
 
@@ -47,7 +47,7 @@  objects = $(DL_FILE)
 
 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
 
-$(DL_FILE)_BLAKE2 = 177065f9ea68b68459d034d38278f866a0c9d5c499578fabcc29ceb387b49667393f23dcae9f13ff401599846e872dbada73f5e319a99dfa4605cdb77ee3e896
+$(DL_FILE)_BLAKE2 = ab1a84c9a298e71ea5cdc1e91004ac069199a0128ee9701b1b3e24b6c705c63a642ab3db260a2c6c910c185e8fc75d5775caa3b7c370f102c75fac496e9bca17
 
 install : $(TARGET)
 
@@ -81,8 +81,8 @@  $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
 	@$(PREBUILD)
 	@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
 	cd $(DIR_APP) && ./autogen.sh
-	cd $(DIR_APP) && ./configure \
-	                --prefix=/usr \
+	cd $(DIR_APP) && echo libcap_LIBS && ./configure \
+			  --prefix=/usr \
 	                --without-pkcs11 \
 	                --without-rtlsdr
 	cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE)