GNU bug report logs -
#59700
[DOCUMENTATION] [PATCH] doc: Move %facebook-host-aliases to operating-system.
Previous Next
Reported by: Bruno Victal <mirai <at> makinata.eu>
Date: Tue, 29 Nov 2022 21:46:02 UTC
Severity: normal
Tags: moreinfo, patch
Done: Bruno Victal <mirai <at> makinata.eu>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 59700 in the body.
You can then email your comments to 59700 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#59700
; Package
guix-patches
.
(Tue, 29 Nov 2022 21:46:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Bruno Victal <mirai <at> makinata.eu>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Tue, 29 Nov 2022 21:46:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Looks misplaced among the various service definitions.
Bruno Victal (1):
doc: Move %facebook-host-aliases to operating-system.
doc/guix.texi | 58 +++++++++++++++++++++++++--------------------------
1 file changed, 29 insertions(+), 29 deletions(-)
base-commit: aaf1f18b8044142515ff868bcbd2b72b81ced3ec
--
2.38.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#59700
; Package
guix-patches
.
(Tue, 29 Nov 2022 21:48:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 59700 <at> debbugs.gnu.org (full text, mbox):
From: Bruno Victal <mirai <at> makinata.eu>
---
doc/guix.texi | 58 +++++++++++++++++++++++++--------------------------
1 file changed, 29 insertions(+), 29 deletions(-)
diff --git a/doc/guix.texi b/doc/guix.texi
index 47b805dc7f..3636c45b29 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -16530,6 +16530,35 @@ It is an error to refer to @code{this-operating-system} outside an operating
system definition.
@end deffn
+@defvr {Scheme Variable} %facebook-host-aliases
+This variable contains a string for use in @file{/etc/hosts}
+(@pxref{Host Names,,, libc, The GNU C Library Reference Manual}). Each
+line contains a entry that maps a known server name of the Facebook
+on-line service---e.g., @code{www.facebook.com}---to the local
+host---@code{127.0.0.1} or its IPv6 equivalent, @code{::1}.
+
+This variable is typically used in the @code{hosts-file} field of an
+@code{operating-system} declaration (@pxref{operating-system Reference,
+@file{/etc/hosts}}):
+
+@lisp
+(use-modules (gnu) (guix))
+
+(operating-system
+ (host-name "mymachine")
+ ;; ...
+ (hosts-file
+ ;; Create a /etc/hosts file with aliases for "localhost"
+ ;; and "mymachine", as well as for Facebook servers.
+ (plain-file "hosts"
+ (string-append (local-host-aliases host-name)
+ %facebook-host-aliases))))
+@end lisp
+
+This mechanism can prevent programs running locally, such as Web
+browsers, from accessing Facebook.
+@end defvr
+
@end deftp
@node File Systems
@@ -20841,35 +20870,6 @@ Logging level.
@end table
@end deftp
-@defvr {Scheme Variable} %facebook-host-aliases
-This variable contains a string for use in @file{/etc/hosts}
-(@pxref{Host Names,,, libc, The GNU C Library Reference Manual}). Each
-line contains a entry that maps a known server name of the Facebook
-on-line service---e.g., @code{www.facebook.com}---to the local
-host---@code{127.0.0.1} or its IPv6 equivalent, @code{::1}.
-
-This variable is typically used in the @code{hosts-file} field of an
-@code{operating-system} declaration (@pxref{operating-system Reference,
-@file{/etc/hosts}}):
-
-@lisp
-(use-modules (gnu) (guix))
-
-(operating-system
- (host-name "mymachine")
- ;; ...
- (hosts-file
- ;; Create a /etc/hosts file with aliases for "localhost"
- ;; and "mymachine", as well as for Facebook servers.
- (plain-file "hosts"
- (string-append (local-host-aliases host-name)
- %facebook-host-aliases))))
-@end lisp
-
-This mechanism can prevent programs running locally, such as Web
-browsers, from accessing Facebook.
-@end defvr
-
The @code{(gnu services avahi)} provides the following definition.
@defvr {Scheme Variable} avahi-service-type
--
2.38.1
Changed bug title to '[DOCUMENTATION] [PATCH] doc: Move %facebook-host-aliases to operating-system.' from '[PATCH 0/1] doc: Move %facebook-host-aliases to operating-system.'
Request was from
mirai <mirai <at> makinata.eu>
to
control <at> debbugs.gnu.org
.
(Tue, 06 Dec 2022 23:58:01 GMT)
Full text and
rfc822 format available.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#59700
; Package
guix-patches
.
(Tue, 03 Jan 2023 22:02:01 GMT)
Full text and
rfc822 format available.
Message #13 received at 59700 <at> debbugs.gnu.org (full text, mbox):
Hi Bruno,
mirai <at> makinata.eu writes:
Putting a facebook related stanzas
> From: Bruno Victal <mirai <at> makinata.eu>
>
> ---
> doc/guix.texi | 58 +++++++++++++++++++++++++--------------------------
> 1 file changed, 29 insertions(+), 29 deletions(-)
Please include a GNU Changelog commit message, it makes it easy to
comprehend the changes (see: info "(standards) Style of Change Logs"
from the 'standards' package).
Moving %facebook-hosts-aliases to under the 'operating-system Reference'
from network services doesn't seem an improvement to me (it seems even
more out of place to me).
I'd err on the side of the status quo.
What do you think?
Maxim
Added tag(s) moreinfo.
Request was from
Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Tue, 03 Jan 2023 22:02:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#59700
; Package
guix-patches
.
(Tue, 03 Jan 2023 22:08:02 GMT)
Full text and
rfc822 format available.
Message #18 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi Maxim, Bruno,
In my opinion, this entire Facebook blocklist is out of scope of the
core operating system, and it should be removed entirely to reduce the
maintenance burden, and any other future attempt to add other hosts to
it. I am not sure how many users out there are relying on this behavior.
--
Sincerely,
Ryan Sundberg
On 1/3/23 2:01 PM, Maxim Cournoyer wrote:
> Hi Bruno,
>
> mirai <at> makinata.eu writes:
>
> Putting a facebook related stanzas
>
>> From: Bruno Victal <mirai <at> makinata.eu>
>>
>> ---
>> doc/guix.texi | 58 +++++++++++++++++++++++++--------------------------
>> 1 file changed, 29 insertions(+), 29 deletions(-)
>
> Please include a GNU Changelog commit message, it makes it easy to
> comprehend the changes (see: info "(standards) Style of Change Logs"
> from the 'standards' package).
>
> Moving %facebook-hosts-aliases to under the 'operating-system Reference'
> from network services doesn't seem an improvement to me (it seems even
> more out of place to me).
>
> I'd err on the side of the status quo.
>
> What do you think?
>
> Maxim
[OpenPGP_signature (application/pgp-signature, attachment)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#59700
; Package
guix-patches
.
(Thu, 05 Jan 2023 16:08:01 GMT)
Full text and
rfc822 format available.
Message #21 received at 59700 <at> debbugs.gnu.org (full text, mbox):
On 2023-01-03 22:01, Maxim Cournoyer wrote:
> Moving %facebook-hosts-aliases to under the 'operating-system Reference'
> from network services doesn't seem an improvement to me (it seems even
> more out of place to me).
I placed it under 'operating-system Reference' because of the proximity to 'hosts-file' field
and the usage example seems to suggest it's a better fit here.
>
> I'd err on the side of the status quo.
>
> What do you think?
I think its current location (Network services) is extremely strange as %facebook-host-aliases
is not a service and given the usage example it fits better elsewhere.
Bruno
Information forwarded
to
guix-patches <at> gnu.org
:
bug#59700
; Package
guix-patches
.
(Thu, 05 Jan 2023 16:24:01 GMT)
Full text and
rfc822 format available.
Message #24 received at 59700 <at> debbugs.gnu.org (full text, mbox):
Hi,
mirai <mirai <at> makinata.eu> writes:
> On 2023-01-03 22:01, Maxim Cournoyer wrote:
>> Moving %facebook-hosts-aliases to under the 'operating-system Reference'
>> from network services doesn't seem an improvement to me (it seems even
>> more out of place to me).
>
> I placed it under 'operating-system Reference' because of the proximity to 'hosts-file' field
> and the usage example seems to suggest it's a better fit here.
>
>>
>> I'd err on the side of the status quo.
>>
>> What do you think?
>
> I think its current location (Network services) is extremely strange as %facebook-host-aliases
> is not a service and given the usage example it fits better elsewhere.
I gathered another opinion on #guix from civodul, which thought status
quo is appropriate, though they mentioned turning host-file into a
service would be nice to make it more extendable. Perhaps you could
look into this, if you want to improve things in that direction?
--
Thanks,
Maxim
Reply sent
to
Bruno Victal <mirai <at> makinata.eu>
:
You have taken responsibility.
(Thu, 09 Feb 2023 01:03:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Bruno Victal <mirai <at> makinata.eu>
:
bug acknowledged by developer.
(Thu, 09 Feb 2023 01:03:02 GMT)
Full text and
rfc822 format available.
Message #29 received at 59700-done <at> debbugs.gnu.org (full text, mbox):
Completed with #60735.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 09 Mar 2023 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 48 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.