Recent

Author Topic: How to suppress the fpc boilerplate version and copyright?  (Read 1950 times)

discretegames

  • Guest
How to suppress the fpc boilerplate version and copyright?
« on: September 21, 2021, 08:52:30 pm »
Every time I run fpc I see this boilerplate text with the version and copyright:

Code: [Select]
Free Pascal Compiler version 3.2.2 [2021/05/15] for i386
Copyright (c) 1993-2021 by Florian Klaempfl and others

Is there any to hide or suppress it? The verbose option -v0 does not do it.

This normally wouldn't be an issue but I'm chaining fpc compile and run commands and capturing the stdout, so I need to suppress anything except for the stdout of the actual program.

MarkMLl

  • Hero Member
  • *****
  • Posts: 6683
Re: How to suppress the fpc boilerplate version and copyright?
« Reply #1 on: September 21, 2021, 09:02:17 pm »
I would suggest that suppressing the author's copyright message is uncivil, and contravenes the spirit if not the letter of just about every non-PD license in existence.

I'd suggest that a useful compromise would be to accept the fact that the compiler emits those messages, but to discard them using grep in your pipeline.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: How to suppress the fpc boilerplate version and copyright?
« Reply #2 on: September 21, 2021, 09:10:18 pm »
Every time I run fpc I see this boilerplate text with the version and copyright:
Is there any to hide or suppress it? The verbose option -v0 does not do it.
Code: Pascal  [Select][+][-]
  1. fpc -l-
-l - prints the logo (copyright mark)
-l- - hides the logo

@MarkMLl please don't use "Report to moderator" if a post doesn't have any explicit violations of the internet norms.
« Last Edit: September 21, 2021, 09:12:14 pm by skalogryz »

discretegames

  • Guest
Re: How to suppress the fpc boilerplate version and copyright?
« Reply #3 on: September 21, 2021, 09:15:34 pm »
Thanks skalogryz! That works excellently. I knew there'd be an option for it.

MarkMLl

  • Hero Member
  • *****
  • Posts: 6683
Re: How to suppress the fpc boilerplate version and copyright?
« Reply #4 on: September 21, 2021, 09:26:13 pm »
@MarkMLl please don't use "Report to moderator" if a post doesn't have any explicit violations of the internet norms.

Noted, but I asked for an opinion in case nobody else had spotted this taking into account timezone disparities etc.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: How to suppress the fpc boilerplate version and copyright?
« Reply #5 on: September 21, 2021, 09:46:35 pm »
Noted, but I asked for an opinion in case nobody else had spotted this taking into account timezone disparities etc.
You need to use "Request Immediate Community Attention" link in this case xD

IMHO: the nature of the forum suggests non-immediate answers. It's ok for a question to stay un answered or without opinions for a 72 hours.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9864
  • Debugger - SynEdit - and more
    • wiki
Re: How to suppress the fpc boilerplate version and copyright?
« Reply #6 on: September 21, 2021, 10:05:02 pm »
IMHO, if you are unsure a question raises legal concerns, or may lead towards answers that may do so, then it is fine to "report to mods".
Sure there will be the false positive now and then. But heck, that's life.

I don't think this question falls into the category. So therefore it is a false positive.

Just my tuppence worth.

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: How to suppress the fpc boilerplate version and copyright?
« Reply #7 on: September 21, 2021, 10:34:14 pm »
just to clarify from the legal prespective.

GNU GPL doesn't apply to the complier's output, that means removing any produced text is ok

One could provide their own version of FPC with the copyright mark replaced. It would still satisfy GNU GPL as long as the changes are highlighted and the original licenses are present. It could/might be unethical, but still legal.

Do you think it is legal/ethical that only Florian's name is on the copyright? FPC itself is a product of many other people as well.

Tomas Hajny

  • Moderator
  • New Member
  • *****
  • Posts: 45
Re: How to suppress the fpc boilerplate version and copyright?
« Reply #8 on: September 21, 2021, 10:35:47 pm »
I would suggest that suppressing the author's copyright message is uncivil, and contravenes the spirit if not the letter of just about every non-PD license in existence.

I'd suggest that a useful compromise would be to accept the fact that the compiler emits those messages, but to discard them using grep in your pipeline.

MarkMLl

Thanks for your concern with regard to FPC authors.

First, it isn't clear from the original post whether the suppression is meant during processing directly issued by the original poster, or by somebody else (like a customer, etc.). However, even if it is the latter, there are other ways to give the appropriate credits (like proper documentation, etc.), i.e. suppression of the copyright message is not necessarily a problem. Second, FPC license provides specific information on what is allowed and/or required; always displaying the copyright on every run of FPC is not required there.

MarkMLl

  • Hero Member
  • *****
  • Posts: 6683
Re: How to suppress the fpc boilerplate version and copyright?
« Reply #9 on: September 21, 2021, 10:48:01 pm »
First, it isn't clear from the original post whether the suppression is meant during processing directly issued by the original poster, or by somebody else (like a customer, etc.). However, even if it is the latter, there are other ways to give the appropriate credits (like proper documentation, etc.), i.e. suppression of the copyright message is not necessarily a problem.

Hence my suggestion of excluding it using grep etc., where at the very least the fact that somebody was specifically dropping messages would be visible to anybody who had the relevant script file (and OP's mention of stdout suggested he was aware of such things).

Quote
Second, FPC license provides specific information on what is allowed and/or required; always displaying the copyright on every run of FPC is not required there.

I think the bottom line is that since the compiler has supplied a way of suppressing the messages the developers aren't too unhappy about it being done.

Finally, I'd like to apologise to OP: I wasn't trying to "blow the whistle" or anything like that, but I wanted to make sure that the filtering suggestion I'd made didn't rub anybody up the wrong way.

MarkMLl

p.s. I can't see a "Request Immediate Community Attention" link, and once a message drops off the "Recent" pane it's likely to be overlooked by many.
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

PascalDragon

  • Hero Member
  • *****
  • Posts: 5469
  • Compiler Developer
Re: How to suppress the fpc boilerplate version and copyright?
« Reply #10 on: September 22, 2021, 08:56:48 am »
Quote
Second, FPC license provides specific information on what is allowed and/or required; always displaying the copyright on every run of FPC is not required there.

I think the bottom line is that since the compiler has supplied a way of suppressing the messages the developers aren't too unhappy about it being done.

In addition to that the default option of the compiler itself is not to show the logo output. It's simply enabled by default in the provided fpc.cfg.

 

TinyPortal © 2005-2018