Bug 206914 - audio/audacity: USES+= autoreconf libtool
Summary: audio/audacity: USES+= autoreconf libtool
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Thomas Zander
URL:
Keywords: patch, patch-ready
Depends on:
Blocks: 207074
  Show dependency treegraph
 
Reported: 2016-02-04 10:06 UTC by Tatsuki Makino
Modified: 2016-03-19 01:34 UTC (History)
4 users (show)

See Also:
xxjack12xx: maintainer-feedback+


Attachments
patch for audio/audacity (11.28 KB, patch)
2016-02-04 10:06 UTC, Tatsuki Makino
no flags Details | Diff
test log on 9.3-STABLE amd64 (56.99 KB, application/x-xz)
2016-02-04 10:10 UTC, Tatsuki Makino
no flags Details
Warnings (3.45 KB, text/plain)
2016-02-05 01:53 UTC, Jack
no flags Details
patch for audio/audacity (12.01 KB, patch)
2016-02-05 04:32 UTC, Tatsuki Makino
no flags Details | Diff
log with attachment 166592 on 9.3-STABLE amd64 (56.54 KB, application/x-xz)
2016-02-06 11:25 UTC, Tatsuki Makino
no flags Details
additional patch if needed (577 bytes, patch)
2016-02-06 11:29 UTC, Tatsuki Makino
no flags Details | Diff
additional patch (584 bytes, patch)
2016-02-24 01:31 UTC, Tatsuki Makino
no flags Details | Diff
patch for audio/audacity (14.29 KB, patch)
2016-03-09 05:04 UTC, Tatsuki Makino
no flags Details | Diff
build log (with attachment 167896) (48.98 KB, application/x-xz)
2016-03-09 05:07 UTC, Tatsuki Makino
no flags Details
fix problem of comment #19 (14.35 KB, patch)
2016-03-13 02:45 UTC, Tatsuki Makino
xxjack12xx: maintainer-approval+
Details | Diff
Compile error (9.58 KB, text/plain)
2016-03-15 23:09 UTC, Jack
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tatsuki Makino 2016-02-04 10:06:10 UTC
Created attachment 166543 [details]
patch for audio/audacity

Change to use autoreconf and libtool.
Add and remove patches for it.
Comment 1 Tatsuki Makino 2016-02-04 10:10:08 UTC
Created attachment 166544 [details]
test log on 9.3-STABLE amd64

It needs test more on environment below.
10.x
Macintosh(darwin*)

If it cannot build, this bug should be closed without change.
Comment 2 Jack 2016-02-04 19:37:30 UTC
I'll test it out on 10 and 11.
Comment 3 Jack 2016-02-05 00:36:35 UTC
Compiles and runs fine on 10 and 11, but I'm not sure what the benefit of this patch is. Is there a compelling reason to change the upstream's configs?
Comment 4 Tatsuki Makino 2016-02-05 01:22:21 UTC
(In reply to xxjack12xx from comment #3)
Thank you.

lib-src/FileDialog sub directory always uses Objective-C++ linker for linking because *.mm file is appeared in lib-src/FileDialog/Makefile.am.
So I divided it into lib-src/FileDialog/{gtk,mac,win}/Makefile.am and changed as *.la is built.

Patching to *.in files is difficult if autoreconf is run.
Comment 5 Jack 2016-02-05 01:53:47 UTC
Created attachment 166584 [details]
Warnings

I get this giant warning block, can this be suppressed?
Comment 6 Tatsuki Makino 2016-02-05 04:32:34 UTC
Created attachment 166592 [details]
patch for audio/audacity

(In reply to xxjack12xx from comment #5)

This is a patch for suppressing attachment 166584 [details].
files/patch-lib-src_portaudio-v19_bindings_cpp_configure.ac has been added.
Comment 7 Jack 2016-02-05 20:14:30 UTC
Looks good, I was able to compile and run audacity in 10 and 11
Comment 8 Tatsuki Makino 2016-02-06 11:25:00 UTC
Created attachment 166649 [details]
log with attachment 166592 [details] on 9.3-STABLE amd64

Perhaps, these warnings have been grasped by originator.
Comment 9 Tatsuki Makino 2016-02-06 11:29:39 UTC
Created attachment 166650 [details]
additional patch if needed

Or, autotools have been forgot by originator.
Comment 10 Jack 2016-02-07 06:51:57 UTC
I think we should tell upstream to fix instead of changing it. attachment 166650 [details]
Comment 11 Tatsuki Makino 2016-02-24 01:31:28 UTC
Created attachment 167341 [details]
additional patch

AM_SILENT_RULES([yes]) is added.
Build log size become smaller (ex. 761486 Bytes).
It can upload without compressing.
Comment 12 Tatsuki Makino 2016-03-09 05:04:21 UTC
Created attachment 167896 [details]
patch for audio/audacity

update attachment 166592 [details] and merge attachment 167341 [details].
Comment 13 Tatsuki Makino 2016-03-09 05:07:50 UTC
Created attachment 167897 [details]
build log (with attachment 167896 [details])
Comment 14 Jack 2016-03-09 23:29:39 UTC
New patch compiles fine on 11
Comment 15 Barbara Guida freebsd_committer freebsd_triage 2016-03-10 00:57:33 UTC
Anyone noticed a build error when alsa (alsa-lib-1.1.0) gets autodetected since changes committed on March 5th?

libtool: compile:  cc -c -O2 -pipe -fno-strict-aliasing -march=athlon64-sse3 -DLIBICONV_PLUG -fstack-protector -DPA_LITTLE_ENDIAN -I./include -I./src/common -I./src/os/unix -pthread -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_SYS_SOUNDCARD_H=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=8 -DHAVE_CLOCK_GETTIME=1 -DHAVE_NANOSLEEP=1 -DPA_USE_ALSA=1 -DPA_USE_OSS=1 src/hostapi/alsa/pa_linux_alsa.c -o src/hostapi/alsa/pa_linux_alsa.o
src/hostapi/alsa/pa_linux_alsa.c:52:10: fatal error: 'alsa/asoundlib.h' file not found
#include <alsa/asoundlib.h>
         ^
1 error generated.
Makefile:231: recipe for target 'src/hostapi/alsa/pa_linux_alsa.lo' failed
Comment 16 Jack 2016-03-10 01:19:03 UTC
What OS version and what options did you use? I'm not able to reproduce on 11.
Comment 17 w.schwarzenfeld 2016-03-11 02:24:14 UTC
I have the same error on 10.2-RELEASE:
Comment 18 Thomas Zander freebsd_committer freebsd_triage 2016-03-12 16:57:18 UTC
(In reply to Barbara Guida from comment #15)

For the record / audit trail: alsa build issue is tracked via bug 207892
Comment 19 Thomas Zander freebsd_committer freebsd_triage 2016-03-12 16:58:49 UTC
(In reply to xxjack12xx from comment #14)

When all OPTIONs are deactivated, this build failure occurs:

[...]
===>  Configuring for audacity-2.1.2_3
Can't exec "autopoint": No such file or directory at /usr/local/share/autoconf-2.69/Autom4te/FileUtils.pm line 345.
autoreconf-2.69: failed to run autopoint: No such file or directory
autoreconf-2.69: autopoint is needed because this package uses Gettext
*** Error code 1

Stop.
make: stopped in /usr/ports/audio/audacity

Could you double-check the latest patch?
Comment 20 Tatsuki Makino 2016-03-13 02:45:39 UTC
Created attachment 168069 [details]
fix problem of comment #19

Bug 197200 was same problem. I did it as a reference.
Comment 21 Thomas Zander freebsd_committer freebsd_triage 2016-03-13 13:48:15 UTC
(In reply to Tatsuki Makino from comment #20)

Confirmed that attachment 168069 [details] resolves the build issue.

If maintainer approves, I can commit this alongside the fix for bug 207074.
Comment 22 Thomas Zander freebsd_committer freebsd_triage 2016-03-13 13:49:59 UTC
Comment on attachment 168069 [details]
fix problem of comment #19

Request maintainer approval for this patch.
Comment 23 Jack 2016-03-14 04:47:37 UTC
I will check it out.
Comment 24 Jack 2016-03-15 23:09:52 UTC
Created attachment 168272 [details]
Compile error

I am getting a compilation error on FreeBSD 11 with alsa checked.
Comment 25 Jack 2016-03-15 23:38:04 UTC
Sorry, I mean't with alsa unchecked. Happens on FreeBSD 10 and 11
Comment 26 Jack 2016-03-16 00:44:46 UTC
Commented on the wrong thread, commends should be referring to 207892
Comment 27 Jack 2016-03-16 01:05:04 UTC
This patch looks ok
Comment 28 Jack 2016-03-16 01:31:54 UTC
Actually, I am getting a plist error:

===> Checking for items in STAGEDIR missing from pkg-plist
Error: Orphaned: %%DATADIR%%/include/audacity/ConfigInterface.h
Error: Orphaned: %%DATADIR%%/include/audacity/EffectAutomationParameters.h
Error: Orphaned: %%DATADIR%%/include/audacity/EffectInterface.h
Error: Orphaned: %%DATADIR%%/include/audacity/IdentInterface.h
Error: Orphaned: %%DATADIR%%/include/audacity/ImporterInterface.h
Error: Orphaned: %%DATADIR%%/include/audacity/ModuleInterface.h
Error: Orphaned: %%DATADIR%%/include/audacity/PluginInterface.h
Error: Orphaned: %%DATADIR%%/include/audacity/Types.h
===> Checking for items in pkg-plist which are not in STAGEDIR
Error: Missing: include/audacity/ConfigInterface.h
Error: Missing: include/audacity/EffectAutomationParameters.h
Error: Missing: include/audacity/EffectInterface.h
Error: Missing: include/audacity/IdentInterface.h
Error: Missing: include/audacity/ImporterInterface.h
Error: Missing: include/audacity/ModuleInterface.h
Error: Missing: include/audacity/PluginInterface.h
Error: Missing: include/audacity/Types.h
Error: Missing: %%DATADIR%%/include/audacity
===> Error: Plist issues found.
*** Error code 1
Comment 29 Tatsuki Makino 2016-03-16 07:07:47 UTC
(In reply to xxjack12xx from comment #28)
Perhaps, patch-Makefile.am, patch-configure.ac and patch-include_Makefile.am of attachment 166826 [details] are existed in your audio/audacity/files directory.
Would you retry the order below?
1. revert audio/audacity directory.
2. patch attachment 168069 [details] for checking bug 206914.
3. patch attachment 166826 [details] for checking bug 207074.
Comment 30 Jack 2016-03-16 19:10:47 UTC
Ok, testing now.
Comment 31 Jack 2016-03-16 20:11:23 UTC
Patches look good. I did a clean patch and build with all the options checked/unchecked and compiles fine on 11.
Comment 32 commit-hook freebsd_committer freebsd_triage 2016-03-18 06:51:32 UTC
A commit references this bug:

Author: riggs
Date: Fri Mar 18 06:51:29 UTC 2016
New revision: 411331
URL: https://svnweb.freebsd.org/changeset/ports/411331

Log:
  Add autoreconf libtool to USES; install headers to include, not DATADIR

  This changeset brings in the necessary fixes in audacity's build system
  to use autoreconf and libtool in USES. (206914)
  First use case of this is to have audacity install its headers in the
  standard include path rather than DATADIR (207074).
  Bump PORTREVISION.

  PR:		206914, 207074
  Submitted by:	tatsuki_makino@hotmail.com
  Approved by:	xxjack12xx@gmail.com (maintainer)

Changes:
  head/audio/audacity/Makefile
  head/audio/audacity/files/patch-Makefile.am
  head/audio/audacity/files/patch-configure.ac
  head/audio/audacity/files/patch-include_Makefile.am
  head/audio/audacity/files/patch-lib-src_FileDialog_Makefile.am
  head/audio/audacity/files/patch-lib-src_FileDialog_Makefile.in
  head/audio/audacity/files/patch-lib-src_FileDialog_configure.ac
  head/audio/audacity/files/patch-lib-src_FileDialog_gtk_Makefile.am
  head/audio/audacity/files/patch-lib-src_FileDialog_mac_Makefile.am
  head/audio/audacity/files/patch-lib-src_FileDialog_win_Makefile.am
  head/audio/audacity/files/patch-lib-src__libmad__configure
  head/audio/audacity/files/patch-lib-src__soundtouch__source__SoundTouch__Makefile.in
  head/audio/audacity/files/patch-lib-src_libmad_configure.ac
  head/audio/audacity/files/patch-lib-src_libnyquist_Makefile.in
  head/audio/audacity/files/patch-lib-src_portaudio-v19_bindings_cpp_configure.ac
  head/audio/audacity/files/patch-lib-src_portmixer_configure
  head/audio/audacity/files/patch-src_Makefile.am
  head/audio/audacity/files/patch-src__Makefile.in
  head/audio/audacity/pkg-plist
Comment 33 Thomas Zander freebsd_committer freebsd_triage 2016-03-18 07:00:27 UTC
(In reply to Tatsuki Makino from comment #20)

Since these changes are quite substantial, could you try to get this upstream? Maintaining this kind of patch over a long time would quite cumbersome for maintainers.
Comment 34 Tatsuki Makino 2016-03-19 01:34:47 UTC
Thank you very much.

(In reply to Thomas Zander from comment #33)
I concur with you on that point. I will report them to upstream.