-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LTO config and workarounds touchup and two new workarounds #452
Conversation
Since I have to eat right now and have to do something else later, this commit is just so as to get my foot out the door, so to speak. Of course, the transaltions shall be fleshed out in the coming days.
This is the first one. Here goes nothing!
I receieved permission to switch to Serbo-Croatian, Latin and Cyrillic variants, as to better reflect my own way of speaking (the other reason is a bit too political for GitHub, or, at the very least, this Gentoo overlay repository, but just look up Serbo-Croatian on Wikipedia if you are that curious; they're all fully mutually inteligible).
Markdown has been adjusted in accordance with markdownlints's best practices, double spaces after most sentences have been removed and sentences that were split across multiple lines have been brought together again, even though GitHub's markdown interpreter had been correcting for those text formatting issues
Some wording has been changed, some more merely reordered and then some other formatting adjustments and inclusions.
"This documentation..." is not really a header.
Please do comment with suggestions as to how to improve the code, as I have literally just looked at the code and winged it. I did a bit of Java a few years ago, so I guess that helped a bit with intuition, but not much else.
Also, I added Visual Studio Code files to .gitignore
Now that everything has been restructured, further progress is soon to come!
…ld`" This reverts commit d97f100.
This reverts commit 94bc6f6.
@InBetweenNames As the latter half was somewhat confusing to me, which I already mentioned in the Gitter chat, I took some "liberties" in interpreting and cleaning the file in questions. Of course, these "liberties" extend to the incoming translations, so I am hereby hoping that nothing is amiss from your point of view.
While this basically makes `-fwhole-program` unusable by default, it's not a bad default to have. As there is a mixture of strings and direct flags being used in ltoworkarounds.conf (one line might have `*FLAGS-=-flto*`, while another might have `*FLAGS-="${FLTO}"`), this can kind of be remedied by using only direct flags. That way, if somebody were to wish to use `-fwhole-program`, they would still be able to benifit from ltoworkarounds.conf, since the file would now definitely work with all setups, including those that might set some flags manually in make.conf, that is without using the strings from make.conf.lto.defines. Also, ${FLTO} was the only odd name out, so now it's ${LTO}.
So... Regarding my previous commit message, LTO is the one flag that is never mentioned as a string. I got confused, but I was still correct about mixed usage.
@elsandosgrande you can make feature branches based on origin/master and then git cherry-pick commits into the feature branches and make individual Pull Requests from each branch. |
merge master into this branch. or to really clean up, rebase this branch onto master, which will let you squash commits, etc. but since it edits history you'll need to force push. |
@wolfwood sandy@sandys-pavilion:/opt/gentooLTO$ git rebase upstream/master --rebase-merges
Successfully rebased and updated refs/heads/master.
sandy@sandys-pavilion:/opt/gentooLTO$ git status
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
sandy@sandys-pavilion:/opt/gentooLTO$ git push
QSocketNotifier: Can only be used with threads started with QThread
QFileSystemWatcher::removePaths: list is empty
QFileSystemWatcher::removePaths: list is empty
QSocketNotifier: Can only be used with threads started with QThread
QFileSystemWatcher::removePaths: list is empty
QFileSystemWatcher::removePaths: list is empty
Everything up-to-date
sandy@sandys-pavilion:/opt/gentooLTO$ git push --force
QSocketNotifier: Can only be used with threads started with QThread
QFileSystemWatcher::removePaths: list is empty
QFileSystemWatcher::removePaths: list is empty
QSocketNotifier: Can only be used with threads started with QThread
QFileSystemWatcher::removePaths: list is empty
QFileSystemWatcher::removePaths: list is empty
Everything up-to-date EditJust to clarify, it's not like there are just one or two conflicts, but there are conflicts with roughly 80% of the commits. EditI realize now that I should have used a separate branch (that's why I couldn't get cherry picking to work...). Oh well, you live and you learn. Prays that Shane does not smite him |
I largely agree with these changes -- there's no real need to have environment variables for single flag workarounds like |
I was actually thinking of mentioning the possibility of a news item. Hm... @InBetweenNames, I have an idea. Give me a minute. |
To think that **this** project would ever have the word "legacy" used anywhere...
There, that should cover it. EditAlso, @InBetweenNames, do you have an idea as to how to prevent commits that were already merged previously from appearing in future pull requests? You may refer to the conversation between me and wolfwood above to see what I have already (what did not work when I tried that). |
Hm... In Olive, it lists my commits separately. Then again, Matthew set a "company" up on GitHub for Olive, while this is merely a personal repository. @wolfwood, regarding our earlier conversation, do you know if it is possible to replicate the behavior in another person's repository? I am not sure how to even formulate a search term for this... EditBy "separately", I meant that it says "elsandosgrande commited" after a pull request is merged. |
brute force approach: git checkout -b stuff-sandy-likes master |
All right, I will try making a new pull with that (I will keep this one opened just in case that the new one ends up being the exact same as this one). Shane, have mercy on me! That still leaves me wondering "Why do commits from merged requests from people to this repository not appear as committed by them in the commit log, but merely as authored by them when they do not appear as such in Olive's repository?". EditWell... @wolfwood, after copying and pasting your exact commands and finding the appropriate commit hashes, it seems that sandy@sandys-pavilion:/opt/gentooLTO$ git cherry-pick 3b82b9729eca27b6b17d73746c0aa6c4c5d261ec 54b9bbbe291e2c8e7c43d89c7c692897898a004e 7e2ad56e9afe75f31ea480ebcfce336db19facfc 477fbed042a96b98147a5675798fbdbb794f9627 66d7515da33663ab7f3e8f7e484fe1d78fab73a2 c9bb8e4648454aa4f340183c6713800759c18b2d
On branch new-pull
Cherry-pick currently in progress.
nothing to commit, working tree clean
The previous cherry-pick is now empty, possibly due to conflict resolution.
If you wish to commit it anyway, use:
git commit --allow-empty
and then use:
git cherry-pick --continue
to resume cherry-picking the remaining commits.
If you wish to skip this commit, use:
git cherry-pick --skip
sandy@sandys-pavilion:/opt/gentooLTO$ git log
commit 3b82b9729eca27b6b17d73746c0aa6c4c5d261ec (HEAD -> new-pull, origin/master, origin/HEAD, stuff-sandy-likes, master)
Author: elsandosgrande <sandyvujakovicj@outlook.com>
Date: Thu Jan 9 11:23:28 2020 +0100
Legacy variable support
To think that **this** project would ever have the word "legacy" used anywhere...
commit 54b9bbbe291e2c8e7c43d89c7c692897898a004e
Author: elsandosgrande <sandyvujakovicj@outlook.com>
Date: Tue Dec 10 15:38:58 2019 +0100
Adding comments to relevant lines
*** ... ... ... 😅 I will try this again when I translate the README, but this time before those commits are pushed to GitHub (of course, I will make a copy of my directory just in case). |
ah, the problem is that you already pushed you local master to origin/master, which is your GitHub fork, not this repository.
remake your local master branch from upstream/master instead. (if you set it tracking, or should be able to just rebase stuff-sandy-likes (or perhaps stuff-sandy-likes-copy) onto upstream/master EDIT: |
|
So... @wolfwood, @InBetweenNames, I have finally succeeded with the help of wolfwood! |
@elsandosgrande you don't need to make a pull request from master. you can just push new-pull and make a PR from that, or any other branch. regarding your other question, your author status maybe be because you have write access to Olive but not here, but i don't really know. |
|
-fwhole-program
from working) and, ironically, that was one of the only workarounds not embedding a string within a string.