[Slackbuilds-users] icon theme symlink optimization

2020-04-07 Thread B Watson
Ever notice most of the *-icon-theme builds take *forever* to build?
Even though they're just copying data, with no compiling happening?
The culprit is makepkg's symlink detection and doinst.sh generation.

To anyone who maintains a build that contains thousands of
symlinks... please consider doing this to your build.

The changes come at the end of the script, just before makepkg is
called. Example:

cd $PKG

find . -type l \
  -printf '( cd %h ; rm -rf %f )\n( cd %h ; ln -sf %l %f )\n' -delete | \
  sed 's,cd \./,cd ,' >> $PKG/install/doinst.sh

/sbin/makepkg -l y -c n
$OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

This produces an install/doinst.sh that's identical[1] to the one makepkg
would have generated, but it happens a *lot* faster. If you're using
an SSD for /tmp, you can expect the build to run in seconds rather than
minutes. Even on a hard drive, expect at least a 2x to 10x speedup.

[1] Unless there are spaces in the filenames.

To decide whether or not this is worth doing to your build, first
build it the usual way. Then:

grep -c 'ln -sf' /tmp/SBo/package-/install/doinst.sh

...which will show you how many symlinks exist in your package. If the
number's above 1000 or so (some are closer to 20,000 or 40,000), it's
worth trying this speedup technique.

When you do this to your build, you should keep a copy of the old
install/doinst.sh from before the modification. Paste the above code (the
giant find|sed stanza) into your build, run it (it should be noticeably
faster), then diff the old doinst.sh and the newly-generated one. They
should be identical. If not, either figure out why & fix it, or revert
the change and leave the build alone.

In my git branch, I've done this to these builds:

Qogir-icon-theme
Zafiro-icons
arc-icon-theme
areao43-icon-theme
awoken-icon-theme
faba-mono-icons
faenza-icon-theme
faience-icon-theme
flatwoken-icon-theme
kfaenza-icon-theme
meliae-icon-theme
numix-icon-theme
numix-icon-theme-circle
numix-icon-theme-square
oranchelo-icon-theme
papirus-icon-theme
vivacious-colors-gtk-icon-theme

If you're the maintainer of one of these, you may want to double-check
that the generated doinst.sh hasn't changed (I checked them myself,
but why take my word for it?)

Before anyone asks: yes, I'm planning to send Pat a patch for him
to consider adding to makepkg. However I've got to deal with the
spaces-in-filenames issue first.
___
SlackBuilds-users mailing list
SlackBuilds-users@slackbuilds.org
https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/



Re: [Slackbuilds-users] qt5 build fail

2020-04-07 Thread B Watson
On 4/7/20, Tim Dickson via SlackBuilds-users
 wrote:
> trying to build the updated qt5  5.12.7 (using sbopkg) is failing for me.
> with the error message.
>
> ninja: build stopped: subcommand failed.
> Makefile.gn_run:1237: recipe for target 'run_ninja' failed

You didn't include enough of the log... presumably, whatever actual
command failed, spewed out an error message, which would have occurred
before the "ninja: build stopped" line.
___
SlackBuilds-users mailing list
SlackBuilds-users@slackbuilds.org
https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/



[Slackbuilds-users] qt5 build fail

2020-04-07 Thread Tim Dickson via SlackBuilds-users

trying to build the updated qt5  5.12.7 (using sbopkg) is failing for me.
with the error message.

ninja: build stopped: subcommand failed.
Makefile.gn_run:1237: recipe for target 'run_ninja' failed
make[4]: *** [run_ninja] Error 1
make[4]: Leaving directory 
'/tmp/SBo/qt-everywhere-src-5.12.7/qtwebengine/src/core'

Makefile:82: recipe for target 'sub-gn_run-pro-make_first' failed
make[3]: *** [sub-gn_run-pro-make_first] Error 2
make[3]: leaving directory 
'/tmp/SBo/qt-everywhere-src-5.12.7/qtwebengine/src'

Makefile:80: recipe for target 'sub-core-make_first' failed
make[2]: *** [sub-core-make_first] Error 2
make[2]: Leaving directory 
'/tmp/SBo/qt-everywhere-src-5.12.7/qtwebengine/src'

Makefile:48: recipe for target 'sub-src-make_first' failed
make[1]: *** [sub-arc-make_first] Error 2
make[1]: Leaving directory '/tmp/SBo/qt-everywhere-src-5.12.7/qtwebengine'
Makefile:1031: recipe for target 'module-qtwebengine-make_first' failed
make: *** [module-qtwebengine-make_first] Error 2

I do have Jinja installed
/var/log/packages/ninja-1.10.0-x86_64-1_SBo
I am building with proprietry codecs and webengine options
Anyone any ideas
regards, Tim


---
This email has been checked for viruses by AVG.
https://www.avg.com

___
SlackBuilds-users mailing list
SlackBuilds-users@slackbuilds.org
https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/



Re: [Slackbuilds-users] qt5-styleplugins

2020-04-07 Thread MyRequiem
Re: Dave Woodfall 08.04.2020 <20200407210510.gb26...@blackswan.r0t.uk>
>On 2020-04-07 14:54,
>MyRequiem  put forth the proposition:
>> Packages qt5-legace and qt5 not compatible for simultaneous
>> installation. I understand correctly? I need to remove qt5 and install
>> qt5-legacy in order to use the package qt5-styleplugins?
>
>That's correct.  You can only have one or the other installed.
>
>You could try installing 5.12.6 to see if it works.  There were
>a few changes from 5.12.6 -> .7, but there's no guarantee.
>
>--
>Dave
>
>The antibloat squad!
>For those interested in no bloat, minimal desktop Linux
>gopher://tty1.uk/1/?minimal-linux
>http://tty1.uk/minimal-linux
>#minimallinux @ chat.freenode.net



>___
>SlackBuilds-users mailing list
>SlackBuilds-users@slackbuilds.org
>https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
>Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
>FAQ - https://slackbuilds.org/faq/
>

Thank you very much. It's easier for me to install the old package
qt5-legacy. I use qt5 package only for flacon and flameshot, so it makes
no difference to me which version qt5 will be installed.
___
SlackBuilds-users mailing list
SlackBuilds-users@slackbuilds.org
https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/



Re: [Slackbuilds-users] qt5-styleplugins

2020-04-07 Thread Dave Woodfall
On 2020-04-07 14:54,
MyRequiem  put forth the proposition:
> Packages qt5-legace and qt5 not compatible for simultaneous
> installation. I understand correctly? I need to remove qt5 and install
> qt5-legacy in order to use the package qt5-styleplugins?

That's correct.  You can only have one or the other installed.

You could try installing 5.12.6 to see if it works.  There were
a few changes from 5.12.6 -> .7, but there's no guarantee.

--
Dave

The antibloat squad!
For those interested in no bloat, minimal desktop Linux
gopher://tty1.uk/1/?minimal-linux
http://tty1.uk/minimal-linux
#minimallinux @ chat.freenode.net


signature.asc
Description: PGP signature
___
SlackBuilds-users mailing list
SlackBuilds-users@slackbuilds.org
https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/



Re: [Slackbuilds-users] Snappy not building

2020-04-07 Thread Willy Sudiarto Raharjo
> in a previous post, I suggested a different workaround for this problem,
> based in some findings at Google. The starting point was the same
> problem with the unit test, and the solution I chose doesn't disable it.
> 
> If you'd like to make an experiment, try the patch mentioned in this
> email:
> 
> https://lists.slackbuilds.org/pipermail/slackbuilds-users/2020-March/024230.html
> 
> which has to be applied in the previous version of the SlackBuild (prior
> to 28/Mar). Anyway, it is not hard to make the changes manually, as it
> adds one line to the SlackBuild and creates a patch file.

I fixed it already on my branch with a much simpler patch
https://git.slackbuilds.org/slackbuilds/commit/?id=094df1d52


-- 
Willy Sudiarto Raharjo



signature.asc
Description: OpenPGP digital signature
___
SlackBuilds-users mailing list
SlackBuilds-users@slackbuilds.org
https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/



Re: [Slackbuilds-users] python3-PyQt5 REQUIRES list

2020-04-07 Thread Rich Shepard

On Tue, 7 Apr 2020, Dave Woodfall wrote:


qt5-webkit was listed as required to build both PyQt5 and python3-PyQt5
when I took them over, and I left the dependency lists as they were. I've
just tested building them both without it and didn't see any problems, so
I've now moved qt5-webkit to `optional'.

It's quite possible that something still uses qt5-webkit, but not
qtwebengine. I'll be taking a look at it shortly.


Dave,

Thanks very much for the explanation.

Best regards,

Rich
___
SlackBuilds-users mailing list
SlackBuilds-users@slackbuilds.org
https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/



Re: [Slackbuilds-users] python3-PyQt5 REQUIRES list

2020-04-07 Thread Dave Woodfall
On 2020-04-06 16:45,
Rich Shepard  put forth the proposition:
> Dave,
>
> I'm curious, and perhaps you know, why qt5-webkit is required for PyQt5
> since Qt5 itself can be built with WEBENGINE=no? (Both Qt5 and PyQT5 take >
> 2 hours to build on my 8-core/16-thread Ryzen 7 2700 desktop with 32G RAM.)

Hi Rich,

qt5-webkit was listed as required to build both PyQt5 and
python3-PyQt5 when I took them over, and I left the dependency lists
as they were.  I've just tested building them both without it and
didn't see any problems, so I've now moved qt5-webkit to `optional'.

It's quite possible that something still uses qt5-webkit, but not
qtwebengine.  I'll be taking a look at it shortly.

--
Dave

The antibloat squad!
For those interested in no bloat, minimal desktop Linux
gopher://tty1.uk/1/?minimal-linux
http://tty1.uk/minimal-linux
#minimallinux @ chat.freenode.net


signature.asc
Description: PGP signature
___
SlackBuilds-users mailing list
SlackBuilds-users@slackbuilds.org
https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/



Re: [Slackbuilds-users] Snappy not building

2020-04-07 Thread Luiz Carlos Ramos via SlackBuilds-users
Hello,

in a previous post, I suggested a different workaround for this problem,
based in some findings at Google. The starting point was the same
problem with the unit test, and the solution I chose doesn't disable it.

If you'd like to make an experiment, try the patch mentioned in this
email:

https://lists.slackbuilds.org/pipermail/slackbuilds-users/2020-March/024230.html

which has to be applied in the previous version of the SlackBuild (prior
to 28/Mar). Anyway, it is not hard to make the changes manually, as it
adds one line to the SlackBuild and creates a patch file.

Hope it helps,

Luiz Carlos Ramos
lramos dot prof at yahoo dot com dot br


On Mon, Apr 06, 2020 at 12:15:59PM -0600, Luveh Keraph wrote:
> After removing gtest I was able to build snappy without any problems. After
> that, I was able to reinstall gtest all right.
> 
> On Mon, Apr 6, 2020 at 12:11 PM Willy Sudiarto Raharjo <
> will...@slackbuilds.org> wrote:
> 
> > > Here you are:
> >
> > > gtest-1.8.0-x86_64-3_SBo
> >
> > If my assumption is correct, this is the one that caused snappy failed
> > to build in your machine.
> >
> > I can't test right now as i'm building the new Qt5 on my VM
> >
> > --
> > Willy Sudiarto Raharjo
> >
> >

> ___
> SlackBuilds-users mailing list
> SlackBuilds-users@slackbuilds.org
> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - https://slackbuilds.org/faq/
> 

___
SlackBuilds-users mailing list
SlackBuilds-users@slackbuilds.org
https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/



Re: [Slackbuilds-users] qt5-styleplugins

2020-04-07 Thread MyRequiem
Re: Dave Woodfall 07.04.2020 <20200407102959.gg30...@blackswan.r0t.uk>
>On 2020-04-07 09:36,
>MyRequiem  put forth the proposition:
>> Hi All
>>
>> System: Slackware64 14.2
>>
>> After qt5 package upgrade to version 5.12.7 (I build this without
>> support webengine: WEBENGINE=${WEBENGINE:-no}), I'm trying to build
>> qt5-styleplugins package, but build fails with errors:
>>
>> collect2: error: ld returned 1 exit status
>> make[4]: *** [../../../../plugins/platformthemes/libqgtk2.so] Error 1
>> make[3]: *** [sub-gtk2-make_first] Error 2
>> make[2]: *** [sub-platformthemes-make_first] Error 2
>> make[2]: *** Waiting for unfinished jobs
>> make[1]: *** [sub-plugins-make_first] Error 2
>> make: *** [sub-src-make_first] Error 2
>
>Hi,
>
>This will need to be built against qt5-legacy now.  I've updated the
>REQUIRES list to reflect this.
>
>--
>Dave
>
>The antibloat squad!
>For those interested in no bloat, minimal desktop Linux
>gopher://tty1.uk/1/?minimal-linux
>http://tty1.uk/minimal-linux
>#minimallinux @ chat.freenode.net

Packages qt5-legace and qt5 not compatible for simultaneous
installation. I understand correctly? I need to remove qt5 and install
qt5-legacy in order to use the package qt5-styleplugins?


>___
>SlackBuilds-users mailing list
>SlackBuilds-users@slackbuilds.org
>https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
>Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
>FAQ - https://slackbuilds.org/faq/
>

___
SlackBuilds-users mailing list
SlackBuilds-users@slackbuilds.org
https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/



Re: [Slackbuilds-users] qt5-styleplugins

2020-04-07 Thread Dave Woodfall
On 2020-04-07 09:36,
MyRequiem  put forth the proposition:
> Hi All
>
> System: Slackware64 14.2
>
> After qt5 package upgrade to version 5.12.7 (I build this without
> support webengine: WEBENGINE=${WEBENGINE:-no}), I'm trying to build
> qt5-styleplugins package, but build fails with errors:
>
> collect2: error: ld returned 1 exit status
> make[4]: *** [../../../../plugins/platformthemes/libqgtk2.so] Error 1
> make[3]: *** [sub-gtk2-make_first] Error 2
> make[2]: *** [sub-platformthemes-make_first] Error 2
> make[2]: *** Waiting for unfinished jobs
> make[1]: *** [sub-plugins-make_first] Error 2
> make: *** [sub-src-make_first] Error 2

Hi,

This will need to be built against qt5-legacy now.  I've updated the
REQUIRES list to reflect this.

--
Dave

The antibloat squad!
For those interested in no bloat, minimal desktop Linux
gopher://tty1.uk/1/?minimal-linux
http://tty1.uk/minimal-linux
#minimallinux @ chat.freenode.net


signature.asc
Description: PGP signature
___
SlackBuilds-users mailing list
SlackBuilds-users@slackbuilds.org
https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/