The officially official Devuan Forum!

You are not logged in.

#1 2019-12-28 15:21:26

randomer
Member
Registered: 2019-10-24
Posts: 30  

How can i remove the Google Search Plugin from AbiWord?

I would like to remove the Google Search Plugin from Abiword. I know i can blacklist everything related to Google in my host file, but that is not what i am looking for. It seems like the plugin is part of AbiWord and not a recommendation. https://pkginfo.devuan.org/stage/beowul … 0.2-8.html

Offline

#2 2019-12-28 15:28:21

HevyDevy
Member
Registered: 2019-09-06
Posts: 133  

Re: How can i remove the Google Search Plugin from AbiWord?

Looks like you would have to compile it yourself and disable that feature.

https://www.abisource.com/wiki/Compiling_AbiWord

possibly only allowing certain plugins by ./configure options/flags  --enable-plugins ="foo bar baz", list of plugins to build

followed by  --disable-default-plugins do not build any plugins by default

Last edited by HevyDevy (2019-12-28 15:33:50)

Offline

#3 2019-12-28 15:33:00

randomer
Member
Registered: 2019-10-24
Posts: 30  

Re: How can i remove the Google Search Plugin from AbiWord?

HevyDevy wrote:

Looks like you would have to compile it yourself and disable that feature.

https://www.abisource.com/wiki/Compiling_AbiWord

possibly only allowing certain plugins by ./configure options/flags  --enable-plugins ="foo bar baz", list of plugins to build

followed by  --disable-default-plugins do not build any plugins by default

This exceeds my know-how unfortunately, but i will try to make it work. Thank you!

Last edited by randomer (2019-12-28 15:36:50)

Offline

#4 2019-12-28 15:37:11

HevyDevy
Member
Registered: 2019-09-06
Posts: 133  

Re: How can i remove the Google Search Plugin from AbiWord?

might be a nice suggestion for a future update of abiword. Maybe contact the maintainer and ask for their opinion on your issue with google search.

Last edited by HevyDevy (2019-12-28 15:37:41)

Offline

#5 2019-12-28 15:47:38

randomer
Member
Registered: 2019-10-24
Posts: 30  

Re: How can i remove the Google Search Plugin from AbiWord?

HevyDevy wrote:

might be a nice suggestion for a future update of abiword. Maybe contact the maintainer and ask for their opinion on your issue with google search.

It should be optional by default. I agree.

I checked the repos of FSF approved distros for AbiWord and found out that Hyperbola has it removed. https://www.hyperbola.info/packages/ext … 4/abiword/ Is It possible to compile it from their source on Devuan?

Offline

#6 2019-12-28 15:57:45

HevyDevy
Member
Registered: 2019-09-06
Posts: 133  

Re: How can i remove the Google Search Plugin from AbiWord?

I dont know in regards to hyperbolas packaging, they use archlinux pacman so probably not compatible unless there is a way to convert a pkg-build to a suitable deb fit for devuan ascii.

Offline

#7 2019-12-28 16:05:06

randomer
Member
Registered: 2019-10-24
Posts: 30  

Re: How can i remove the Google Search Plugin from AbiWord?

HevyDevy wrote:

I dont know in regards to hyperbolas packaging, they use archlinux pacman so probably not compatible unless there is a way to convert a pkg-build to a suitable deb fit for devuan ascii.

I have never really compiled anything myself, hence the dumb question.

Maybe Guix also packages AbiWord without the Google crap, so i can simply install it directly from their package manager.

Last edited by randomer (2019-12-28 16:06:13)

Offline

#8 2019-12-28 16:09:48

HevyDevy
Member
Registered: 2019-09-06
Posts: 133  

Re: How can i remove the Google Search Plugin from AbiWord?

not a dumb question randomer. I have no interest in abiword and if i did using devuan i would contact the maintainer of the upstream package and ask for his/her opinion on the matter, whomever this might be?

Offline

#9 2019-12-28 17:45:19

rolfie
Member
Registered: 2017-11-25
Posts: 195  

Re: How can i remove the Google Search Plugin from AbiWord?

Is moving to LibreOffice an alternative solution for you? I am happy with LO.

rolfie

Offline

#10 2019-12-28 17:56:48

randomer
Member
Registered: 2019-10-24
Posts: 30  

Re: How can i remove the Google Search Plugin from AbiWord?

rolfie wrote:

Is moving to LibreOffice an alternative solution for you? I am happy with LO.

rolfie

I am using LibreOffice at the moment. Wanted to switch to AbiWord because LibreOffice takes a while to load on old hardware and is kinda bloated in general.

Offline

#11 2019-12-28 18:09:34

golinux
Administrator
Registered: 2016-11-25
Posts: 1,805  

Re: How can i remove the Google Search Plugin from AbiWord?

If you remove the LO meta package you can install just the parts that you want.  I only have the writer installed.   But even with that trimming, it is still a bit of a lumbering hog for sure.

Offline

#12 2019-12-28 18:32:29

randomer
Member
Registered: 2019-10-24
Posts: 30  

Re: How can i remove the Google Search Plugin from AbiWord?

golinux wrote:

If you remove the LO meta package you can install just the parts that you want.  I only have the writer installed.   But even with that trimming, it is still a bit of a lumbering hog for sure.

Yeah i always install the LO writer without recommends. I just can't stand when something feels unresponsive. AbiWord feels super snappy in comparison and since i only need a writer it'd be a good replacement.

Offline

#13 2019-12-28 22:01:37

bgstack15
Member
Registered: 2018-02-04
Posts: 108  

Re: How can i remove the Google Search Plugin from AbiWord?

I enjoy packaging applications and have been working on notepadpp (yes, that's Notepad++ using wine) all week. I'll take a quick stab at compiling abiword without a google-related plugin. I tend to use the OpenSUSE Build Service.

I will work with the 3.0.2-8 base mentioned in OP, for Beowulf.


This space intentionally left blank.

Offline

#14 2019-12-29 01:03:00

bgstack15
Member
Registered: 2018-02-04
Posts: 108  

Re: How can i remove the Google Search Plugin from AbiWord?

I have no Beowulf systems, but for me it was easy enough to modify the debian/ directory and build the package myself on ceres. I'll see if I can stand up a new OBS repo for it, but if you want to do it yourself, all it took was retrieving the git tree at https://salsa.debian.org/debian/abiword and orig.tar.gz from https://packages.debian.org/buster/abiword

diff --git a/debian/control b/debian/control
index a86ce2a..5be32b7 100644
--- a/debian/control
+++ b/debian/control
@@ -13,7 +13,7 @@ Build-Depends: bison,
                libchamplain-gtk-0.12-dev,
                libebook1.2-dev (>= 3.8.5),
                libical-dev (>= 3.0),
-               libecal1.2-dev (>= 3.8.5),
+               libecal2.0-dev (>= 3.8.5),
                libenchant-dev,
                libfribidi-dev,
                libgcrypt20-dev,

diff --git a/debian/rules b/debian/rules
index 5aa9c27..b3736a9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,7 +12,7 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
 
 plugins := applix babelfish bmp clarisworks collab command docbook \
-          eml epub freetranslation garble gdict gimp google grammar hancom \
+          eml epub freetranslation garble gdict gimp grammar hancom \
           hrtext iscii kword latex loadbindings mht mif mswrite \
           opendocument openwriter openxml opml ots paint passepartout pdb \
           pdf presentation s5 sdw t602 urldict wikipedia wmf wml \
@@ -87,5 +87,5 @@ override_dh_install:
        # This needs to be installed by abiword-plugin-grammar only
        $(RM) -v debian/abiword/usr/lib/*/abiword-*/plugins/grammar.*
 
-override_dh_missing:
-       dh_missing --fail-missing
+#override_dh_missing:
+#      dh_missing --fail-missing

This space intentionally left blank.

Offline

#15 2019-12-29 01:39:11

randomer
Member
Registered: 2019-10-24
Posts: 30  

Re: How can i remove the Google Search Plugin from AbiWord?

Hey bgstack15, first of all thank you for your reply! I would love to compile it myself and learn something. Could you eli5?

Offline

#16 2019-12-29 02:01:35

bgstack15
Member
Registered: 2018-02-04
Posts: 108  

Re: How can i remove the Google Search Plugin from AbiWord?

To build a dpkg, you need to have a few artifacts and changes.

  1. Download the original tarball. Dpkg or debhelper or one of the tools always wants it renamed. So, whatever the application is, you download its original source tarball and rename it to ${APPNAME}_${VERSION}.orig.tar.gz. Upstream Debian always stores the original tarball with the name it wants to use, which is convenient for us. It's at page https://packages.debian.org/buster/abiword specifically link http://deb.debian.org/debian/pool/main/ … rig.tar.gz.
    I do all my work in ~/deb/, so:

    mkdir -p ~/deb
    cd ~/deb
    wget http://deb.debian.org/debian/pool/main/a/abiword/abiword_3.0.2.orig.tar.gz

    Extract the tarball to get the source.

    tar -zxf abiword_3.0.2.orig.tar.gz

    Most application upstreams make the tarball of a single directory that contains all their source. In our case, it's directory name "abiword-3.0.2." But we will cd to that in a minute.

  2. Download the debian tarball, which is the compressed debian/ directory that stores all the directives necessary for building the package. Again, it's at the cool URL from step 1, and its direct link is http://deb.debian.org/debian/pool/main/ … ian.tar.xz

    wget http://deb.debian.org/debian/pool/main/a/abiword/abiword_3.0.2-8.debian.tar.xz

    Now you cd to the source directory, and extract the debian tarball.

    cd abiword-3.0.2
    tar -Jxf ../abiword_3.0.2-8.debian.tar.xz
  3. We need all the build dependencies for the application. Let's read what the debian/control file says. This package specifically has a multi-line Build-Depends, so here it is in a single line 'cuz I'm too lazy to write a one-liner to strip out just that info.

    sudo apt-get install bison debhelper flex gobject-introspection libaiksaurus-1.2-dev libaiksaurusgtk-1.2-dev libasio-dev libboost-dev libchamplain-gtk-0.12-dev libebook1.2-dev libical-dev libecal1.2-dev libenchant-dev libfribidi-dev libgcrypt20-dev libgirepository1.0-dev libglib2.0-dev libgoffice-0.10-dev libgtk-3-dev libjpeg-dev liblink-grammar-dev libloudmouth1-dev libots-dev libpng-dev librdf0-dev libreadline-dev librevenge-dev librsvg2-dev libsoup2.4-dev libtelepathy-glib-dev libtidy-dev libtool-bin libwmf-dev libwpd-dev libwpg-dev libwps-dev libwv-dev libxslt1-dev valgrind

    It's a little more complicated than that, like version matches and some architecture-specific things, so I'm assuming you're on amd64. Just read debian/control and look at its syntax.

  4. Oh, I also had to make that change as demonstrated in my previous post, in the rules file. You can ignore the libecal1.2-dev change in control, because I was doing it in Ceres (unstable) which already deleted its 1.2 package for that. So, I removed the word "google" from debian/rules and also for some reason had to comment out the override_dh_missing section in order for it to work. Just edit that file by hand.

    It might be worth it to change the debian/changelog file, to include a section at the top, something like this:

    abiword (3.0.2-8+local) unstable; urgency=medium
    
      * remove google plugin
    
     -- Your Name <youremail@example.com> Sun, 29 Dec 2019 02:00:00 +0000

    The changelog is what is used to set the version number of the package, and therefore the output filename of the .deb file which includes the version number.

  5. So, with those things downloaded, exploded, installed, and modified, you are ready to run the big command.
    This needs to be run from the abiword-3.0.2 directory.

    debuild -us -uc

    We're just making a local package, so we are doing it with the -us and -uc flags which builds it without signing (as in gpg) the .changes file and .dsc file. I guess I'll have to learn about those if I ever want to become a debian maintainer...
    And just sit back and relax! On my vm, it took me about 10 minutes to build the abiword dpkgs.

  6. And apt-get can install local files, so if it worked, you can then run:

    sudo apt-get install ~/deb/abiword_3.0.2-8+local_amd64.deb

    I've already cleaned up parts of my dev environment so I can't recall all the other packages it generated, but if apt-get complains about missing dependencies, just add on those filenames to this apt-get install command.


This space intentionally left blank.

Offline

#17 2019-12-29 02:08:53

bgstack15
Member
Registered: 2018-02-04
Posts: 108  

Re: How can i remove the Google Search Plugin from AbiWord?

Separately, and I know you wanted to build it yourself, but for posterity, if I don't delete it:
I completed the build of abiword without google on OBS: https://build.opensuse.org/package/show … le/abiword
The download page is https://software.opensuse.org//download … ge=abiword
The install instructions:

echo 'deb http://download.opensuse.org/repositories/home:/bgstack15:/abiword-sans-google/Debian_10/ /' > /etc/apt/sources.list.d/home:bgstack15:abiword-sans-google.list
wget -nv https://download.opensuse.org/repositories/home:bgstack15:abiword-sans-google/Debian_10/Release.key -O Release.key
apt-key add - < Release.key
apt-get update
apt-get install abiword

I failed to change the version number of this one, so it might be hard to install over the existing version number. I've never fiddled with changing repository priorities, but I assume it would be easy to set the priority of this repo higher or lower as needed and install abiword=3.0.2-8.


This space intentionally left blank.

Offline

#18 2019-12-29 03:09:20

randomer
Member
Registered: 2019-10-24
Posts: 30  

Re: How can i remove the Google Search Plugin from AbiWord?

Thank you so much for the instructions and also for the OBS repo! It is still building so i will edit this post and let u know if it was a success.
Screenshot-2019-12-29-04-03-54.png

edit: Works like a charm. No Google Plugin in sight smile

Last edited by randomer (2019-12-29 03:24:40)

Offline

#19 2019-12-30 05:04:20

ToxicExMachina
Member
Registered: 2019-03-11
Posts: 175  

Re: How can i remove the Google Search Plugin from AbiWord?

randomer wrote:
golinux wrote:

If you remove the LO meta package you can install just the parts that you want.  I only have the writer installed.   But even with that trimming, it is still a bit of a lumbering hog for sure.

Yeah i always install the LO writer without recommends. I just can't stand when something feels unresponsive. AbiWord feels super snappy in comparison and since i only need a writer it'd be a good replacement.

I would also recommend to try out Emacs with org-mode.

Offline

Board footer