Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Building Out of Tree Abiword-2.9.4
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
JustAnother
n00b
n00b


Joined: 23 Sep 2016
Posts: 41

PostPosted: Wed Aug 09, 2017 2:58 am    Post subject: Building Out of Tree Abiword-2.9.4 Reply with quote

Split from topic "Looking for Abiword 2.8 source code. [SOLVED]" as it's similar but new. Also selectively disabled smilies which were interfering with proper interpretation. — JRG

I have the same flickering problem, and I'm trying to work through the above build process. I've never done this before.

Abiword is unusable like this. Happens in xfce and twm.

There aren't any other lightweight word processors for linux.

Here's what I did:

Create the overlay path:
Code:
$ mkdir -p /usr/local/portage


Add (and verify) the overlay line to /etc/portage/make.conf, not /etc/make.conf:
Code:
$ echo "PORTDIR_OVERLAY=/usr/local/portage" >> /etc/portage/make.conf


But PORTDIR_OVERLAY does not show up on emerge -v -- info. Huh?

To keep emerge -s abiword happy:
$ vim /usr/local/portage/metadata/layout.conf ( added masters = gentoo )

I copied the ebuild file off pastebin, and took a guess and named it
/usr/local/portage/app-office/abiword-2.9.4.ebuild
thinking that would aim the ebuild towards version 2.9.4, the latest one before version 3.

Build the manifest:
Code:
$ ebuild abiword-2.9.4.ebuild digest

This went to www.abisource.com, got the src file, put it in /usr/portage/distfiles.
Seemed to work.

emerge --info shows:
Code:
gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

But here is my problem: I can't get any query command to show my new build candidate.
Code:

equery y abiword
equery y abiword::x-portage
emerge -s abiword::x-portage
emerge -s abiword::gentoo
emerge -s abiword-*::gentoo
emerge -s app-office/abiword::gentoo
emerge -s app-office/abiword
emerge -s abiword
equery y abiword::x-portage
emerge -s abiword::x-portage
emerge -s abiword::gentoo
emerge -s abiword-*::gentoo
emerge -s app-office/abiword::gentoo
emerge -s app-office/abiword

Nothing seems to work.

Can somebody help me on this?

Thanks

[Moderator edit: added [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
Tony0945
Veteran
Veteran


Joined: 25 Jul 2006
Posts: 1950
Location: Illinois, USA

PostPosted: Wed Aug 09, 2017 1:05 pm    Post subject: Reply with quote

Quote:
Add (and verify) the overlay line to /etc/portage/make.conf, not /etc/make.conf:

Long ago the shift was made to /etc/portage/make.conf. At that time I did:
Code:
mv /etc/make.conf  /etc/portage/make.conf
ln -s /etc/portage/make.conf /etc/make.conf
I hate typing long paths, I invariably make a mistake.

Your equery results are interesting. I never used the y option before.
Code:
X3 ~ # equery y abiword
Keywords for app-office/abiword:
         |                                 |   u   |
         | a a         p s   a     n r     |   n   |
         | l m   h i   p p   r m m i i s   | e u s | r
         | p d a p a p c a x m i 6 o s 3   | a s l | e
         | h 6 r p 6 p 6 r 8 6 p 8 s c 9 s | p e o | p
         | a 4 m a 4 c 4 c 6 4 s k 2 v 0 h | i d t | o
---------+---------------------------------+-------+-------
3.0.2    | ~ ~ ~ o o o o o ~ o ~ o o o o o | 6 # 2 | gentoo
3.0.2-r1 | ~ + ~ o ~ o o o + o ~ o o o o o | 6 o   | gentoo
X3 ~ # equery w abiword
/usr/local/portage/app-office/abiword/abiword-2.8.6-r2.ebuild


Like you suggested, I just copied the ebuild and renumbered it. I then built the manifest with "repoman manifest" instead of ebuild digest.
The build failed with:
Code:
* Cannot find $EPATCH_SOURCE!  Value for $EPATCH_SOURCE is:
 *
 *   /var/tmp/portage/app-office/abiword-2.9.4/files/abiword-2.9.4-libpng15.patch
 *   ( abiword-2.9.4-libpng15.patch )

 * ERROR: app-office/abiword-2.9.4::local failed (prepare phase):
 *   Cannot find $EPATCH_SOURCE!
So the patches have to be migrated or removed from the ebuild. I'll try to look at it later. Just renaming the patches MAY work, if line numbers haven't changed. Else, it will take some work with meld and diff to generate new patches. They may not even be needed. I'm pretty sure I don't need the wordperfect patch because I didn't enable wordperfect support in the useflags. I haven't used word perfect since the mid '90s at one employer.

EDIT: It built by just commenting out the four epatch lines. Now to test...
Back to top
View user's profile Send private message
JustAnother
n00b
n00b


Joined: 23 Sep 2016
Posts: 41

PostPosted: Wed Aug 09, 2017 3:02 pm    Post subject: Reply with quote

I commented out the four lines and ran repoman -- no complaints.

But I can't emerge the package because portage can't see the package. Nothing seems to work.

Is there some command that should work to see and/or build the package? I'm stuck here.

Thanks.

Edit:

I realized that this much does work:

Code:
equery w abiword
/usr/portage/app-office/abiword/abiword-3.0.2-r1.ebuild


(wrong package)

Code:
equery w abiword-2.9.4
/usr/local/portage/app-office/abiword/abiword-2.9.4.ebuild


Right package.

Code:
emerge -s abiword-2.9.4


Shows nothng.

Code:
emerge -a app-office/abiword-2.9.4
'app-office/abiword-2.9.4' is not a valid package atom.

emerge -avv app-office/abiword-2.9.4::x-portage
'app-office/abiword-2.9.4::x-portage' is not a valid package atom.

emerge -avv app-office/abiword-2.9.4.ebuild::x-portage

These are the packages that would be merged, in order:

Calculating dependencies... done!

emerge: there are no ebuilds to satisfy "app-office/abiword-2.9.4.ebuild::x-portage".

Those frowning faces are double-colon x-portage

Nothing works.

[Moderator edit: added [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
steveL
Advocate
Advocate


Joined: 13 Sep 2006
Posts: 4796
Location: The Peanut Gallery

PostPosted: Wed Aug 09, 2017 5:08 pm    Post subject: Reply with quote

Tony0945 wrote:
I had to create the file /etc/portage/env/app-office/abiword
..As I suspected, only the second line is needed.
Code:
CASTI abiword #  cat /etc/portage/env/app-office/abiword
CPPFLAGS+=" -std=gnu++98"
That should be CXXFLAGS for the C++ compiler; CPPFLAGS are for the C Pre-Processor, so apply to both C and C++; but are meant for -D defns, and -I include paths. Most importantly, they're not used during the link stage (whereas CFLAGS and CXXFLAGS are, if the makefile isn't borked.)

But I'm pretty sure you can just do this in the ebuild; there's an append_cflags function or something, and an equivalent for cxx, I'm sure.
In one of the toolchain eclasses, iirc.
Ask in #gentoo-dev-help if you can't find it yourself. (qgrep is nice ;)
Back to top
View user's profile Send private message
Tony0945
Veteran
Veteran


Joined: 25 Jul 2006
Posts: 1950
Location: Illinois, USA

PostPosted: Wed Aug 09, 2017 5:24 pm    Post subject: Reply with quote

Quote:
emerge -a app-office/abiword-2.9.4
'app-office/abiword-2.9.4' is not a valid package atom.
Needs an equal sign in front if you specify version. "emerge -a =app-office/abiword-2.9.4

Quote:
That should be CXXFLAGS for the C++ compiler; CPPFLAGS are for the C Pre-Processor, so apply to both C and C++; but are meant for -D defns, and -I include paths. Most importantly, they're not used during the link stage (whereas CFLAGS and CXXFLAGS are, if the makefile isn't borked.)

Thanks, Steve! It did work, but I'll fix it. Wouldn't swear the makefle isn't borked!
Back to top
View user's profile Send private message
JustAnother
n00b
n00b


Joined: 23 Sep 2016
Posts: 41

PostPosted: Wed Aug 09, 2017 10:10 pm    Post subject: Reply with quote

I got 2.9.4 to compile using your method. The four epatch lines are right now commented out in the .ebuild file.

It overwrote the 3.0.2 version.

This did work:

Code:
$ emerge -a =app-office/abiword-2.9.4


This can't even see the entries that were there before I rebuilt abiword. No output:

Code:
$ emerge -s app-office/abiword


No output here either:

Code:
$ emerge -s =app-office/abiword-*


Does seem to work:
Code:
$ equery w app-office/abiword-2.9.4
/usr/local/portage/app-office/abiword/abiword-2.9.4.ebuild

Obviously broken -- it shows the wrong version:

Code:
$ equery y app-office/abiword-2.9.4
Keywords for app-office/abiword:
         |                                 |   u   |
         | a a         p s   a     n r     |   n   |
         | l m   h i   p p   r m m i i s   | e u s | r
         | p d a p a p c a x m i 6 o s 3   | a s l | e
         | h 6 r p 6 p 6 r 8 6 p 8 s c 9 s | p e o | p
         | a 4 m a 4 c 4 c 6 4 s k 2 v 0 h | i d t | o
---------+---------------------------------+-------+-------
3.0.2    | ~ ~ ~ o o o o o ~ o ~ o o o o o | 6 # 2 | gentoo
3.0.2-r1 | ~ + ~ o ~ o o o + o ~ o o o o o | 6 o   | gentoo

I should ask this portage part over at the portage section, Clearly something is misconfigured here.

As for abiword, the bad flickering is gone, but the top ruler turns to gray. Also, selected text turns to a black rectangle, impossible to read.

Abiword is still borderline unusable, but I did comment out the patches, so some more rebuilds are in order, once I know what to do.

Thanks.

[Moderator edit: added [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
Tony0945
Veteran
Veteran


Joined: 25 Jul 2006
Posts: 1950
Location: Illinois, USA

PostPosted: Wed Aug 09, 2017 11:33 pm    Post subject: Reply with quote

try running eix-sync.

This after eix-sync
Code:
X3 /home/tony # equery w abiword
/usr/local/portage/app-office/abiword/abiword-2.9.4.ebuild
X3 /home/tony # emerge -a1v abiword

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] app-office/abiword-2.9.4:2::local  USE="cups grammar plugins readline spell -collab -debug -latex -math -ots -thesaurus -wmf" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No]
Back to top
View user's profile Send private message
Tony0945
Veteran
Veteran


Joined: 25 Jul 2006
Posts: 1950
Location: Illinois, USA

PostPosted: Wed Aug 09, 2017 11:38 pm    Post subject: Reply with quote

Moderator, can you split this thread? Perhaps name the new thread abiword-2.94 ?
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 9491
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Aug 09, 2017 11:52 pm    Post subject: Reply with quote

Tony0945 wrote:
Moderator, can you split this thread? Perhaps name the new thread abiword-2.94 ?
Done.

@JustAnother, you might want to consider embedding your command and output snippets in [code] tags for readability. Incidentally, this would've avoided the smiley plague.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
Tony0945
Veteran
Veteran


Joined: 25 Jul 2006
Posts: 1950
Location: Illinois, USA

PostPosted: Thu Aug 10, 2017 12:32 am    Post subject: Reply with quote

JustAnother wrote:


As for abiword, the bad flickering is gone, but the top ruler turns to gray. Also, selected text turns to a black rectangle, impossible to read.

Abiword is still borderline unusable, but I did comment out the patches, so some more rebuilds are in order, once I know what to do.

Thanks.


Top ruler is gray also, may be related to the patches we removed. But highlighted text is blue, the same as my window decorations. Maybe the black is from your theme.
Also, I changed the environment per SteveL. I'm running gcc 6.4.0 now.
Code:

X3 /home/tony # cat  /etc/portage/env/app-office/abiword
#CFLAGS+=" -std=gnu++98"
CXXFLAGS+=" -std=gnu++98"
Back to top
View user's profile Send private message
JustAnother
n00b
n00b


Joined: 23 Sep 2016
Posts: 41

PostPosted: Thu Aug 10, 2017 1:14 am    Post subject: Reply with quote

A bit more info:

Upon app start, the ruler is there, but disappears as soon as I do anything.

If I toggle View/Show Ruler off and back on, the ruler reappears, but grays out when I do anything.

If I run
GTK_THEME=Adwaita abiword
nothing changes. The selected text block is still all black.

If you keep posting your changes, I'll keep trying to compile them. This ebuild stuff is all new to me.

This is kind of a serious thing for those of us who have a bunch of notes files written in Abiword. A dysfunctional app can't even convert those files to another format. If Abiword worked correctly, it would be an almost ideal word processor.

Thanks for fighting the good fight.
Back to top
View user's profile Send private message
Tony0945
Veteran
Veteran


Joined: 25 Jul 2006
Posts: 1950
Location: Illinois, USA

PostPosted: Thu Aug 10, 2017 1:31 am    Post subject: Reply with quote

Same results here.

I always keep the files in MS doc format. Abiword is great for converting docx files to doc so I can read them on Windows XP without paying M$ their absurd yearly tribute. Likewise with Gnumeric. If I had time, I would patch them to default to .doc and .xls. Long ago I found out how to do that but I forgot.

I'll keep working on the patches but it may take a few days. I have non-computer stuff coming up and spent most of today trying fruitlessly to solve a problem with mate-desktop ghosting whenever I emerge something.
Back to top
View user's profile Send private message
steveL
Advocate
Advocate


Joined: 13 Sep 2006
Posts: 4796
Location: The Peanut Gallery

PostPosted: Thu Aug 10, 2017 5:32 pm    Post subject: Re: Building Out of Tree Abiword-2.9.4 Reply with quote

JustAnother wrote:
Create the overlay path:
Code:
$ mkdir -p /usr/local/portage

Add (and verify) the overlay line to /etc/portage/make.conf, not /etc/make.conf:
Code:
$ echo "PORTDIR_OVERLAY=/usr/local/portage" >> /etc/portage/make.conf
But PORTDIR_OVERLAY does not show up on emerge -v -- info. Huh?
There's no more old-style make.conf PORTDIR_OVERLAY.
You need to use /etc/portage/repos.conf -- see this tip on setting up a local overlay.
Back to top
View user's profile Send private message
Tony0945
Veteran
Veteran


Joined: 25 Jul 2006
Posts: 1950
Location: Illinois, USA

PostPosted: Sun Aug 13, 2017 3:41 pm    Post subject: Reply with quote

abiword-2.9.4-gcc46.patch is at http://dpaste.com/1H71XXR
I followed the wiki to generate this patch. https://wiki.gentoo.org/wiki/Patches
It works but didn't change the behavior. I didn't expect any change because the patch just changes a warning of unresolved addresses into an error.

EDIT:
abiword-2.9.4-glib-2.31.patch was incorporated upstream so it isn't needed anymore

EDIT2:
So was abiword-2.9.4-libwpd.patch

EDIT3:
All but one part of abiword-2.9.4-libpng15.patch was incorporated upstream. The abbreviated patch is here: http://dpaste.com/03YSFQ8
It didn't seem to do anything for me but make the ruler behavior stranger. Now I have to toggle "show ruler" to get it to appear.
Back to top
View user's profile Send private message
JustAnother
n00b
n00b


Joined: 23 Sep 2016
Posts: 41

PostPosted: Mon Aug 14, 2017 3:38 pm    Post subject: Reply with quote

First off, thanks for pursuing abiword. It is an important package. Except for Libraoffice, there isn't much else in the word processor category.

By the way, the 2.9.4 ebuild file installs into slot 2, as does 3.0.2. See
https://forums.gentoo.org/viewtopic-p-8103858.html#8103858.
This might be causing a collision.

I've been using abiword for 3 years, trying to grin and bear the bugs. E.g., copy and paste something, and it keeps changing the font. To me, most of these graphics issues kind of point the finger of blame in the abiword direction, as in BUGGY. Abiword seems to be developing its own version of the thousand yard stare. So although it is important to keep this package alive and well, it may be a good idea to start keeping an eye on the door for other possibilities.

I checked, and there aren't many ways to convert an .abw file (which is specialized XML code) to another type. Abiword can do it on the command line, but if abiword breaks completely, there is a problem.

The wysiwig paradigm is a good one, especially for small things like letters and notes, but the world is changing, and changing in the direction of the web. People are moving more in the direction of markdown editors, which directly convert to and display html or pdf. This is good for some, and a step back for some, but that paradigm is the one that is growing.

There is another problem. Gedit used to be a very nice text editor, but the new version is essentially unusable. They took out the main menu. Un-believable. I'm going over to geany, which seems to work just fine as a text editor.

I looked for a gentoo markdown editor. Somebody nixed the geany markdown plugin because of security. Fair enough. Gentoo has retext, which loads everything but the kitchen sink. I'll try it soon. I played with Remarkabe and it says I need more packages (like webkit), but it looks like Remarkabe could be ebuild-ed onto Gentoo without too much trouble.

I'll later try to convert .abw files to .rtf files, then to markdown. That would convert abiword to markdown, I hope.

My main problem with markdown is that it requires an .md version of the file, an .html, and a .pdf version to get a a decent workflow. This will drive you batty real fast, having all these files lying around. Hard to manage too. Lousy workflow means lousy everything.

Edit: Actually, this may not be such a problem, if you could just have a markdown source file, and not have to maintain any output files, in much the same way that a word processor does this.
Back to top
View user's profile Send private message
Tony0945
Veteran
Veteran


Joined: 25 Jul 2006
Posts: 1950
Location: Illinois, USA

PostPosted: Mon Sep 04, 2017 4:08 pm    Post subject: Reply with quote

JustAnother wrote:
I checked, and there aren't many ways to convert an .abw file (which is specialized XML code) to another type. Abiword can do it on the command line, but if abiword breaks completely, there is a problem.

...

I'll later try to convert .abw files to .rtf files, then to markdown. That would convert abiword to markdown, I hope.


Not familiar with markdown, but the Abiword GUI has "Save As" which gives conversion to a ton of formats including html and rtf. I use it to save aws .doc to facilitate sharing documents with Windows users. Somewhere on the web were instructions how to change the default format from .abw. I did that on another box to make doc the default, but I don't remember how.
I also change docx to doc with Abiword. The same trick works with Gnumeric. No need to rent Office from Micro$oft.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum