Re: editor/linux-wps-office; stop-errors

From: Alfonso S. Siciliano <alfix86_at_gmail.com>
Date: Thu, 18 Jan 2024 01:07:30 UTC
On 12/01/2024 17:15, J. wrote:
> Hello everyone,
> 
> I'm new to the ports mailing list, and indeed rather new to UNIX/FreeBSD.
> I like working with WPS Office (the Writer application) due to it being 
> rather compatible with Amazon KDP, which is Amazon's self-publishing 
> platform. I'm used to running WPS Office on Windows and tried to install 
> it on FreeBSD14.0. I tried an install on both the VMWare Player virtual 
> machine and my old Lenovo Thinkpad W700 laptop. Using pkg, I could not 
> locate WPS Office and hence I have used git to download the port tree 
> and attempted my first "compile from from source." [1]
> 
> Being in the proper ports directory, I do:*make install clean*
> *
> *
> I have recorded the compilation process using /tee/ on the Thinkpad 
> W700; myriad "stop errors" crop up and the compilation process is halted.
> 
>     Stop.
>     make[8]: stopped in /usr/ports/devel/bsddialog
>     *** Error code 1
> 
>     Stop.
>     make[7]: stopped in /usr/ports/devel/bsddialog
>     *** Error code 1
> 
> 
> The full compilation process is recorded in wps.txt, attached to this 
> email. I did not want to paste the full content as this would hinder the 
> readability of this email.The errors are located at the very end of the 
> text file and hence, should you have the patience and will, they may be 
> found there and you will not have to pass through the whole text file.
> As a newbie, I seem to understand it is mostly about missing libraries, 
> and would appreciate advice as to what to do, and if this can simply be 
> resolved by using pkg to install the myriad needed libraries; my 
> neophyte eyes are still quite dyslectic to the messages returned in the 
> myriad UNIX processes, please bear with me :-).
> I hope WPS Office will be made available as a binary package via pkg.
> 
> I had asked the general FreeBSD mailing list the question presented 
> here, but was recommended to contact the people subscribed to this list.
> I hope that my neophyte position has not unintendedly transgressed 
> against some mode of conduct expected in this mailing list; I have tried 
> other sources of information prior to resolving this problem, including 
> analysing the attached wps.txt file with AI, but the AI started 
> reasoning in circles; and trying to understand the nature of some of the 
> missing dependencies. As a beginner, I'm often still confronted with 
> jargon beyond my level. Someone suggested I might try porting the latest 
> Linux version of WPS Office with Poudriere-devel; but I think this will 
> remain beyond me for a while to come.
> I do have the Linux compatibility layer enabled.
> 
> *
> *
> *Thank you for your patience and expertise,
> 
> J.
> 
> *[1] The WPS Office Port is here: 
> https://cgit.freebsd.org/ports/tree/editors/linux-wps-office 
> <https://cgit.freebsd.org/ports/tree/editors/linux-wps-office>*
> *

Hello, you are welcome.

Reading your wps.txt:

===>  Installing for bsddialog-1.0.1
===>  Checking if bsddialog is already installed
===>   bsddialog-1.0.1 is already installed
       You may wish to ``make deinstall'' and install this port again
       by ``make reinstall'' to upgrade it properly.
       If you really wish to overwrite the old port of bsddialog
       without deleting it first, set the variable "FORCE_PKG_REGISTER"
       in your environment or the "make install" command line.
*** Error code 1

The problem is "bsddialog-1.0.1 is already installed".
A possible fast fix to proceed with the installation of linux-wps-office
could be:

# pkg delete portconfig
# pkg delete bsddialog
# cd /usr/ports/ports-mgmt/portconfig
# make clean
# cd /usr/ports/devel/bsddialog
# make clean
Now you can build and install your port
# cd /usr/ports/editor/linux-wps-office
# make install clean

(Actually, reading the error `# pkg delete bsddialg`
or `# cd /usr/ports/devel/bsddialog ; make deinstall`
should be sufficient, other delete/clean are to be sure
to star a clear building.)

I hope to help,
Alfonso