Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm the author of some software , which depends on libxx6 (In ubuntu 11.10) , but in 12.04 , the package become libxx7 (7 is not a Ubuntu version number) , so the dependency become a problem.

How can i work this out ? I'm managing a PPA , and i want to fix that before release of Ubuntu 12.04.

Thanks !

share|improve this question
add comment

3 Answers 3

If there is a generic version-free package you can depend on (such as in the Java case: java-runtime vs. e.g. java6-runtime), depend on that. If there isn't, you have to make specialized packages for the different versions of Ubuntu. Look at the package you depend on's control file and see if it Provides something more generic you can depend on.

share|improve this answer
add comment

If the same source will build on all the releases, then it's very easy. You build (upload) it separately for each Ubuntu release. You'll have to use slightly different version numbers, I suggest appending ~releasename1

share|improve this answer
add comment

Assuming that your package will compile against both libxx6 and libxx7, simply us libxx-dev in the Build-Depends field of you debian/control file. Then in the Depends field us ${shlibs:Depends}. This will automatically be substituted with the version of the shared library that your package was built against.

More detailed information about shared libraries can be found in Chapter 8 of the Debian Policy Manual.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.