imagemin / optipng-bin

optipng bin-wrapper that makes it seamlessly available as a local dependency
http://optipng.sourceforge.net
MIT License
97 stars 65 forks source link

build failure on ppc64el in Debian and linux #114

Open LocutusOfBorg opened 4 years ago

LocutusOfBorg commented 4 years ago

Hello, I got a Debian bug report, but it turns out the problem is in your tarball you unpack during make install, because you don't run configure file for embedded libpng in case you are not using the system implementation. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=959487 I attached an analysis on that bug report, thanks for having a look!

edsion11 commented 3 years ago

hey ,I have the same problem, what can I do?

LocutusOfBorg commented 3 years ago

The bug report has some workarounds provided by me https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=959487

matoro commented 3 years ago

Hey, I have also run into this issue, is there anyway to patch in this fix in an automated fashion without having to fail and resume the build? I have found from this answer that you can fix this behavior by setting -DPNG_POWERPC_VSX_OPT=0 in CFLAGS but I can't figure out any way to apply that to the global npm install command without failing the build, manually editing files, then resuming the build.