Tiny Core Extensions > TCE Corepure64

Wrong src_http in linux-kernel-sources-env.tcz package from 9.x dist

(1/3) > >>

hprem:
In usr/local/bin/linux-kernel-sources-env.sh file from linux-kernel-sources-env.tcz package, seems that src_http is wrong and points to x86 repo instead of x86_64 repo


--- Code: (bash) ---## kernel sources
## config-4.14.10-tinycore(64)
## Module.symvers-4.14.10-tinycore(64)
## linux-4.14.10-patched.txz

kerver=$(uname -r)
kerarch=$(uname -m)
tcbuild=$(getBuild)
tcver="$(cat /usr/share/doc/tc/release.txt)"
src_http="http://www.tinycorelinux.net/${tcver%%.*}.x/x86/release/src/kernel"   <===<<< This should have been x86_64/ instead of x86/
[ "${tcver%%.*}" == "5" ] || pkg='.gz'

--- End code ---

This prevents us to install the kernel sources with the following error. Can someone please fix this and update the new pkg?

--- Code: ---Verifying src files...                               
linux-4.14.10-patched.txz ready                       
 Error config-4.14.10-tinycore64 file not found!+ exit
--- End code ---

Thanks
Prem

coreplayer2:
Actually, the address is adjusted to Match the currently installed system so it is correct.

The script tests for both txz and tar.xz, as
A result one will always fail.


With linux-kernel-env.tcz loaded and an internet connection established please post the complete output of

--- Code: ---sh -x  linux-kernel-env.sh
--- End code ---

Please wrap with code tags to make the post more readable
Thanks

Additionally the tool assumes a valid internet connection before running, you might try that also.

Sent from my iPhone using Tapatalk

coreplayer2:
Sorry the command should be

--- Code: ---sh -x  linux-kernel-sources-env.sh

--- End code ---

hprem:
Thanks for your reply.
I have already wrapped the output with code tag, So I am not very sure why you say it is not readable

Here is the relevant output on running linux-kernel-sources-env.sh script. We are trying to download config-4.14.10-tinycore64 file from http://www.tinycorelinux.net/9.x/x86/release/src/kernel/. But the file exists only in http://www.tinycorelinux.net/9.x/x86_64/release/src/kernel/


--- Code: (bash) ---~ $ sh -x /usr/local/bin/linux-kernel-sources-env.sh
...
+ src_http=http://www.tinycorelinux.net/9.x/x86/release/src/kernel
...
...
Searching for src files... + search_for_srcFiles
+ [ -f /tmp/linux-4.14.10-patched.txz ]
+ sudo find / -name linux-4.14.10-patched.txz -type f -exec sh -c exec cp -f "$@" /tmp X {} +
+ [ ! -f /tmp/linux-4.14.10-patched.txz ]
+ chkconn
+ set +x
please wait...
Connecting to tinycorelinux.net (89.22.99.37:80)
connection ok
downloading linux-4.14.10-patched.txz... please wait...
Connecting to tinycorelinux.net (89.22.99.37:80)
connection ok
downloading config-4.14.10-tinycore64... wget: server returned error: HTTP/1.1 404 Not Found
please wait...
Connecting to tinycorelinux.net (89.22.99.37:80)
connection ok
downloading Module.symvers-4.14.10-tinycore64.gz... wget: server returned error: HTTP/1.1 404 Not Found
+ printf \n\nVerifying src files...


Verifying src files... + unset k
+ [ -f /tmp/linux-4.14.10-patched.txz ]
+ printf \nlinux-4.14.10-patched.txz ready

linux-4.14.10-patched.txz ready+ [ -f /tmp/config-4.14.10-tinycore64 ]
+ printf \n Error config-4.14.10-tinycore64 file not found!

 Error config-4.14.10-tinycore64 file not found!+ sleep 3
+ exit 5
~ $

--- End code ---

coreplayer2:

--- Quote from: hprem on March 29, 2018, 02:23:35 AM ---Here is the relevant output on running linux-kernel-sources-env.sh script. We are trying to download config-4.14.10-tinycore64 file from http://www.tinycorelinux.net/9.x/x86/release/src/kernel/. But the file exists only in http://www.tinycorelinux.net/9.x/x86_64/release/src/kernel/

--- End quote ---

Thanks but like I said already, the script adapts the download address to suit your system which is why it's important to provide the complete output.   The output shown is not the relevant part. the function that modifies the address may not be completing the task but you've not included that part so help determine where the issue is..  It's possible I overlooked the change of address for the config file but the complete output would show this..

If you think this is the actual download link then you're not reading the script..

--- Code: ---src_http=http://www.tinycorelinux.net/9.x/x86/release/src/kernel
--- End code ---

You can also save the kernel files in a convenient location on your system where the script can find them and the script will use those files instead of downloading them each time.

Navigation

[0] Message Index

[#] Next page

Go to full version