[debian package] debugging

Pagina: 1
Acties:

  • Sir Isaac
  • Registratie: September 2002
  • Laatst online: 21-05-2025
Ik wil een debian package opnieuw bouwen met debugging support: apt-get source <package>, dan debian/rules aanpassen door de -g optie te toevoegen: "CFLAGS := -fPIC -g" Daarna "debuild -us -uc" en dan wordt het pakket gebakken. Maar achteraf blijkt dat debugging niet enabled is. Waar gaat dit mis?

  • Buffy
  • Registratie: April 2002
  • Laatst online: 26-12-2024

Buffy

Fire bad, Tree pretty

Staat er in de debian/rules niet een dh_strip commando?

That which doesn't kill us, makes us stranger - Trevor (AEon FLux)
When a finger points at the moon, the imbecile looks at the finger (Chinese Proverb)


  • Sir Isaac
  • Registratie: September 2002
  • Laatst online: 21-05-2025
Nee, maar debian/rules include wel debhelper.mk. In deze file staat:
code:
1
2
3
4
5
6
# This rule is called after installation and the post-install hooks,
# to strip files.
$(patsubst %,binary-strip/%,$(DEB_ARCH_REGULAR_PACKAGES)) :: binary-strip/%: common-binary-post-install-arch binary-strip-IMPL/%
$(patsubst %,binary-strip/%,$(DEB_INDEP_REGULAR_PACKAGES)) :: binary-strip/%: common-binary-post-install-indep binary-strip-IMPL/%
$(patsubst %,binary-strip-IMPL/%,$(DEB_PACKAGES)) :: binary-strip-IMPL/%:
        if test "$(is_debug_package)"; then :; else dh_strip -p$(cdbs_curpkg) $(foreach entry,$(DEB_STRIP_EXCLUDE),$(patsubst %,-X %,$(entry))) $(DEB_DH_STRIP_ARGS); fi


Kan ik een of andere optie in debian/rules zetten zodat dh_strip niet wordt aangeroepen?

  • Buffy
  • Registratie: April 2002
  • Laatst online: 26-12-2024

Buffy

Fire bad, Tree pretty

Je zult even moeten kijken waar de variable is_debug_package wordt gezet.
Waarschijnlijk staat daar een if-directory in de vorm van:
code:
1
 ifeq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))

Zodat je via de DEB_BUILD_OPTIONS kan aangeven dat je een debug package wilt bouwen.

Rules files zijn echter verre van gestandaardiseerd :)

That which doesn't kill us, makes us stranger - Trevor (AEon FLux)
When a finger points at the moon, the imbecile looks at the finger (Chinese Proverb)