summaryrefslogtreecommitdiffstats
path: root/development/diffoscope
diff options
context:
space:
mode:
author Matt Egger <matt.egger@gmail.com>2024-09-25 16:49:25 -0400
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2024-09-27 23:12:14 +0700
commit46fd19220ee4d9e9a525320846245985409cae22 (patch)
tree88a5f6789ea7ddfdc9ae4f72450b541b86654736 /development/diffoscope
parent0edd1de9c7d6e0ae40c9633fe0ff96ffc528f311 (diff)
downloadslackbuilds-46fd19220ee4d9e9a525320846245985409cae22.tar.gz
slackbuilds-46fd19220ee4d9e9a525320846245985409cae22.tar.xz
development/diffoscope: new maintainer, updated for version 277
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/diffoscope')
-rw-r--r--development/diffoscope/diffoscope.1384
-rw-r--r--development/diffoscope/diffoscope.SlackBuild14
-rw-r--r--development/diffoscope/diffoscope.info10
3 files changed, 16 insertions, 392 deletions
diff --git a/development/diffoscope/diffoscope.1 b/development/diffoscope/diffoscope.1
deleted file mode 100644
index 90fdb47848..0000000000
--- a/development/diffoscope/diffoscope.1
+++ /dev/null
@@ -1,384 +0,0 @@
-.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.6.
-.TH DIFFOSCOPE "1" "September 2018" "diffoscope 100" "User Commands"
-.SH NAME
-diffoscope \- in-depth comparison of files, archives, and directories
-
-.
-.nr rst2man-indent-level 0
-.
-.de1 rstReportMargin
-\\$1 \\n[an-margin]
-level \\n[rst2man-indent-level]
-level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
--
-\\n[rst2man-indent0]
-\\n[rst2man-indent1]
-\\n[rst2man-indent2]
-..
-.de1 INDENT
-.\" .rstReportMargin pre:
-. RS \\$1
-. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
-. nr rst2man-indent-level +1
-.\" .rstReportMargin post:
-..
-.de UNINDENT
-. RE
-.\" indent \\n[an-margin]
-.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
-.nr rst2man-indent-level -1
-.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
-.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
-..
-.SH SYNOPSIS
-.nf
-\fBdiffoscope\fR \-\-help
-\fBdiffoscope\fR [OPTIONS] [\-\-json \fIoutput_diff\fR] \fIpath1\fR \fIpath2\fR
-\fBdiffoscope\fR [OPTIONS] \fIdiff\fR
-\fBdiffoscope\fR [OPTIONS] < \fIdiff\fR
-.fi
-.\" Man page generated from reStructuredText.
-.
-.SH DESCRIPTION
-.sp
-diffoscope will try to get to the bottom of what makes files or
-directories different. It will recursively unpack archives of many kinds
-and transform various binary formats into more human readable form to
-compare them. It can compare two tarballs, ISO images, or PDF just as
-easily.
-.sp
-It can be scripted through error codes, and a report can be produced
-with the detected differences. The report can be text or HTML.
-When no type of report has been selected, diffoscope defaults
-to write a text report on the standard output.
-.sp
-diffoscope was initially started by the "reproducible builds" Debian
-project and now being developed as part of the (wider) \fI\%???Reproducible
-Builds??? initiative\fP\&. It is meant
-to be able to quickly understand why two builds of the same package
-produce different outputs. diffoscope was previously named debbindiff.
-.sp
-See the \fBCOMMAND\-LINE EXAMPLES\fP section further below to get you
-started, as well as more detailed explanations of all the command\-line
-options. The same information is also available in
-\fB/usr/share/doc/diffoscope/README.rst\fP or similar.
-.\" the below hack gets rid of the python "usage" message in favour of the
-.\" the synopsis we manually defined in doc/$(PACKAGE).h2m.0
-.SS positional arguments:
-.TP
-path1
-First file or directory to compare. If omitted, tries
-to read a diffoscope diff from stdin.
-.TP
-path2
-Second file or directory to compare. If omitted, no
-comparison is done but instead we read a diffoscope
-diff from path1 and will output this in the formats
-specified by the rest of the command line.
-.SS "optional arguments:"
-.TP
-\fB\-\-debug\fR
-Display debug messages
-.TP
-\fB\-\-debugger\fR
-Open the Python debugger in case of crashes
-.TP
-\fB\-\-status\-fd\fR FD
-Send machine\-readable status to file descriptor FD
-.TP
-\fB\-\-progress\fR, \fB\-\-no\-progress\fR
-Show an approximate progress bar. Default: yes if
-stdin is a tty, otherwise no.
-.TP
-\fB\-\-no\-default\-limits\fR
-Disable most default output limits and diff
-calculation limits.
-.SS "output types:"
-.TP
-\fB\-\-text\fR OUTPUT_FILE
-Write plain text output to given file (use \- for
-stdout)
-.TP
-\fB\-\-text\-color\fR WHEN
-When to output color diff. WHEN is one of {never,
-auto, always}. Default: auto, meaning yes if the
-output is a terminal, otherwise no.
-.TP
-\fB\-\-output\-empty\fR
-If there was no difference, then output an empty diff
-for each output type that was specified. In \fB\-\-text\fR
-output, an empty file is written.
-.TP
-\fB\-\-html\fR OUTPUT_FILE
-Write HTML report to given file (use \- for stdout)
-.TP
-\fB\-\-html\-dir\fR OUTPUT_DIR
-Write multi\-file HTML report to given directory
-.TP
-\fB\-\-css\fR URL
-Link to an extra CSS for the HTML report
-.TP
-\fB\-\-jquery\fR URL
-URL link to jQuery, for \fB\-\-html\fR and \fB\-\-html\-dir\fR output.
-If this is a non\-existent relative URL, diffoscope
-will create a symlink to a system installation. (Paths
-searched: \fI\,/usr/share/javascript/jquery/jquery.js\/\fP.) If
-not given, \fB\-\-html\fR output will not use JS but \fB\-\-htmldir\fR will if it can be found; give "disable" to disable
-JS on all outputs.
-.TP
-\fB\-\-json\fR OUTPUT_FILE
-Write JSON text output to given file (use \- for
-stdout)
-.TP
-\fB\-\-markdown\fR OUTPUT_FILE
-Write Markdown text output to given file (use \- for
-stdout)
-.TP
-\fB\-\-restructured\-text\fR OUTPUT_FILE
-Write RsT text output to given file (use \- for stdout)
-.TP
-\fB\-\-profile\fR OUTPUT_FILE
-Write profiling info to given file (use \- for stdout)
-.SS "output limits:"
-.TP
-\fB\-\-max\-text\-report\-size\fR BYTES
-Maximum bytes written in \fB\-\-text\fR report. (0 to disable,
-default: 0)
-.TP
-\fB\-\-max\-report\-size\fR BYTES
-Maximum bytes of a report in a given format, across
-all of its pages. Note that some formats, such as
-\fB\-\-html\fR, may be restricted by even smaller limits such
-as \fB\-\-max\-page\-size\fR. (0 to disable, default: 41943040)
-.TP
-\fB\-\-max\-diff\-block\-lines\fR LINES
-Maximum number of lines output per unified\-diff block,
-across all pages. (0 to disable, default: 1024)
-.TP
-\fB\-\-max\-page\-size\fR BYTES
-Maximum bytes of the top\-level (\fB\-\-html\-dir\fR) or sole
-(\fB\-\-html\fR) page. (default: 409600, remains in effect
-even with \fB\-\-no\-default\-limits\fR)
-.TP
-\fB\-\-max\-page\-size\-child\fR BYTES
-In \fB\-\-html\-dir\fR output, this is the maximum bytes of
-each child page (default: 204800, remains in effect
-even with \fB\-\-no\-default\-limits\fR)
-.TP
-\fB\-\-max\-page\-diff\-block\-lines\fR LINES
-Maximum number of lines output per unified\-diff block
-on the top\-level (\fB\-\-html\-dir\fR) or sole (\fB\-\-html\fR) page,
-before spilling it into child pages (\fB\-\-html\-dir\fR) or
-skipping the rest of the diff block. Child pages are
-limited instead by \fB\-\-max\-page\-size\-child\fR. (default:
-128, remains in effect even with \fB\-\-no\-default\-limits\fR)
-.SS "diff calculation:"
-.TP
-\fB\-\-new\-file\fR
-Treat absent files as empty
-.TP
-\fB\-\-exclude\fR GLOB_PATTERN
-Exclude files that match GLOB_PATTERN. Use this option
-to ignore files based on their names.
-.TP
-\fB\-\-exclude\-command\fR REGEX_PATTERN
-Exclude commands that match REGEX_PATTERN. For example
-\&'^readelf.*\es\-\-debug\-dump=info' can take a long time
-and differences here are likely secondary differences
-caused by something represented elsewhere. Use this
-option to disable commands that use a lot of
-resources.
-.TP
-\fB\-\-exclude\-directory\-metadata\fR, \fB\-\-no\-exclude\-directory\-metadata\fR
-Exclude directory metadata. Useful if comparing files
-whose filesystem\-level metadata is not intended to be
-distributed to other systems. This is true for most
-distributions package builders, but not true for the
-output of commands such as `make install`. Metadata of
-archive members remain un\-excluded. Use this option to
-ignore permissions, timestamps, xattrs etc. Default:
-False if comparing two directories, else True. Note
-that "file" metadata actually a property of its
-containing directory, and is not relevant when
-distributing the file across systems.
-.TP
-\fB\-\-fuzzy\-threshold\fR FUZZY_THRESHOLD
-Threshold for fuzzy\-matching (0 to disable, 60 is
-default, 400 is high fuzziness)
-.TP
-\fB\-\-tool\-prefix\-binutils\fR PREFIX
-Prefix for binutils program names, e.g.
-"aarch64\-linux\-gnu\-" for a foreign\-arch binary or "g"
-if you're on a non\-GNU system.
-.TP
-\fB\-\-max\-diff\-input\-lines\fR LINES
-Maximum number of lines fed to diff(1) (0 to disable,
-default: 4194304)
-.TP
-\fB\-\-max\-container\-depth\fR DEPTH
-Maximum depth to recurse into containers. (Cannot be
-disabled for security reasons, default: 50)
-.TP
-\fB\-\-max\-diff\-block\-lines\-saved\fR LINES
-Maximum number of lines saved per diff block. Most
-users should not need this, unless you run out of
-memory. This truncates diff(1) output before emitting
-it in a report, and affects all types of output,
-including \fB\-\-text\fR and \fB\-\-json\fR. (0 to disable, default:
-0)
-.TP
-\fB\-\-force\-details\fR
-Force recursing into the depths of file formats even
-if files have the same content, only really useful for
-debugging diffoscope. Default: False
-.SS "information commands:"
-.TP
-\fB\-\-help\fR, \fB\-h\fR
-Show this help and exit
-.TP
-\fB\-\-version\fR
-Show program's version number and exit
-.TP
-\fB\-\-list\-tools\fR [DISTRO]
-Show external tools required and exit. DISTRO can be
-one of {arch, debian, FreeBSD}. If specified, the
-output will list packages in that distribution that
-satisfy these dependencies.
-.TP
-\fB\-\-list\-debian\-substvars\fR
-List packages needed for Debian in 'substvar' format.
-.PP
-File renaming detection based on fuzzy\-matching is currently disabled. It can
-be enabled by installing the "tlsh" module available at
-https://github.com/trendmicro/tlsh
-.SS "file formats supported:"
-.IP
-Android APK files, Android boot images, Berkeley DB database files, ColorSync colour profiles (.icc), Coreboot CBFS filesystem images, Dalvik .dex files, Device Tree Compiler blob files, ELF binaries, FreeDesktop Fontconfig cache files, FreePascal files (.ppu), GHC Haskell .hi files, GIF image files, GNU R Rscript files (.rds), GNU R database files (.rdb), Gettext message catalogues, Git repositories, Gnumeric spreadsheets, Gzipped files, ISO 9660 CD images, JPEG images, JSON files, Java .class files, JavaScript files, LLVM IR bitcode files, LZ4 compressed files, MacOS binaries, Microsoft Windows icon files, Microsoft Word .docx files, Mono 'Portable Executable' files, Ogg Vorbis audio files, OpenOffice .odt files, OpenSSH public keys, OpenWRT package archives (.ipk), PDF documents, PGP signed/encrypted messages, PNG images, PostScript documents, Rust object files (.deflate), SQLite databases, SquashFS filesystems, TrueType font files, XML binary schemas (.xsb), XML files, XZ compressed files, ar(1) archives, bzip2 archives, character/block devices, cpio archives, directories, ext2/ext3/ext4/btrfs filesystems, statically\-linked binaries, symlinks, tape archives (.tar), tcpdump capture files (.pcap), text files, text files, text files and text files.
-.SH "EXIT STATUS"
-.sp
-Exit status is 0 if inputs are the same, 1 if different, 2 if trouble.
-.SH "COMMAND-LINE EXAMPLES"
-.sp
-To compare two files in\-depth and produce an HTML report, run something like:
-.INDENT 0.0
-.INDENT 3.5
-.sp
-.nf
-.ft C
-$ diffoscope \-\-html output.html build1.changes build2.changes
-.ft P
-.fi
-.UNINDENT
-.UNINDENT
-.sp
-diffoscope will exit with 0 if there\(aqs no differences and 1 if there
-are.
-.sp
-\fIdiffoscope\fP can also compare non\-existent files:
-.INDENT 0.0
-.INDENT 3.5
-.sp
-.nf
-.ft C
-$ diffoscope /nonexistent archive.zip
-.ft P
-.fi
-.UNINDENT
-.UNINDENT
-.sp
-To get all possible options, run:
-.INDENT 0.0
-.INDENT 3.5
-.sp
-.nf
-.ft C
-$ diffoscope \-\-help
-.ft P
-.fi
-.UNINDENT
-.UNINDENT
-.sp
-If you have enough RAM, you can improve performance by running:
-.INDENT 0.0
-.INDENT 3.5
-.sp
-.nf
-.ft C
-$ TMPDIR=/run/shm diffoscope very\-big\-input\-0/ very\-big\-input\-1/
-.ft P
-.fi
-.UNINDENT
-.UNINDENT
-.sp
-By default this allowed to use up half of RAM; for more add something like:
-.INDENT 0.0
-.INDENT 3.5
-.sp
-.nf
-.ft C
-tmpfs /run/shm tmpfs size=80% 0 0
-.ft P
-.fi
-.UNINDENT
-.UNINDENT
-.sp
-to your \fB/etc/fstab\fP; see \fBman mount\fP for details.
-.SH "EXTERNAL DEPENDENCIES"
-.sp
-diffoscope requires Python 3 and the following modules available on PyPI:
-\fI\%libarchive\-c\fP,
-\fI\%python\-magic\fP\&.
-.sp
-The various comparators rely on external commands being available. To
-get a list of them, please run:
-.INDENT 0.0
-.INDENT 3.5
-.sp
-.nf
-.ft C
-$ diffoscope \-\-list\-tools
-.ft P
-.fi
-.UNINDENT
-.UNINDENT
-.SH CONTRIBUTORS
-.sp
-Lunar, Reiner Herrmann, Chris Lamb, Mattia Rizzolo, Ximin Luo, Helmut Grohne,
-Holger Levsen, Daniel Kahn Gillmor, Paul Gevers, Peter De Wachter, Yasushi
-SHOJI, Clemens Lang, Ed Maste, Joachim Breitner, Mike McQuaid. Baptiste
-Daroussin, Levente Polyak.
-.SH CONTACT
-.sp
-Please report bugs and send patches through the Debian bug tracking
-system against the diffoscope package:
-<\fI\%https://bugs.debian.org/src:diffoscope\fP>
-.sp
-For more instructions, see \fBCONTRIBUTING.rst\fP in this directory.
-.sp
-Join the users and developers mailing\-list:
-<\fI\%https://lists.reproducible\-builds.org/listinfo/diffoscope\fP>
-.sp
-diffoscope website is at <\fI\%https://diffoscope.org/\fP>
-.SH LICENSE
-.sp
-diffoscope is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-.sp
-diffoscope is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-.sp
-You should have received a copy of the GNU General Public License
-along with diffoscope. If not, see <\fI\%https://www.gnu.org/licenses/\fP>.
-.SH "SEE ALSO"
-.INDENT 0.0
-.IP \(bu 2
-\fI<https://diffoscope.org/>\fP
-.IP \(bu 2
-\fI<https://wiki.debian.org/ReproducibleBuilds>\fP
-.UNINDENT
-.\" Generated by docutils manpage writer.
-.
diff --git a/development/diffoscope/diffoscope.SlackBuild b/development/diffoscope/diffoscope.SlackBuild
index 3700068bd7..8985f47c8a 100644
--- a/development/diffoscope/diffoscope.SlackBuild
+++ b/development/diffoscope/diffoscope.SlackBuild
@@ -2,6 +2,7 @@
# Slackware build script for diffoscope
+# Copyright 2024 Matt Egger, USA
# Copyright 2016 David Spencer, Baildon, West Yorkshire, U.K.
# All rights reserved.
#
@@ -25,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=diffoscope
-VERSION=${VERSION:-252}
+VERSION=${VERSION:-277}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -64,7 +65,7 @@ else
LIBDIRSUFFIX=""
fi
-set -e
+set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -84,8 +85,15 @@ python3 setup.py install --root=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+# generate man page
mkdir -p $PKG/usr/man/man1
-gzip -9 < $CWD/diffoscope.1 > $PKG/usr/man/man1/diffoscope.1.gz
+cd doc
+make
+mv diffoscope.1 $PKG/usr/man/man1/diffoscope.1
+cd ..
+
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYING README.rst $PKG/usr/doc/$PRGNAM-$VERSION
diff --git a/development/diffoscope/diffoscope.info b/development/diffoscope/diffoscope.info
index 4b628709be..5d710caf86 100644
--- a/development/diffoscope/diffoscope.info
+++ b/development/diffoscope/diffoscope.info
@@ -1,10 +1,10 @@
PRGNAM="diffoscope"
-VERSION="252"
+VERSION="277"
HOMEPAGE="https://diffoscope.org/"
-DOWNLOAD="https://diffoscope.org/archive/diffoscope-252.tar.bz2"
-MD5SUM="bb1319a53b7225c300f6c9f48d295dfd"
+DOWNLOAD="https://diffoscope.org/archive/diffoscope-277.tar.bz2"
+MD5SUM="d8d44b214f851da0747935f8f648a793"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="python-libarchive-c python-magic"
-MAINTAINER="David Spencer"
-EMAIL="baildon.research@googlemail.com"
+MAINTAINER="Matt Egger"
+EMAIL="matt.egger@gmail.com"