Your message dated Sat, 16 Feb 2019 20:19:56 -0500
with message-id 
<cab4xwxwubxhjznzeplnekyajth1jsflr5kuk-b6jwf+m5fx...@mail.gmail.com>
and subject line Re: [Pkg-amule-devel] Bug#795061: amule: Lack a rule to 
generate Scanner.h, may break build procedure.
has caused the Debian Bug report #795061,
regarding amule: Lack a rule to generate Scanner.h, may break build procedure.
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 [email protected]
immediately.)


-- 
795061: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=795061
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: amule
Version: 2.3.1+git1a369e47-3
Severity: normal

Dear Maintainer,

        When building amule from source code, it may happen that building the
first time (that is, no file to generate has been generated yet) fails, for
unable to find a way to generate Scanner.h, but a second time make just after
the first one will succeed.

        This is because Scanner.h is generated by the same rule to generate
Scanner.cpp, and there is no explicit rule to generate Scanner.h. In fact, the
command used by the rule to generate Scanner.cpp (as the attached patch file
shows) actually generates two file: one is the target Scanner.cpp, the other is
Scanner.h. So if a command whose rule depending on Scanner.h is unfortunately
called before Scanner.cpp is generated, it will fail, and break the whole
making procedure.

        The problem can be fixed by add a rule to make Scanner.h depend on
Scanner.cpp, without any command, as the attached patch file shows. If an
absent Scanner.h is required by rule, according to the Rule of Make(1), the
command to generate Scanner.cpp will be called to generate Scanner.cpp and
Scanner.h simultaneously, and if so, when Scanner.cpp is needed, it is not
generated again, for now it already exists.



-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (900, 'testing'), (500, 'testing-proposed-updates'), (500,
'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.0.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=zh_CN.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages amule depends on:
ii  amule-common    2.3.1+git1a369e47-3
ii  libc6           2.19-19
ii  libcrypto++9    5.6.1-7
ii  libgcc1         1:5.1.1-14
ii  libgeoip1       1.6.6-1
ii  libstdc++6      5.1.1-14
ii  libupnp6        1:1.6.19+git20141001-1
ii  libwxbase2.8-0  2.8.12.1+dfsg2-2
ii  libwxgtk2.8-0   2.8.12.1+dfsg2-2
ii  zlib1g          1:1.2.8.dfsg-2+b1

Versions of packages amule recommends:
ii  amule-utils  2.3.1+git1a369e47-3
ii  unzip        6.0-17

Versions of packages amule suggests:
ii  amule-utils-gui  2.3.1+git1a369e47-3




*** /home/user/下载/book/git/amule-dlp/src-Makefile.am.diff
diff --git a/src/Makefile.am b/src/Makefile.am
index 9a9b11d..a9d1381 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -477,16 +477,17 @@ $(srcdir)/Parser.cpp: Parser.y
 if GENERATE_FLEX_HEADER
 $(srcdir)/Scanner.cpp: Scanner.l Parser.cpp
                $(LEX) --header-file=$(srcdir)/Scanner.h -o $@
$(srcdir)/Scanner.l
 else
 $(srcdir)/Scanner.cpp: Scanner.l Parser.cpp
                $(LEX) -o $@ $(srcdir)/Scanner.l; \
                echo "// Empty file generated by a flex version unable to
create headers" > $(srcdir)/Scanner.h
 endif
+$(srcdir)/Scanner.h: $(srcdir)/Scanner.cpp

 $(srcdir)/IPFilterScanner.cpp: IPFilterScanner.l
                $(LEX) -Pyyip -o $@ $(srcdir)/IPFilterScanner.l;

 # Resources

--- End Message ---
--- Begin Message ---
version: 1:2.3.2-1

On Mon, Aug 10, 2015 at 1:12 AM Tianming Xie <[email protected]> wrote:
>
> Package: amule
> Version: 2.3.1+git1a369e47-3
> Severity: normal
>
> Dear Maintainer,
>
>         When building amule from source code, it may happen that building the
> first time (that is, no file to generate has been generated yet) fails, for
> unable to find a way to generate Scanner.h, but a second time make just after
> the first one will succeed.
>
>         This is because Scanner.h is generated by the same rule to generate
> Scanner.cpp, and there is no explicit rule to generate Scanner.h. In fact, the
> command used by the rule to generate Scanner.cpp (as the attached patch file
> shows) actually generates two file: one is the target Scanner.cpp, the other 
> is
> Scanner.h. So if a command whose rule depending on Scanner.h is unfortunately
> called before Scanner.cpp is generated, it will fail, and break the whole
> making procedure.
>
>         The problem can be fixed by add a rule to make Scanner.h depend on
> Scanner.cpp, without any command, as the attached patch file shows. If an
> absent Scanner.h is required by rule, according to the Rule of Make(1), the
> command to generate Scanner.cpp will be called to generate Scanner.cpp and
> Scanner.h simultaneously, and if so, when Scanner.cpp is needed, it is not
> generated again, for now it already exists.

this has been fixed upstream with
https://github.com/amule-project/amule/commit/ba8470d640bcd6e6b3d0d4628a903acc758209d6
and released with version 2.3.2

-- 
Sandro "morph" Tosi
My website: http://sandrotosi.me/
Me at Debian: http://wiki.debian.org/SandroTosi
G+: https://plus.google.com/u/0/+SandroTosi

--- End Message ---

Reply via email to