You are not logged in.

#26 2019-08-09 06:48:15

regid
Member
Registered: 2016-06-06
Posts: 201

Re: linux/src/archlinux: will git pull updates to a newer arch version?

I think the following work:
The HEAD of the locally installed source at /home/user/linux/archlinux-linux points to

4010b622f1d2 Merge branch 'dax-fix-5.3-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm

, which was, or still is, somewhere between v5.2.5-arch1 and v5.2.6.arch1.

cd archlinux-linux
git fetch --verbose

Turns out that at the time of this writing, v5.2.7-arch1 is the newest archlinux tag.

cd ../src/archlinux-linux
git checkout master
git pull
git fetch --tag
git branch --verbose 5.2.7-arch1 v5.2.7.arch1
git checkout 5.2.7-arch1

.scmversion is empty here. In fact, it seems to be always empty, no matter what arch version is checked out.
Other than the directory archlinux-linux, and the version file, all other 4 files at /home/user/linux/src are arch specific files, and are symlinked to its parent directory.

% pwd
/home/usr/linux/src/archlinux-linux
% ls ../
60-linux.hook  archlinux-linux	linux.preset
90-linux.hook  config		version

The up to date version of these 4 files, as well as the newer PKGBUILD and 2 other files, can be pulled in by asp update, followed by asp export linux:

cd ../../
asp update
asp export linux
mv linux linux-updated
% ls linux-updated
60-linux.hook  config	      linux.preset
90-linux.hook  linux.install  PKGBUILD

Now one should manually merge, probably copy, the files at /home/user/linux/linux-updated to the files by the same name at its parent directory. And run manually most, if not all, of PKGBUILD::prepare().

At this point, makepkg --verifysource should succseed. And makepkg --noextract should be able to build the packages as if the source was extracted by makepkg --nobuild.


powerofforreboot.efi (AUR): Utilities to be used from within a UEFI boot manager or shell.

Offline

Board footer

Powered by FluxBB