為什麼儲存庫中缺少 markdown geany 插件?

為什麼儲存庫中缺少 markdown geany 插件?

geany 插件網頁表示它認為「markdown」應該位於群組插件包中,但在下載時沒有該特定功能的程式碼。作者已經向我展示了從哪裡可以獲得原始程式碼,但是如果比我更有知識的人已經採取了積極的步驟來省略它,那麼我編譯它就毫無意義了。這是 webkit 問題嗎?

答案1

您的問題的答案已包含在包裹中變更日誌:

geany-plugins (1.32+dfsg-3) 不穩定;緊急程度=中

  • [67b34ed] 停用使用 webkit 的外掛程式:markdown、webhelper
    webkitgtk-3.0 不再使用,因為它已被棄用,但
    webkit2gtk-4.0 的連接埠尚未準備好。

然後從 21.04 隨附的 1.37+dfsg-5 版本開始重新啟用 Markdown 插件。

所以目前有有兩個Ubuntu版本geany-plugin-markdown包裝 - 21.04 和 21.10。


如果需要geany-markdown-plugin在 18.04 LTS 上進行編譯,請使用以下修補和編譯方法:

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

然後啟動 Geany 並使用其中啟用插件工具 → 外掛程式管理器享受。

對於 Ubuntu 20.04 LTS,此方法可以進行如下調整:

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

相關內容