Commit Graph

565 Commits

Author SHA1 Message Date
Alexey Tourbin
91d73ac0ae find-package: prune generic devel deps like gcc4.x in HOST_PKG mode 2011-02-27 06:29:15 +03:00
Alexey Tourbin
3df5f4ac6d cpp.req: try to enter c++ mode after the first failure 2011-02-27 05:34:23 +03:00
Alexey Tourbin
5bce334b5e cpp.req: new dependency generator for header files 2011-02-27 03:51:26 +03:00
Alexey Tourbin
a9278eb466 Revert "pkgconfig.req: pass --print-requires-private to pkg-config"
This reverts commit 2fc9a40da8.
2011-02-27 03:39:08 +03:00
Alexey Tourbin
9b87852e0f shell.req: avoid 'type -t' call for paths
This is to improve 'buildreq -bi' support: 'type -t' will stat
absolute paths and buildreq will make self-dependency.  Note
that in the next command PATH is nullified to avoid stat/search
for regular commands.
2011-02-09 06:31:40 +03:00
Alexey Tourbin
0cf73c5886 lib.req, lib.prov: simplify leading number check in ProvidedSymbols 2011-02-06 03:42:15 +03:00
Alexey Tourbin
a405f7c61e lib.req: indirect functions need dependency on rtld(GNU_IFUNC) 2011-02-06 03:38:32 +03:00
Alexey Tourbin
033bb95511 brp-debuginfo: pass LD_ORIGIN_PATH=/usr/bin to eu-strip
This is the same as with eu-findtextrel and eu-elflint; eu-strip
needs to load EBL backend only with --strip-debug, though.
2011-02-05 23:34:11 +03:00
Alexey Tourbin
c1cccab3d8 debuginfo.req: avoid repeated "not yet debuginfo-enabled" warnings 2011-02-05 04:11:46 +03:00
Alexey Tourbin
91656ccf79 brp-debuginfo: hopefully fixed hardlink support
Note that 'sh -e' mode is unreliable when the last pipeline command
is non-simple command (such as while loop).  So the script was somehow
failing on hardlinks and it went unnoticed.  I choose to replace
pipe-to-while with a temporary file for now.
2011-02-05 01:27:25 +03:00
Alexey Tourbin
614b27b4d1 brp-debuginfo: added /usr/src to prune_paths 2011-02-05 01:27:23 +03:00
Alexey Tourbin
83147e6c03 implemented debuginfo.req and debuginfo.prov 2011-02-04 02:55:25 +03:00
Alexey Tourbin
845fefb64f brp-debuginfo: recognize $RPM_BRP_STRIP_DEBUG and $RPM_BRP_STRIP_NONE
This finally provides missing strip controls.  Note that even with
STRIP_NONE, the file will be edited with debugedit.  So there is no
way to bypass brp-debuginfo completely (and maybe we should tolerate
debugedit failures with STRIP_NONE).  But there is also an advantage:
/usr/src/debug sources will be installed even for non-stripped files!
This is why sources are now associated with .debuginfo/src/"$f"
instead of .debuginfo/src/"$debugf".
2011-02-03 11:30:45 +03:00
Alexey Tourbin
f90e69d3f1 find-debuginfo-files: create /usr/lib/debug/.build-id/ links
It might seem that build-id links should be created in brp-debuginfo.
However, there are corner cases: in brp-debugino, it is not yet known
which files are going to be packaged.  This might be a problem when a
few identical files or hardlinks are created under buildroot: it is
possible create a symbolic link to a "wrong" file which will not be
packaged.

The solution is create build-id links in find-debuginfo-files: the link
will point to the first packaged file with the given build-id.  However,
note that find-debuginfo-files is not part of the install stage, and
should remain "reenterable" (so that e.g. rpm -bl can be executed
multiple times).  This means that the script should not make assumptions
whether the links have already been created.
2011-02-03 09:07:54 +03:00
Alexey Tourbin
3132ca2851 4.0.4-alt100.15
- build/files.c (runPkgScript): New helper function for autodep-like scripts.
- build/files.c (makeDebugInfo): Implemented automatic *-debuginfo packages.
- find-debuginfo-files: Initial revision, makes *-debuginfo %files list.
- GROUPS: added Development/Debug.
- build/interdep.c: Initial revision, inter-package analysis and optimizations.
- build/interdep.c: Prune /usr/src/debug dups among dependent subpackages.
2011-01-31 07:34:46 +03:00
Alexey Tourbin
f0be1f05f3 find-debuginfo-files: make %dir list for /usr/lib/debug and /usr/src/debug 2011-01-31 03:31:12 +03:00
Alexey Tourbin
88e69e89fd find-debuginfo-files: initial revision 2011-01-31 03:24:01 +03:00
Alexey Tourbin
0f284964f3 4.0.4-alt100.14
- debugedit.c: Imported from rpm.org.
- brp-debuginfo: Initial revision, replaces brp-strip.
- verify-elf: Do not descend into /usr/lib/debug.
- build/checkFiles.c: Skip /usr/lib/debug and /usr/src/debug for now.
- platform.in: Always use -g in %optflags.
2011-01-30 04:20:31 +03:00
Alexey Tourbin
f41c1bffca brp-debuginfo: preserve timestamps 2011-01-30 03:35:57 +03:00
Alexey Tourbin
4bdee95777 brp-debuginfo: handle sources 2011-01-30 03:32:08 +03:00
Alexey Tourbin
78a1d2b844 brp-debuginfo: make symbolic links 2011-01-30 03:32:06 +03:00
Alexey Tourbin
e0572f5d41 verify-elf: do not descend into /usr/lib/debug 2011-01-30 03:11:30 +03:00
Alexey Tourbin
f13cfad5f8 brp-debuginfo: intial revision, replaces brp-strip 2011-01-30 03:10:15 +03:00
Alexey Tourbin
d3c57d3ee4 build/checkFiles.c: reimplemented checkFiles() using fts(3) 2011-01-15 11:48:33 +03:00
0d030af93f find-lang (FIND_MAN): support man page paths with more than one symbol after dot (ALT#24466) 2010-11-01 22:36:09 +00:00
2fc9a40da8 pkgconfig.req: pass --print-requires-private to pkg-config 2010-11-01 20:53:06 +00:00
Alexey Tourbin
558c99596f lib.req: added missing LC_ALL=C for fgrep 2010-10-12 03:26:25 +04:00
Alexey Tourbin
6a547aefef lib.req, lib.prov: added ENABLE_SET_VERSIONS=1 flag 2010-10-12 03:24:19 +04:00
Alexey Tourbin
34f4788fb2 scripts/functions: invoke av_action with </dev/null 2010-10-04 02:13:53 +04:00
Alexey Tourbin
49066900de lib.req: updated underlinking check for file-level dependencies 2010-10-04 00:08:27 +04:00
Alexey Tourbin
d1ced258db lib.req: implemented set-versions for soname dependencies 2010-10-01 08:48:48 +04:00
Alexey Tourbin
e1970e44d5 lib.prov (SuggestBPP): minor glitch in description 2010-10-01 08:30:45 +04:00
Alexey Tourbin
dee07e402b ldd.in: added --bindings option 2010-10-01 01:57:35 +04:00
Alexey Tourbin
973e4d19b3 lib.req: reindented, no changes 2010-09-30 17:16:12 +04:00
0b8394d51d 0common-files.req.list: add /lib64/udev and /lib64/udev/rules.d
Neither /lib64/udev nor /lib64/udev/rules.d is going to be provided.
These lines will just result to unmet requirements.
2010-09-24 10:46:36 +00:00
bec54ac071 0common-files.req.list: add /etc/sysctl.d 2010-09-24 10:22:39 +00:00
b55f8b12a5 0common-files.req.list: add /lib/udev/rules.d 2010-09-24 09:39:42 +00:00
Alexey Tourbin
49950b83b6 brp-cleanup: updated for /usr/lib64/perl5 and /usr/share/perl5 2010-09-19 09:58:12 +04:00
Alexey Tourbin
e70027f478 lib.prov: implemented soname set-versioning with exported symbols 2010-09-11 02:32:12 +04:00
Alexey Tourbin
5f10a0f256 lib.prov: reindented, minor changes 2010-09-11 02:20:58 +04:00
d44677b913 shebang.req (ShebangReq): fix the check for absolute pathname (ALT#23716) 2010-07-03 00:23:03 +00:00
7b74686984 shebang.req (ShebangReq): ensure that interpreter is specified as an absolute pathname (ALT#20096) 2010-07-01 16:14:06 +00:00
cd86fe2063 pkgconfig.req (PkgconfigReqProv): relax version check 2010-07-01 13:23:01 +00:00
8b818f6df4 brp-verify_elf: disable lint check on ARM 2010-04-14 14:38:27 +00:00
Alexey Tourbin
16fc089388 find-requires, find-scriptlet-requires: enabled FINDPACKAGE-COMMANDS output 2010-04-08 11:24:58 +04:00
Alexey Tourbin
843562f82b find-package: introduced RPM_FINDPACKAGE_COMMANDS_LOG 2010-04-08 11:24:57 +04:00
Alexey Tourbin
959c18fe5e find-package: renamed FindByPath -> FindByFile 2010-04-08 11:24:55 +04:00
Alexey Tourbin
48c22c9ff9 shell.req: fixed English 2010-04-08 11:24:54 +04:00
Alexey Tourbin
4e9dcb1346 shell.req: removed $sh --rpm-requires test 2010-04-08 11:24:52 +04:00
Alexey Tourbin
859a56a738 shell.req: reverted extra "functions vs executable" diagnostics 2010-04-08 11:24:51 +04:00
Alexey Tourbin
3223ba1c5d brp-strip: select ELF files and .a archives with single file(1) invocation
Tested with gnome-icon-themes-oxygen-refit2-2.3-alt1.src.rpm.
Old result: 25 seconds, new result: 3 seconds.
2010-03-27 00:00:28 +03:00
f7132135d3 lib.req: Recognize STB_GNU_UNIQUE symbols and add rtld(GNU_UNIQUE) requirement for objects that contain such symbols 2010-01-12 23:39:02 +00:00
Alexey Tourbin
44557d20ee brp-bytecompile_python: updated copyright statement 2009-12-21 03:43:28 +03:00
Alexey Tourbin
7cb73452f0 brp-bytecompile_python: hadlink indentical .pyc and .pyo files 2009-12-21 03:42:38 +03:00
d908f56dc4 brp-verify_elf: Set default lint mode to "relaxed", add "default" mode 2009-12-20 17:03:20 +00:00
77c93a9c97 verify-elf: Omit duplicate lines from eu-findtextrel's output 2009-12-20 15:25:02 +00:00
82fcd333bb brp-verify_elf: Fix typo introduced by commit 7d83e49285 2009-12-20 15:10:49 +00:00
Alexey Tourbin
e845c7f14b verify-elf: fixed typos in VERIFY_ELF_RPATH test
Since "RPATH containts :" test never worked, I downgrade it
to a warning.
2009-12-20 01:45:23 +03:00
Alexey Tourbin
b3b979a6f2 brp-alt: execute brp-strip before brp-verify_elf
There are two reasons:
1) It is better to verify final ELF objects just as they are packaged.
2) Older eu-elflint barks at unstripped binaries like this:
section [ 8] '.comment' has wrong flags: expected none, is MERGE|STRINGS
This seems to be fixed in elfutils 0.143-alt1, but otherwise that could
be a major problem.
2009-12-19 03:25:53 +03:00
Alexey Tourbin
cb4fcda459 brp-verify_elf, verify-elf: updated copyright statement 2009-12-19 03:25:52 +03:00
Alexey Tourbin
51f460bb75 verify-elf: simplifed prefix/rc expressions 2009-12-19 03:25:51 +03:00
Alexey Tourbin
e8e60796bb verify-elf: use eu-findtextrel to provide better TEXTREL diagnostics 2009-12-19 03:25:51 +03:00
Alexey Tourbin
7d83e49285 verify-elf: implemented new "lint" method using "eu-elflint --gnu-ld" 2009-12-19 03:25:23 +03:00
Alexey Tourbin
e6683d0de4 brp-verify_elf, verify-elf: simplify VERIFY_ELF_* parameter passing 2009-12-18 22:55:46 +03:00
Alexey Tourbin
f82116d5f9 brp-verify_elf: select ELF files with signle file(1) invocation
Also, move RPM_VERIFY_ELF_SKIPLIST logic from verify-elf to
brp-verify_elf, since RPM_VERIFY_ELF_TOPDIR is already there.
Normally, verify-elf should be a standalone program (available
for users).  It's just not quite ready yet.
2009-12-18 22:52:34 +03:00
Alexey Tourbin
4c4d73c44e 4.0.4-alt98.21
- rpmio, rpmbuild: Added support for .xz/.lzma compressed sources and patches.
- Removed old scripts in /usr/lib/rpm.
2009-09-29 16:38:57 +04:00
Alexey Tourbin
f68c71a2d5 4.0.4-alt97.M50.18
- rpmio, rpmbuild: Added support for .xz/.lzma compressed sources and patches.
- Removed old scripts in /usr/lib/rpm.
2009-09-29 16:30:39 +04:00
Alexey Tourbin
1ccf0dd03c 4.0.4-alt95.M41.28
- rpmio, rpmbuild: Added support for .xz/.lzma compressed sources and patches.
- Removed old scripts in /usr/lib/rpm.
2009-09-29 16:20:33 +04:00
Alexey Tourbin
1ef7949b93 scripts/Makefile.am: tweak to facilitate merging 2009-09-29 15:31:32 +04:00
Alexey Tourbin
6795a36bb1 great removal 2009-09-29 15:29:52 +04:00
Alexey Tourbin
295cc50be1 4.0.4-alt98.19
- rpmio: Updated lzma compression routines for xz-5.0 API.
- Packaged /usr/bin/rpm2cpio.static.
2009-09-24 12:49:32 +04:00
Alexey Tourbin
79be480d0e 4.0.4-alt97.M50.16
- rpmio: Updated lzma compression routines for xz-5.0 API.
- Packaged /usr/bin/rpm2cpio.static.
2009-09-24 12:48:17 +04:00
Alexey Tourbin
776a15f6b8 4.0.4-alt95.M41.25
- rpmio: Updated lzma compression routines for xz-5.0 API.
- Packaged /usr/bin/rpm2cpio.static.
2009-09-24 12:46:31 +04:00
Alexey Tourbin
9abb0ba661 rpm2cpio.sh: output raw/compressed cpio stream 2009-09-24 12:35:42 +04:00
Alexey Tourbin
642df51ba8 4.0.4-alt98.16
- find-package: Removed contents_index_all search, enabled file-level dependencies.
2009-07-01 23:11:36 +04:00
Alexey Tourbin
1d6c258d06 4.0.4-alt97.M50.14
- find-package: Removed contents_index_all search, enabled file-level dependencies.
2009-07-01 23:09:48 +04:00
Alexey Tourbin
70ab659464 find-package: changed "not found" diagnostics to "not installed" 2009-07-01 23:04:32 +04:00
Alexey Tourbin
a55bb554aa find-package: removed contents_index_all and APT-friendly stuff 2009-07-01 23:04:24 +04:00
3b7f90e0ee brp-cleanup.in: Replace "subst -p" with "sed -i", change PAM spacing 2009-06-26 21:29:58 +00:00
d89c43384b brp-cleanup.in: Replace PAM include syntax with PAM substack 2009-06-26 20:12:52 +00:00
8a14e46491 pam.req.in: Handle lines with conditional controls 2009-06-26 00:17:19 +00:00
53ca55db87 pam.req.in: Handle lines with leading whitespaces 2009-06-26 00:11:56 +00:00
8adbd523fb pam.req.in: Cleanup: "sed -ne" -> "sed -n" 2009-06-26 00:10:17 +00:00
eef44cccfc pam.req.in: Add optional modules support 2009-06-26 00:09:07 +00:00
Alexey Tourbin
d4327f8968 4.0.4-alt98.14
- shell.req.files: Adjusted /bin/ash script detection.
2009-06-21 00:22:58 +04:00
Alexey Tourbin
d33024c1fe 4.0.4-alt97.M50.13
- shell.req.files: Adjusted /bin/ash script detection.
2009-06-21 00:21:56 +04:00
Alexey Tourbin
b4bb9944c6 shell.req.files: adjusted /bin/ash pattern
file(1) sucks here, but we should handle one more common case.

$ file - <<<'#!/bin/ash'
/dev/stdin: a /bin/ash script text executable
$ file - <<<'#!/bin/ash -efu'
/dev/stdin: a /bin/ash -efu script text executable
$ file - <<<'#!/bin/ash  -efu'
/dev/stdin: a /bin/ash  -efu script text executable
$ file - <<<'#! /bin/ash  -efu'
/dev/stdin: a /bin/ash  -efu script text executable
$ file - <<<'#!  /bin/ash  -efu'
/dev/stdin: script text executable for  /bin/ash  -efu
$
2009-06-21 00:20:31 +04:00
db3de70e0a Implement info files verification 2009-05-20 23:25:58 +00:00
213e004614 scripts/brp-compress.in: Avoid non-standard info directories (ALT#19993) 2009-05-20 21:51:11 +00:00
Alexey Tourbin
d7abcfb9dc 4.0.4-alt98.5
- rpmdb: Removed db1 support.
- db3.c (db3close): Backported fix for double close (RH#138589).
2009-04-23 17:51:22 +04:00
Alexey Tourbin
4ea6d71109 4.0.4-alt97.M50.6
- rpmdb: Removed db1 support.
- db3.c (db3close): Backported fix for double close (RH#138589).
2009-04-23 17:49:25 +04:00
Alexey Tourbin
fcf51a9c59 4.0.4-alt95.M41.17
- rpmdb: Removed db1 support.
- db3.c (db3close): Backported fix for double close (RH#138589).
2009-04-23 17:31:39 +04:00
Alexey Tourbin
af4053bfa0 rpmdb: removed db1 support 2009-04-23 13:49:52 +04:00
93430b8c85 4.0.4-alt98.4
- rpm.8: Fixed typo (closes: #19356).
- platform.in: Added macros: %_logrotatedir, %_runtimedir (closes: #13639).
- Dropped deprecated RPMTAG_RHNPLATFORM support.
- Dropped unused RPMTAG_PLATFORM support.
- rpmVersionCompare(): Added handling of omitted tags.
- rpmevrcmp: Changed to use rpmVersionCompare() instead of rpmEVRcmp().
- 0common-files.req.list: Added /etc/X11/wms-methods.d (Igor Vlasenko).
2009-04-18 20:34:48 +00:00
Igor Vlasenko
9d17c0b879 0common-files.req.list: Add /etc/X11/wms-methods.d (xinitrc) 2009-04-09 21:11:19 +00:00
840e9d57e2 0common-files.req.list: Remove /etc/tex-fonts.d
Prepare /etc/tex-fonts.d migration from tetex-core to tex-common.
2009-02-19 23:02:13 +00:00
f8fb514ad6 Revert "rpmlib.req: generate rpmlib(PosttransFiletriggers) dependency for /usr/lib/rpm/*.filetrigger"
Disable automatic rpmlib(PosttransFiletriggers) requirements for M41.

This reverts commit 3a9f159460.
2008-11-25 15:37:14 +00:00
d975fc66c1 Introduce /usr/lib/rpm/macros.d/ (ALT#17948) 2008-11-21 00:25:45 +00:00
8b91f45651 0common-files.req.list: Add /etc/sysconfig/limits.d (service) 2008-11-13 01:48:58 +03:00
1a9569d6ec Revert "verify-elf.in: PIE executables on ARM always has TEXTREL, do not check them"
PIE support without TEXTRELs on ARM was implemented in glibc-2.8.90-alt3,
for details see http://lists.altlinux.org/pipermail/devel/2008-November/162638.html

This reverts commit 816b34cd86.
2008-11-13 01:48:58 +03:00
Alexey Tourbin
3c75eaca60 4.0.4-alt96.11
- implemented post-transaction filetriggers, loosely based on filetriggers.patch
  from Mandriva Linux (see %_rpmlibdir/posttrans-filetriggers for details)
- implemented %_rpmlibdir/0ldconfig.filetrigger, so that packages with
  shared libraries need not to invoke ldconfig(1) in they %%post-scriptlets
- rpmlib.req: automatically generate rpmlib(PosttransFiletriggers) dependency
  for packages which provide %_rpmlibdir/*.filetrigger programs
2008-11-13 01:01:07 +03:00
Alexey Tourbin
3a9f159460 rpmlib.req: generate rpmlib(PosttransFiletriggers) dependency for /usr/lib/rpm/*.filetrigger 2008-11-13 00:57:57 +03:00
Alexey Tourbin
4acd4051a0 4.0.4-alt95.M41.6+
- implemented post-transaction filetriggers, loosely based on filetriggers.patch
  from Mandriva Linux (see %_rpmlibdir/posttrans-filetriggers for details)
- implemented %_rpmlibdir/0ldconfig.filetrigger, so that packages with
  shared libraries need not to invoke ldconfig(1) in they %%post-scriptlets
2008-11-13 00:55:42 +03:00
Alexey Tourbin
f7593429ff posttrans-filetriggers: minor changes 2008-11-12 05:10:51 +03:00
Alexey Tourbin
b97cda599e 0ldconfig.filetrigger: simplified system library check 2008-11-12 05:10:51 +03:00
Alexey Tourbin
a70594a4a3 0ldconfig.filetrigger: execute "/sbin/update_chrooted lib" for /lib and /lib64 2008-11-12 05:10:51 +03:00
Alexey Tourbin
639f3382c9 0ldconfig.filetrigger: new script 2008-11-12 05:10:51 +03:00
Alexey Tourbin
ed6095e54a posttrans-filetriggers: better description 2008-11-12 05:10:11 +03:00
Alexey Tourbin
4ada155008 implemented posttrans filetriggers, vaguely based on Mandriva patch 2008-11-12 05:10:11 +03:00
5426c19c5b fixup-libraries: Enhance recognition of ELF executables
According to /usr/lib/ldscripts/elf_*,
- every ELF executable linked by GNU ld using one of default linker
scripts contains .interp section;
- every ELF shared library linked by GNU ld using one of default linker
scripts does not contain .interp section.
2008-10-19 23:56:49 +00:00
213c77b2d2 scripts/brp-cleanup.in: Remove .gitignore files as well 2008-10-17 14:46:22 +00:00
Alexey Tourbin
e4ee0c28f8 4.0.4-alt96.7
- build/reqprov.c: when folding duplicate dependencies, Requires(pre)
  or Requires(post) should not opimitze out bare Requires
- build/files.c: execute find-requires before find-scriptlet-requires
- 0common-files.req.list: added /etc/rc.d/init.d (service)
2008-10-06 10:00:15 +04:00
Alexey Tourbin
bcb791335c 0common-files.req.list: added /etc/rc.d/init.d (service) 2008-10-06 09:55:35 +04:00
Alexey Tourbin
5afc5290c7 shebang.req: fixed typo in description, spotted by Slava Semushin 2008-10-02 16:04:18 +00:00
Alexey Tourbin
3b148e0821 shebang.req: fixed typo in description, spotted by Slava Semushin 2008-09-16 15:20:36 +04:00
Alexey Tourbin
fc4b584b3d 4.0.4-alt96.4
- shebang.req: check for trailing <CR> in interpreter path or name;
  also, validate argc, since neither execve(2) nor env(1) split arguments
2008-09-14 13:20:11 +04:00
Alexey Tourbin
d0c2f92f05 shebang.req: validate argc and <CR>
1) In Linux, execve(2) does not split shebang arguments, which implies
that effectively only one argument can be passed to the interpreter.
However, some interpreters, esp. perl, can do a magic here, which is
to split its arguments.

2) Neither /usr/bin/env can split arguments, and no magic is possible
at all.

3) Interpreter path (or name) must not end with <CR>, otherwise execve
(resp. /usr/bin/env) is deemed to fail.  However, some interpreters,
esp. perl, can strip trailing <CR> in its command line options.
2008-09-14 13:17:22 +04:00
faa42cb00e find-lang: Update usage (Slava Semushin; closes: ALT#15492) 2008-08-29 13:54:04 +00:00
Alexey Tourbin
b46be108bd find-package: updated check for file path components being alternatives 2008-08-19 23:58:39 +04:00
77a7f3cc55 Merge branch 'altlinux-4.0'
Conflicts:

	rpm-4_0.spec
2008-07-08 17:57:45 +00:00
af29ee4d70 fixup-libtool, fixup-pkgconfig: Quote substitution text (ALT#11437) 2008-07-07 22:07:40 +00:00
Alexey Tourbin
362a93334a lib.req: use CanonPath() to deal with RPATH like $ORIGIN/../lib 2008-07-07 02:23:34 +04:00
Alexey Tourbin
571a12cbdd files.req: added description and copyright 2008-06-22 11:52:53 +04:00
Alexey Tourbin
92b666e6b3 0common-files.req.list: added package names (for ownership check) 2008-06-22 10:48:19 +04:00
Alexey Tourbin
dae2eb7249 files.req: reserve second field in *-files.req.list for owner package name 2008-06-17 08:05:10 +04:00
Alexey Tourbin
c4f579077e files.req: modular /usr/lib/rpm/*-files.req.list with longest match 2008-06-16 13:05:37 +04:00
Alexey Tourbin
06bf496189 find-package (FindByName): set RPM_FINDPACKAGE_HOST_PKG_NAMES=1 for host-system lookup
This should affect dependencies only when no contents_index_bin is available.
After "APT-freindly" logic was introduced, host-system lookup always yields
file paths, but we want package names (except for alternatives etc.).

(old behaviour)
$ sh -c '. /usr/lib/rpm/find-package; FindPackage script perl'
/usr/bin/perl
$

(new behaviour)
$ sh -c '. ./scripts/find-package.in; FindPackage script perl'
perl-base
$
2008-06-14 22:34:43 +04:00
Alexey Tourbin
7d605fbd96 pkgconfiglib.req: use RPM_FINDPACKAGE_HOST_PKG_NAMES=1; removed glibc-devel optimization 2008-06-14 22:34:02 +04:00
Alexey Tourbin
737b8a005b find-package: introduced RPM_FINDPACKAGE_HOST_PKG_NAMES 2008-06-14 22:15:05 +04:00
Alexey Tourbin
d7dbd5f2ff find-{provides,requires,scriptlet-requires}: report method failures 2008-06-04 03:26:23 +04:00
Alexey Tourbin
4a557675fc Merge branch 'altlinux-4.0' 2008-05-30 22:25:55 +04:00
Alexey Tourbin
dbfaf59314 scripts/rpm2cpio.sh: deal with decompressors 2008-05-24 20:24:39 +04:00
Alexey Tourbin
d1aea84b93 scripts: use 'chmod -c' 2008-05-05 02:36:14 +04:00
Mikhail Gusarov
dda9979823 Removing .cvsignore files during brp-cleanup as well. 2008-04-10 00:48:26 +07:00
Alexey Tourbin
47bd8eff65 shebang.req: don't read the whole script
$ (echo '#!/usr/bin/perl'; cat /dev/zero) |sed -n '1s|^#![[:space:]]*/|/|p;q'
/usr/bin/perl
$
2008-04-01 15:33:19 +04:00
Alexey Tourbin
eb301af2f4 lib.req: do not optimize dependencies on standard ELF interpreter 2008-03-17 21:07:06 +03:00
f1ed4d2bdd scripts: Replace paths to basic programs with their names
Absolute pathnames in shell scripts are redundant, $PATH is enough.
2008-02-29 12:30:29 +00:00
10a67f5ef4 Revert "find-package (FindByPath): optimize out /bin/sh /bin/cat etc."
This reverts commit 54e8a1cff1.
2008-02-27 15:08:12 +00:00
86452d3194 Revert "find-package (FindByName): optimize out sh cat etc."
This reverts commit a93f78c60a.
2008-02-27 15:06:08 +00:00
63003fbeb9 Fix typos 2008-02-25 20:07:05 +00:00
816b34cd86 verify-elf.in: PIE executables on ARM always has TEXTREL, do not check them 2008-02-24 23:10:38 +00:00
Alexey Tourbin
3b998b2e3c Merge branch 'master' of git.alt:/people/ldv/packages/rpm 2008-02-23 08:23:37 +03:00
c20d7af1d2 pam.req.in: Add substack support 2008-02-22 22:38:08 +00:00
Alexey Tourbin
810f4045ed find-package: removed findpackage_xbroot stuff 2008-02-19 06:29:30 +03:00
Alexey Tourbin
e0598b6fe3 functions (ValidateBuildRoot): require canonical RPM_BUILD_ROOT
Some scripts like lib.req rely on the fact that RPM_BUILD_ROOT
should not end with trailing slashes or something.  Other
scripts like find-package explicitly assume that RPM_BUILD_ROOT
can be relocated within filesystem; they use something like
"real_buildroot" variables.  The code gets complicated,
fragile, and error-prone.

Therefore, guys, hereby I FORBID non-canonical RPM_BUILD_ROOT path.
Note that RPM_BUILD_ROOT actually does not have to exist.
This is another problem...
2008-02-19 06:28:14 +03:00
Alexey Tourbin
17b1c6b296 lib.req: return early if there is no dynamic section, to stop ldd failures with klibc executables
(before this commit)
$ ./scripts/lib.req.in /lib/mkinitrd/udev/lib/udev/usb_id
/lib/klibc-LqkyBjjvuUwwxYg5B9IteGNsWsI.so
ldd: ERROR: /lib/mkinitrd/udev/lib/udev/usb_id: trace failed
$

(after this commit)
$ ./scripts/lib.req.in /lib/mkinitrd/udev/lib/udev/usb_id
/lib/klibc-LqkyBjjvuUwwxYg5B9IteGNsWsI.so
$
2008-02-19 00:43:21 +03:00
Alexey Tourbin
e1bb17d070 lib.req.files: check "uses shared libs" as well as "dynamically linked", for klibc binaries 2008-02-19 00:22:23 +03:00
Alexey Tourbin
903c1810f3 lib.req: enabled ELF interp dependencies except for standard glibc's /lib*/ld-linux*.so.2 2008-02-18 22:31:29 +03:00
Alexey Tourbin
bf4a93fd36 s/\.packaged-files:/.files:/g 2008-02-18 18:26:21 +03:00
Alexey Tourbin
cb01bdf610 find-package (FindByName): buildroot topdir goes sbin-ish, for scriptlets 2008-02-02 01:21:10 +03:00