You are not logged in.

#1 2020-08-04 19:23:33

halasz
Member
From: france
Registered: 2015-01-17
Posts: 40

What has happened to asp -f?

I update kernel with this code I copied from the wiki and have used successfully for some time:

   cd "${BUILDROOT}"/linux || die "cd ${BUILDROOT}/linux failed"
    asp update linux 1>/dev/null || die "asp update failed"
    asp -f export linux 1>/dev/null || die "asp -f export failed"

today it fails with:

From https://github.com/archlinux/svntogit-packages
 * branch            packages/linux -> FETCH_HEAD
error: invalid option -- 'f'
[2020-08-04T21:07:07+0200] update-kernel: asp -f export failed
error: command failed to execute correctly

Did I miss some change?

Offline

#2 2020-08-04 19:53:29

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,307

Offline

#3 2020-08-04 20:03:19

halasz
Member
From: france
Registered: 2015-01-17
Posts: 40

Re: What has happened to asp -f?

Indeed, I saw that but why did it work last week?  This commit is October 2019 - what did I miss?

The wiki still says to use "-f" here: https://wiki.archlinux.org/index.php/Ke … m#Updating

The up to date PKGBUILD, as well archlinux kernel configuration file, can be pulled in by the asp command:

$ cd ~/build/linux/
$ asp update linux
$ asp -f export linux

Should I (and the wiki) just drop the "-f" and delete something first?  If I just drop and use asp export linux it I get this error:

:: Checking 'https://git.archlinux.org/linux.git/'
From https://github.com/archlinux/svntogit-packages
 * branch            packages/linux -> FETCH_HEAD
mkdir: cannot create directory ‘linux’: File exists

Last edited by halasz (2020-08-04 20:12:48)

Offline

#4 2020-08-04 20:11:52

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,307

Re: What has happened to asp -f?

man asp wrote:

       -f
           Allow files to be overwritten.

(Obviously no more in recent versions)

You should in general not use options where you don't know what they do, but it now has to go from the wiki as well, yes. Feel free to update the entry.

Offline

#5 2020-08-04 20:15:27

halasz
Member
From: france
Registered: 2015-01-17
Posts: 40

Re: What has happened to asp -f?

seth wrote:

Feel free to update the entry.

I don't know what to update in the wiki. 

What exactly should be deleted before running asp export linux?  The whole "linux" directory?  Some of the contents?

EDIT: I've added this before asp and it seems to work OK but I'm not 100% sure it is the correct solution...

    if [[ -d "${BUILDROOT}"/linux/linux ]]; then
        rm -r "${BUILDROOT}"/linux/linux
    fi

Last edited by halasz (2020-08-04 20:40:03)

Offline

Board footer

Powered by FluxBB