Git Product home page Git Product logo

Comments (5)

tinywrkb avatar tinywrkb commented on May 24, 2024 1
- --socket=x11

Unless you're forcing XCB QPA platform in the application or using ngspice's X11 plotting, it should have instead

--socket=fallback-x11
--socket=wayland

Please read the standard permission section.

  - name: ngspice
    build-options:
        strip: true

This means that you're throwing away ngspice's symbols, instead of extracting them and moving into a separate .Debug extension.
In fact, due to flatpak-builder bug, this actually remove symbols from everything that is already in $FLATPAK_DEST.

And last, this is obviously missing an AppStream MetaInfo, which will be needed for Flathub submission. Please see the documentation here, the AppStream MetaInfo Creator, and the Appstream section in App Requirements wiki page.

from qucs_s.

ra3xdh avatar ra3xdh commented on May 24, 2024

I have recently started the generation of the Flatpak manifest for Qucs-S. I didn't find a way to launch an external application from system /usr from the flatpak. Therefore I decided to include the ngspice into the Flatpak package. The qucsator has dependency on ADMS that depends on Perl modules. And therefore the adding of the qucsator into the Flatpak is not a straightforward task. So I decided to restrict the Flatpak version of the Qucs-S by Ngspice support only. The manifest draft could be found here: https://github.com/ra3xdh/qucs_scripts/blob/master/FLATPAK/com.github.ra3xdh.qucs-s.yaml

from qucs_s.

tinywrkb avatar tinywrkb commented on May 24, 2024

The qucsator has dependency on ADMS that depends on Perl modules. And therefore the adding of the qucsator into the Flatpak is not a straightforward task.

@ra3xdh you can use flatpak-cpan-generator.pl.

I packaged ADMS with QUCS like this

- name: adms
  config-opts:
   - --enable-maintainer-mode
   - PERL5LIB=/app/lib/perl5
  make-args:
   - PERL5LIB=/app/lib/perl5
  sources:
   - type: archive
     url: https://github.com/Qucs/ADMS/archive/release-2.3.7.tar.gz
     sha256: 0d24f645d7ce0daa447af1b0cff1123047f3b73cc41cf403650f469721f95173
  modules:
    - name: perl-dependencies
      buildsystem: simple
      build-options:
        env:
          - PERL5LIB=/app/lib/perl5
      build-commands:
        - perl-libs/install.sh
      post-install:
        # workaround for cpanm acting silly and installs files without write permission
        - find /app -type f ! -perm -0200 -exec chmod u+w '{}' \;
      sources:
        - perl-dependencies-sources.json
        - type: shell
          commands:
            # fix the generated install.sh to avoid having it try to install into /usr
            - sed -e 's|\(perl Makefile.PL\).* \&\& \(make install\).*|\1 INSTALL_BASE=/app \&\& \2|' -e
              's|\(perl Build.PL\) \&\&|\1 --install_base=/app \&\&|' -i perl-libs/install.sh

And perl-dependencies-sources.json was generated by running

$ flatpak-cpan-generator.pl --output perl-dependencies-sources.json XML::LibXML

from qucs_s.

tinywrkb avatar tinywrkb commented on May 24, 2024

I updated the example ADMS packaging to work with the latest revision of flatpak-cpan-generator.pl.

from qucs_s.

luzpaz avatar luzpaz commented on May 24, 2024

Is flatpak qucs-s support up to date ?

from qucs_s.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.