You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After building, there are often stray diredctories in the ./dpkg dir.
These are caused by a makefile mismatch:
during make function/dependency parsing dirs are created
during the running, they are cleaned
The creation should happen at run only so they are cleaned up if they are created.
Steps to reproduce the issue:
make all
Describe the results you received:
$ ls dpkg/ -ltr
total 243
drwx------ 2 sonic-builder sonic-builder 2 Nov 7 14:29 tmp.kqNUFxrvcs
drwx------ 2 sonic-builder sonic-builder 2 Nov 7 14:29 tmp.QNfFERqflx
...
Describe the results you expected:
$ ls dpkg -ltr
The text was updated successfully, but these errors were encountered:
wdoekes
changed the title
[build] The builds process leaves stray tmp.XXXXXX dirs in ./dpkg dir
[build] The build process leaves stray tmp.XXXXXX dirs in ./dpkg dir
Nov 12, 2024
wdoekes
added a commit
to ossobv/sonic-buildimage
that referenced
this issue
Nov 12, 2024
==== Why I did it
I don't like a bunch of useless tempdirs laying around.
Issue: sonic-net#20772
==== How I did it
The make function SETUP_OVERLAYFS_FOR_DPKG_ADMINDIR is not always run, but
if it's parsed, the $(shell) calls would be executed. They caused tempdirs
to be created. But only if the function was run, were those dirs cleaned
up.
This change moves the tempdir creation to the function run.
Additionally it moves the trap EXIT two lines earlier, so that a failing
mount would not leave useless dirs either.
==== How to verify it
Run `make` and observe how at the end there aren't lots of stale temp
dirs `./dpkg`.
Description
After building, there are often stray diredctories in the
./dpkg
dir.These are caused by a makefile mismatch:
The creation should happen at run only so they are cleaned up if they are created.
Steps to reproduce the issue:
make all
Describe the results you received:
Describe the results you expected:
The text was updated successfully, but these errors were encountered: