Discussion:
Bug#780429: snmp-mibs-downloader: postinst uses /usr/share/doc content (Policy 12.3): /usr/share/doc/mibrfcs/*
Andreas Beckmann
2015-03-13 19:23:13 UTC
Permalink
Package: snmp-mibs-downloader
Version: 1.1
Severity: serious
User: debian-***@lists.debian.org
Usertags: piuparts

Hi,

a test with piuparts revealed that your package uses files from
/usr/share/doc in its maintainer scripts which is a violation of
Policy 12.3: "Packages must not require the existence of any files in
/usr/share/doc/ in order to function."
https://www.debian.org/doc/debian-policy/ch-docs.html#s12.3

These files must be moved to /usr/share/$PACKAGE and may be symlinked
from /usr/share/doc/$PACKAGE.

This piuparts test prevents the installation of (most) files into
/usr/share/doc with 'dpkg --path-exclude=...'.
Selecting previously unselected package snmp-mibs-downloader.
(Reading database ...
Preparing to unpack .../snmp-mibs-downloader_1.1_all.deb ...
Unpacking snmp-mibs-downloader (1.1) ...
Setting up snmp-mibs-downloader (1.1) ...

Downloading documents and extracting MIB files.
This will take some minutes.

In case this process fails, it can always be repeated later by executing
/usr/bin/download-mibs again.

cp: cannot stat '/usr/share/doc/mibrfcs/*': No such file or directory
Downloading the MIBs failed.

Please check your Internet connection and run download-mibs again.

dpkg: error processing package snmp-mibs-downloader (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
snmp-mibs-downloader


Cheers,

Andreas

PS: it's probably OK to tag this bug jessie-ignore
Thijs Kinkhorst
2015-03-15 16:57:34 UTC
Permalink
Hi,
Post by Andreas Beckmann
a test with piuparts revealed that your package uses files from
/usr/share/doc in its maintainer scripts which is a violation of
Policy 12.3: "Packages must not require the existence of any files in
/usr/share/doc/ in order to function."
cp: cannot stat '/usr/share/doc/mibrfcs/*': No such file or directory
Downloading the MIBs failed.
I've taken a look and this is a rather core piece of functionality for
this package. Moving the files around is not impossible, but seems not
Post by Andreas Beckmann
PS: it's probably OK to tag this bug jessie-ignore
I agree.


Cheers,
Thijs
--
To UNSUBSCRIBE, email to debian-bugs-rc-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Guillem Jover
2016-08-24 11:05:47 UTC
Permalink
Hi!
Post by Andreas Beckmann
Package: snmp-mibs-downloader
Version: 1.1
Severity: serious
Usertags: piuparts
a test with piuparts revealed that your package uses files from
/usr/share/doc in its maintainer scripts which is a violation of
Policy 12.3: "Packages must not require the existence of any files in
/usr/share/doc/ in order to function."
https://www.debian.org/doc/debian-policy/ch-docs.html#s12.3
These files must be moved to /usr/share/$PACKAGE and may be symlinked
from /usr/share/doc/$PACKAGE.
This piuparts test prevents the installation of (most) files into
/usr/share/doc with 'dpkg --path-exclude=...'.
I've prepared an update of this package fixing this and many of the
other filed issues. I'll be testing and preparing a NMU this week.

Thanks,
Guillem
Jochen Friedrich
2016-08-30 16:24:49 UTC
Permalink
Hi Guillem,

cool, thanks.

Regards, Jochen
Post by Guillem Jover
Hi!
Post by Andreas Beckmann
Package: snmp-mibs-downloader
Version: 1.1
Severity: serious
Usertags: piuparts
a test with piuparts revealed that your package uses files from
/usr/share/doc in its maintainer scripts which is a violation of
Policy 12.3: "Packages must not require the existence of any files in
/usr/share/doc/ in order to function."
https://www.debian.org/doc/debian-policy/ch-docs.html#s12.3
These files must be moved to /usr/share/$PACKAGE and may be symlinked
from /usr/share/doc/$PACKAGE.
This piuparts test prevents the installation of (most) files into
/usr/share/doc with 'dpkg --path-exclude=...'.
I've prepared an update of this package fixing this and many of the
other filed issues. I'll be testing and preparing a NMU this week.
Thanks,
Guillem
Guillem Jover
2016-08-30 17:41:56 UTC
Permalink
Hi!
Post by Jochen Friedrich
Post by Guillem Jover
I've prepared an update of this package fixing this and many of the
other filed issues. I'll be testing and preparing a NMU this week.
cool, thanks.
I was planning on sending the patches to the BTS, and then probably
issue a delayed upload. But maybe you prefer if I push my changes
somewhere and you pull those, and do the the upload yourself? Or for
me to just push to the collab-maint git repo and do a direct upload?

I'm happy to do whatever works best for you. Otherwise I'll default to
the first option. :)

Thanks,
Guillem
Jochen Friedrich
2016-08-31 13:31:45 UTC
Permalink
Hi Guillem,
Post by Guillem Jover
I was planning on sending the patches to the BTS, and then probably
issue a delayed upload. But maybe you prefer if I push my changes
somewhere and you pull those, and do the the upload yourself? Or for
me to just push to the collab-maint git repo and do a direct upload?
It's OK to push to git a do a direct upload.

Thanks,
Jochen
Debian Bug Tracking System
2016-09-01 18:51:37 UTC
Permalink
Your message dated Thu, 01 Sep 2016 18:50:09 +0000
with message-id <E1bfX3x-0002Kc-***@franck.debian.org>
and subject line Bug#780429: fixed in snmp-mibs-downloader 1.1+nmu1
has caused the Debian Bug report #780429,
regarding snmp-mibs-downloader: postinst uses /usr/share/doc content (Policy 12.3): /usr/share/doc/mibrfcs/*
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ***@bugs.debian.org
immediately.)
--
780429: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=780429
Debian Bug Tracking System
Contact ***@bugs.debian.org with problems
Loading...