Bug#920732: strip-nondeterminism should normalize file ownerships in epubs too

Holger Levsen holger at debian.org
Mon Jan 28 16:19:42 GMT 2019


Package: strip-nondeterminism
Version: 1.1.0-1
Severity: wishlist

Hi,

debian-edu-doc 2.10.11 when tested on tests.r-b.o shows this:

│ │ │ ├── ./usr/share/doc/debian-edu-doc-da/debian-edu-buster-manual.epub
│ │ │ │ ├── bsdtar -tvf {}
│ │ │ │ │ @@ -1,54 +1,54 @@
│ │ │ │ │  drwxr-xr-x  0 0      0           0 Jan 20 13:47 epub/
│ │ │ │ │  drwxr-xr-x  0 0      0           0 Jan 20 13:47 epub/META-INF/
│ │ │ │ │ --rw-r--r--  0 1111   1111      255 Jan  1  1970 epub/META-INF/container.xml
│ │ │ │ │ +-rw-r--r--  0 2222   2222      255 Jan  1  1970 epub/META-INF/container.xml

etc

despite this code (probably too much) in src:debian-edu-doc/documentation/common/Makefile.common

build-epub:
        # build the English EPUB version
        echo "Creating epub for en"
        $(DBTOEPUB) $(name).xml
        unzip -q $(name).epub -d epub
        sed -i 's#_idm[0-9]\{14\}#_idm1234567#' epub/OEBPS/content.opf
        sed -i 's#_idm[0-9]\{14\}#_idm1234567#' epub/OEBPS/toc.ncx
        find epub -exec touch -d @0 {} \;
        rm $(name).epub
        zip -q -r -o $(name).epub epub/
        rm -rf epub/
        strip-nondeterminism -t zip $(name).epub
        # build all other EPUB versions
        -for LINGUA in $(LANGUAGES) ; do \
                echo "Creating epub for $$LINGUA"; \
                po4a --translate-only $(name).$$LINGUA.xml po4a.cfg ; \
                mkdir images-tmp ; \
                cp images/*.* images-tmp/ ; \
                if [ -e images/$$LINGUA ] ; then \
                    cp -v images/$$LINGUA/*.* images-tmp/ ; \
                fi ; \
                sed -i "s#./images#./images-tmp#g" $(name).$$LINGUA.xml ; \
                $(DBTOEPUB) $(name).$$LINGUA.xml ; \
                sed -i "s#./images-tmp#./images/#g" $(name).$$LINGUA.xml ; \
                rm -rf images-tmp/ ; \
        done

IOW: we call strip-nondeterminism already and it would be nice if it would
normalize file ownerships.

And this 'find epub -exec touch -d @0 {} \;' also looks like something
strip-nd should do. Please close and retitle this bug report
accordingly.


-- 
tschüß,
	Holger

-------------------------------------------------------------------------------
               holger@(debian|reproducible-builds|layer-acht).org
       PGP fingerprint: B8BF 5413 7B09 D35C F026 FE9D 091A B856 069A AA1C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-builds/attachments/20190128/381fb068/attachment.sig>


More information about the Reproducible-builds mailing list