FS#27270 - [shadow] .install file of shadow version 4.1.4.3-3 does not execute successfully
            Attached to Project:
            Arch Linux
            
Opened by Smith Dhumbumroong (zodmaner) - Sunday, 27 November 2011, 05:58 GMT
Last edited by Dave Reisner (falconindy) - Sunday, 04 December 2011, 03:19 GMT
          Opened by Smith Dhumbumroong (zodmaner) - Sunday, 27 November 2011, 05:58 GMT
Last edited by Dave Reisner (falconindy) - Sunday, 04 December 2011, 03:19 GMT
| 
 | Details
                    Description: After upgrade to shadow version 4.1.4.3-3, during the execution of .install file, the script keeps looping and outputting the following error message: [2011-11-27 12:51] /tmp/alpm_bZn4WV/.INSTALL: line 5: echo: write error: Broken pipe Killing pacman is needed in order to stop the steam of error messages, Additional info: * package version(s) - shadow 4.1.4.3-3 * config and/or log files etc. Steps to reproduce: 1. Upgrade to shadow version 4.1.4.3-3 2. Noticed the error messages during the execution of .install file | 
              This task depends upon
              
              
            
            
          
            Closed by  Dave Reisner (falconindy)
Sunday, 04 December 2011, 03:19 GMT
Reason for closing: Fixed
Additional comments about closing: testing/shadow-4.1.4.3-5
            
install file no longer does this fix automatically.
          
        Sunday, 04 December 2011, 03:19 GMT
Reason for closing: Fixed
Additional comments about closing: testing/shadow-4.1.4.3-5
install file no longer does this fix automatically.
 
                      
while :; do echo "y"; done | grpck &>/dev/null
To:
while :; do echo "y"; done | /usr/sbin/grpck &>/dev/null
I have attached the modified shadow.install with this comment.
Should be closed as not a bug.
For what it's worth, the problematic line executes just fine both as a root and as a regular user on my system.
I have tried your suggestion, but sadly adding "x" to the groups that lacks it doesn't fix the problem.
Either pacman cleans up $PATH, or there's something else going on (like bash thinking that grpck is gone when pacman upgraded it). Easiest fix for now is by adding the full path in the install file.
while :; do echo y; done | this-binary-doesnt-exist
That won't loop forever, it'll just exit with command not found.
For what it's worth, I can still confirm that using full path in the install file fix the problem.