Bug#993739: blends-common: tempfile has to be replaced by mktemp

2021-09-08 Thread Andreas Tille
Hi Cédric,

On Wed, Sep 08, 2021 at 12:28:05PM +0200, Cédric Boutillier wrote:
> I have submitted a merge request on salsa
> 
> https://salsa.debian.org/blends-team/blends/-/merge_requests/8
> 
> applying the patch attached.

Thanks a lot.  I'll upload soon.

Kind regards

   Andreas.

-- 
http://fam-tille.de



Bug#993739: blends-common: tempfile has to be replaced by mktemp

2021-09-08 Thread Cédric Boutillier
Hi Andreas,

I have submitted a merge request on salsa

https://salsa.debian.org/blends-team/blends/-/merge_requests/8

applying the patch attached.

Best wishes,

Cédric
>From e555f8405ea4e2cf90a8d50261545665ab49605c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9dric=20Boutillier?= 
Date: Wed, 8 Sep 2021 12:14:02 +0200
Subject: [PATCH] Replace deprecated temfile by mktemp

debianutils 5.x removed the script `tempfile`, which has to be replaced
by `mktemp` from the coreutils package.
---
 debian/changelog  | 5 +
 share/blends/unixgroups/blend-actions | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 88c3aa1..d0f823d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,7 +1,12 @@
 blends (0.7.4) UNRELEASED; urgency=medium
 
+  [ Gianfranco Costamagna ]
   * Add Ubuntu disco and eoan sources.list files
 
+  [ Cédric Boutillier ]
+  * Replace deprecated `tempfile` by `mktemp` in blend-actions script (Closes:
+#993739)
+
  -- Gianfranco Costamagna   Fri, 14 Jun 2019 00:58:11 +0200
 
 blends (0.7.3) experimental; urgency=medium
diff --git a/share/blends/unixgroups/blend-actions b/share/blends/unixgroups/blend-actions
index 2b12a50..9452d54 100644
--- a/share/blends/unixgroups/blend-actions
+++ b/share/blends/unixgroups/blend-actions
@@ -126,7 +126,7 @@ getAllUsers() {
 		RET=64 # EX_USAGE
 	else
 		SIMPLE=$1
-		TMPFILE=`tempfile`
+		TMPFILE=`mktemp`
 		(IFS=":"
 			while read user pass uid gid name rest ; do
 if [ "$uid" != "" ] ; then
-- 
2.33.0



Bug#993739: blends-common: tempfile has to be replaced by mktemp

2021-09-07 Thread Andreas Tille
Hi,

thanks to you both for the bug report.  I confirm the description
what to do sounds pretty easy - but a patch that works would simplify
my work.

Thanks a lot

  Andreas. 

-- 
http://fam-tille.de



Bug#993739: blends-common: tempfile has to be replaced by mktemp

2021-09-06 Thread Cédric Boutillier
Package: blends-common
Version: 0.7.2
Followup-For: Bug #993739

Hi

I have just experienced this bug today too.
According to the NEWS.Debian file in debianutils package, the `tempfile`
script was removed from debianutils in the version 5.0. Therefore, its
usage in /usr/share/blends/unixgroups/blend-actions should indeed be
replaced by mktemp from coreutils.

Best wishes,

Cédric