From: | Nazir Bilal Yavuz <byavuz81(at)gmail(dot)com> |
---|---|
To: | Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Andres Freund <andres(at)anarazel(dot)de> |
Cc: | Michael Paquier <michael(at)paquier(dot)xyz>, pgsql-hackers(at)lists(dot)postgresql(dot)org |
Subject: | Re: kerberos/001_auth test fails on arm CPU darwin |
Date: | 2022-10-10 14:32:16 |
Message-ID: | 99be4af9-91b2-31e6-f4fe-4a64fa756283@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi,
Thanks for the review!
On 10/1/22 14:12, Peter Eisentraut wrote:
> This patch could use some more in-code comments. For example, this
>
> +# get prefix for kerberos executables and try to find them at this path
> +sub test_krb5_paths
>
> is not helpful. What does it "get", where does it put it, how does it
> "try", and what does it do if it fails? What are the inputs and
> outputs of this function?
>
> + # remove '\n' since 'krb5-config --prefix' returns path ends with
> '\n'
> + $krb5_path =~ s/\n//g;
>
> use chomp
>
I updated patch regarding these comments.
I have a question about my logic:
+ elsif ($^O eq 'linux')
+ {
+ test_krb5_paths('/usr/');
+ }
}
Before that, test could use krb5kdc, kadmin and kdb5_util from
'/usr/sbin/'; krb5_config and kinit from $PATH. However, now it will try
to use all of them from $PATH or from '/usr/sbin/' and '/usr/bin/'. Does
that cause a problem?
Ci run after fix is applied:
https://cirrus-ci.com/build/5359971746447360
Regards,
Nazir Bilal Yavuz
Attachment | Content-Type | Size |
---|---|---|
0001-ci-Add-arm-CPU-for-darwin.patch | text/x-patch | 1.8 KB |
0002-fix-darwin-ARM-CPU-darwin-krb5-path-fix.patch | text/x-patch | 4.4 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Maxim Orlov | 2022-10-10 14:34:14 | Turn TransactionIdRetreat/Advance into inline functions |
Previous Message | shiy.fnst@fujitsu.com | 2022-10-10 14:28:27 | RE: Fix some newly modified tab-complete changes |