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

Re: Please help fix lintian hardening-no-relro problem



On 2014-09-06, at 20:56:50 +0000, T o n g wrote:
> On Sat, 06 Sep 2014 14:03:10 +0600, Andrey Rahmatullin wrote:
> > > Please help me fix the lintian "hardening-no-relro" problem. As
> > > mentioned before, I've tried several ways myself but none worked.
> > > I've uploaded the source package to
> > > http://mentors.debian.net/debian/pool/main/h/histring/histring_1.1.0-2.dsc
> >
> > Consider replacing your unnecessarily long d/rules with one using
> > dh(1).
>
> Yes, that's the first thing I tried, but still get the "hardening-no-
> relro" problem:
> https://github.com/suntong001/histring/blob/master/debian/rules

That should do the trick.

> https://github.com/suntong001/histring/archive/master.zip
>
> > You are not using dh_auto_* commands nor exporting flags manually,
> > hence dpkg-buildflags isn't used in the build process.
>
> Would you mind telling me how to do it please? I'm reverting back to
> such unnecessarily long d/rules because I wasn't able to put back the
> auto- make rules back into the above short version.

The only thing that dh won't do by itself is to install the man-page,
for which you can either add an override to the rules file:

  diff --git a/debian/rules b/debian/rules
  index 31c1c17..7ae9e48 100755
  --- a/debian/rules
  +++ b/debian/rules
  @@ -4,3 +4,7 @@

   %:
	  dh $@
  +
  +override_dh_auto_install:
  +       dh_auto_install
  +       dh_installman debian/histring.1

or just create a histring.manpages file:

  diff --git a/debian/histring.manpages b/debian/histring.manpages
  new file mode 100644
  index 0000000..f3fe21c
  --- /dev/null
  +++ b/debian/histring.manpages
  @@ -0,0 +1 @@
  +debian/histring.1

-- 
Az.

Attachment: signature.asc
Description: Digital signature


Reply to: