<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 5/23/22 08:57, Adam Skinner wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CA+gr128duuH1sySrJzdg2ZeT5nZZfB5mq4Tsiu2YLKZxQWJa1A@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>Hi All, <br>
        </div>
        <div><br>
        </div>
        <div>Im trying to use the mythtv deb light packaging to build
          the plugins for Mythtv on rasberian bullseye. <br>
        </div>
        <div><br>
        </div>
        <div>The main mythtv frontend package builds fine with the
          ~/.buildrc options</div>
        <div><br>
        </div>
        <div>MYTHTV_CONFIG_OPT_EXTRA="--enable-opengl --disable-vdpau
          --disable-vaapi" <br>
        </div>
        <div><br>
        </div>
        <div>When I try to use these options to build the plugins
          package <br>
        </div>
        <div><br>
        </div>
        <div>MYTHTV_CONFIG_OPT_EXTRA="--disable-mythnetvision
           --disable-mythbrowser --disable-mythnews  
          --disable-mythzoneminder  --disable-mythzmserver
           --enable-mythweather --enable-mythmusic --disable-fftw
          --disable-mytharchive --disable-mythgame --enable-opengl"</div>
        <br>
        <div><br>
        </div>
        <div>It falls over with the following:</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><span style="font-family:monospace">rmdir: removing
            directory, './usr/local/share/perl'<br>
            rmdir: removing directory, './usr/local/lib/python3.9'<br>
            rmdir: removing directory,
            './usr/local/lib/arm-linux-gnueabihf'<br>
            rmdir: removing directory, './usr/share/doc'<br>
            rmdir: removing directory, './usr/share/mythtv/html'<br>
            rmdir: removing directory, './usr/local/share'<br>
            rmdir: removing directory, './usr/local/lib'<br>
            rmdir: removing directory, './usr/local'<br>
            rmdir: missing operand<br>
            Try 'rmdir --help' for more information.<br>
            find:
‘/Roms/pi/32build/mythplugins-light_32.0-32-gb6286af7d8-0_armhf_bullseye/usr/bin/’:
            No such file or directory<br>
            Usage: strip <option(s)> in-file(s)<br>
             Removes symbols and sections from files<br>
             The options are:<br>
              -I --input-target=<bfdname>      Assume input file
            is in format <bfdname><br>
              -O --output-target=<bfdname>     Create an output
            file in format <bfdname><br>
              -F --target=<bfdname>            Set both input and
            output format to <bfdname><br>
              -p --preserve-dates              Copy modified/access
            timestamps to the output<br>
              -D --enable-deterministic-archives<br>
                                               Produce deterministic
            output when stripping archives (default)<br>
              -U --disable-deterministic-archives<br>
                                               Disable -D behavior<br>
              -R --remove-section=<name>       Also remove section
            <name> from the output<br>
                 --remove-relocations <name>   Remove relocations
            from section <name><br>
              -s --strip-all                   Remove all symbol and
            relocation information<br>
              -g -S -d --strip-debug           Remove all debugging
            symbols & sections<br>
                 --strip-dwo                   Remove all DWO sections<br>
                 --strip-unneeded              Remove all symbols not
            needed by relocations<br>
                 --only-keep-debug             Strip everything but the
            debug information<br>
              -M  --merge-notes                Remove redundant entries
            in note sections (default)<br>
                  --no-merge-notes             Do not attempt to remove
            redundant notes<br>
              -N --strip-symbol=<name>         Do not copy symbol
            <name><br>
                 --keep-section=<name>         Do not strip
            section <name><br>
              -K --keep-symbol=<name>          Do not strip symbol
            <name><br>
                 --keep-file-symbols           Do not strip file
            symbol(s)<br>
              -w --wildcard                    Permit wildcard in symbol
            comparison<br>
              -x --discard-all                 Remove all non-global
            symbols<br>
              -X --discard-locals              Remove any
            compiler-generated symbols<br>
              -v --verbose                     List all object files
            modified<br>
              -V --version                     Display this program's
            version number<br>
              -h --help                        Display this output<br>
                 --info                        List object formats &
            architectures supported<br>
              -o <file>                        Place stripped
            output into <file><br>
            strip: supported targets: elf32-littlearm
            elf32-littlearm-fdpic elf32-bigarm elf32-bigarm-fdpic
            elf32-little elf32-big srec symbolsrec verilog tekhex binary
            ihex plugin<br>
          </span></div>
        <div><span style="font-family:monospace"><br>
          </span></div>
        <div><span style="font-family:monospace"><br>
          </span></div>
        <div><span style="font-family:monospace"></span></div>
        <div>
          <div>I dont use the plugins that are disabled - but I use
            Mythmusic a lot.  I am keen to reduce ram usage as my pi
            only has 2G - and often run out of memory playing music. <br>
          </div>
          <div><br>
          </div>
          <div>I can build ALL the plugins when I have a blank buildrc
            with no options. </div>
          <div><br>
          </div>
          <div>Anyone have any ideas? <br>
          </div>
          <div><br>
          </div>
          <div>Thanks in advance</div>
          <div><br>
          </div>
        </div>
      </div>
    </blockquote>
    <p>The problem is that MYTHTV_CONFIG_OPT_EXTRA applies to mythtv
      options, not to plugin options. When building the plugins you have
      to leave the MYTHTV_CONFIG_OPT_EXTRA exactly the same as it was
      when you built mythtv. The script does not have an ability to
      insert extra plugin options or to change the options.<br>
    </p>
    <p>What is happening is that the plugin build runs the mythtv
      configure again with a different destination directory and the
      MYTHTV_CONFIG_OPT_EXTRA options are used for the MythTV configure.
      That would be failing since --disable-mythnetvision etc are not
      valid MythTV build options.</p>
    <p>Also remember that the plugin build makes use of the intermediate
      files from the prior mythtv build, so if the mythtv build has been
      damaged you may have to run it again in order to get the plugin
      build to work.<br>
    </p>
    <p>If you want some plugins disabled I recommend delete the
      applicable ".so" files from your system after installing.<br>
    </p>
    <p>Peter<br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
  </body>
</html>