[Slackbuilds-users] About owncloud-client SlackBuild

Luiz Carlos Ramos lramos.prof at yahoo.com.br
Fri Nov 9 20:35:06 UTC 2018


Matteo,

I tried to redo the build with the "make doc" statement and traced the
problem to the file
/tmp/SBo/owncloudclient-2.4.2/build/doc/latex/Makefile:

---
# Makefile for Sphinx LaTeX output

ALLDOCS = $(basename $(wildcard *.tex))
ALLPDF = $(addsuffix .pdf,$(ALLDOCS))
ALLDVI = $(addsuffix .dvi,$(ALLDOCS))
ALLXDV =
ALLPS  = $(addsuffix .ps,$(ALLDOCS))
ALLIMGS = $(wildcard *.png *.gif *.jpg *.jpeg)

# Prefix for archive names
ARCHIVEPREFIX =
# Additional LaTeX options (passed via variables in latexmkrc/latexmkjarc file)
export LATEXOPTS =
# Additional latexmk options
LATEXMKOPTS =
# format: pdf or dvi (used only by archive targets)
FMT = pdf

LATEX = latexmk -dvi
PDFLATEX = latexmk -pdf -dvi- -ps-


%.png %.gif %.jpg %.jpeg: FORCE_MAKE
	extractbb '$@'

%.dvi: %.tex FORCE_MAKE
	$(LATEX) $(LATEXMKOPTS) '$<'

%.ps: %.dvi
	dvips '$<'

%.pdf: %.tex FORCE_MAKE
	$(PDFLATEX) $(LATEXMKOPTS) '$<'

all: $(ALLPDF)

all-dvi: $(ALLDVI)

all-ps: $(ALLPS)

all-pdf: $(ALLPDF)

zip: all-$(FMT)
	mkdir $(ARCHIVEPREFIX)docs-$(FMT)
	cp $(ALLPDF) $(ARCHIVEPREFIX)docs-$(FMT)
	zip -q -r -9 $(ARCHIVEPREFIX)docs-$(FMT).zip $(ARCHIVEPREFIX)docs-$(FMT)
	rm -r $(ARCHIVEPREFIX)docs-$(FMT)

tar: all-$(FMT)
	mkdir $(ARCHIVEPREFIX)docs-$(FMT)
	cp $(ALLPDF) $(ARCHIVEPREFIX)docs-$(FMT)
	tar cf $(ARCHIVEPREFIX)docs-$(FMT).tar $(ARCHIVEPREFIX)docs-$(FMT)
	rm -r $(ARCHIVEPREFIX)docs-$(FMT)

gz: tar
	gzip -9 < $(ARCHIVEPREFIX)docs-$(FMT).tar > $(ARCHIVEPREFIX)docs-$(FMT).tar.gz

bz2: tar
	bzip2 -9 -k $(ARCHIVEPREFIX)docs-$(FMT).tar

xz: tar
	xz -9 -k $(ARCHIVEPREFIX)docs-$(FMT).tar

clean:
	rm -f *.log *.ind *.aux *.toc *.syn *.idx *.out *.ilg *.pla *.ps *.tar *.tar.gz *.tar.bz2 *.tar.xz $(ALLPDF) $(ALLDVI) $(ALLXDV) *.fls *.fdb_latexmk

.PHONY: all all-pdf all-dvi all-ps clean zip tar gz bz2 xz
.PHONY: FORCE_MAKE
---


which points to something related to the Sphinx package as it is
suggested in the first line. I'll try to get more information as the
availability of time permits.


Thanks,

Luiz


On Fri, Nov 09, 2018 at 06:39:37PM +0100, Matteo Bernardini wrote:
> Il giorno ven 9 nov 2018 alle ore 17:13 Luiz Carlos Ramos via
> SlackBuilds-users <slackbuilds-users at slackbuilds.org> ha scritto:
> >
> > Hello,
> >
> > I tried to build owncloud-client recently and ran into problems. In
> > summary, it seems that when "make doc" is executed, an error is shown
> > pointing to a lacking "latexmk" utility that would be used to build
> > something.
> >
> > Some googlings after and I found that this utility possibly belongs to
> > one of the "texlive" SBo packages (texlive, texlive-doc or
> > texlive-extra).  The first is easy to build and install (considering
> > also that it collides with a base Slackware package), but the last two
> > requires downloading ~1Gb each, and so I didn't feel comfortable in
> > building and installing them all.
> >
> > By the other hand, one possibility is that the documentation could be
> > regarded as an optional thing in the whole owncloud-client package.
> >
> > So I tried to build owncloud-client commenting out the "make doc" step,
> > and it worked.
> >
> > I took an additional step and changed the SlackBuild to allow building
> > the package without "make doc" when latexmk is not available. Here is a
> > possible patch:
> >
> > --
> > diff --git a/network/owncloud-client/owncloud-client.SlackBuild b/network/owncloud-client/owncloud-client.SlackBuild
> > index 0ee0dd35aa12ebbbbe3e4c756a6d4264719f68ce..5903474f96496aee2b695df0630ffeb75350267b 100644
> > --- a/network/owncloud-client/owncloud-client.SlackBuild
> > +++ b/network/owncloud-client/owncloud-client.SlackBuild
> > @@ -22,6 +22,9 @@
> >  #  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
> >  #  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
> >
> > +# Modified by: Luiz Ramos <lramos.prof at yahoo.com.br>: skip "make doc" when
> > +# latexmk is not present
> > +
> >  PRGNAM=owncloud-client
> >  VERSION=${VERSION:-2.4.2}
> >  BUILD=${BUILD:-1}
> > @@ -71,6 +74,9 @@ find -L . \
> >   \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
> >    -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
> >
> > +HAVE_LATEXMK=$(latexmk -v 2>/dev/null | head -1 || true)
> > +test -z "${HAVE_LATEXMK}" && echo "latexmk not found: will not build docs"
> > +
> >  mkdir -p build
> >  cd build
> >    cmake \
> > @@ -84,7 +90,7 @@ cd build
> >      -DBUILD_WITH_QT4=${BUILD_WITH_QT4:-"No"} \
> >      ..
> >    make VERBOSE=1
> > -  make doc
> > +  test -n "${HAVE_LATEXMK}" && make doc
> >    make install DESTDIR=$PKG
> >  cd ..
> >
> > --
> >
> > In the same case, I tested it and it worked fine.
> >
> > This effectively makes something (which in the best of my knowledge is
> > texlive and friends) as optional dependencies of owncloud-client.
> >
> > Of course if you eventually accept this change, it should also be
> > advisable to write something in the README file about this optional
> > dependency and the effects of not having them.
> >
> > Many thanks,
> >
> > Luiz Carlos Ramos
> > lramos.prof at yahoo.com.br
> > São Paulo - Brazil
> 
> hi Luis,
> 
> I don't know what is happening in your build environment but just to
> confirm that I have tried a few minutes ago to build owncloud-client
> without texlive installed on slackware64-14.2 (no latexmk binary is in
> my $PATH) and everything went fine (also the "make doc" bit).
> 
> Matteo


More information about the SlackBuilds-users mailing list