Debian package creation with debhelper: change dependency version -


i'm creating debian package using debhelper, under latest stable version of debian.

the "debian/control" file comprises these lines:

depends:  ${shlibs:depends},  ${misc:depends} 

the dependencies automatically set in created package. however, version required of libstdc++ strict. package requires libstdc++6 (>= 4.9) , want set libstdc++6 (>= 4.8).

for purpose , @ reading of page , page, edited "debian/rules" file looks like:

#!/usr/bin/make -f  dpkg_export_buildflags = 1 include /usr/share/dpkg/buildflags.mk  %:     dh $@   override_dh_makeshlibs:     dh_makeshlibs -v 'libstdc++6 (>= 4.8)' 

the last 2 lines did not make job. has did kind of customization on debian package?

thanks

in general, debhelper job @ detecting dependencies.

if says packages requires libstdc++6 (>= 4.9), package require specific version , fail e.g. libstdc++6-4.8. (if don't believe me, try out; force-install package on system has libstdc++6-4.8 installed, , see whether everything works)

if people claim can build libstd++6-4.8 (or rather gcc-4.8), see possibilities:

  • either people mistaken
  • or binary (in package) different, depending on whether built against libstdc++6-4.8 or 4.9

most second point case.

this can have numerous reasons, e.g.: - package automatically enables features if detects libstdc++6-4.9 - implementation detail in libstdc++6 has changed makes resulting binaries incompatible (or @ least: not backwards compatible)

if want package can used libstdc++6 == 4.8, should use libstdc++6-4.8 (or likely: entire g++4.8 toolchain) building package.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -