Commit Graph

648 Commits

Author SHA1 Message Date
9fd0523dfd spec: apply some specfile hardening
%define _unpackaged_files_terminate_build 1
%define _stripped_files_terminate_build 1
%set_verify_elf_method strict
2021-04-28 20:00:00 +00:00
9299e5cba9 spec: remove python-devel from BR
python-devel is not needed for build.
2021-04-28 20:00:00 +00:00
501ebe3ec0 spec: replace rpm-build-python with rpm-macros-python in rpm-build requirements
The idea is that rpm-macros-python could be installed without python2,
consequently, python2 will no longer be installed by default, but no
python2 req/prov would be lost because of that change because,
if a python2 module package or a package containing a python2 script
would miss to pull in python2, it would fail to build.
2021-04-28 20:00:00 +00:00
0901ca7282 4.0.4-alt164
- ldd.in: fix trace_elf error diagnostics (ldv).
- rpmio: Workaround another liblzma memory allocation failure on armh.
- rpmio+pack: Update rpmio_flags 'T' with actual threads used.
- rpmio: Make xzdio errors more informative.
- rpmio: Fix lzopen_internal mode parsing when 'Tn' is used.
2021-01-16 03:16:55 +03:00
83ce032556 4.0.4-alt163
- Added fixup method: gnuconfig.
2020-12-21 08:00:00 +00:00
c2007ceab8 4.0.4-alt162
- Downgrade XZ->LZMA automatically for small payloads (by Alexey Tourbin).
- Added payload compression string diagnostics.
- Fixed exit status of "rpmbuild --version" command.
2020-12-19 22:43:47 +00:00
ef75eb0b2e 4.0.4-alt161
- debuginfo: strip --reloc-debug-sections for kernel modules.
- rpmio: Lower memory limit on 32-bit arches for xz compression, again.
- brp-debuginfo: Add debug sources check.
- rpmio: Include rpmmacro.h to fix compilation warning.
2020-12-18 06:27:08 +03:00
ac623ad5b7 4.0.4-alt160
- Add a wrapper for install in %install section to skip strip.
2020-12-15 04:05:15 +03:00
a2e3f87824 Add a wrapper for install in %install section to skip strip
`strip' is called by `install -s` that could occur in unpatched
Makefiles, breaking debuginfo generation.

Try to catch `install` invocations via:

- %__install macro used in `make INSTALL=`.
- Prefix PATH with `/usr/libexec/rpm-build` with install and strip
  wrappers.

Suggested-by: Dmitry V. Levin <ldv@altlinux.org>
Reviewed-by: Dmitry V. Levin <ldv@altlinux.org>
2020-12-15 04:05:15 +03:00
bfb4142971 4.0.4-alt159
- rpmio: Lower memory limit on 32-bit systems for xz compression.
- rpmio: Make liblzma errors more verbose.
2020-12-13 02:35:44 +03:00
4d2baaf881 4.0.4-alt158
- Prevent exceeding 32 bit memory limitations with xz compression.
2020-12-10 19:15:42 +03:00
e434333b9a 4.0.4-alt157
- Add support and enable multi-threaded xz payload compression.
- Add affinity aware %getncpus macro.
- platform: change %__nprocs to use %getncpus instead of nproc(1).
2020-12-08 22:49:11 +03:00
459b3bc3f8 4.0.4-alt156
- debugedit: Do not 'edit_dwarf2' when just extracting build-id.
- debuginfo: Fix 'warning: File listed twice' for debug sources.
2020-11-15 17:55:01 +03:00
0993473ed3 4.0.4-alt155
- debugedit: Fix 'Unhandled relocation 0 in .debug_info section' on e2k.
- debuginfo: Fix source paths with `..` by creating appropriate empty dirs
  under `/usr/src/debug` tree (closes: #39175).
2020-11-12 22:24:18 +03:00
a2370b4983 4.0.4-alt154
- addReqProv: issue a warning and ignore self-provides,
  providePackageNVR already does the right thing.
2020-11-11 08:00:00 +00:00
a1f907ca9c 4.0.4-alt153
- debugedit: Copy debugedit with its tests from upstream.
2020-11-10 06:43:20 +03:00
08c5331f48 debugedit: Build newly imported debugedit 2020-11-09 23:07:25 +03:00
32943fad62 4.0.4-alt152
- debuginfo: Allow kbuilds with the output directory.
- debugedit: Fix 'canonicalization unexpectedly shrank by one character'
  (closes: #39184).
- brp-sign-kmodules: Sign kernel modules after kernel build.
2020-11-06 15:16:45 +03:00
0dafa18b37 4.0.4-alt151
- debuginfo: Do not try to use eu-elfcompress if it does not exist.
- debuginfo: Fix adding non-existent files into debuginfo package.
2020-08-28 03:09:00 +03:00
506c6c5e4d 4.0.4-alt150
- Removed obsolete ldconfig, update menu, and install info macros.
- Implemented canonicalization of symlink destinations.
- Backported:
  + added a warning on absolute symlinks;
  + disabled calculation of digests for ghost files.
2020-08-24 19:38:47 +00:00
89f9245180 4.0.4-alt149
- find-debuginfo-files: Fix processing of root directory (closes: #38842).
2020-08-24 22:38:47 +03:00
fe545f319e 4.0.4-alt148
- debuginfo: Warn if stripped ELFs are found.
- debuginfo: Implement %_stripped_files_terminate_build.
- debuginfo: Try to uncompress if debugedit failed to extract sources.
2020-08-23 17:02:24 +03:00
5b7f0b0e50 4.0.4-alt147
- debuginfo: Show warnings if .debug sections are absent.
2020-08-21 23:38:49 +03:00
0175090680 4.0.4-alt146
- brp-debuginfo: Re-enable processing of kernel modules.
- debuginfo.req: Fix 'vmlinux' processing error on ppc64le.
- process-debuginfo: Do not call eu-elfcompress if it doesn't exist.
2020-07-09 19:23:18 +03:00
3d92ea81b8 4.0.4-alt145
- brp-debuginfo: fixed regression (in handling of packages containing
  ELF relocatable objects) introduced in 4.0.4-alt142.
2020-07-08 08:00:00 +00:00
6eb60d94cf 4.0.4-alt144
- debuginfo: Fix processing of hard-linked binaries.
2020-07-07 13:44:54 +03:00
3cc270f50e 4.0.4-alt143
- debuginfo: Improve search for vmlinux binary.
2020-07-07 02:10:01 +03:00
3bd1e2675b 4.0.4-alt142
- Generate debuginfo for kernel packages.
- Process debuginfo in parallel using process-debuginfo script.
- debugedit -n to avoid recomputing build-id.
2020-07-06 08:48:55 +03:00
Ivan Zakharyaschev
019977a4d4 4.0.4-alt141
- Added /usr/lib/rpm/armv8l-alt-linux/macros for builds on armv8l machines.
  (Fixes 4.0.4-alt108:
  - installplatform, rpmrc.in: made armv8l compatible with armh.)
2020-07-03 14:42:32 +03:00
Ivan Zakharyaschev
d86252b853 checkinstall subpkg: add the new quick rpminstall-tests-archcompat-checkinstall 2020-07-03 14:42:32 +03:00
Andrew Savchenko
7f9d1409c8
4.0.4-alt140
- Export FCFLAGS as modern FFLAGS replacement for gfortran.
2020-05-29 11:50:29 +03:00
48b14cf1b8 4.0.4-alt139
- ldd.in: made preloading of PIE objects work again.
- Set the value of SOURCE_DATE_EPOCH environment variable (if any)
  as the source package buildtime.
2020-04-21 17:37:55 +00:00
Alexey Tourbin
7c77534fe7 4.0.4-alt138
- find-package, shebang.req: introduced RPM_FINDPACKAGE_MANDATORY=1.
  When an interpreter is invoked by name, as in "#!/usr/bin/env python32",
  and is missing, this will now force the dependency on /usr/bin/python32.
2020-04-07 11:11:19 +03:00
6c3490a2cf 4.0.4-alt137
- Fixed %autopatch and %patch regression introduced in previous release.
2020-01-04 10:43:44 +00:00
6da99494b5 4.0.4-alt136
- Generate requirements on binaries used in systemd service files
  (by Anton V. Boyarshinov)
- Made %autopatch and %patch accept -pg (by Vladimir D. Seleznev).
- Fixed build with new gettext.
2020-01-03 19:33:48 +00:00
a7ed02398b spec: fix license tags 2020-01-03 19:33:48 +00:00
915bc8b5ff spec: remove %if 0'd parts
... because they confuse rpmspec.
2020-01-03 19:33:48 +00:00
Anton V. Boyarshinov
54a2ca259c Auto-requies on binaries used in systemd .service files added 2019-12-26 14:09:03 +00:00
b0a545f593 4.0.4-alt135
- Fixed build with glibc >= 2.28.
2019-11-24 11:58:18 +00:00
9977eae223 4.0.4-alt134
- Backported RPMTAG_VCS support from rpm.org.
2019-11-01 16:16:23 +00:00
ee9e17c3ad 4.0.4-alt133
- Added %autopatch support.
2019-10-03 21:19:34 +03:00
Gleb Fotengauer-Malinovskiy
ba5873f889 4.0.4-alt132
- Added %_pointer_size, %_is_ilp32, and %_is_lp64 macros.
2019-05-11 17:26:56 +03:00
9b9737913f 4.0.4-alt131
- Fixed syntax check regression introduced in the latest release.
2019-04-19 05:10:27 +00:00
d21fe32b27 4.0.4-alt130
- %configure: added --disable-silent-rules.
- Disallowed Provides specifying version ranges.
- Disallowed syntax errors in qualifiers of Requires and BuildRequires tags.
2019-04-16 18:46:34 +00:00
Ivan Zakharyaschev
52a00bd293 4.0.4-alt129
- Fixed deps optimization "due to repentancy": if subpkg A requires subpkg B,
  and B has a dependency on C, a weaker dependency on C is removed from A
  (say, without an epoch or disttag).
2019-02-27 07:30:19 +03:00
Ivan Zakharyaschev
b2e5528c36 4.0.4-alt128
- Reverted one of the changes (for disttag-unaware tools compatibility)
  from 4.0.4-alt127 (useful in rare cases, but bad for external dependencies
  on virtual Provides when interpreted by the old rpm):
  + %EVR macro (for intersubpackage deps) upgraded to include %disttag
- Always fix interpackage deps that need Epoch or Disttag (ALT#36180).
  (This completes the improvement of 4.0.4-alt100.63.)
- Made deps optimization more aware of disttag:
  + build/reqprov.c: made addReqProv() aware of the disttag of
    the package (affects deps optimization).
  + add disttag to struct availablePackage (like buildtime; affects
    rpm -U & interdep.c)
  [rpm-4.13.0.1-alt5 alike]
  + Implemented DistTag support when comparing package versions (with
    help by Vladimir D. Seleznev).
  [rpm-4.13.0.1-alt6 alike]
  + rpmEVRcmp() (and hence rpmRangesOverlap()) made asymmetric w.r.t.
    underspecified release. (Provides: N = V can't anymore satisfy
    Requires: N = V-R.) (with help of Vladimir D. Seleznev)
2019-02-26 23:27:17 +03:00
Ivan Zakharyaschev
475e2b6865 (.spec) listed most source code changes in the changelog 2019-02-26 23:19:51 +03:00
Ivan Zakharyaschev
fa7947df25 4.0.4-alt128 [rpm-4.13.0.1-alt5 alike]
- Implemented DistTag support when comparing package versions (with
  help by Vladimir D. Seleznev). (It's necessary for the correctness
  of checking dependencies after we introduced parseEVRD().)
  (Affects rpmbuild, too, when optimizing deps.)
- Dirty hacked to make upgrade packages between branches possible (by
  Vladimir D. Seleznev; probably, dead code for rpm-build without rpm-install.)
[rpm-4.13.0.1-alt6 alike]
- rpmEVRcmp() (and hence rpmRangesOverlap()) made asymmetric w.r.t.
  underspecified release. (Provides: N = V can't anymore satisfy
  Requires: N = V-R. Affects rpmbuild, too, when optimizing deps.)
  (with help of Vladimir D. Seleznev)
- rpmRangesOverlap() optimized (can run ca. 30% faster).
2019-02-26 22:17:52 +03:00
Ivan Zakharyaschev
ee2e436b00 Merge branch 'predisttag-fixes' into _BUILD/alt
# Conflicts:
#	rpm-4_0.spec
2019-02-26 22:17:43 +03:00
Ivan Zakharyaschev
bb367d71cc (.spec) typo 2019-02-26 22:15:18 +03:00