Your message dated Sun, 12 Nov 2017 01:00:26 +0200
with message-id <20171111230025.uvhn36qrjtin2mir@localhost>
and subject line Re: Bug#881053: ppp: fails to compile because of mistake in 
rules file
has caused the Debian Bug report #881053,
regarding ppp: fails to compile because of mistake in rules file
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 ow...@bugs.debian.org
immediately.)


-- 
881053: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=881053
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: ppp
Version: 2.4.7-1+4
Severity: serious
Tags: patch
Justification: fails to build from source (but built successfully in the past)

Dear Maintainer,

the rules file contains a problem that keeps ppp from compiling. This patch 
fixes the problem.


--- debian/rules.ORIG   2017-11-07 14:43:08.026945955 +0100
+++ debian/rules        2017-11-07 14:43:20.174879455 +0100
@@ -156,7 +156,7 @@
 # the build fails if there are any discrepancies in the symbols file in order
 # to catch ABI changes.
 override_dh_makeshlibs:
-       dh_makeshlibs --package=ppp -- -c2 -edebian/ppp/usr/sbin/pppd -V
+       dh_makeshlibs --package=ppp -- -c2 -edebian/ppp/usr/sbin/pppd --version
        dh_makeshlibs --no-package=ppp
 
 ## http://wiki.debian.org/onlyjob/get-orig-source




-- System Information:
Debian Release: 9.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=de_DE@euro (charmap=ANSI_X3.4-1968) (ignored: 
LC_ALL set to C), LANGUAGE=en_GB.utf8 (charmap=ANSI_X3.4-1968) (ignored: LC_ALL 
set to C)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages ppp depends on:
ii  init-system-helpers  1.48
ii  libc6                2.24-11+deb9u1
ii  libpam-modules       1.1.8-3.6
ii  libpam-runtime       1.1.8-3.6
ii  libpam0g             1.1.8-3.6
ii  libpcap0.8           1.8.1-3
ii  lsb-base             9.20161125
ii  procps               2:3.3.12-3

ppp recommends no packages.

ppp suggests no packages.

-- no debconf information
--- debian/rules.ORIG   2017-11-07 14:43:08.026945955 +0100
+++ debian/rules        2017-11-07 14:43:20.174879455 +0100
@@ -156,7 +156,7 @@
 # the build fails if there are any discrepancies in the symbols file in order
 # to catch ABI changes.
 override_dh_makeshlibs:
-       dh_makeshlibs --package=ppp -- -c2 -edebian/ppp/usr/sbin/pppd -V
+       dh_makeshlibs --package=ppp -- -c2 -edebian/ppp/usr/sbin/pppd --version
        dh_makeshlibs --no-package=ppp
 
 ## http://wiki.debian.org/onlyjob/get-orig-source

--- End Message ---
--- Begin Message ---
On Sat, Nov 11, 2017 at 07:50:15PM +0000, Christian Blum wrote:
> Hi Adrian,

Hi Christian,

> I have looked a bit closer; the error only occurs if the original sources get 
> modified in some  way (in my case by a patch that introduces a symbol, 
> "charshunt_hook"); it seems that only then the target is run that executes 
> "pppd -V". It looks like this:
> 
> dh_makeshlibs --package=ppp -- -c2 -edebian/ppp/usr/sbin/pppd -V

-c2 is passed to dpkg-gensymbols and means
  Level 2 fails if some new symbols have been introduced

The point of it is to error out when a new symbol is missing in the 
symbols file, therefore the error you get after adding a symbol without
adding it to the symbols file is exactly what is supposed to happen.

> dpkg-gensymbols: warning: some new symbols appeared in the symbols file: see 
> diff output below
> dpkg-gensymbols: warning: debian/ppp/DEBIAN/symbols doesn't match completely 
> debian/ppp.symbols
> --- debian/ppp.symbols (ppp_2.4.7-1+4yf1_amd64)
> +++ dpkg-gensymbolsHRYZBJ       2017-11-11 19:37:09.412960409 +0000
> @@ -1,5 +1,5 @@
>  pppd.so.2.4.7 ppp #MINVER#
> - (optional)$global$@Base 2.4.7-1+2~
> +#MISSING: 2.4.7-1+4yf1# (optional)$global$@Base 2.4.7-1+2~
>   (regex|optional)"@GLIBC_" 2.4.7-1+2~
>   ChallengeHash@Base 2.4.7-1+2~
>   ChapMS2@Base 2.4.7-1+2~
> @@ -76,6 +76,7 @@
>   chap_verify_hook@Base 2.4.7-1+2~
>   chapms_init@Base 2.4.7-1+2~
>   chapms_strip_domain@Base 2.4.7-1+2~
> + charshunt_hook@Base 2.4.7-1+4yf1
>   charshunt_pid@Base 2.4.7-1+2~
>   check_options@Base 2.4.7-1+2~
>   check_passwd@Base 2.4.7-1+2~
> dh_makeshlibs: failing due to earlier errors
> debian/rules:159: recipe for target 'override_dh_makeshlibs' failed
> make[1]: *** [override_dh_makeshlibs] Error 25
> make[1]: Leaving directory '/usr/src/ppp-2.4.7'
> debian/rules:43: recipe for target 'binary' failed
> make: *** [binary] Error 2
> dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 
> 2
> debuild: fatal error at line 1116:
> dpkg-buildpackage -rfakeroot -us -uc failed
>...

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

--- End Message ---

Reply via email to