54 Commits

Author SHA1 Message Date
Panu Matilainen
72b3e9f38a Revert "make "canonicalization(...)shrank by one character" error message more usefull"
- The message is not about basedir and destdir, and printing them
  here only makes the message even more confusing than it was, eg:
      canonicalization unexpectedly shrank by one character \
          ('/home/pmatilai/rpmbuild/BUILD/' vs '/usr/src/debug/')
- This reverts commit 1eea433d9961d74dbc797cea7f9bfceab8c16a3e
2013-01-09 14:06:56 +02:00
thierry.vignaud@gmail.com
a6255b1e06 make "canonicalization(...)shrank by one character" error message more usefull
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
2012-11-01 11:14:54 +02:00
Panu Matilainen
bdc7bf646a Warn but dont fail the build on STABS debuginfo (RhBug:725378, others)
- debugedit doesn't support STABS but there are some crazy cases
  like PPC Linux kernel which contains both STABS and DWARF debuginfo
  sections, manually added. A better fix would be erroring out
  if we didn't find any usable debuginfo and warning otherwise but
  this at least folks get their kernels built.
2012-03-07 13:47:09 +02:00
Panu Matilainen
436aacdec1 Teach debugedit about .debug_macro dwarf section (RhBug:759272) 2011-12-02 12:11:48 +02:00
Jakub Jelinek
390d0acb79 Add DWARF-4 support to debugedit (RhBug:707677)
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
2011-06-17 16:40:20 +03:00
Panu Matilainen
ba3a76f737 Bail out of debuginfo if stabs format encountered (RhBug:453506)
- The previous "silently ignore" policy produces bogus debuginfo
  packages on some architectures and fails with other mysterious
  errors on others, better just fail hard until (if ever) somebody adds
  stabs support.
2011-05-24 17:23:37 +03:00
Panu Matilainen
a4a186ba20 Remove unused variable in debugedit 2011-03-04 14:50:30 +02:00
Anssi Hannula
51ee499614 debugedit: fix incorrect error messages regarding -b and -d 2010-09-01 10:01:13 +03:00
Roland McGrath
92fcba2a02 Make debugedit -i recompute build ID only when any DWARF was actually changed. 2010-05-11 15:09:53 +03:00
Roland McGrath
5eb7d2892e Whitespace fixups for tools/debugedit.c 2010-05-11 15:09:52 +03:00
Panu Matilainen
8f871dec97 Add debugedit support for DWARF-3 (RhBug:505774)
- patch from Jakub Jelinek
2009-06-16 13:52:43 +03:00
Panu Matilainen
51a7dfa6a5 Revert couple of checksum -> digest renames
- physical cpio header and elf header have checksums, not digests
  (from commit 7acdfded4a82e86a673418c3953aa6bf8106d313)
- doesn't affect functionality though
2009-03-19 10:15:49 +02:00
Jindrich Novy
15ab7857d0 Add md5->filedigest aliases (rhbz#487597)
- add %verify(nofiledigest) as %verify(nomd5) file attribute alias
- reference digests as digests not checksums
- make old md5 related symbols obsolete and use newer reference
- update man page accordingly
2009-02-27 14:34:39 +01:00
Panu Matilainen
29fdd1d3b2 Delay NSS initialization until actually used
- since NSS is allergic (ie becomes non-functional) after forking, delay
  it's initialization until really needed, ie lazy init in rpmDigestInit()
- however as NSS init can fail if attempted in completely empty chroot,
  we force crypto init to happen at transaction set create time, forking
  past that is pretty much doomed anyway
- this is the other half of the fix for rhbz#476737, and similar case
  noticed by Pixel in Mandriva (due to urpm forking)
2009-01-08 13:17:22 +02:00
Panu Matilainen
9982051c36 debugedit: Include empty CU current directories (rhbz#444310)
- patch from Jan Kratochvil
2008-06-27 15:15:46 +03:00
Panu Matilainen
ef63575463 Silence bogus warning on memset()
- gcc doesn't realize shrank == 0 would terminate the process via error()
  before reaching memset(), work around...
2008-05-05 08:15:17 +03:00
Panu Matilainen
b8068e7aee Minimally convert all pgpHexCvt() users to use pgpHexStr() instead 2008-04-07 13:26:46 +03:00
Panu Matilainen
690c1bf0e8 Remove now useless nested function in debugedit 2008-01-04 12:00:51 +02:00
Panu Matilainen
8099f213c2 More size_t type pedantry 2007-12-14 11:38:20 +02:00
Panu Matilainen
45547f2f34 Switch to <rpm/foo.h> style for public headers
- adjust include paths accordingly
2007-12-08 14:02:32 +02:00
Ralf Corsépius
17b52d5101 Eliminate type "byte" 2007-11-26 10:42:39 +01:00
Ralf Corsépius
194cb9c5a5 Expand private include file names to be relative to $(top_srcdir) 2007-11-23 11:47:48 +01:00
Ralf Corsépius
a8eef34020 Include system.h 2007-11-22 13:41:06 +01:00
Panu Matilainen
1f42ed6e33 Debugedit needs crypto initialization too.. 2007-11-15 15:16:10 +02:00
Panu Matilainen
afb00f0db4 Use NSS instead of beecrypt for encryption (Tomas Mraz) 2007-11-02 10:02:40 +02:00
Ralf Corsépius
4bd5cb406e Remove local def of uint32_t, uint16_t.
Include <stdint.h>.
Use size_t for sizes.
2007-10-29 08:22:15 +01:00
Ralf Corsépius
795e2fca3b Eliminate [u|]int_[8|16|32]. Use c99 stdint.h types instead. 2007-10-26 13:24:14 +02:00
Panu Matilainen
b15488347e debugedit mishandles empty DW_AT_comp_dir (Roland McGrath)
- fpc seems to produce DW_AT_comp_dir with value "" (empty string).
  This is dubious, but debugedit makes it even worse by getting confused by it.
2007-10-18 09:34:54 +03:00
Panu Matilainen
293fa6adfd debugedit mishandles DW_FORM_ref_addr (Roland McGrath) 2007-10-18 09:33:56 +03:00
Ralf Corsépius
4ca2f3ab12 Reformat call to poptGetContext for better source-code readability. 2007-09-17 04:31:28 +02:00
Panu Matilainen
a30c13b6e4 Debugedit fixes.
This makes debugedit's -l file get files that already match the -d rewrite
directory, not just those that match the -b build directory and get rewritten.

Patch from Roland McGrath
2007-09-04 08:19:03 +03:00
Panu Matilainen
2244f42872 Fix debugedit buildid thinko.
Patch from Roland McGrath
2007-08-12 15:27:46 +03:00
Panu Matilainen
9c81ddcc35 And one last debugedit fix...
Modern gcc doesn't like arithmetics on void pointers, cast where needed.
2007-07-12 14:36:49 +03:00
Panu Matilainen
e05f12f77d Silence the rest of ptr signedness issues in debugedit 2007-07-12 13:53:23 +03:00
Panu Matilainen
8622ba18df comp_dir doesn't need to be unsigned 2007-07-12 13:47:51 +03:00
Panu Matilainen
25ba118bcb Remove unused variable (debugedit) 2007-07-12 13:43:40 +03:00
Panu Matilainen
120db8334a Debugedit cleanup continued.
Cast to expected type on all uses of strchr()
2007-07-12 13:43:01 +03:00
Panu Matilainen
d17391e3e5 Debugedit cleanup continued.
Cast to expected types on all uses of has_prefix() canonicalize_path()
2007-07-12 13:41:18 +03:00
Panu Matilainen
47260b2de5 debugedit signedness fixes wrt strlen() 2007-07-12 13:37:32 +03:00
Panu Matilainen
fdff67da9c New debugedit option to recompute build ID (rhbz#246404)
Patch from Roland McGrath.
2007-07-04 15:11:27 +03:00
Paul Nasrat
ed3a264817 Fix debugedit for relative paths (#232222) 2007-04-23 10:49:31 +01:00
Paul Nasrat
76c58ff3e9 Fix for debugedit with ../../ in paths 2007-03-15 15:59:55 +00:00
Paul Nasrat
9dc95dc3e5 Fix debugedit for O0 2007-03-15 15:59:22 +00:00
Paul Nasrat
7e2fe52501 Fix up debuginfo for various issues - inc. libc-client debuginfo (rh#205339) 2007-03-15 15:58:27 +00:00
Paul Nasrat
8abf42c629 Fix for thinko in debugedit on ppc 2007-03-15 15:57:30 +00:00
jbj
412af49dc1 - fix: java compiled with -O0 confuses debugedit (#161722).
CVS patchset: 7873
CVS date: 2005/07/13 09:23:07
2005-07-13 09:23:07 +00:00
arekm
6d77e0a200 Fix help for list-file option.
CVS patchset: 7248
CVS date: 2004/05/20 21:30:00
2004-05-20 21:30:00 +00:00
jbj
6f5f71b7f5 - apply debugedit patch necessary to produce kernel -debuginfo files.
CVS patchset: 6933
CVS date: 2003/07/10 12:43:51
2003-07-10 12:43:51 +00:00
jbj
f87450e3a8 - fix: more debugedit.c problems.
CVS patchset: 6029
CVS date: 2003/01/27 17:45:53
2003-01-27 17:45:53 +00:00
jbj
2eb9a39856 - fix: debugedit.c problem.
CVS patchset: 6022
CVS date: 2003/01/22 19:21:23
2003-01-22 19:21:23 +00:00