Store original source directory before modification

This commit is contained in:
Jerry Ma 2025-11-21 22:03:41 +08:00 committed by GitHub
parent e9ad3c0011
commit f14df1925c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,6 +11,7 @@ trait krb5
{
protected function build(): void
{
$origin_source_dir = $this->source_dir;
$this->source_dir .= '/src';
shell()->cd($this->source_dir)->exec('autoreconf -if');
$libs = array_map(fn ($x) => $x->getName(), $this->getDependencies(true));
@ -51,5 +52,6 @@ trait krb5
'mit-krb5.pc',
'gssrpc.pc',
]);
$this->source_dir = $origin_source_dir;
}
}