check why logfiles sometimes not get cleaned properly #229
Labels
No labels
Done
bug
buildiso
buildpkg
buildtree
critical
deployiso
duplicate
enhancement
help wanted
in progress
invalid
manjaro-chroot
note
old-not-relevant
optional
question
sonar
todo
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
tools/manjaro-tools#229
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Created by: philmmanjaro
In some occasions the logfiles won't get cleaned properly:
Seems like the tools are looking for the log in the wrong place. They are not found while they are infact present in
$log_dirIf I'm not mistaken the logs used to reside in
$startdir/$pkgnamewhile now they are placed in$log_dir?Created by: udeved
logs are stored depending if $LOGDEST is set in makepkg.conf.
If unset, log files stay in the dir of the PKGBUILD, if set, logs go to $LOGDEST.
Archiving log files will create the archive in /var/log/manjaro-tools by default, but log files are only chowned, if $LOGDET is not set.
So I think in the case @philmmanjaro describes, I think the log files in the PKGBUILD dir are deleted and afterwards we still try to chown it 😉
Created by: udeved
Wrong, chown will be executed on the created archive only.
In that case it's looking in the wrong place:
while
Or if I understand correctly when you say
there is something not right on that end. Because when I leave log_dir at the default, right now logs are in fact removed in the PKGBUILD dir and written to log_dir
Created by: udeved
github seems to autoclose.
yes, when you use "fix" or "close" in the commit message 😉
It's working for me in any case. So I think it can be closed. Thanks! :)
Oh well maybe not.
When I set log_dir to a custom destination now, I get
I see. It's just that $log_dir does not get created and needs to exist. Maybe that's intentional.
Created by: udeved
Just let me fix it later, I know the problem.
👍
Created by: philmmanjaro
The problem is still there ...
Created by: udeved
I am really tempted to remove this archiving, which is kind if useless if you ask me.
We got to cover two cases, with and without makepkg vars, and we don't have a central location where PKGBUILDs are stored, so to implement something similar to how we handle iso profiles.
Created by: udeved
I would also like to ask to please not publish a new release unless a bug is 100% fixed.+
We are in no rush.
Created by: udeved
Please provide more detail @philmmanjaro
For example if you set any makepkg.conf vars, and the /tmp/manjaro-tools/archives.list would also be nice.
Created by: philmmanjaro
Well, do we create the folder
/var/log/manjaro-tools/. Currently it doesn't exist, so that is why it creates an error. Also I'm always use the default settings.