[Slackbuilds-users] About owncloud-client SlackBuild

Didier Spaier didier at slint.fr
Fri Nov 9 16:49:56 UTC 2018


Hello,

Instead of dropping the doc it's often possible to replace the 
converter expected by the Makefile by another one easier to
get installed. Too tired to check for this specific case now,
but will do that later unless someone is faster.

Best, Didier

On 09/11/2018 17:12, Luiz Carlos Ramos via SlackBuilds-users wrote:
> 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 ..
>  
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0xD50202EF60C03EEA.asc
Type: application/pgp-keys
Size: 2153 bytes
Desc: not available
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20181109/fcdeaef9/attachment.bin>


More information about the SlackBuilds-users mailing list