os icon indicating copy to clipboard operation
os copied to clipboard

samba/4.21.1 package update

Open octo-sts[bot] opened this issue 1 year ago • 5 comments

octo-sts[bot] avatar Oct 14 '24 12:10 octo-sts[bot]

Open AI suggestions to solve the build error:

The error message indicates a failure in building the package due to an issue with the Samba package pipeline. The build environment has been preserved for further investigation. Here are some steps to address the issue:

1. **Check the Build Logs**: Look into the preserved workspace directory for detailed error messages that can provide more insight into what went wrong.
2. **Verify Dependencies**: Ensure that all necessary dependencies for the Samba package are installed and correctly configured.
3. **Review Build Scripts**: Double-check the build scripts and configurations for any errors or misconfigurations.
4. **Test in a Clean Environment**: Try running the build process in a clean environment to rule out any environmental issues.

octo-sts[bot] avatar Oct 14 '24 12:10 octo-sts[bot]

Open AI suggestions to solve the build error:

The error log indicates a warning: "WARN mv: can't rename '/home/build/melange-out/samba/usr/lib/samba/libtrusts-util-private-samba.so': No such file or directory". 

To resolve this issue, you should:

1. Verify if the file `/home/build/melange-out/samba/usr/lib/samba/libtrusts-util-private-samba.so` exists. If it doesn't, ensure it is generated or copied correctly during the build process.
2. Check the build scripts or Makefile for any errors related to file paths or commands involving this file.
3. Make sure all dependencies and build tools are properly installed and configured.
4. After making the necessary corrections, re-run the build process.

octo-sts[bot] avatar Oct 14 '24 13:10 octo-sts[bot]

Hi @tuananh, looks like you were the original contributor to the samba package back in July. Looks like this is failing to compile in the most recent version. Haven't been able to pin down a root cause after skimming the release notes:

2024/10/14 14:54:21 INFO Checking linker accepts ['-undefined', 'dynamic_lookup']                          : no
2024/10/14 14:54:21 INFO Checking linker accepts -Wl,--as-needed                                           : yes
2024/10/14 14:54:21 INFO -lc not needed                                                                    : -lc is unnecessary
2024/10/14 14:54:21 INFO Checking configure summary                                                        : not found
2024/10/14 14:54:21 WARN configure summary failed
2024/10/14 14:54:21 INFO pod d82fe7573840f090729c896f21ddd3fd7d3baf9ad484a7251d0882bd30a71c34 terminated
2024/10/14 14:54:21 ERRO ERROR: failed to build package. the build environment has been preserved:
2024/10/14 14:54:21 INFO   workspace dir: /var/folders/5_/ncnfqzm12fv032hhc9zgx4xc0000gn/T/melange-workspace-4190522057
2024/10/14 14:54:21 INFO   guest dir: /var/folders/5_/ncnfqzm12fv032hhc9zgx4xc0000gn/T/melange-guest-2905207339
2024/10/14 14:54:21 ERRO failed to build package: unable to run package samba pipeline: unable to run pipeline: unable to run pipeline: task exited with code 1

If you've any insights, very welcome

mamccorm avatar Oct 14 '24 14:10 mamccorm

@mamccorm the failure is actually here

2024-10-14T13:07:20.5075649Z 2024/10/14 13:07:20 WARN mv: can't rename '/home/build/melange-out/samba/usr/lib/samba/libtrusts-util-private-samba.so': No such file or directory subpackage=samba-libs
2024-10-14T13:07:21.0897118Z 2024/10/14 13:07:21 ERRO ERROR: failed to build package. the build environment has been preserved:
2024-10-14T13:07:21.0898554Z 2024/10/14 13:07:21 INFO   workspace dir: /temp/melange-workspace-4023031532
2024-10-14T13:07:21.0899559Z 2024/10/14 13:07:21 INFO   guest dir: /temp/melange-guest-3140538493
2024-10-14T13:07:21.0902334Z 2024/10/14 13:07:21 ERRO failed to build package: unable to run subpackage samba-libs pipeline: unable to run pipeline: exit status 1

this specific file libtrusts-util-private-samba.so

2024-10-14T13:07:20.5075649Z 2024/10/14 13:07:20 WARN mv: can't rename '/home/build/melange-out/samba/usr/lib/samba/libtrusts-util-private-samba.so': No such file or directory subpackage=samba-libs

so my guess would be they move the artifact elsewhere or to a different name. not sure why but i've seen that in the past.

https://github.com/wolfi-dev/os/blob/9c831dc1af1b70f4e974fecaa58935b398d72cd5/samba.yaml#L448

tuananh avatar Oct 14 '24 14:10 tuananh

Open AI suggestions to solve the build error:

The error log indicates a warning: "WARN mv: can't rename '/home/build/melange-out/samba/usr/lib/samba/libtrusts-util-private-samba.so': No such file or directory". 

To resolve this issue, you should:

1. Verify if the file `/home/build/melange-out/samba/usr/lib/samba/libtrusts-util-private-samba.so` exists. If it doesn't, ensure it is generated or copied correctly during the build process.
2. Check the build scripts or Makefile for any errors related to file paths or commands involving this file.
3. Make sure all dependencies and build tools are properly installed and configured.
4. After making the necessary corrections, re-run the build process.

OpenAI is actually being helpful here :)

tuananh avatar Oct 14 '24 14:10 tuananh

Thanks @tuananh, was hitting a different (earlier), error on my setup, but TLDR this looks to be the root cause:

  • https://github.com/samba-team/samba/commit/3de8d2941529af5a89069bd8e0caed0bcb508869

So we can just remove this cp step from the melange. Will get a PR up

mamccorm avatar Oct 14 '24 17:10 mamccorm

Open AI suggestions to solve the build error:

No error messages were found in the last 280 lines of the log file at `/tmp/script2014187241`.

octo-sts[bot] avatar Oct 14 '24 21:10 octo-sts[bot]