You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pagespeed.apache.org by GitBox <gi...@apache.org> on 2019/12/16 09:40:44 UTC

[GitHub] [incubator-pagespeed-ngx] Vndroid opened a new issue #1672: How to build in Alpine 3.10

Vndroid opened a new issue #1672: How to build in Alpine 3.10
URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1672
 
 
   The docker patch can not use in Alpine 3.10
   
   ```
   Applying patch automatic_makefile
   patching file pagespeed/automatic/Makefile
   
   Applying patch libpng16
   patching file net/instaweb/rewriter/image.cc
   Possibly reversed hunk 1 at 1438
   Hunk 1 FAILED 21/21.
    #include <algorithm>
    #include <cstddef>
   
   +extern "C" {
   +#ifdef USE_SYSTEM_ZLIB
   +#include "zlib.h"
   +#else
   +#include "third_party/zlib/zlib.h"
   +#endif
   +}  // extern "C"
   +
    #include "base/logging.h"
    #include "net/instaweb/rewriter/cached_result.pb.h"
    #include "net/instaweb/rewriter/public/image_data_lookup.h"
   Hunk 1 FAILED 411/411.
      png_uint_32 height = png_get_image_height(paletted_png_ptr,
                                                paletted_info_ptr);
      for (png_uint_32 row = 1; row < height; ++row) {
   -    memcpy(paletted_info_ptr->row_pointers[row],
   -           paletted_info_ptr->row_pointers[0],
   +    memcpy(row_pointers[row],
   +           row_pointers[0],
               row_size);
      }
   
   Possibly reversed hunk 1 at 508
   Hunk 1 FAILED 30/30.
    #else
    #include "third_party/libpng/src/png.h"
    #endif
   +
   +#ifdef USE_SYSTEM_ZLIB
   +#include "zlib.h"
   +#else
   +#include "third_party/zlib/zlib.h"
   +#endif
    }  // extern "C"
   
    #include "base/logging.h"
   Possibly reversed hunk 1 at 1395
   Hunk 1 FAILED 36/36.
    #else
    #include "third_party/libpng/src/png.h"
    #endif
   +
   +#ifdef USE_SYSTEM_ZLIB
   +#include "zlib.h"
   +#else
   +#include "third_party/zlib/zlib.h"
   +#endif
    }
   
    namespace {
   Hunk 1 FAILED 22/22.
              'dependencies': [
                '../zlib/zlib.gyp:zlib',
              ],
   +          'actions': [
   +            {
   +              'action_name': 'copy_libpngconf_prebuilt',
   +              'inputs' : [],
   +              'outputs': [''],
   +              'action': [
   +                'cp',
   +                '-f',
   +                '<(DEPTH)/third_party/libpng/src/scripts/pnglibconf.h.prebuilt',
   +                '<(DEPTH)/third_party/libpng/src/pnglibconf.h',
   +              ],
   +            },
   +          ],
              'msvs_guid': 'C564F145-9172-42C3-BFCB-6014CA97DBCD',
              'sources': [
   +            'src/pngpriv.h',
                'src/png.c',
                'src/png.h',
                'src/pngconf.h',
   +            'src/pngdebug.h',
                'src/pngerror.c',
   -            'src/pnggccrd.c',
                'src/pngget.c',
   +            'src/pnginfo.h',
                'src/pngmem.c',
   patching file pagespeed/kernel/image/gif_reader.cc
   patching file pagespeed/kernel/image/image_converter.cc
   patching file pagespeed/kernel/image/png_optimizer_test.cc
   patching file third_party/libpng/libpng.gyp
                'src/pngpread.c',
                'src/pngread.c',
   The command '/bin/sh -c for i in *.patch; do printf "\r\nApplying patch ${i%%.*}\r\n"; patch -p1 < $i || exit 1; done' returned a non-zero code: 1
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services