aura icon indicating copy to clipboard operation
aura copied to clipboard

--force does not rebuild package

Open stef204 opened this issue 5 years ago • 4 comments

--force does not rebuild package.

% sudo aura -A --force pacwall-git --log-level=debug  
AuraConfig {acLang = Nothing, acEditor = Nothing, acUser = Nothing, acBuildPath = Just "/home/$USERf/build/aura", acASPath = Nothing, acVCSPath = Nothing, acAnalyse = Nothing}
2020-11-06 05:44:09.619235: [debug] Interpreting CLI options.
@(exec/aura.hs:90:3)
2020-11-06 05:44:09.619444: [debug] Right (AurSync (Right (PkgName {pnName = "pacwall-git"} :| [])) (fromList []))
@(exec/aura.hs:94:5)
2020-11-06 05:44:09.619515: [debug] BuildConfig {makepkgFlagsOf = fromList [], buildPathOf = Just "/home/$USER/build/aura", buildUserOf = Just (User {user = "$USER"}), allsourcePathOf = Nothing, vcsPathOf = Nothing, truncationOf = None, buildSwitchesOf = fromList [ForceBuilding]}
@(exec/aura.hs:95:5)
2020-11-06 05:44:09.619580: [debug] CommonConfig {cachePathOf = Left "/var/cache/pacman/pkg/", configPathOf = Left "/etc/pacman.conf", logPathOf = Left "/var/log/pacman.log", commonSwitchesOf = fromList []}
@(exec/aura.hs:96:5)
aura >>= Determining dependencies...
2020-11-06 05:44:10.598416: [debug] resolveDeps: Entered.
@(lib/Aura/Dependencies.hs:54:3)
2020-11-06 05:44:10.609750: [debug] resolveDeps: Successful recursive dep lookup.
@(lib/Aura/Dependencies.hs:58:3)
aura >>= AUR Packages:
pacwall-git
aura >>= Continue? [Y/n] 
2020-11-06 05:44:15.565435: [debug] Building: pacwall-git
@(lib/Aura/Build.hs:80:3)
aura >>= Building pacwall-git...
2020-11-06 05:44:15.567446: [debug] git: Clearing worktree. 
@(lib/Aura/Build.hs:188:3)
2020-11-06 05:44:15.653626: [debug] git: Pulling repo.
@(lib/Aura/Build.hs:190:3)
2020-11-06 05:44:16.269700: [debug] Potential hotediting...
@(lib/Aura/Build.hs:120:5)
2020-11-06 05:44:16.269933: [debug] Building package.
@(lib/Aura/Build.hs:129:9)
loading packages...
resolving dependencies...
looking for conflicting packages...

Packages (1) pacwall-git-2.1.r3.g0dcfc44-1

Total Installed Size:  0.03 MiB

:: Proceed with installation? [Y/n] n

stef204 avatar Nov 06 '20 10:11 stef204

I'm trying it on my own machine, and --force does work. Try watching the makepkg output with -Ax.

fosskers avatar Nov 06 '20 16:11 fosskers

It works now but doesn't consistently work. I've notice it in recent weeks where it's very inconsistent, works, doesn't work, works again, etc.

% sudo aura -Ax --force pacwall-git --log-level=debug
AuraConfig {acLang = Nothing, acEditor = Nothing, acUser = Nothing, acBuildPath = Just "/home/$USER/build/aura", acASPath = Nothing, acVCSPath = Nothing, acAnalyse = Nothing}
2020-11-06 12:56:48.064311: [debug] Interpreting CLI options.
@(exec/aura.hs:90:3)
2020-11-06 12:56:48.064577: [debug] Right (AurSync (Right (PkgName {pnName = "pacwall-git"} :| [])) (fromList []))
@(exec/aura.hs:94:5)
2020-11-06 12:56:48.064633: [debug] BuildConfig {makepkgFlagsOf = fromList [], buildPathOf = Just "/home/$USER/build/aura", buildUserOf = Just (User {user = "$USER"}), allsourcePathOf = Nothing, vcsPathOf = Nothing, truncationOf = None, buildSwitchesOf = fromList [DontSuppressMakepkg,ForceBuilding]}
@(exec/aura.hs:95:5)
2020-11-06 12:56:48.064703: [debug] CommonConfig {cachePathOf = Left "/var/cache/pacman/pkg/", configPathOf = Left "/etc/pacman.conf", logPathOf = Left "/var/log/pacman.log", commonSwitchesOf = fromList []}
@(exec/aura.hs:96:5)
aura >>= Determining dependencies...
2020-11-06 12:56:48.995671: [debug] resolveDeps: Entered.
@(lib/Aura/Dependencies.hs:54:3)
2020-11-06 12:56:49.015510: [debug] resolveDeps: Successful recursive dep lookup.
@(lib/Aura/Dependencies.hs:58:3)
aura >>= AUR Packages:
pacwall-git
aura >>= Continue? [Y/n] 
2020-11-06 12:56:51.013242: [debug] Building: pacwall-git
@(lib/Aura/Build.hs:80:3)
aura >>= Building pacwall-git...
2020-11-06 12:56:51.014955: [debug] git: Clearing worktree. 
@(lib/Aura/Build.hs:188:3)
2020-11-06 12:56:51.017875: [debug] git: Pulling repo.
@(lib/Aura/Build.hs:190:3)
2020-11-06 12:56:51.704542: [debug] Potential hotediting...
@(lib/Aura/Build.hs:120:5)
2020-11-06 12:56:51.704663: [debug] Building package.
@(lib/Aura/Build.hs:129:9)
==> Making package: pacwall-git 2.0.r1.g235e1bb-1 (Fri 06 Nov 2020 12:56:52 PM EST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating pacwall git repo...
Fetching origin
==> Validating source files with sha256sums...
    pacwall ... Skipped
==> Extracting sources...
  -> Creating working copy of pacwall git repo...
Reset branch 'makepkg'
==> Starting pkgver()...
==> Updated version: pacwall-git 2.1.r3.g0dcfc44-1
==> Removing existing $pkgdir/ directory...
==> Starting build()...
cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong  -lalpm -lconfig  -o pacwall *.c
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "pacwall-git"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: pacwall-git 2.1.r3.g0dcfc44-1 (Fri 06 Nov 2020 12:56:57 PM EST)
loading packages...
resolving dependencies...
looking for conflicting packages...

Packages (1) pacwall-git-2.1.r3.g0dcfc44-1

Total Installed Size:  0.03 MiB

:: Proceed with installation? [Y/n] n

stef204 avatar Nov 06 '20 18:11 stef204

This isn't such a key issue or priority (at least from my standpoint.) incidentally, while I have set the build dir as ~/build/aura/ vcs packages are still being built here /var/cache/aura/vcs?

stef204 avatar Nov 06 '20 18:11 stef204

Correct. Note that you can change the default VCS build path with:

vcspath = /var/cache/aura/vcs

in aura.conf.

fosskers avatar Nov 06 '20 20:11 fosskers