#857953 bash: debian/rules execute $(STRIP) even when empty

Package:
bash
Source:
bash
Description:
GNU Bourne Again SHell
Submitter:
Tim Ruehsen
Date:
2024-03-21 02:27:05 UTC
Severity:
normal
#857953#5
Date:
2017-03-16 16:13:47 UTC
From:
To:
Dear Maintainer,

in debian/rules the $(STRIP) command is tried to be executed even when empty.

The code is
ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
  ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
    STRIP = $(DEB_HOST_GNU_TYPE)-strip
  else
    STRIP = strip
  endif
endif
...
$(STRIP) -R .comment -R .note debian/bash.preinst

This sets me into a R shell :-)

Reproducer:
$ apt-get source bash
$ cd bash-4.4
$ DEB_BUILD_OPTIONS="" debuild -b -uc -us

$(DEB_BUILD_OPTIONS) is empty by default here.

Regards, Tim

#857953#10
Date:
2017-03-16 16:26:23 UTC
From:
To:
Control: severity -1 normal

please read about bug severities. This works by default as seen by the latest
binNMU.

#857953#17
Date:
2017-03-16 19:34:03 UTC
From:
To:
This bugs renders the source package unusable for me.
That's what reportbug suggests 'important' for ("...major effect on the
usability...")
And I need the source package to create a .deb with debugging symbols, for
debugging #849517, to get gnulib's --enable-valgrind-tests working with
several other packages.
So this bug is certainly a blocker...

???
This is not obvious for everybody. Just checked the bash package versions for
unstable and experimental... no update yet.
So, what do you try to communicate here ? Is my Debian apt source  (http://
ftp.de.debian.org) somewhat behind ?

With Best Regards, Tim