generate copyright_newhints file
Jonas Smedegaard
jonas at jones.dk
Fri Jun 30 20:58:28 UTC 2017
Hi Jaromír,
Quoting Jaromír Mikeš (2017-06-30 12:42:04)
> 2017-06-30 11:36 GMT+02:00 IOhannes m zmölnig (Debian/GNU) <
> > On 06/30/2017 11:25 AM, Jaromír Mikeš wrote:
> > > sorry for question, but I am still not used to CDBS :(
No need to apologize about that. Great that you improve your skills by
taking challenging tasks, and excellent that you ask about things you
are uncertain about! :-)
> > > How I can generate copyright_newhints file without building whole
> > > package?
> >
> > iirc, it should be generated in the clean target as well:
> >
> > DEB_MAINTAINER_MODE=yes dpkg-buildpackage -rfakeroot -Tclean
Right.
Generally, special package maintenance should be documented in the file
debian/README.Source - and that file exist for ardour package, where you
would have found above answer too ;-)
The shortest (commandline and code executed) is this:
debian/rules pre-build DEB_MAINTAINER_MODE=1
> > note, that you will only get a copyright_newhints file if it differs
> > from the copyright_hints file. and if it does generate the file, it
> > will stop the build anyhow, so you cannot "generate
> > copyright_newhints file WITH building the whole package".
More accurately, the file debian/copyright_newhints gets generated when
debian/copyright_hints exists. When generated, the result is compared
against debian/copyright_hints, and if there are _additions_ then the
build fails, but if there are either no difference or only omissions
then debian/copyright_newhints is deleted and build continues.
> I've added DEB_MAINTAINER_MODE=yes dpkg-buildpackage -rfakeroot -Tclean to
> d/rules file
That's bad: DEB_MAINTAINER_MODE violates Debian Policy, so must not be
set during official build e.g. on build daemons: Only set that variable
on the commandline or in your local build environment, and *only* set it
for *unofficial* builds, not for builds that you then upload to Debian!
> But d/copyright_newhints file was not created ... I just got this and build
> continued:
If by "build continued" you mean that more happened _after_ the
instructive messages at the end of your quoted text, then it sounds like
you somehow added it in a way that ignored errors. But since it should
_only_ be run by the _maintainer_ - not automated at all builds (see
above) I am not really interested in the details of why it continued:
Please try execute the command on the commandline instead.
Or perhaps read and follow the instructive text:
> To fix the situation please do the following:
> 1) Examine debian/copyright_* and referenced files
> 2) Update debian/copyright as needed
> 3) Replace debian/copyright_hints with debian/copyright_newhints
:-)
Kind regards,
- Jonas
--
* Jonas Smedegaard - idealist & Internet-arkitekt
* Tlf.: +45 40843136 Website: http://dr.jones.dk/
[x] quote me freely [ ] ask before reusing [ ] keep private
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20170630/1b7a706c/attachment.sig>
More information about the pkg-multimedia-maintainers
mailing list