Re: GCC reporting piped input as a security feature

2024-04-08 Thread Jan Engelhardt
On Tuesday 2024-04-09 05:37, Jacob Bachmeyer wrote: > >> In principle it could be posible to output something different to >> describe this stramge situation explicitly. For instance, output "via >> stdin" as a comment, or output `stdin/../filename' as the file name. >> (Programs that optimize

Re: Getting long SOURCES lines with subdirs shorter

2023-12-01 Thread Jan Engelhardt
On Friday 2023-12-01 21:13, Mike Frysinger wrote: >On 17 Jul 2023 16:51, Karl Berry wrote: >> Hi Jan, >> >> Current automake likely won't have anything in store already, >> >> Not that I know of. >> >> a_SOURCES = $(addprefix aprog/,main.c foo.c bar.c baz.c) >> >> I've often wanted

Re: Detect --disable-dependency-tracking in Makefile.am

2023-09-30 Thread Jan Engelhardt
>I didn't explain sufficiently. The submakes I'm talking about are my >doing, and I want to conditionalize them on whether >--enable-dependency-tracking is used. > >In for example both ntpq/Makefile.am and ntpd/Makefile.am I'm invoking: > >(cd ../libntp && make libntp.a) Yes and if you didn't do

Re: Detect --disable-dependency-tracking in Makefile.am

2023-09-29 Thread Jan Engelhardt
On Saturday 2023-09-30 05:27, Dave Hart wrote: >I've added code to the ntp.org Makefile.am files to ensure the static >utility library libntp.a is up-to-date for each program that uses it, to >ensure the build is correct. When building the project, this adds a bunch >of extra submake invocations

[PATCH v2] automake: rewrite scan_variable_expansions regex

2023-08-07 Thread Jan Engelhardt
The regex pattern in function scan_variable_expansions() fails to report a portability warning when a dollar-escaped dollar sign precedes the variable: foo_SOURCES = a.c $$$(patsubst a.c,a,b) --- lib/Automake/Variable.pm | 5 +++-- t/dollarvar2.sh | 9 + 2 files changed,

[PATCH] automake: rewrite scan_variable_expansions regex

2023-08-03 Thread Jan Engelhardt
The regex pattern in function scan_variable_expansions() fails to report a portability warning when a dollar-escaped dollar sign precedes the variable: foo_SOURCES = a.c $$$(patsubst a.c,a,b) --- lib/Automake/Variable.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff

Re: Getting long SOURCES lines with subdirs shorter

2023-07-17 Thread Jan Engelhardt
On Monday 2023-07-17 06:55, John Darrington wrote: >Why not just write it as: > >a_SOURCES = aprog/main.c \ > aprog/foo.c \ > aprog/bar.c \ > aprog/baz.c ... You're missing the point. If you have a hundred, two hundred source files, all the aprog/ prefixes (and it's rarely *that* short)

Getting long SOURCES lines with subdirs shorter

2023-07-16 Thread Jan Engelhardt
Given a_SOURCES = aprog/main.c aprog/foo.c aprog/bar.c aprog/baz.c ... The more source files there are to be listed, the longer that line gets, the bigger the Makefile.am fragment becomes, etc. I am thinking about how to cut that repetition down. Current automake likely won't have

Re: Compile a particular extension files, with a different compiler

2023-03-30 Thread Jan Engelhardt
On Sunday 2023-03-26 14:33, Labeeb Asari wrote: > >Basically : compile .c source files with gcc, .cu files with nvcc and >finally link them together with gcc. > >I've tried adding a rule to handle .cu files differently and it does create >object files for it separately. However while linking,

Re: if vs. ifdef in Makefile.am

2023-03-03 Thread Jan Engelhardt
On Friday 2023-03-03 13:14, ljh wrote: >Thanks for the hint. I did not know this before. > >Found it here, autoconf manual 16.3: > cd to the directory where you want the object files and executables to > go and run the configure script. configure automatically checks for > the source code in

Re: if vs. ifdef in Makefile.am

2023-03-03 Thread Jan Engelhardt
On Friday 2023-03-03 11:13, ljh wrote: >ifdef is not wrong. But ifdef is not portable.

Re: if vs. ifdef in Makefile.am

2023-03-03 Thread Jan Engelhardt
On Friday 2023-03-03 10:40, ljh wrote: >--disable-assert is 1/3 of the way and cd is the other 2/3.

Re: if vs. ifdef in Makefile.am

2023-03-03 Thread Jan Engelhardt
On Friday 2023-03-03 09:36, ljh wrote: >Jacob Bachmeyer wrote: >>$ (mkdir test-build; cd ./test-build && ../src/configure --enable-assert ...) >> >>$ (mkdir release-build; cd ./release-build && ../src/configure >>--disable-assert ...)

Re: curl's XC_AMEND_DISTCLEAN (Seeking contractor for a regression bug fix)

2023-03-02 Thread Jan Engelhardt
On Thursday 2023-03-02 16:12, Jan Engelhardt wrote: >On Thursday 2023-03-02 09:56, Ilmari Lauhakangas wrote: >> last year I reported a regression in automake: >> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59288 > >One will find that there is a file m4/xc-am-if

Re: curl's XC_AMEND_DISTCLEAN (Seeking contractor for a regression bug fix)

2023-03-02 Thread Jan Engelhardt
ed in given list of subdirs. but whatever it does, it causes the 682x duplication you see. So it's a curl problem. Here's a patch. >From 74fa25bb5817f38c36c71820731eede6bc3be311 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Thu, 2 Mar 2023 16:08:22 +0100 Subject: [PATCH] b

Re: if vs. ifdef in Makefile.am

2023-03-01 Thread Jan Engelhardt
On Wednesday 2023-03-01 19:50, ljh via Discussion list for automake wrote: >``` >$ make # NDEBUG=1 >$ make NDEBUG=1 >``` > >Can I have automake.am to define and convey something like this to the output >Makefile: >``` >ifdef NDEBUG # if vs. ifdef >CPPFLAGS += -DNDEBUG >CFLAGS += -O3 #

Re: Generating missing depfiles by an automake based makefile

2023-02-09 Thread Jan Engelhardt
On Thursday 2023-02-09 22:53, Dmitry Goncharov wrote: > >> If you try this with e.g. >> OpenBSD make, it will complain. > >That's why i asked those questions about portability. >Do i understand it correctly, that a need to support bmake forces >automake to abandon a good mechanism to rebuild

Re: Generating missing depfiles by an automake based makefile

2023-02-09 Thread Jan Engelhardt
On Thursday 2023-02-09 22:33, Dmitry Goncharov wrote: > >> .Po file contents control when an .o file -- and thus also >> the .Po file itself -- is remade. >> If a .Po file has no practical content, there is no indication >> that it needs to be remade. > >Absence of the depfile is such an

Re: Generating missing depfiles by an automake based makefile

2023-02-08 Thread Jan Engelhardt
On Wednesday 2023-02-08 03:39, Dmitry Goncharov wrote: > >This rule restores a missing depfile file by creating a file with one >line '# dummy'. (Next version of automake will create an empty one). >There must have been a reason for generating such a depfile. depfiles are created ahead of make

Re: Addressing sources dynamically generated by autoconf

2022-11-21 Thread Jan Engelhardt
On Monday 2022-11-21 16:22, Thomas Jahns wrote: >The question consequently is: how would I create a Makefile.am that accounts >for a list of C sources, when the sources are not yet present/known from the >perspective of automake? I don't see that working even without automake. Once make has

TAR variable no effect when tar-pax is used

2022-11-21 Thread Jan Engelhardt
(With automake 1.16.5), your typical Makefile.am produces a Makefile like so: -8<- Makefile AMTAR = $${TAR-tar} am__tar = $${TAR-tar} chof - "$$tardir" am__untar = $${TAR-tar} xf - dist-gzip: distdir tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz

Re: Setting libXXX_la_CPPFLAGS and libXXX_la_CFLAGS erases AM_CPPFLAGS and AM_CFLAGS

2022-11-19 Thread Jan Engelhardt
On Saturday 2022-11-19 09:11, madmurphy wrote: >I guess it does make sense. But then what might be missing to Automake are >libXXX_la_AM_CFLAGS, libXXX_la_AM_CPPFLAGS and libXXX_la_AM_LDFLAGS >variables, in which the global AM_CFLAGS, AM_CPPFLAGS and AM_LDFLAGS are >automatically pasted (whereas

Re: Setting libXXX_la_CPPFLAGS and libXXX_la_CFLAGS erases AM_CPPFLAGS and AM_CFLAGS

2022-11-18 Thread Jan Engelhardt
On Friday 2022-11-18 22:57, Russ Allbery wrote: >madmurphy writes: > >> However, if at the same time I set also the libfoo_la_CPPFLAGS variable (no >> matter the content), as in the following example, > >> AM_CPPFLAGS = \ >> "-DLIBFOO_BUILD_MESSAGE=\"correctly defined via AM_CPPFLAGS\""

Re: make check(s) pre-release problems

2022-10-06 Thread Jan Engelhardt
On Wednesday 2022-10-05 23:24, Karl Berry wrote: > >What troubles me most is that there's no obvious way to debug any test >failure involving parallelism, since they go away with serial execution. >Any ideas about how to determine what is going wrong in the parallel >make? Any way to make

Re: make check(s) pre-release problems

2022-10-04 Thread Jan Engelhardt
On Wednesday 2022-10-05 00:58, Karl Berry wrote: > >Nothing has changed in the tests. Nothing has changed in the automake >infrastructure. Everything worked for me a few weeks ago. Furthermore, >Jim ran make check with much more parallelism than my machine can >muster, and everything succeeded

Re: man_MANS install locations

2022-09-01 Thread Jan Engelhardt
On Wednesday 2022-08-31 23:20, Karl Berry wrote: > >Should the rpmlint check be adjusted to cater to the GNU FHS? > >[..] >Also, GNU (as an organization) never had anything to do with the FHS, I just called it GNU FHS to distinguish it from the LF/LSB FHS. Autotools for example defaults to

man_MANS install locations

2022-08-31 Thread Jan Engelhardt
Greetings. A check was impleneted in rpmlint[1] that verifies that a manual page file such as "foo.3" has indeed been placed in ${mandir}/man3, and not, say, ${mandir}/man4. [1] https://github.com/rpm-software-management/rpmlint/commit/6fe4be934d60119f9a969a8b8198037e3f1c7941 Ironically, that

Re: How to speed up 'automake'

2022-05-03 Thread Jan Engelhardt
On Monday 2022-05-02 22:52, Karl Berry wrote: >- @echo '# dummy' >$@-t && $(am__mv) $@-t $@ >+ @: >>$@ > >2) without the mv I fear we are no longer noticing write failure. -k I see no reason why mv would be so crucial. Case 1. Lack of permission. The ">" operation is the one that

Re: How to speed up 'automake'

2022-05-02 Thread Jan Engelhardt
On Monday 2022-05-02 15:31, Jan Engelhardt wrote: >> If empty files are ok (assuming they are needed at all), can they be produced >> with a minimum number of executions of a 'touch' command? > >Better yet, they can be produced with the ">>" shell builtin, sk

Re: How to speed up 'automake'

2022-05-02 Thread Jan Engelhardt
On Monday 2022-05-02 15:18, Bob Friesenhahn wrote: > On Mon, 2 May 2022, Jan Engelhardt wrote: >> >> Indeed, if a source code package consists of 1 files, then configure >> produces another 10k files for the stuff in the ".deps" directories. >> There is n

Re: How to speed up 'automake'

2022-05-02 Thread Jan Engelhardt
On Monday 2022-05-02 14:20, Thomas Jahns wrote: Is there a way to speed 'automake' up? >>> >>> [...let] ephemeral builds [..] use /dev/shm [...] >> >> There ought to be little difference [...] automake, that's nowhere near as >> IO-heavy as untarring kernel source archives. It's much more

Re: How to speed up 'automake'

2022-04-29 Thread Jan Engelhardt
On Friday 2022-04-29 22:59, Thomas Jahns wrote: > On 4/27/22 3:49 PM, R. Diez wrote: >> Is there a way to speed 'automake' up? > > While you are probably looking for system-independent advice, the best results > I've had with speeding up ephemeral builds is to simply use /dev/shm for > backing

Re: Wrong order of preprocessor and compiler flags

2022-03-27 Thread Jan Engelhardt
On Sunday 2022-03-27 23:22, Karl Berry wrote: >It seems the basic inconsistency is whether CPPFLAGS is considered a >"user variable" or not. In earlier eras, it wasn't [...] In earlier eras of what exactly? As for make, it never made a distinction between user variables or otherwise, at least

Re: portability of xargs

2022-02-14 Thread Jan Engelhardt
On Tuesday 2022-02-15 07:16, Daniel Herring wrote: > > Maybe a next-generation configuration tool should start by defining interfaces > for user interactions and build tools. This would allow CLI and easy GUI and > IDE users, integration with multiple build systems, static and dynamic >

Re: generated lex/yacc sources?

2021-09-21 Thread Jan Engelhardt
On Tuesday 2021-09-21 22:32, Karl Berry wrote: >Thanks much. I was thinking I should avoid that since the .[ly] are not >ultimate sources, but if it works, fine with me. > >jan> >BUILT_SOURCES = foo.y >foo.y: foo.cweb >somecommands > >That would be sensible, but I failed

Re: generated lex/yacc sources?

2021-09-21 Thread Jan Engelhardt
On Tuesday 2021-09-21 19:02, Karl Berry wrote: >Suppose I want to generate a lex or yacc input file from another file, >e.g., a CWEB literate program. Is there a way to tell Automake about >this so that the ultimately-generated parser/lexer [.ch] files are saved >in srcdir, as happens when [.ly]

Re: [PATCH v2] automake: add install dep on install-libLTLIBRARIES to all targets

2021-08-29 Thread Jan Engelhardt
On Sunday 2021-08-29 22:44, Karl Berry wrote: >Subject: [PATCH v2] automake: add install dep on install-libLTLIBRARIES to > all > targets > >Thanks. Have you run make check? (In practice, make -j12 check or similar.) >Always good to make sure nothing old breaks ... -k # TOTAL:

[PATCH v2] automake: add install dep on install-libLTLIBRARIES to all targets

2021-08-29 Thread Jan Engelhardt
-libLTLIBRARIES therefore potentially breaking `make install -j`. Rectify this by depending on install-libLTLIBRARIES not just for bin_PROGRAMS, but all PROGRAMS and LTLIBRARIES. Signed-off-by: Jan Engelhardt --- Also available from https://github.com/jengelh/automake if that is easier to download

[PATCH] automake: add install dep on install-libLTLIBRARIES to all targets

2021-08-29 Thread Jan Engelhardt
-libLTLIBRARIES therefore potentially breaking `make install -j`. Rectify this by depending on install-libLTLIBRARIES not just for bin_PROGRAMS, but all PROGRAMS and LTLIBRARIES. Signed-off-by: Jan Engelhardt --- bin/automake.in | 23 +-- 1 file changed, 17 insertions(+), 6

install-pkglibLTLIBRARIES target is missing dep on install-libLTLIBRARIES

2021-08-29 Thread Jan Engelhardt
Greetings. Consider a Makefile.am like so: bin_PROGRAMS = aprogram sbin_PROGRAMS = otherprogram lib_LTLIBRARIES = library1.la pkglib_LTLIBRARIES = library2.la library2_la_LIBADD = library1.la this will produce, under automake 1.15/1.16, a Makefile.in

${OBJEXT} in implicit rule

2014-11-12 Thread Jan Engelhardt
Using automake-1.13.4, when using the following Makefile.am fragment, ---8--- bin_PROGRAMS = foo foo_SOURCES = foo.c bar.k .k.${OBJEXT}: gcc -x c -c $ -o $@ ---8--- I observe that bar.o is not built and not linked into foo. ---8--- make V=0 CC foo.o CCLD foo

Re: ${OBJEXT} in implicit rule

2014-11-12 Thread Jan Engelhardt
On Wednesday 2014-11-12 20:15, Nick Bowler wrote: On 2014-11-12 16:58 +0100, Jan Engelhardt wrote: Using automake-1.13.4, when using the following Makefile.am fragment, .k.${OBJEXT}: gcc -x c -c $ -o $@ I observe that bar.o is not built and not linked into foo. Indeed, the use

bug#17354: distclean fails when source is relatively otherplace

2014-04-27 Thread Jan Engelhardt
With automake-1.13.4 automake-1.14, when there is a _SOURCES = ../blah.c, make does not properly run because .deps is gone too early. File set: # Makefile.am SUBDIRS = b noinst_PROGRAMS = foo # configure.ac AC_INIT([a],[0]) AM_INIT_AUTOMAKE([foreign subdir-objects]) AC_PROG_CC

Automake should flag -l parameters in LDFLAGS

2013-03-30 Thread Jan Engelhardt
Given a Makefile.am with myprog_LDADD = -pthread automake will correctly output this warning Makefile.am:17: error: linker flags such as '-pthread' belong in 'myprog_LDFLAGS' It would be nice to also have automake report -l flags in LDFLAGS that actually belong into

Error running help2man on aclocal-1.13.1

2013-01-09 Thread Jan Engelhardt
The help2man: can't get `--help' info from ./aclocal error seems to have reappeared in automake-1.13.1 (judging from http://gnu-automake.7480.n7.nabble.com/Man-pages-for-automake-and-aclocal-td11966.html) help2man is of version 1.40.12. --- Executing(%build): /bin/sh -e

Re: Error running help2man on aclocal-1.13.1

2013-01-09 Thread Jan Engelhardt
On Wednesday 2013-01-09 19:11, Stefano Lattarini wrote: On 01/09/2013 05:05 PM, Jan Engelhardt wrote: The help2man: can't get `--help' info from ./aclocal error seems to have reappeared in automake-1.13.1 (judging from http://gnu-automake.7480.n7.nabble.com/Man-pages-for-automake

Re: Error running help2man on aclocal-1.13.1

2013-01-09 Thread Jan Engelhardt
On Wednesday 2013-01-09 22:27, Stefano Lattarini wrote: Now I just have to figure out why someone thought that openSUSE should create the manpages directly... Good question What happens if you do this instead? help2man -S FSF ./t/wrap/aclocal-1.13 output.1 Does this fix your problem?

Do fail when regeneration of Makefile.in does not succeed

2012-11-14 Thread Jan Engelhardt
Hi, Is there an option to yield an error instead of a warning if Makefile.in needs to be regenerated, but can't? The case before me is that iptables's Makefile.am in openSUSE is patched after tarball extraction. But, due to 1. $PEBKAC not calling autoreconf, 2. the system having automake-1.12

The case of libkmod's .so versioning attempts, and induced collisions

2012-02-06 Thread Jan Engelhardt
Much to my disappointment, I found that the newly-released libkmod v5 has made the following non-trivial change to its source tree, the latter of which I want to bring to attention: commit e479598b7d19ae7be45bf5329d6e4df32d646c16 diff --git a/Makefile.am b/Makefile.am

Re: What is it with the dependency on config.status

2012-01-09 Thread Jan Engelhardt
On Sunday 2012-01-01 10:24, Stefano Lattarini wrote: On 12/31/2011 12:29 AM, Jan Engelhardt wrote: I have seen user-induced lines in Makefile.am like these in a handful of packages: Which packages? I need more information if I am to attempt an informed guess ... ${pkgconfig_DATA

What is it with the dependency on config.status

2011-12-30 Thread Jan Engelhardt
I have seen user-induced lines in Makefile.am like these in a handful of packages: ${pkgconfig_DATA}: ${top_builddir}/config.status Given that automake 1.11.1/autoconf 2.68 seem to automatically recreate files specified in AC_CONFIG_FILES when configure.ac is changed, what is the

ylwrap - flex filename weirdness

2010-10-31 Thread Jan Engelhardt
Hi, While trying to utilize Autotools in a preexisting project that previously just relied on Makefiles, I came across ylwrap failing for some absurd, unknown reason. I couldn't help but run sh -x and debug it piecewise. So what's ultimately done is running flex inside a temp directory,

Re: ylwrap - flex filename weirdness

2010-10-31 Thread Jan Engelhardt
On Sunday 2010-10-31 16:42, Philip Herron wrote: While trying to utilize Autotools in a preexisting project that previously just relied on Makefiles, I came across ylwrap failing for some absurd, unknown reason. I couldn't help but run sh -x and debug it piecewise. So what's ultimately

Re: Add missing bootstrap file

2009-11-15 Thread Jan Engelhardt
[Note that this has nothing to do with the bootstrap file] On Sunday 2009-11-15 17:44, Alfred M. Szmidt wrote: Index: automake/m4/init.m4 === --- automake.orig/m4/init.m4 +++ automake/m4/init.m4 @@ -107,6 +107,7 @@

Re: Add missing bootstrap file

2009-11-14 Thread Jan Engelhardt
On Saturday 2009-11-14 14:06, Ralf Wildenhues wrote: Hi Jan, * Jan Engelhardt wrote on Mon, Nov 09, 2009 at 02:09:14AM CET: in the automake tarballs, the 'bootstrap' script is missing, but it would be needed when modifying any of the automake files in a tarball. Sounds reasonable to me

Add missing bootstrap file

2009-11-08 Thread Jan Engelhardt
Hi, in the automake tarballs, the 'bootstrap' script is missing, but it would be needed when modifying any of the automake files in a tarball. In other words, when used in an rpm build script: Source: automake-1.11.tar.bz2 Patch1: foobar.diff modifying m4/init.m4 Not running bootstrap after

Non-recursive automake

2009-10-17 Thread Jan Engelhardt
Hi, when one decides to drive make in a non-recursive fashion, one has to write an Automake file like this: lib_LTLIBRARIES = foo/bar.la foo_bar_la_SOURCES = foo/one.c foo/two.c Usually I stuff that into a file called foo/Automakefile and include foo/Automakefile from the real Makefile.am.

Re: makes which break with `silent-rules'

2009-05-27 Thread Jan Engelhardt
On Sunday 2009-05-24 15:24, Thomas Dickey wrote: On Sun, 24 May 2009, Bruno Haible wrote: - The `silent-rules' option enables Linux kernel-style silent build output. This option requires the widely supported but non-POSIX `make' feature of recursive variable expansion, We are talking

Re: cross-compiling on 64 to 32-bit Linux

2009-05-24 Thread Jan Engelhardt
On Sunday 2009-05-24 16:25, Andreas Schwab wrote: Bruno Haible br...@clisp.org writes: - The -m64 flag is the default on bi-arch Linux systems. This is wrong. - The -m32 flag has to be passed as part of both CC / CXX and LDFLAGS. That should not be necessaray, since any command that

Re: using C# in automake

2009-05-24 Thread Jan Engelhardt
On Sunday 2009-05-24 19:35, Bob Friesenhahn wrote: On Sun, 24 May 2009, Andreas Otto wrote: I want to create an language binding for a C libraray this mean I have as input an file called csmsgque.cs and get as output an csmsgque.dll on unix It seems like what is needed is C#

Re: rebuilding following a change in prefix?

2009-05-07 Thread Jan Engelhardt
On Friday 2009-05-08 06:23, Adam Mercer wrote: I have noticed some strange behaviour with the build system on a project I am working on, consider the following: $ ./configure --prefix=/path/1 $ make $ make install $ ./configure --prefix=/path/2 $ make $ make install I would expect the make

Re: Effects of some references to other libraries in a shared library

2009-05-04 Thread Jan Engelhardt
On Monday 2009-05-04 08:06, John Calcote wrote: On 5/3/2009 3:32 PM, Gerald I. Evenden wrote: In a shared library there are about 8 routines out over 100 that refer to libgsl and libpthread. A frequent situation may arise where an application program has no need for using the 8 procedures

Re: Setting shared lib version not functioning

2009-05-03 Thread Jan Engelhardt
On Sunday 2009-05-03 17:41, Gerald I. Evenden wrote: libproject_la_LDFLAGS = -version-info 2:0:1 which worked fine when with previous loading of a library with 2:0:0 versioning code. But now, when I go through the autoreconf, configure, compile and install I get: libproject.so.1.1.0 Which

Re: Setting shared lib version not functioning

2009-05-03 Thread Jan Engelhardt
On Sunday 2009-05-03 18:58, John Calcote wrote: It appears that Libtool is smart enough to detect ridiculous cases, but it should probably throw an error of some sort, rather than simply generate code with a different version number. Since libtool is just a linker as far as is considered here,

Re: Setting shared lib version not functioning

2009-05-03 Thread Jan Engelhardt
On Sunday 2009-05-03 20:40, Gerald I. Evenden wrote: What I did to the library was add several procedures That in itself would cause a bump in the 'current' number to 3. but the original functions were not changed nor affected. So 'age' becomes 1, since you are still supporting (3-1) = 2.

Re: Effects of some references to other libraries in a shared library

2009-05-03 Thread Jan Engelhardt
On Sunday 2009-05-03 23:32, Gerald I. Evenden wrote: In a shared library there are about 8 routines out over 100 that refer to libgsl and libpthread. A frequent situation may arise where an application program has no need for using the 8 procedures infected with other library needs. At the

Re: [patch] restore original spacing width for verbose mode

2009-05-01 Thread Jan Engelhardt
On Friday 2009-05-01 09:57, Ralf Wildenhues wrote: Hi Jan, * Jan Engelhardt wrote on Thu, Apr 30, 2009 at 09:05:07PM CEST: Output seems crushed, so restore the original behavior. Can you explain this, please? The original submission I did around October 2008 followed the Linux-style output

[patch] restore original spacing width for verbose mode

2009-04-30 Thread Jan Engelhardt
Output seems crushed, so restore the original behavior. --- automake.in |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: automake/automake.in === --- automake.orig/automake.in +++ automake/automake.in @@ -1199,7

Re: whitespaces truncated [Automake 1.10b test release]

2009-04-28 Thread Jan Engelhardt
On Monday 2009-04-27 22:27, Ralf Wildenhues wrote: CXXbar.o CXXLD prog $ grep CXX_0 Makefile.in am__v_CXX_0 = @echo CXX$@; Thanks for the bug report. Fixed with the patch below. I also had a look at the automake source, and I rather find this the problem (in

Re: Automake 1.10b test release

2009-04-25 Thread Jan Engelhardt
On Tuesday 2009-03-31 01:21, Ralf Wildenhues wrote: I'm pleased to announce the Automake 1.10b test release. It contains a bunch of new features, and a bunch of bugfixes over previous versions, and probably a bunch of new bugs. Highlights, in no particular order: I just now tried

Re: Automake 1.10b test release

2009-04-25 Thread Jan Engelhardt
On Saturday 2009-04-25 23:19, Jan Engelhardt wrote: On Tuesday 2009-03-31 01:21, Ralf Wildenhues wrote: I'm pleased to announce the Automake 1.10b test release. It contains a bunch of new features, and a bunch of bugfixes over previous versions, and probably a bunch of new bugs. Highlights

Re: whitespaces truncated [Automake 1.10b test release]

2009-04-25 Thread Jan Engelhardt
On Tuesday 2009-03-31 01:21, Ralf Wildenhues wrote: I'm pleased to announce the Automake 1.10b test release. It contains a bunch of new features, and a bunch of bugfixes over previous versions, and probably a bunch of new bugs. Highlights, in no particular order: [...] As silent-rules stand

Re: Create a custom target

2009-04-23 Thread Jan Engelhardt
On Thursday 2009-04-23 04:54, automake wrote: Hi I have a similar problem with giving a customized target. I have included target into Makefile.am as extra: ...nm ...link But the default target for makefiles from configure.ac is all. Is there a way to add this target to all

Re: Automatic debug symbol generation

2009-04-23 Thread Jan Engelhardt
On Thursday 2009-04-23 14:51, Bob Rossi wrote: What's the advantage over just installing binaries into $(bindir) without stripping them? **Non-brain-damaged** systems won't load them from the file anyway for normal execution. [emphasis added by me] On mingw/msys the executables with debug

Re: Automatic debug symbol generation

2009-04-22 Thread Jan Engelhardt
On Wednesday 2009-04-22 07:33, Ralf Wildenhues wrote: * JRS wrote on Wed, Apr 22, 2009 at 07:02:55AM CEST: I was setting up build infrastructure once again when it occurred to me, hmm, wouldn't it be nice if automake had default targets for installing symbols? For example, make install-syms

Re: 32-bit/64-bit builds on Solaris

2009-04-18 Thread Jan Engelhardt
On Saturday 2009-04-18 19:21, Monty Taylor wrote: Solaris on Sparc supports both 32 and 64 bit binaries, with builds defaulting to 32-bit. (Thanks backwards compatibility for proprietary software!) On SPARC, choosing 32-bit is an architectural decision rather than a software or political one.

Re: DESTDIR vs `make install exec_prefix='

2009-04-18 Thread Jan Engelhardt
On Saturday 2009-04-18 22:06, Russ Allbery wrote: Russ Allbery r...@stanford.edu writes: Ralf Wildenhues ralf.wildenh...@gmx.de writes: [1] I'm asking because Automake 1.11 will reliably not install files if their respective installation directory is empty. This is not yet functional in

Re: DESTDIR vs `make install exec_prefix='

2009-04-18 Thread Jan Engelhardt
On Saturday 2009-04-18 22:45, John Calcote wrote: Oh, you mean if the value of the *variable* is empty (following the thread), not the directory itself. D'oh, sorry, that should have been obvious to me from context. Never mind. :) No, I also thought of empty directories. Quote from

Re: silent build rules

2009-04-14 Thread Jan Engelhardt
On Tuesday 2009-04-14 08:09, Ralf Wildenhues wrote: Here's why: [...] Yet another way out: remove per-Makefile.am `AUTOMAKE_OPTIONS = silent-rules' as well as `automake --silent-rules' so that the only way to specify them is as option listed in AM_INIT_AUTOMAKE. This may be inconvenient for

mingw compiler on cygwin, and path issues

2009-04-10 Thread Jan Engelhardt
Hi, I am currently using automake in a Windows-related project; there is a (pure) mingw compiler in c:\mingw, and cygwin is installed in c:\cygwin. Now I noticed that Makefile.in, as generated by automake, has a CYGPATH_W variable which is `echo` on Unices, and `cygpath -w` on Cygwin. The

Re: mingw compiler on cygwin, and path issues

2009-04-10 Thread Jan Engelhardt
On Friday 2009-04-10 22:19, Jan Engelhardt wrote: AM_CFLAGS = -I${abs_top_builddir}/subproject AM_LDFLAGS = -L${abs_top_builddir}/subproject This gets expanded into -I/home/User/project/subproject, but the mingw compiler of course tries to search in C:\home\user\project\subproject instead of c

Re: Finding library procedures in /usr/local/lib/

2009-04-03 Thread Jan Engelhardt
On Thursday 2009-04-02 23:45, Gerald I. Evenden wrote: After trying so many options related to libraries I am exhausted. I have a simple program that needs to link with a shared library installed in /usr/local/lib. When using my own simple Makefile and simply adding -lproject -lm everything

Re: git branch strategy after 1.11

2009-03-24 Thread Jan Engelhardt
On Sunday 2009-03-22 12:23, Ralf Wildenhues wrote: Hello everyone, just to let you know, after 1.11 I intend to change the branch setup a bit. When branch-1-11 is created, I will also create a branch maint, which will then receive bug fixes appropriate for both 1.11.x and 1.11a. The maint

Re: git branch strategy after 1.11

2009-03-24 Thread Jan Engelhardt
Hi Ralf, On Tuesday 2009-03-24 22:48, Ralf Wildenhues wrote: And: once branch-1.11 development finally ceases, it can be deleted. This works because the commits remain reachable via the release tags. If necessary, the branch pointer can simply be recreated. What would be the advantage of

ylwrap fails with name-prefixed .l file

2009-03-24 Thread Jan Engelhardt
Hi, when a scanner.l file contains %option prefix=foo_ flex will output to lex.foo_.c instead of lex.yy.c, causing ylwrap to fail (automake runs:) /bin/sh ../ylwrap scanner.l lex.yy.c scanner.c -- flex How would one best proceed here? Especially when there are

ylwrap and flex --header-file

2009-03-24 Thread Jan Engelhardt
Hi, when one uses --header-file in conjunction with ylwrap, the header file is produced in the temporary directory ylwrap runs in instead of ${srcdir}. I think this should be addresses somehow - I'm open to suggestions or ideas on how this could be tackled. One way would probably just to add

Re: [PATCH 4/4] New automake command line option `--silent-rules'.

2009-03-11 Thread Jan Engelhardt
On Wednesday 2009-03-11 21:06, Ralf Wildenhues wrote: * Ralf Wildenhues wrote on Sun, Mar 08, 2009 at 10:46:40AM CET: The current patch still has a couple of warts in that --silent-rules should turn off portability-recursive warnings independently of the command line argument order. This is

Re: [PATCH 4/4] New automake command line option `--silent-rules'.

2009-03-11 Thread Jan Engelhardt
On Wednesday 2009-03-11 22:43, Ralf Wildenhues wrote: * Jan Engelhardt wrote on Wed, Mar 11, 2009 at 09:34:20PM CET: On Wednesday 2009-03-11 21:06, Ralf Wildenhues wrote: Do we want to allow a command line knob (--silent-rules) to turn off `silent' mode, or do we force developers to either

Re: [PATCH 4/4] New automake command line option `--silent-rules'.

2009-03-09 Thread Jan Engelhardt
On Monday 2009-03-09 15:57, Ralf Corsepius wrote: For this patch, I'm unsure if we should even add it at all. FWIW: I am opposed to it. All this silencing stuff does is to add further potential sources of errors. Which ones, please? Those yet to be discovered. Oh what great

Re: [PATCH 4/4] New automake command line option `--silent-rules'.

2009-03-09 Thread Jan Engelhardt
On Monday 2009-03-09 16:10, Ralf Corsepius wrote: For this patch, I'm unsure if we should even add it at all. FWIW: I am opposed to it. All this silencing stuff does is to add further potential sources of errors. Which ones, please? Those yet to be discovered. Oh what

Re: [PATCH 4/4] New automake command line option `--silent-rules'.

2009-03-09 Thread Jan Engelhardt
On Monday 2009-03-09 16:54, Ralf Corsepius wrote: which has some similar silent mode too (by default even!)... Correct. that's one of cmake's sillynesses. It hides away the silent bugs a package suffers from. Potential bugs in the command line invoking $CC that automake generates just go

Re: Does using automake+autoconf require my project to be GPL'ed?

2009-03-09 Thread Jan Engelhardt
On Monday 2009-03-09 14:45, almkglor wrote: What I'd like to know is, does using Automake+Autoconf require me to license distributions built using them with the GPL? [...] While GPL is OK by me, it might not be as popular among other developers. ^^ I could list apache-httpd2 as an example

Re: automake less verbose (iter 3)

2009-03-08 Thread Jan Engelhardt
On Sunday 2009-03-08 10:01, Ralf Wildenhues wrote: Another minor issue I don't quite like yet: before this change, the code was quite carefully laid out to be performant in the generic fastdep case: GNU make can avoid spawning a shell for a command, when the command line to be executed can

Re: automake less verbose branch

2009-03-07 Thread Jan Engelhardt
On Saturday 2009-03-07 16:16, Ralf Wildenhues wrote: Hello Jan, all, I've worked a bit on the less verbose automake stuff, and put the result up as a branch in the git repository: git clone git://git.savannah.gnu.org/automake.git git branch je-silent origin/je-silent-am

Re: Appending to builtin Automake variables from an included file

2009-02-28 Thread Jan Engelhardt
On Saturday 2009-02-28 11:16, Ralf Wildenhues wrote: Modern Automake does support appending. But only appending to a variable that has already been set. Yes. This is done primarily to be able to diagnose typos, e.g., foolish = foo1ish += bar [...] Is it worth the hassle? It's certainly

Re: Appending to builtin Automake variables from an included file

2009-02-25 Thread Jan Engelhardt
On Thursday 2009-02-26 00:44, Allan Caffee wrote: What is the cleanest to way to append something to a builtin variable (e.g. MAINTAINERCLEANFILES) from an Automake header.[...] Is there a cleaner, ideally non-invasive method for adding things to these builtin lists? In one project I use --

Re: Where to generate .lo files ?

2009-02-04 Thread Jan Engelhardt
On Wednesday 2009-02-04 10:33, Michel Briand wrote: Furthermore I noted that .o files are twice for one source file: $ find . -name main.* -ls 49646234 -rw-r--r-- 1 michel users 266 fév 4 10:22 ./main.lo 44401878 -rw-r--r-- 1 michel users5268 fév 4 10:22

Re: R_X86_64_32S error building a shared library

2009-01-26 Thread Jan Engelhardt
On Monday 2009-01-26 23:33, Adam Nielsen wrote: $ g++ -fPIC -c -o main.o main.cpp -I/usr/include/boost-1_37/ g++ -o test.so main.o -shared This works since main.cpp is being compiled to main.o with PIC. However, Boost is not involved here so it proves nothing about Boost. It does prove

Re: R_X86_64_32S error building a shared library

2009-01-25 Thread Jan Engelhardt
On Sunday 2009-01-25 05:46, Adam Nielsen wrote: x86_64-pc-linux-gnu/bin/ld: .../lib64/libboost_system-mt-1_37.a(error_code.o): relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC .../lib64/libboost_system-mt-1_37.a: could not

Re: R_X86_64_32S error building a shared library

2009-01-25 Thread Jan Engelhardt
On Monday 2009-01-26 01:23, Adam Nielsen wrote: x86_64-pc-linux-gnu/bin/ld: .../lib64/libboost_system-mt-1_37.a(error_code.o): relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC .../lib64/libboost_system-mt-1_37.a: could not

  1   2   >