On Thu, May 28, 2020 at 09:57:04PM +0200, Michael Banck wrote:
> with make_4.2.3-1:

I meant 4.2.1-1.3.
 
> |# make -pRrq -f debian/rules : | awk -v RS= -F: '/^# File/,/^# Finished Make 
> data base/ { if ($1 !~ "^[#.]") {print $1} }'
> |
> |autopkgtest
> |build
> |override_dh_auto_test
> |override_dh_installsystemd
> |debian/rules
> |override_dh_installinit
> |#
> 
> with make_4.3-1:
> 
> |# make -pRrq -f debian/rules : | awk -v RS= -F: '/^# File/,/^# Finished  
> Make data base/ { if ($1 !~ "^[#.]") {print $1} }'
> |#
> 
> i.e. no output.

The difference is in the make output; make-4.2.1-1.3 puts a new line
before '# Files', like:

|# 1 implicit rules, 0 (0.0%) terminal.
|
|# Files

But make-4.3 no longer does that:

|# 1 implicit rules, 0 (0.0%) terminal.
|# Files

That (in combination with setting RS to empty and IFS to :) makes awk's
pattern-match no longer find /^# File/.

Not sure what the best fix would be.


Michael

Reply via email to