ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have been working with arm-linux-gnueabihf-pkg-config file.
Yesterday I changed the "sh" to "bash".
I have been working with my own copy of "configure_xxx" script, it WAS peppered with debugging "echoes" etc.
TODAY my current "configure_429" HAS NO echoes, printf etc.
TODAY the arm-linux-gnueabihf-pkg-config file is "sh" and barely one page long instead of over 5 pages.
What is happening ?
And no I am not making it up!
The arm-linux-gnueabihf-pkg-config lost ALL system environment variables I have added to it! The "configure_xxx" no longer works due to the lack of these variables!
I have never figured out where the arm-linux-gnueabihf-pkg-config file came from, but seriously - what could or who would make such drastic changes without users knowledge?
You lost your work, either by accident, inadvertent action, or if there was some sort of git fetch action which occurred and thus overwrote your working copy.
If your editor keeps backup files, then perhaps you can recover your last version.
You are mixing "package" and the "configure" script architecture "wrapper".
Yes, I was using both wrappers - the unknown origin one and the one from RPI.
The one on my PC now resembles NEITHER one.
I use nano with -B option so I can recover my work,still like to know how can a file "accidentally" change contents.
I can buy intentionally or accidentally deleting the file, but this one is totally new.
That's what I thought of ...an update had occurred and overwrote the manual changes the OP had made.
That's why I was wondering where OP kept the file. With anything that is update able, if one makes manual changes to "software" then they need to pull it away and put it somewhere safe, and, or no longer update it via normal means. For that reason alone.
The "wrapper " -setting additional environment variables and then executing pkg_config
is in /usr/bin/arm-linux-gnueabihf-pkg-config.
And as I have been saying - I have no idea where it came from.
Yes, if it is from OS it could have been updated since I installed another "package" and did standard update.
Now the "configure" script ignores PKG_CONFIG_DEBUG_SPEW=set.
PS
I'll be "off the air" , on "vacation", chipping rust off the WWII ships in Galveston TX.
Do not expect replies.
Thanks
do they even have a bed of water in Galveston, TX? I thought Texas only had steers and ..., well I'd take off a few days and go there in that image, anyways have fun...
The post analysis is overkill. The file got reset or lost. If you have backup, then use it and move on.
Retain backups of your incremental work. This is a fundamental thing that all developers learn over time.
It it unlikely that a Linux system or package upgrade would overwrite this particular file since you are trying to install from source.
It is more likely that some other action caused a git fetch or a new extraction of the source code drop which resulted in this loss, or simple human error.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.