Changeset 96e0c171


Ignore:
Timestamp:
11/19/2023 11:01:36 PM (6 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.1, ken/TL2024, ken/tuningfonts, lazarus, plabs/newcss, python3.11, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/llvm18
Children:
331efa7
Parents:
9bfa685
Message:

mozilla: Drop SHELL=/bin/bash

Note that if you build something relying on $SHELL, it may still fail to
build in chroot.

In the chroot we first use "env -i" to clean the environment variables.
When bash starts with no $SHELL set, it *sets* SHELL=(the login shell
of current user specified in /etc/passwd), but it *does not export this
variable*.

For example:

$ cat > t.c << EOF
#include <stdio.h>
#include <stdlib.h>
int main() { puts (getenv ("SHELL") ?: "(nullptr)"); }
$ ./a.out
/bin/zsh/
$ cc t.c
$ env -i bash -c "echo $SHELL"
/bin/zsh
$ env -i bash -c "./a.out"
(nullptr)

We can remove this now only because Mozilla has added a workaround into
their building system at
https://hg.mozilla.org/mozilla-central/rev/5afe7b911f61 for some Mac
builder, inadvertently fixing our issue.

Link: https://lists.linuxfromscratch.org/sympa/arc/blfs-support/2014-11/msg00050.html
Link: https://lists.linuxfromscratch.org/sympa/arc/blfs-dev/2023-11/msg00136.html

Files:
2 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • general/genlib/spidermonkey.xml

    r9bfa685 r96e0c171  
    170170      <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    171171         href="../../xincludes/mozshm.xml"/>
    172 
    173       <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    174          href="../../xincludes/mozconfigure.xml"/>
    175 
    176172      <para>
    177173        Compiling the C++ code respects $MAKEFLAGS and defaults to 'j1',
  • xincludes/mozshm.xml

    r9bfa685 r96e0c171  
    11<?xml version="1.0" encoding="ISO-8859-1"?>
    22<!DOCTYPE note PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
    3   "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" >
     3  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
     4  <!ENTITY % general-entities SYSTEM "../general.ent">
     5  %general-entities;]>
    46
    57
     
    79         mounted when configured or similar in chroot.
    810         Unfortunately, the DTD says an xinclude can only include
    9          one paragraph. -->
     11         one paragraph.
     12
     13         We now have exactly one paragraph, git blame this line for
     14         details.                                             -->
    1015
    1116    <para>
    12       If you are compiling this package in chroot you must do two things.
    13       First, as the <systemitem class="username">root</systemitem> user,
     17      If you are compiling this package in chroot you must
    1418      ensure that <filename>/dev/shm</filename> is mounted. If you do not
    1519      do this, the <application>Python</application> configuration will fail
    1620      with a traceback report referencing
    1721      <filename>/usr/lib/pythonN.N/multiprocessing/synchronize.py</filename>.
    18       Run:
     22      As the &root; user, run:
    1923
    2024<screen role="nodump"><userinput>mountpoint -q /dev/shm || mount -t tmpfs devshm /dev/shm</userinput></screen>
    2125
    2226    </para>
    23     <!-- follow with appropriate text about exporting SHELL -->
  • xsoft/graphweb/firefox.xml

    r9bfa685 r96e0c171  
    398398
    399399    <note>
    400 
    401400      <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    402401       href="../../xincludes/mozshm.xml"/>
    403 
    404       <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    405        href="../../xincludes/mozmach.xml"/>
    406 
    407402    </note>
    408403
  • xsoft/graphweb/seamonkey.xml

    r9bfa685 r96e0c171  
    267267      <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    268268       href="../../xincludes/mozshm.xml"/>
    269       <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    270        href="../../xincludes/mozmach.xml"/>
    271269    </note>
    272270
  • xsoft/other/thunderbird.xml

    r9bfa685 r96e0c171  
    255255      <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    256256       href="../../xincludes/mozshm.xml"/>
    257 
    258       <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    259       href="../../xincludes/mozmach.xml"/>
    260 
    261257    </note>
    262258
Note: See TracChangeset for help on using the changeset viewer.