[Slackbuilds-users] help
arcadellama at posteo.net
arcadellama at posteo.net
Tue Mar 31 14:46:53 UTC 2020
> On Mar 31, 2020, at 9:45 AM, slackbuilds-users-request at slackbuilds.org wrote:
>
> Send SlackBuilds-users mailing list submissions to
> slackbuilds-users at slackbuilds.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> or, via email, send a message with subject or body 'help' to
> slackbuilds-users-request at slackbuilds.org
>
> You can reach the person managing the list at
> slackbuilds-users-owner at slackbuilds.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of SlackBuilds-users digest..."
>
>
> Today's Topics:
>
> 1. Re: Updates - 20200328.1 (Willy Sudiarto Raharjo)
> 2. Re: nvidia-driver-440.64 submitted (Lenard Spencer)
> 3. Re: uids/gids (B Watson)
> 4. Re: uids/gids (Biff Eros)
> 5. updates needed for dependencies I wrote scripts for? (mathics
> but others' builds now?) (David Chmelik)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 31 Mar 2020 08:11:16 +0700
> From: Willy Sudiarto Raharjo <willysr at slackbuilds.org>
> To: slackbuilds-users at slackbuilds.org
> Subject: Re: [Slackbuilds-users] Updates - 20200328.1
> Message-ID: <b91d318d-bb9e-5a70-30fa-84f42433f385 at slackbuilds.org>
> Content-Type: text/plain; charset="utf-8"
>
>> Hi, Willy :)
>> I added -DSNAPPY_BUILD_TESTS=0 option and 'snappy' compiled without problems
>
> I test it here on my VM and it worked fine
> snappy:
> MD5SUM check for snappy-1.1.8.tar.gz ... OK
> Building package snappy-1.1.8-x86_64-1_SBo.tgz ... OK
>
>
> --
> Willy Sudiarto Raharjo
>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: signature.asc
> Type: application/pgp-signature
> Size: 195 bytes
> Desc: OpenPGP digital signature
> URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20200331/542eef9a/attachment-0001.asc>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 30 Mar 2020 21:13:44 -0400
> From: Lenard Spencer <lenardrspencer at gmail.com>
> To: "SlackBuilds.org Users List" <slackbuilds-users at slackbuilds.org>
> Subject: Re: [Slackbuilds-users] nvidia-driver-440.64 submitted
> Message-ID:
> <CANSA5-uQYtfHLFE+j=OtPtPKvoVCE+ZLPfS6f=0ZaF_GK46+NQ at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Thanks much!
>
> On Mon, Mar 30, 2020, 18:01 King Beowulf <kingbeowulf at gmail.com> wrote:
>
>> On 3/25/20 10:32 AM, Lenard Spencer wrote:
>>> If nobody else wants it I'll take it.
>>>
>>>
>>
>> Approved. A bit earlier than had I planned, but it is definitely better
>> to have a maintainer that can run the nvidia-driver on actual hardware.
>>
>> All hail the newly anointed nvidia high priest!
>>
>> -Ed
>>
>>
>> _______________________________________________
>> SlackBuilds-users mailing list
>> SlackBuilds-users at slackbuilds.org
>> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
>> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
>> FAQ - https://slackbuilds.org/faq/
>>
>>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20200330/b91a389d/attachment-0001.htm>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 30 Mar 2020 22:59:34 -0400
> From: B Watson <yalhcru at gmail.com>
> To: "SlackBuilds.org Users List" <slackbuilds-users at slackbuilds.org>
> Subject: Re: [Slackbuilds-users] uids/gids
> Message-ID:
> <CAN1hMuABW3w4cYcMSWenTybNUfXPtgZeGwxR+AYci=fmLe2uUQ at mail.gmail.com>
> Content-Type: text/plain; charset="UTF-8"
>
> On 3/30/20, Biff Eros <bifferos at gmail.com> wrote:
>
>> I started off manually creating user/group creation scripts for
>> Afterpkg, looking a bit like this:
>> https://github.com/bifferos/afterpkg/blob/master/scripts/system/mongodb/before.sh
>
> Interesting project... not sure I'd want to mix-and-match pip-installed
> and SBo-installed stuff, but if someone does want to, your script looks
> like it should handle it well.
>
> The before.sh you linked does something horrible though. Nobody should
> ever grep /etc/passwd and/or group to see if a user exists (what if
> they're using LDAP authentication? NIS? In 15.0 we're going to have PAM,
> what if they're using something we never even heard of before?)
>
> Instead use getent. Like so:
>
> ---cut-here---
> #!/bin/bash
>
> # Create the mongo group
> if getent group mongo >/dev/null ; then
> echo "mongo group exists, no need to add it"
> else
> echo "Creating mongo group"
> groupadd -r -g 285 mongo
> fi
>
> # Create the mongo user
> if getent passwd mongo >/dev/null ; then
> echo "mongo user exists, no need to add it"
> else
> echo "Creating mongo user"
> useradd -u 285 -d /var/lib/mongodb -s /bin/false -g mongo mongo
> fi
> ---cut-here---
>
> Notice it's a pretty minor change: only the two "if grep" lines are
> different. getent is is part of glibc, so it's guaranteed to be present
> on any Slack box that's able to compile anything.
>
> If you're generating the uid/gid creation scripts, I guess you only have
> to change it in one place (the generator script).
>
>
> ------------------------------
>
> Message: 4
> Date: Tue, 31 Mar 2020 08:51:58 +0100
> From: Biff Eros <bifferos at gmail.com>
> To: "SlackBuilds.org Users List" <slackbuilds-users at slackbuilds.org>
> Subject: Re: [Slackbuilds-users] uids/gids
> Message-ID:
> <CAOcM_bn_tH9GLjQk8EwfbUDnpZCaHchPWKD9YwxVFJGhM71DGg at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> I think there was some reason I couldn't rely on getent being present when
> I wrote that code, initially I was using it in the context of a minimal
> install but you are right, I will make that change, thanks for letting me
> know.
>
> On Tue, Mar 31, 2020, 3:59 AM B Watson <yalhcru at gmail.com> wrote:
>
>> On 3/30/20, Biff Eros <bifferos at gmail.com> wrote:
>>
>>> I started off manually creating user/group creation scripts for
>>> Afterpkg, looking a bit like this:
>>>
>> https://github.com/bifferos/afterpkg/blob/master/scripts/system/mongodb/before.sh
>>
>> Interesting project... not sure I'd want to mix-and-match pip-installed
>> and SBo-installed stuff, but if someone does want to, your script looks
>> like it should handle it well.
>>
>> The before.sh you linked does something horrible though. Nobody should
>> ever grep /etc/passwd and/or group to see if a user exists (what if
>> they're using LDAP authentication? NIS? In 15.0 we're going to have PAM,
>> what if they're using something we never even heard of before?)
>>
>> Instead use getent. Like so:
>>
>> ---cut-here---
>> #!/bin/bash
>>
>> # Create the mongo group
>> if getent group mongo >/dev/null ; then
>> echo "mongo group exists, no need to add it"
>> else
>> echo "Creating mongo group"
>> groupadd -r -g 285 mongo
>> fi
>>
>> # Create the mongo user
>> if getent passwd mongo >/dev/null ; then
>> echo "mongo user exists, no need to add it"
>> else
>> echo "Creating mongo user"
>> useradd -u 285 -d /var/lib/mongodb -s /bin/false -g mongo mongo
>> fi
>> ---cut-here---
>>
>> Notice it's a pretty minor change: only the two "if grep" lines are
>> different. getent is is part of glibc, so it's guaranteed to be present
>> on any Slack box that's able to compile anything.
>>
>> If you're generating the uid/gid creation scripts, I guess you only have
>> to change it in one place (the generator script).
>> _______________________________________________
>> SlackBuilds-users mailing list
>> SlackBuilds-users at slackbuilds.org
>> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
>> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
>> FAQ - https://slackbuilds.org/faq/
>>
>>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20200331/a942f372/attachment-0001.htm>
>
> ------------------------------
>
> Message: 5
> Date: Tue, 31 Mar 2020 07:45:25 -0700
> From: David Chmelik <dchmelik at gmail.com>
> To: SlackBuilds-users <slackbuilds-users at slackbuilds.org>
> Subject: [Slackbuilds-users] updates needed for dependencies I wrote
> scripts for? (mathics but others' builds now?)
> Message-ID: <4588910d-6120-782c-e8f8-c7b9c45d0faf at gmail.com>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> ??? Some years ago I wrote mathics.SlackBuild and some dependencies
> (depends on colorama, mpmath, ply, python-dateutil,
> python-django-legacy, six, sympy, but at this point I forgot which few I
> did, though I have them) and am aware some people use one or more
> dependencies I wrote for something else.? However, Mathics hasn't had
> normally-numbered (sequential-numbered) stable releases in years rather
> than abnormally-numbered (hash-numbered) development releases.? I am not
> building any of those releases.? If someone soon needs a newer version
> of some dependency I wrote the script for, it'll have to be forked.? Let
> me know if/when that needs to be done, which I suggest whoever needs
> that dependency, will (after letting me submit a so-called 'legacy'
> version) take it over when you need to update your build, so fork my
> dependency, update it for newer versions (and I'll keep the so-called
> 'legacy' version for Mathics.)
> ??? If they're going to have to be converted to Python 3, I'm not sure
> about that.? Basically I'd have to wait for a new normally-numbered
> Mathics release and see if that uses Python 3, or if it can be otherwise
> changed, otherwise the current Mathics will have to use what it has, or
> be dropped, whatever will work... will have to see what the SlackBuilds
> administrators say...
>
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
>
>
> ------------------------------
>
> End of SlackBuilds-users Digest, Vol 167, Issue 20
> **************************************************
More information about the SlackBuilds-users
mailing list