linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Revert "rt-tests: Makefile: ctags: Change obsolete extra to extras"
@ 2023-09-26 11:04 Mathias Krause
  2023-10-18  6:29 ` Mathias Krause
  0 siblings, 1 reply; 4+ messages in thread
From: Mathias Krause @ 2023-09-26 11:04 UTC (permalink / raw)
  To: Clark Williams, John Kacur; +Cc: linux-rt-users, Mathias Krause

Commit 974241c78a6f ("rt-tests: Makefile: ctags: Change obsolete extra to
extras") not only broke the generation of tags files -- at least for exuberant
ctags version 5.9 as shipped in Debian -- but it also added -Wextra to CFLAGS,
leading to many warnings.

Simply revert the commit to undo the unintended change and unbreak ctags file
generation.

Signed-off-by: Mathias Krause <minipli@grsecurity.net>
---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 32a9f41198a4..3b9e90d528e5 100644
--- a/Makefile
+++ b/Makefile
@@ -30,7 +30,7 @@ prefix  ?= /usr/local
 bindir  ?= $(prefix)/bin
 mandir	?= $(prefix)/share/man
 
-CFLAGS ?= -Wall -Wno-nonnull -Wextra
+CFLAGS ?= -Wall -Wno-nonnull
 CPPFLAGS += -D_GNU_SOURCE -Isrc/include
 LDFLAGS ?=
 
@@ -253,4 +253,4 @@ help:
 
 .PHONY: tags
 tags:
-	ctags -R --extras=+f --c-kinds=+p --exclude=tmp --exclude=BUILD *
+	ctags -R --extra=+f --c-kinds=+p --exclude=tmp --exclude=BUILD *
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] Revert "rt-tests: Makefile: ctags: Change obsolete extra to extras"
  2023-09-26 11:04 [PATCH] Revert "rt-tests: Makefile: ctags: Change obsolete extra to extras" Mathias Krause
@ 2023-10-18  6:29 ` Mathias Krause
  2023-10-18 14:03   ` John Kacur
  0 siblings, 1 reply; 4+ messages in thread
From: Mathias Krause @ 2023-10-18  6:29 UTC (permalink / raw)
  To: Clark Williams, John Kacur; +Cc: linux-rt-users

On 26.09.23 13:04, Mathias Krause wrote:
> Commit 974241c78a6f ("rt-tests: Makefile: ctags: Change obsolete extra to
> extras") not only broke the generation of tags files -- at least for exuberant
> ctags version 5.9 as shipped in Debian -- but it also added -Wextra to CFLAGS,
> leading to many warnings.
> 
> Simply revert the commit to undo the unintended change and unbreak ctags file
> generation.
> 
> Signed-off-by: Mathias Krause <minipli@grsecurity.net>
> ---
>  Makefile | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/Makefile b/Makefile
> index 32a9f41198a4..3b9e90d528e5 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -30,7 +30,7 @@ prefix  ?= /usr/local
>  bindir  ?= $(prefix)/bin
>  mandir	?= $(prefix)/share/man
>  
> -CFLAGS ?= -Wall -Wno-nonnull -Wextra
> +CFLAGS ?= -Wall -Wno-nonnull
>  CPPFLAGS += -D_GNU_SOURCE -Isrc/include
>  LDFLAGS ?=
>  
> @@ -253,4 +253,4 @@ help:
>  
>  .PHONY: tags
>  tags:
> -	ctags -R --extras=+f --c-kinds=+p --exclude=tmp --exclude=BUILD *
> +	ctags -R --extra=+f --c-kinds=+p --exclude=tmp --exclude=BUILD *


Ping?

Can this be merged to fix ctags, at least?:

minipli@bell:~/src/upstream/rt-tests ((v2.6))$ make tags
ctags -R --extras=+f --c-kinds=+p --exclude=tmp --exclude=BUILD *
ctags: Unknown option: --extras
make: *** [Makefile:256: tags] Fehler 1
minipli@bell:~/src/upstream/rt-tests ((v2.6))$ ctags --version
Exuberant Ctags 5.9~svn20110310, Copyright (C) 1996-2009 Darren Hiebert
  Addresses: <dhiebert@users.sourceforge.net>, http://ctags.sourceforge.net
  Optional compiled features: +wildcards, +regex

Thanks,
Mathias

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Revert "rt-tests: Makefile: ctags: Change obsolete extra to extras"
  2023-10-18  6:29 ` Mathias Krause
@ 2023-10-18 14:03   ` John Kacur
  2023-10-19  6:49     ` Mathias Krause
  0 siblings, 1 reply; 4+ messages in thread
From: John Kacur @ 2023-10-18 14:03 UTC (permalink / raw)
  To: Mathias Krause; +Cc: Clark Williams, linux-rt-users



On Wed, 18 Oct 2023, Mathias Krause wrote:

> On 26.09.23 13:04, Mathias Krause wrote:
> > Commit 974241c78a6f ("rt-tests: Makefile: ctags: Change obsolete extra to
> > extras") not only broke the generation of tags files -- at least for exuberant
> > ctags version 5.9 as shipped in Debian -- but it also added -Wextra to CFLAGS,
> > leading to many warnings.
> > 
> > Simply revert the commit to undo the unintended change and unbreak ctags file
> > generation.
> > 
> > Signed-off-by: Mathias Krause <minipli@grsecurity.net>
> > ---
> >  Makefile | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> > 
> > diff --git a/Makefile b/Makefile
> > index 32a9f41198a4..3b9e90d528e5 100644
> > --- a/Makefile
> > +++ b/Makefile
> > @@ -30,7 +30,7 @@ prefix  ?= /usr/local
> >  bindir  ?= $(prefix)/bin
> >  mandir	?= $(prefix)/share/man
> >  
> > -CFLAGS ?= -Wall -Wno-nonnull -Wextra
> > +CFLAGS ?= -Wall -Wno-nonnull
> >  CPPFLAGS += -D_GNU_SOURCE -Isrc/include
> >  LDFLAGS ?=
> >  
> > @@ -253,4 +253,4 @@ help:
> >  
> >  .PHONY: tags
> >  tags:
> > -	ctags -R --extras=+f --c-kinds=+p --exclude=tmp --exclude=BUILD *
> > +	ctags -R --extra=+f --c-kinds=+p --exclude=tmp --exclude=BUILD *
> 
> 
> Ping?
> 
> Can this be merged to fix ctags, at least?:

Sorry, but the problem is that Debian is using an 
old version of ctags. You can either just edit the Makefile to build on 
Debian, or compile a more modern version of ctags by hand, I'm sure there 
are some other solutions as well.

As for the warnings, we want to see those. People including myself have 
sent in patches to fix the cause of the warnings, but simply hiding them
isn't the solution.

Thanks

John


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Revert "rt-tests: Makefile: ctags: Change obsolete extra to extras"
  2023-10-18 14:03   ` John Kacur
@ 2023-10-19  6:49     ` Mathias Krause
  0 siblings, 0 replies; 4+ messages in thread
From: Mathias Krause @ 2023-10-19  6:49 UTC (permalink / raw)
  To: John Kacur; +Cc: Clark Williams, linux-rt-users

On 18.10.23 16:03, John Kacur wrote:
> On Wed, 18 Oct 2023, Mathias Krause wrote:
>> On 26.09.23 13:04, Mathias Krause wrote:
>>> Commit 974241c78a6f ("rt-tests: Makefile: ctags: Change obsolete extra to
>>> extras") not only broke the generation of tags files -- at least for exuberant
>>> ctags version 5.9 as shipped in Debian -- but it also added -Wextra to CFLAGS,
>>> leading to many warnings.
>>>
>>> Simply revert the commit to undo the unintended change and unbreak ctags file
>>> generation.
>>>
>>> Signed-off-by: Mathias Krause <minipli@grsecurity.net>
>>> ---
>>>  Makefile | 4 ++--
>>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>>
>>> diff --git a/Makefile b/Makefile
>>> index 32a9f41198a4..3b9e90d528e5 100644
>>> --- a/Makefile
>>> +++ b/Makefile
>>> @@ -30,7 +30,7 @@ prefix  ?= /usr/local
>>>  bindir  ?= $(prefix)/bin
>>>  mandir	?= $(prefix)/share/man
>>>  
>>> -CFLAGS ?= -Wall -Wno-nonnull -Wextra
>>> +CFLAGS ?= -Wall -Wno-nonnull
>>>  CPPFLAGS += -D_GNU_SOURCE -Isrc/include
>>>  LDFLAGS ?=
>>>  
>>> @@ -253,4 +253,4 @@ help:
>>>  
>>>  .PHONY: tags
>>>  tags:
>>> -	ctags -R --extras=+f --c-kinds=+p --exclude=tmp --exclude=BUILD *
>>> +	ctags -R --extra=+f --c-kinds=+p --exclude=tmp --exclude=BUILD *
>>
>>
>> Ping?
>>
>> Can this be merged to fix ctags, at least?:
> 
> Sorry, but the problem is that Debian is using an 
> old version of ctags. You can either just edit the Makefile to build on 
> Debian, or compile a more modern version of ctags by hand, I'm sure there 
> are some other solutions as well.

Ah, I see. It's an incompatibility between Exuberant and Universal
Ctags. I'll sent a patch restoring support for the former in a moment.

> 
> As for the warnings, we want to see those. People including myself have 
> sent in patches to fix the cause of the warnings, but simply hiding them
> isn't the solution.

I see. I just noticed that ctags broke on me, dug up the offending
commit and saw the unintended(?, at least unmentioned) change to CFLAGS.
But fair enough, I'll leave it to you to fix up the warnings ;)

Thanks,
Mathias

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-10-19  6:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-26 11:04 [PATCH] Revert "rt-tests: Makefile: ctags: Change obsolete extra to extras" Mathias Krause
2023-10-18  6:29 ` Mathias Krause
2023-10-18 14:03   ` John Kacur
2023-10-19  6:49     ` Mathias Krause

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).