[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: common source package for use in Debian and Ubuntu



On Tue, 18 Jan 2011, Joachim Wiedorn wrote:
> I want to realize the idea of a debian directory usable for Debian *and*
> Ubuntu. It works with a switch in the clean target of debian/rules:

Great!

> ifeq ($(shell dpkg-vendor --is Ubuntu && echo yes),yes)
> 	@echo modify changelog and control file for vendor Ubuntu:
> 	cat debian/control.Ubuntu >debian/control
> 	cat debian/changelog.Ubuntu debian/changelog.base >debian/changelog
> else
> 	@echo modify changelog and control file for vendor Debian:
> 	cat debian/control.Debian >debian/control
> 	cat debian/changelog.Debian debian/changelog.base >debian/changelog
> endif

No so great... see below.

> Now my questions:
> 
> 1. is this a good way for switching contol file? 
>    It must switch the maintainer lines because Ubuntu has another policy.

No. Ubuntu doesn't change maintainer fields if the package in Ubuntu
doesn't have modifications compared to Debian. If you do the work to have
all Ubuntu specific changes in common source package there's really no
need to have a different control file.

> 2. this way is not the best for the changelog file because every change
>    in debian/changelog must copied into the both other changelogs. 
>    Does anyone know a better way ?

Again, the same changelog file is used when there's a common source
package. No customization needed here.

> 4. Can I let all Ubuntu changelog parts (beside the very last) inside 
>    the changelog of Debian? Then changelog.Debian would be unnecessary.

It's quite common to have some bits of Ubuntu history in official Debian
packages... but mainly for packages created by Ubuntu and then integrated
in Debian.

If you want to keep the Ubuntu history now that you create a common source
package, why not. It's up to you I guess.

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Follow my Debian News ▶ http://RaphaelHertzog.com (English)
                      ▶ http://RaphaelHertzog.fr (Français)


Reply to: