The nopipe patch changes libapm to using system() instead of popen() for running package scriptlets. This patch is known to work for pacman 3.3.3. Copy nopipe.patch and nopipe.sh to the root directory of pacman's extracted source tarball. Change to this directory and type: ./nopipe.sh that's it