Red Hat specific rpm configuration files
Go to file
Miro Hrončok 9a446ffeac brp-mangle-shebangs: also mangle shebangs of JavaScript executables
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=2030427

Unfortunately, the MIME type of JavaScript executables is not text/... but
application/javascript. See RFC 4329.

After considering various approaches to fix this problem, including:

 1) limiting the number of characters `file` reads
 2) using `eu-elfclassify` instead of `file`

This seems like the most sensible approach to fix this one particular problem.
If more instances are found problematic in the future, we'll keep adding the
MIME types.

See the linked bugzilla, the eu-elfclassify pull request [1],
and the devel mailing list thread [2] for details about this problem and
the considered solutions.

[1]: https://src.fedoraproject.org/rpms/redhat-rpm-config/pull-request/145
[2]: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/K3QCBUXYR6ZA34I777X6F2RYJKKECJLM/
2021-12-08 19:36:23 +01:00
tests Merged update from upstream sources 2021-03-18 20:40:29 +00:00
.gitignore RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:31:23 -07:00
STAGE2-redhat-rpm-config RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:31:23 -07:00
brp-fix-pyc-reproducibility RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:31:23 -07:00
brp-implant-ident-static RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:31:23 -07:00
brp-java-repack-jars RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:31:23 -07:00
brp-ldconfig RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:31:23 -07:00
brp-mangle-shebangs brp-mangle-shebangs: also mangle shebangs of JavaScript executables 2021-12-08 19:36:23 +01:00
brp-python-bytecompile Merged update from upstream sources 2021-03-18 20:40:29 +00:00
brp-strip-lto RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:31:23 -07:00
buildflags.md buildflags.md: Document downstream build flags 2021-11-16 17:57:16 +01:00
common.lua RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:31:23 -07:00
config.guess RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:31:23 -07:00
config.sub RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:31:23 -07:00
dist.sh RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:31:23 -07:00
find-provides RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:31:23 -07:00
find-requires RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:31:23 -07:00
forge.lua RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:31:23 -07:00
gating.yaml fix RHEL gating configuration 2021-08-02 21:49:32 +02:00
gpgverify RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:31:23 -07:00
libsymlink.attr RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:31:23 -07:00
macros buildflags.md: Move toolchain selection documentation from macros file 2021-11-16 17:01:27 +01:00
macros.dwz RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:31:23 -07:00
macros.fedora-misc RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:31:23 -07:00
macros.fedora-misc-srpm RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:31:23 -07:00
macros.forge RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:31:23 -07:00
macros.ldc-srpm RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:31:23 -07:00
macros.ldconfig RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:31:23 -07:00
macros.mono-srpm RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:31:23 -07:00
macros.nodejs-srpm RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:31:23 -07:00
macros.valgrind-srpm RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:31:23 -07:00
macros.vpath Make vpath builddir not include arch-specific info 2021-12-02 08:56:57 -05:00
redhat-annobin-cc1 RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:31:23 -07:00
redhat-hardened-cc1 RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:31:23 -07:00
redhat-hardened-clang.cfg RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:31:23 -07:00
redhat-hardened-ld RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:31:23 -07:00
redhat-rpm-config.spec brp-mangle-shebangs: also mangle shebangs of JavaScript executables 2021-12-08 19:36:23 +01:00
rpmlint.cf RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:31:23 -07:00
rpmrc aarch64: Do not build with -mbranch-protection=standard (#1984652) 2021-07-22 18:57:50 +02:00
sources RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:31:23 -07:00