warum fehlt das Markdown-Geany-Plugin im Repository?

warum fehlt das Markdown-Geany-Plugin im Repository?

Die Geany-Plugin-Webseite legt nahe, dass „Markdown“ im Gruppen-Plugin-Paket enthalten sein sollte, aber beim Herunterladen gibt es keinen Code für diese bestimmte Funktion. Der Autor hat mir gezeigt, wo ich die Quelle bekomme, aber es hat keinen Sinn, dass ich sie kompiliere, wenn jemand, der mehr weiß als ich, einen positiven Schritt unternommen hat, um sie wegzulassen. Ist das ein Webkit-Problem?

Antwort1

Die Antwort auf Ihre Frage finden Sie im PaketÄnderungsprotokoll:

geany-plugins (1.32+dfsg-3) instabil; Dringlichkeit=mittel

  • [67b34ed] Deaktivieren Sie Plugins, die Webkit verwenden: Markdown, Webhelper.
    Webkitgtk-3.0 darf nicht verwendet werden, da es veraltet ist, aber der Port auf
    Webkit2gtk-4.0 ist noch nicht fertig.

Dann wurde das Markdown-Plugin ab Version 1.37+dfsg-5, die mit 21.04 kam, wieder aktiviert.

Zur Zeit gibt es alsosind zwei Ubuntu-Versionenmit geany-plugin-markdownPaket - 21.04. und 21.10.


Wenn Sie auf 18.04 LTS kompilieren müssen, geany-markdown-pluginverwenden Sie die folgende Patch- und Kompilierungsmethode:

software-properties-gtk # enable Source Code here, reload the lists

# get
sudo apt-get build-dep geany-plugins
sudo apt-get install libwebkitgtk-3.0-dev fakeroot

cd ~/Downloads
apt-get source geany-plugins
cd geany-plugins-1.32+dfsg

# patch
sed -i "s/--disable-peg-markdown/--enable-peg-markdown/" debian/rules
sed -i "s/--disable-markdown/--enable-markdown/" debian/rules

cat <<\EOF > ~/Downloads/debian-control.patch
55c55
< #        geany-plugin-markdown (>= ${source:Version}),
---
>          geany-plugin-markdown (>= ${source:Version}),
469,478c469,478
< # Package: geany-plugin-markdown
< # Enhances: geany
< # Architecture: any
< # Depends: ${geany:ABI}, geany-plugins-common (= ${binary:Version}),
< #         ${shlibs:Depends}, ${misc:Depends}
< # Description: markdown plugin for Geany
< #  This plugin provides a real-time preview of rendered Markdown in Geany.
< #  .
< #  Geany is a small and lightweight integrated development environment using the
< #  Gtk+ toolkit.
---
> Package: geany-plugin-markdown
> Enhances: geany
> Architecture: any
> Depends: ${geany:ABI}, geany-plugins-common (= ${binary:Version}),
>          ${shlibs:Depends}, ${misc:Depends}
> Description: markdown plugin for Geany
>   This plugin provides a real-time preview of rendered Markdown in Geany.
>   .
>   Geany is a small and lightweight integrated development environment using the
>   Gtk+ toolkit.
EOF
patch debian/control < ~/Downloads/debian-control.patch

# compile, build and install
cd ~/Downloads && apt-get source -b geany-plugins
sudo apt-get install ./geany-plugin-markdown_1.32+dfsg-3_amd64.deb

Starten Sie dann Geany und aktivieren Sie das Plugin darin mitExtras → Plugin-Managerund genieße.

Für Ubuntu 20.04 LTS kann diese Methode wie folgt angepasst werden:

software-properties-gtk # enable Source Code here, reload the lists

# get
sudo apt-get build-dep geany-plugins
sudo apt-get install libwebkit2gtk-4.0-dev fakeroot

cd ~/Downloads
apt-get source geany-plugins
cd geany-plugins-1.36+dfsg

# patch
sed -i "s/--disable-peg-markdown/--enable-peg-markdown/" debian/rules
sed -i "s/--disable-markdown/--enable-markdown/" debian/rules

cat <<\EOF > ~/Downloads/debian-control.patch
55c55
< #        geany-plugin-markdown (>= ${source:Version}),
---
>          geany-plugin-markdown (>= ${source:Version}),
469,478c469,478
< # Package: geany-plugin-markdown
< # Enhances: geany
< # Architecture: any
< # Depends: ${geany:ABI}, geany-plugins-common (= ${binary:Version}),
< #         ${shlibs:Depends}, ${misc:Depends}
< # Description: markdown plugin for Geany
< #  This plugin provides a real-time preview of rendered Markdown in Geany.
< #  .
< #  Geany is a small and lightweight integrated development environment using the
< #  Gtk+ toolkit.
---
> Package: geany-plugin-markdown
> Enhances: geany
> Architecture: any
> Depends: ${geany:ABI}, geany-plugins-common (= ${binary:Version}),
>          ${shlibs:Depends}, ${misc:Depends}
> Description: markdown plugin for Geany
>   This plugin provides a real-time preview of rendered Markdown in Geany.
>   .
>   Geany is a small and lightweight integrated development environment using the
>   Gtk+ toolkit.
EOF
patch debian/control < ~/Downloads/debian-control.patch

# compile, build and install
cd ~/Downloads && apt-get source -b geany-plugins
sudo apt-get install ./geany-plugin-markdown_1.36+dfsg-1_amd64.deb

verwandte Informationen