<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 25: Override mtime with zip -X and SOURCE_DATE_EPOCH</title><link href="https://sourceforge.net/p/infozip/patches/25/" rel="alternate"/><link href="https://sourceforge.net/p/infozip/patches/25/feed.atom" rel="self"/><id>https://sourceforge.net/p/infozip/patches/25/</id><updated>2022-02-13T09:41:08.885000Z</updated><subtitle>Recent changes to 25: Override mtime with zip -X and SOURCE_DATE_EPOCH</subtitle><entry><title>#25 Override mtime with zip -X and SOURCE_DATE_EPOCH</title><link href="https://sourceforge.net/p/infozip/patches/25/?limit=25#d914/35f4/bc42/d36a" rel="alternate"/><published>2022-02-13T09:41:08.885000Z</published><updated>2022-02-13T09:41:08.885000Z</updated><author><name>Bernhard M. Wiedemann</name><uri>https://sourceforge.net/u/greenbird/</uri></author><id>https://sourceforge.net3044080db0c0e55c9b3654f3450aa498e7a3f999</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;There was a bug in the 1st scandir call param: "." vs n &lt;br/&gt;
&lt;a href="https://github.com/distropatches/zip/commit/5063c9ce12c58f2512c2d00080d863d14b5d31f7" rel="nofollow"&gt;https://github.com/distropatches/zip/commit/5063c9ce12c58f2512c2d00080d863d14b5d31f7&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#25 Override mtime with zip -X and SOURCE_DATE_EPOCH</title><link href="https://sourceforge.net/p/infozip/patches/25/?limit=25#d914/35f4/bc42/a47c" rel="alternate"/><published>2020-01-26T15:15:00.186000Z</published><updated>2020-01-26T15:15:00.186000Z</updated><author><name>Mingye Wang</name><uri>https://sourceforge.net/u/arthur200000/</uri></author><id>https://sourceforge.netc4d818633b849321fe8f014a0be9c23ae6b845c7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Oops! Yeah, my patches are based on zip 3.1d beta. You can find that version on the info-zip FTP (beta) or via &lt;a href="https://antinode.info/ftp/info-zip." rel="nofollow"&gt;https://antinode.info/ftp/info-zip.&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#25 Override mtime with zip -X and SOURCE_DATE_EPOCH</title><link href="https://sourceforge.net/p/infozip/patches/25/?limit=25#7b04" rel="alternate"/><published>2020-01-26T01:01:42.219000Z</published><updated>2020-01-26T01:01:42.219000Z</updated><author><name>Bernhard M. Wiedemann</name><uri>https://sourceforge.net/u/greenbird/</uri></author><id>https://sourceforge.net507cc6ba75ab364d2e344f068aac59e87cf4aca7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;also worth mentioning that I once imported our openSUSE package patches into git to make the chaos more manageable:&lt;br/&gt;
&lt;a href="https://github.com/distropatches/zip/commits/opensuse" rel="nofollow"&gt;https://github.com/distropatches/zip/commits/opensuse&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;otherwise it looks more like&lt;br/&gt;
&lt;a href="https://github.com/bmwiedemann/openSUSE/tree/master/packages/z/zip" rel="nofollow"&gt;https://github.com/bmwiedemann/openSUSE/tree/master/packages/z/zip&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#25 Override mtime with zip -X and SOURCE_DATE_EPOCH</title><link href="https://sourceforge.net/p/infozip/patches/25/?limit=25#d914/35f4/bc42" rel="alternate"/><published>2020-01-25T20:50:10.343000Z</published><updated>2020-01-25T20:50:10.343000Z</updated><author><name>Bernhard M. Wiedemann</name><uri>https://sourceforge.net/u/greenbird/</uri></author><id>https://sourceforge.net7ff944ebd2ad7b38e848cbffa0f2f08722e7f7ed</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The 0002 patch does not apply cleanly on my 3.0 - Is there a git repo of your version somewhere?&lt;/p&gt;
&lt;p&gt;and then there are 2 problems:&lt;br/&gt;
1) there is another closedir(d) in the first loop.&lt;br/&gt;
2) the char *e;  definition is still needed when you assign namelist&lt;span&gt;[i]&lt;/span&gt;-&amp;gt;d_name to it&lt;/p&gt;
&lt;p&gt;There is a scandir impl in&lt;br/&gt;
&lt;a href="https://github.com/microsoft/Windows-classic-samples/blob/master/Samples/Win7Samples/begin/sdkdiff/scandir.cpp" rel="nofollow"&gt;https://github.com/microsoft/Windows-classic-samples/blob/master/Samples/Win7Samples/begin/sdkdiff/scandir.cpp&lt;/a&gt;  but licence is probably not suitable. There are some other ports around on the net as part of the various libcs.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#25 Override mtime with zip -X and SOURCE_DATE_EPOCH</title><link href="https://sourceforge.net/p/infozip/patches/25/?limit=25#d914/35f4" rel="alternate"/><published>2020-01-25T15:10:09.369000Z</published><updated>2020-01-25T15:10:09.369000Z</updated><author><name>Arthur (Mingye) Wang</name><uri>https://sourceforge.net/u/arthur200000/</uri></author><id>https://sourceforge.net5929234caa4c9c162e7895fb9f5e7bb20ae1950f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Got the &lt;code&gt;scandir&lt;/code&gt; patch here. You will need to fill in the fallback implementation part.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#25 Override mtime with zip -X and SOURCE_DATE_EPOCH</title><link href="https://sourceforge.net/p/infozip/patches/25/?limit=25#d914" rel="alternate"/><published>2020-01-25T10:27:25.754000Z</published><updated>2020-01-25T10:27:25.754000Z</updated><author><name>Arthur (Mingye) Wang</name><uri>https://sourceforge.net/u/arthur200000/</uri></author><id>https://sourceforge.netc5abe36f5824d006bbcea39a01b643ca7264fc63</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;A revised patch with manpage updates is attached.&lt;/p&gt;
&lt;p&gt;Readdir seems a bit hard to fix generally, since it is used in a bit too many places. For Unix we can probably take the FreeBSD &lt;code&gt;scandir()&lt;/code&gt; implementation and wrap a new readd() around it. Too keep the states we will need to make a struct around &lt;code&gt;DIR&lt;/code&gt; instead so we know where the &lt;code&gt;namelist&lt;/code&gt; is.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Override mtime with zip -X and SOURCE_DATE_EPOCH</title><link href="https://sourceforge.net/p/infozip/patches/25/" rel="alternate"/><published>2019-05-14T12:31:19.118000Z</published><updated>2019-05-14T12:31:19.118000Z</updated><author><name>Bernhard M. Wiedemann</name><uri>https://sourceforge.net/u/greenbird/</uri></author><id>https://sourceforge.net177e918523721c2f13f22bb4efa79f3be21df075</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;This makes reproducible zip file creation a lot easier.&lt;br/&gt;
(the other common problem is non-deterministic recursion because it uses filesystem readdir order without sorting)&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>