pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

proposal to make bootstrap on Linux prefer pkgsrc by default.



Jason Bacon <outpaddling%yahoo.com@localhost> writes:

> On 2020-08-09 13:08, Greg Troxel wrote:
>> Jason Bacon <outpaddling%yahoo.com@localhost> writes:
>>
>> Do you intend to change it, or do you think there is some reason not to,
>> or that others object?  As I said above, my only goal here is that we
>> adjust defaults to the consensus of best practice.
>>
> My aim here was to recap and clarify my experience with this issue so
> we have a solid foundation on record for the argument.  So yes, I
> think PREFER_PKGSRC should be the default.

Sounds good to me, and you have definitely convinced me.

I have changed the subject to reflect the proposed change of default.

> Should it be changed just for Linux, or for other platforms as well?

So far, we have had discussion that supports changing it on Linux.
Specific othesr, not so much, and "all others", not at all.  So I'd
prefer to just change it on Linux where we have a good basis to believe
that's in the interest of someone who doesn't understand this issue and
runs bootstrap.

> Are we simply talking about something like the following in the
> bootstrap script or is it more complicated?
>
> --- Pkgsrc/pkgsrc/bootstrap/bootstrap.orig    2020-08-10
> 09:31:25.512000000 +0000
> +++ Pkgsrc/pkgsrc/bootstrap/bootstrap    2020-08-10 09:36:00.236000000 +0000
> @@ -1103,6 +1103,14 @@
>  echo "PKGMANDIR=        $pkgmandir" >> ${TARGET_MKCONF}
>  echo "" >> ${TARGET_MKCONF}
>
> +case $opsys in
> +Linux)
> +    if [ -z "$prefer_pkgsrc" ]; then
> +        prefer_pkgsrc="yes"
> +    fi
> +    ;;
> +esac
> +
>  if [ -n "$prefer_pkgsrc" ]; then
>      echo "PREFER_PKGSRC=        $prefer_pkgsrc" >> ${TARGET_MKCONF}
>      echo "" >> ${TARGET_MKCONF}

I think there probably needs to be a doc change, and there needs to be a
prefer-native that causes this not to happen, etc.  But basically, that
seems like it.

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index