On Sun, Oct 25, 2020 at 03:55:32PM -0400, Richard Kimberly Heck wrote:
> On 10/25/20 3:15 PM, Scott Kostyshak wrote:
> > On Sun, Oct 25, 2020 at 07:59:55PM +0100, Kornel Benko wrote:
> >> Am Sun, 25 Oct 2020 14:43:44 -0400
> >> schrieb Richard Kimberly Heck <rikih...@lyx.org>:
> >>
> >>> On 10/25/20 1:57 PM, Scott Kostyshak wrote:
> >>>> On Sun, Oct 25, 2020 at 06:53:34PM +0100, Kornel Benko wrote:  
> >>>>> Am Sun, 25 Oct 2020 13:48:15 -0400
> >>>>> schrieb Scott Kostyshak <skost...@lyx.org>:
> >>>>>  
> >>>>>> On Sun, Oct 25, 2020 at 04:55:52PM +0100, Kornel Benko wrote:  
> >>>>>>> Am Sun, 25 Oct 2020 11:42:26 -0400
> >>>>>>> schrieb Richard Kimberly Heck <rikih...@lyx.org>:
> >>>>>>>      
> >>>>>>>>> Committed at 2dbf3515.
> >>>>>>>>>
> >>>>>>>>> Is there more?  
> >>>>>>>> Should I try rebuilding?
> >>>>>>>>
> >>>>>>>> Is there a cmake way to generate the tarballs? I use 'make dist' from
> >>>>>>>> autotools.
> >>>>>>>>
> >>>>>>>> Speaking of which, 'make lyxdist' used to work but doesn't now.
> >>>>>>>>
> >>>>>>>> Riki  
> >>>>>>> If you do
> >>>>>>>   $ make help
> >>>>>>> in the build dir, you should get all possible targets.
> >>>>>>> Among them
> >>>>>>>   $ make package_source
> >>>>>>> should create LyX-2.4.tar.gz and LyX-2.4.tar.xz  
> >>>>>> Not sure if necessary, but in "cmake" call, you might need to set
> >>>>>>
> >>>>>>    -DLYX_CPACK=ON -DCPACK_SOURCE_TGZ:BOOL=ON
> >>>>>>
> >>>>>> Note that you can also create a .rpm. Not sure what your setup is, but
> >>>>>> Kornel and I find it useful to use .debs (easy to install and remove).
> >>>>>> To have "make package" create a .rpm, in "cmake" call do the following:
> >>>>>>
> >>>>>>    -DLYX_CPACK=ON -DCPACK_BINARY_RPM:BOOL=ON
> >>>>>>
> >>>>>> Scott  
> >>>>> Yes, and the target is 'package', e.g.
> >>>>>    $ make package  
> >>>> Good point. To be clear (to Riki), "make package" will make CPack's
> >>>> binary packages, which in the above example is the RPM. But for the
> >>>> source tar.gz file, you still do "make package_source" as Kornel
> >>>> mentioned earlier.  
> >>> OK, thanks. I'll try this at some point.
> >>>
> >>> For my own use, I tend just to 'make install' to /usr/local/ and 
> >>> over-write it as necessary. Is there reason to do it otherwise?
> >>>
> >>> Riki
> >>>
> >>>
> >> Yes, it is. The next 'make install' does not remove old installed files.
> >> For instance you move a file into different directory, or rename a file or 
> >> delete in the
> >> source.
> >> Installing with the help of package manager is consistent.
> > I like it for a few reasons:
> >
> > - I like having the package manager take care of it since that's what
> >   they do best.
> >
> > - I think it takes care of things like opening .lyx files automatically
> >   with the installed package. Not sure though, maybe I customized that a
> >   while ago separately and that's why it works.
> >
> > - Although this doesn't come up in practice, for other situations if a
> >   package depends on the "lyx" package, the package manager will not try
> >   to install the package from the repository since it knows the
> >   dependency is already satisfied.
> >
> > - I can save debs of old builds. I can also move them across machines.
> >
> > - I can send custom builds (e.g., to test something in particular) to
> >   other Ubuntu users (I have done this and it works well).
> >
> > - For example, with very little extra work (e.g., no need to deal with
> >   PPA), we can post a .deb for anyone who wants to test.
> >
> > That said, if something works with you, don't change it :)
> 
> Great, thanks.
> 
> How do I get a list of the cmake options available via -D?

I see them after the "cmake" command runs. I attach the list I see.

> I assume I
> could also create a deb file this way?

Yes, you can additionally set -DCPACK_BINARY_DEB:BOOL=ON. Then, when you
run "make package", both deb and rpm files will be created. Note that
you need whatever tool makes deb files. i.e., to make rpm files on
Ubuntu I need to install the package "rpm" which contains the binary
"rpmbuild".

> I have been meaning to automate regular testing builds...

Nice!

Scott
-- LYX_ENABLE_BUILD_TYPE          = AUTO      : Allows to tweak the compiled 
code (AUTO release prerelease development gprof)
-- LYX_CPACK                      = ON        : Use the CPack management 
(Implies LYX_INSTALL option)
-- LYX_LOCALVERSIONING            = ON        : Add version info to created 
package name (only used if LYX_CPACK option set)
-- LYX_INSTALL                    = ON        : Build install projects/rules 
(implies a bunch of other options)
-- LYX_NLS                        = ON        : Enable Native Language Support 
(NLS)
-- LYX_REQUIRE_SPELLCHECK         = OFF       : Abort if no spellchecker 
available
-- LYX_ASPELL                     = OFF       : Require aspell
-- LYX_ENCHANT                    = ON        : Require Enchant
-- LYX_HUNSPELL                   = ON        : Require Hunspell
-- LYX_RELEASE                    = OFF       : Build release version, build 
debug when disabled
-- LYX_DEBUG                      = ON        : Enforce debug build
-- LYX_NO_OPTIMIZE                = OFF       : Don't use any 
optimization/debug flags
-- LYX_ENABLE_ASSERTIONS          = ON        : Run sanity checks in the program
-- LYX_PACKAGE_SUFFIX             = ON        : Use version suffix for packaging
-- LYX_SUFFIX_VALUE               =           : Use this string as suffix
-- LYX_PCH                        = OFF       : Use precompiled headers
-- LYX_MERGE_FILES                = OFF       : Merge source files into one 
compilation unit
-- LYX_MERGE_REBUILD              = OFF       : Rebuild generated files from 
merged files build
-- LYX_QUIET                      = OFF       : Don't generate verbose makefiles
-- LYX_INSTALL_PREFIX             = OFF       : Install path for LyX
-- LYX_BUNDLE                     = OFF       : Build bundle  (experimental) 
-- LYX_ENABLE_URLTESTS            = OFF       : Enable for URL tests
-- LYX_ENABLE_EXPORT_TESTS        = ON        : Enable for export tests
-- LYX_ENABLE_KEYTESTS            = OFF       : Enable for keytests
-- LYX_ASAN                       = OFF       : Use address sanitizer
-- LYX_USE_QT                     = QT5       : Use Qt version as frontend 
(AUTO QT4 QT5)
-- LYX_USE_IPO                    = OFF       : Interprocedural optimization 
(OFF AUTO ON)
-- LYX_DISABLE_CALLSTACK_PRINTING = OFF       : do not print a callstack when 
crashing
-- LYX_EXTERNAL_Z                 = ON        : OFF := Build 3rdparty lib zlib
-- LYX_EXTERNAL_DTL               = ON        : OFF := Build 3rdparty commands 
dt2dv and dv2dt
-- LYX_EXTERNAL_ICONV             = ON        : OFF := Build 3rdparty lib 
iconvlib
-- LYX_EXTERNAL_HUNSPELL          = OFF       : OFF := Build 3rdparty lib 
hunspelllib
-- LYX_EXTERNAL_MYTHES            = ON        : OFF := Build 3rdparty lib 
mytheslib (AUTO OFF ON)
-- LYX_PROFILE                    = OFF       : Build with options for gprof
-- LYX_EXTERNAL_BOOST             = OFF       : Use external boost
-- LYX_PROGRAM_SUFFIX             = OFF       : Append version suffix to 
binaries
-- LYX_DEBUG_GLIBC                = OFF       : Enable libstdc++ debug mode
-- LYX_DEBUG_GLIBC_PEDANTIC       = OFF       : Enable libstdc++ pedantic debug 
mode
-- LYX_STDLIB_DEBUG               = ON        : Use debug stdlib

Attachment: signature.asc
Description: PGP signature

-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to