pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: pkgsrc/editors/Sigil



On Sat, Aug 11, 2012 at 05:34:05PM +0000, John Marino wrote:
> Module Name:  pkgsrc
> Committed By: marino
> Date:         Sat Aug 11 17:34:05 UTC 2012
> 
> Modified Files:
>       pkgsrc/editors/Sigil: distinfo
>       pkgsrc/editors/Sigil/patches: patch-src_ZipArchive_DirEnumerator.cpp
>           patch-src_ZipArchive_ZipFile__stl.cpp
>           patch-src_ZipArchive_ZipPlatform__lnx.cpp
> 
> Log Message:
> editors/Sigil: Fix patch phase, Repack all patches
> 
> Sigil is delivered in a zip file, and the files have DOS line endings.
> The patches had unix line endings, and at least on some platforms
> including NetBSD 5, this resulted in rejected hunks.
> 
> All three patches repacked, now contain DOS line endings and work fine.

This is no general solution either; on NetBSD-6.99.10/amd64 I now get:
===> Overriding tools for Sigil-0.5.3nb2
===> Extracting for Sigil-0.5.3nb2
===> Patching for Sigil-0.5.3nb2
=> Applying pkgsrc patches for Sigil-0.5.3nb2
1 out of 1 hunks failed--saving rejects to src/ZipArchive/DirEnumerator.cpp.rej
Patch 
/archive/cvs/pkgsrc/editors/Sigil/patches/patch-src_ZipArchive_DirEnumerator.cpp
 failed
1 out of 1 hunks failed--saving rejects to src/ZipArchive/ZipFile_stl.cpp.rej
Patch 
/archive/cvs/pkgsrc/editors/Sigil/patches/patch-src_ZipArchive_ZipFile__stl.cpp 
failed
2 out of 2 hunks failed--saving rejects to 
src/ZipArchive/ZipPlatform_lnx.cpp.rej
Patch 
/archive/cvs/pkgsrc/editors/Sigil/patches/patch-src_ZipArchive_ZipPlatform__lnx.cpp
 failed
ERROR: Patching failed due to modified or broken patch file(s):
ERROR:  
/archive/cvs/pkgsrc/editors/Sigil/patches/patch-src_ZipArchive_DirEnumerator.cpp
ERROR:  
/archive/cvs/pkgsrc/editors/Sigil/patches/patch-src_ZipArchive_ZipFile__stl.cpp
ERROR:  
/archive/cvs/pkgsrc/editors/Sigil/patches/patch-src_ZipArchive_ZipPlatform__lnx.cpp
*** Error code 1

Also note that:
./extract/extract:      : ${EXTRACT_OPTS_ZIP=-aqo}
where
     -a          When extracting a text file, convert DOS-style line endings
                 to Unix-style line endings.
so the files should already extract to Unix-style line endings.
Some unzips might need "-aa" instead to force this conversion.
 Thomas



Home | Main Index | Thread Index | Old Index