Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]Removed Bindist use flag from make.conf -now need it
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
stardotstar
l33t
l33t


Joined: 10 Feb 2006
Posts: 887
Location: 2074/SYD/NSW/AU

PostPosted: Mon Jul 10, 2017 1:09 pm    Post subject: [SOLVED]Removed Bindist use flag from make.conf -now need it Reply with quote

It seems that when I removed the bindist use flag in my make.conf - in https://forums.gentoo.org/viewtopic-t-1065694.html - for reasons that I know were good but which I didn't fully understand.

Now I am in my clean newly built environment (with a pretty minimalist kernel but working network and so far only app-editors/vim emerged beyond the handbook installer).

I wanted to put plasma in as I chose that as the desktop profile but I am warned about needing bindist to build it and that if I add bindist to make.conf or custom use flags it may have an impact on other baseline packages?

I might be overly concerned about something that isn't critical but I don't want to start off stuffing things up before I even get a full working desktop.

Code:
xps15 /home/will # cat /etc/portage/make.conf
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"
CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"
MAKEOPTS="-j8"
GENTOO_MIRRORS="http://ftp.swin.edu.au/gentoo ftp://ftp.swin.edu.au/gentoo rsync://ftp.iij.ad.jp/pub/linux/gentoo/ http://ftp.iij.ad.jp/pub/linux/gentoo/ ftp://ftp.iij.ad.jp/pub/linux/gentoo/ rsync://ftp.jaist.ac.jp/pub/Linux/Gentoo/ http://ftp.jaist.ac.jp/pub/Linux/Gentoo/ ftp://ftp.jaist.ac.jp/pub/Linux/Gentoo/"
xps15 /home/wi






TIA
Will
_________________
]8P


Last edited by stardotstar on Tue Jul 11, 2017 6:42 am; edited 1 time in total
Back to top
View user's profile Send private message
ChrisADR
n00b
n00b


Joined: 06 Jul 2017
Posts: 11
Location: Peru

PostPosted: Mon Jul 10, 2017 1:23 pm    Post subject: Reply with quote

Hi Will, welcome to Gentoo.

You should add to your make.conf file

Code:
USE="bindist"


and then
Code:


emerge --ask --update --deep --newuse @world



Hope it helps,
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3691
Location: Hamburg

PostPosted: Mon Jul 10, 2017 1:23 pm    Post subject: Reply with quote

If you changed from bindist to -bindist you should at least rebuild the package openssl and openssh : https://forums.gentoo.org/viewtopic-t-1010032-highlight-bindist.html
FWIW searching Google with "gentoo bindist openssl" should point you to that article too.
Back to top
View user's profile Send private message
stardotstar
l33t
l33t


Joined: 10 Feb 2006
Posts: 887
Location: 2074/SYD/NSW/AU

PostPosted: Mon Jul 10, 2017 1:40 pm    Post subject: Reply with quote

Thanks guys, I'll add it back into my make.conf and see how it goes.
BTW I didn't -bindist - I just cut the USE flags out of my make.conf leaving everything to my profile... but...
_________________
]8P
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2644

PostPosted: Mon Jul 10, 2017 1:59 pm    Post subject: Reply with quote

stardotstar wrote:
Thanks guys, I'll add it back into my make.conf and see how it goes.
BTW I didn't -bindist - I just cut the USE flags out of my make.conf leaving everything to my profile... but...

You could leave this to the emerge command. If you use emerge using the --ask option, the output will tell you what to do (add it to /etc/portage/package.use).
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13994

PostPosted: Mon Jul 10, 2017 11:46 pm    Post subject: Reply with quote

If you are distributing the built binaries, you must set USE=bindist to avoid distributing encumbered code. In most other circumstances, you should not set USE=bindist. You say you were warned that you need USE=bindist, but you never explained why. Please post the output that led you to this conclusion.
Back to top
View user's profile Send private message
stardotstar
l33t
l33t


Joined: 10 Feb 2006
Posts: 887
Location: 2074/SYD/NSW/AU

PostPosted: Tue Jul 11, 2017 1:18 am    Post subject: Reply with quote

Everything emerged after I put USE bindist in my make.conf

I will have to try and find the log that prevented me from emerging - the profile didn't seem to "take care" of the needed bindist use.

I'm able to hunt this down later, thanks for the support.
_________________
]8P
Back to top
View user's profile Send private message
stardotstar
l33t
l33t


Joined: 10 Feb 2006
Posts: 887
Location: 2074/SYD/NSW/AU

PostPosted: Tue Jul 11, 2017 2:39 am    Post subject: Reply with quote

So, my ignorance in these things is profound and I am working at cross purposes. I have enough knowledge to make a complete mess of my system I know, so I have been accepting advice as given me by the Gentoo Greats on here.

My removal of the USE flag at the outset came from here:

General guidance setting up make.conf for a Kabylake

My first effort at the make.conf from working through the Handbook and the thread above came out:

Code:
livecd portage # cat make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-march=broadwell -O2 -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE and USE_EXPAND flags that were used for
# buidling in addition to what is provided by the profile.
USE="bindist"
CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
# MAKEOPTS based on number of cores - we have 8
MAKEOPTS="-j8"

GENTOO_MIRRORS="http://ftp.swin.edu.au/gentoo ftp://ftp.swin.edu.au/gentoo rsync://ftp.iij.ad.jp/pub/linux/gentoo/ http://ftp.iij.ad.jp/pub/linux/gentoo/ ftp://ftp.iij.ad.jp/pub/linux/gentoo/ rsync://ftp.jaist.ac.jp/pub/Linux/Gentoo/ http://ftp.jaist.ac.jp/pub/Linux/Gentoo/ ftp://ftp.jaist.ac.jp/pub/Linux/Gentoo/"


And NeddySeagoon prompted me to consider the use of bindist (which was only in there because the stage3 unpacks with it in place).
Quote:
stardotstar,

Code:
Code:   
USE="bindist"

Think about that. That builds your binaries so that you may distribute the results.
Firefox and Thunderbird will be renamed and have their logs changed.
Other possibly patent encumbered code will not be built. That use flag has nothing to do with using prebuilt binaries.


Now, this must be sound advice but clearly has let me to the path that I'm on - since Charles' comment immediately after rang true:
Quote:
There is still too much confusing stuff in the make.conf file which comes with stage 3 and Gentoo Handbook is not very clear about what's really needed.

Be that as it may, I pressed on, wanting a reasonable make.conf from the outset - not overly ambitious but certainly something to make the Gentoo efforts rewarding (something I think we must all relate to...)

I inquired: "Could you please suggest a safe set of USE flags to proceed?"

Charles advised: "Do not add any USE flags without a need. To see which USE flags are already enabled by your profile, check..."

And NeddySeagoon reassured with: "Your profile, default/linux/amd64/13.0/desktop/plasma, provides a 'safe' set of USE flags." adding that the bindist was really a precautionary measure in the stage3: "Shipping USE=bindist prevents careless users having legal issues should they share binaries and perhaps involving Gentoo itself, so its a (legally) safe setting."

All of which I take on good faith and in no way dispute, but that is why I ended up with NO USE flags in my make.conf - which may be the problem.

I added the critique of the inclusion of "bindist" to the do not populate USE flags needlessly and ended up with:

Code:
cat /etc/portage/make.conf
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"
CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"
MAKEOPTS="-j8"
GENTOO_MIRRORS="http://ftp.swin.edu.au/gentoo ftp://ftp.swin.edu.au/gentoo rsync://ftp.iij.ad.jp/pub/linux/gentoo/ http://ftp.iij.ad.jp/pub/linux/gentoo/ ftp://ftp.iij.ad.jp/pub/linux/gentoo/ rsync://ftp.jaist.ac.jp/pub/Linux/Gentoo/ http://ftp.jaist.ac.jp/pub/Linux/Gentoo/ ftp://ftp.jaist.ac.jp/pub/Linux/Gentoo/"


Then when I went about emerging the KDE Plasma (OpenRC) meta package/s (where I did use --ask I think) I saw some red notifications of ++bindist and two packages that would not compile without USE bindist (or words I interpreted to that effect - I'm going off memory).

After adding bindist to my make.conf the emerge completed without complaint - this is the make.conf as it currently stands:

Code:

xps15 /var/log/portage/elog # cat /etc/portage/make.conf
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"
CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"
MAKEOPTS="-j8"
USE="bindist"
GENTOO_MIRRORS="http://ftp.swin.edu.au/gentoo ftp://ftp.swin.edu.au/gentoo rsync://ftp.iij.ad.jp/pub/linux/gentoo/ http://ftp.iij.ad.jp/pub/linux/gentoo/ ftp://ftp.iij.ad.jp/pub/linux/gentoo/ rsync://ftp.jaist.ac.jp/pub/Linux/Gentoo/ http://ftp.jaist.ac.jp/pub/Linux/Gentoo/ ftp://ftp.jaist.ac.jp/pub/Linux/Gentoo/"


I went hunting for the message I received but the only log I could see was the one in /var/log/portage...

Code:
xps15 /var/log/portage/elog # ls -l
total 60
-rw-rw-r-- 1 portage portage 53511 Jul 11 05:59 summary.log


which has no mention of bindist.

The only error I can see was from the emerge log when it failed:
Code:
1499691457: Started emerge on: Jul 10, 2017 22:57:36
1499691457:  *** emerge --ask kde-plasma/plasma-meta
1499691473:  *** exiting unsuccessfully with status '1'.
1499691473:  *** terminating.


I can't work out how to get the system to re-merge the packages with the use state as before - I tried commenting out the USE statement in make.conf and things like:

Code:

xps15 /var/log # emerge --ask -p kde-plasma/plasma-meta

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] kde-plasma/plasma-meta-5.9.5

 * IMPORTANT: 14 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.



xps15 /var/log # emerge -U -p  kde-plasma/plasma-meta

These are the packages that would be merged, in order:

Calculating dependencies... done!

 * IMPORTANT: 14 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


So, at any rate, I'm pressing on with my X and plasma setup but am very confused about the USE flag complications I've had here. For now I'll leave bindist in the make.conf yes?


BTW I note that there is no mention of the bindist in the KDE use summary but there is in the X one...
_________________
]8P
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13994

PostPosted: Tue Jul 11, 2017 3:05 am    Post subject: Reply with quote

You can leave it or remove it, at your preference. The critical point is to manage it globally, not on a per-package basis. I think there are a few things that may work less well with it enabled. If you want to remove it, rebuild all packages which respect that USE flag afterward with emerge --changed-use --ask --deep @world.
Back to top
View user's profile Send private message
stardotstar
l33t
l33t


Joined: 10 Feb 2006
Posts: 887
Location: 2074/SYD/NSW/AU

PostPosted: Tue Jul 11, 2017 3:07 am    Post subject: Reply with quote

I am doing this now. Thanks for the info.
W
_________________
]8P
Back to top
View user's profile Send private message
stardotstar
l33t
l33t


Joined: 10 Feb 2006
Posts: 887
Location: 2074/SYD/NSW/AU

PostPosted: Tue Jul 11, 2017 3:08 am    Post subject: Reply with quote

Ok, so this is the state of play:

Code:
xps15 /var/log # vi /etc/portage/make.conf
xps15 /var/log # emerge --changed-use --ask --deep @world

 * IMPORTANT: 14 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] dev-libs/openssl-1.0.2k  USE="-bindist*"
[ebuild  N     ] dev-libs/libnatspec-0.2.6-r1  USE="-doc -python" PYTHON_TARGETS="python2_7"
[ebuild   R    ] app-arch/unzip-6.0_p20  USE="natspec*"
[ebuild   R    ] dev-qt/qtnetwork-5.7.1  USE="-bindist*"
[ebuild   R    ] dev-libs/libxml2-2.9.4-r1  USE="python*"
[ebuild   R    ] sys-auth/pambase-20150213  USE="consolekit*"
[ebuild   R    ] net-misc/openssh-7.5_p1-r1  USE="X* ldap* -bindist*"
[ebuild   R    ] sys-apps/groff-1.22.2  USE="X*"
[ebuild   R    ] sys-libs/ncurses-6.0-r1  USE="gpm*"
[ebuild   R    ] sys-apps/util-linux-2.28.2  USE="udev*"
[ebuild   R    ] sys-process/psmisc-22.21-r3  USE="X*"
[ebuild   R    ] sys-fs/eudev-3.1.5  USE="introspection*"
[ebuild   R    ] media-libs/mesa-17.0.6  USE="-bindist*"
[ebuild   R    ] dev-db/mariadb-10.1.24  USE="-bindist*"

Would you like to merge these packages? [Yes/No]

_________________
]8P
Back to top
View user's profile Send private message
stardotstar
l33t
l33t


Joined: 10 Feb 2006
Posts: 887
Location: 2074/SYD/NSW/AU

PostPosted: Tue Jul 11, 2017 4:30 am    Post subject: Reply with quote

seems to have worked. No idea what that previous issue was...
_________________
]8P
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2644

PostPosted: Tue Jul 11, 2017 8:35 am    Post subject: Reply with quote

stardotstar wrote:
BTW I note that there is no mention of the bindist in the KDE use summary but there is in the X one...

Seems the only reason why bindist was in your stage3 is bug 473332.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43424
Location: 56N 3W

PostPosted: Tue Jul 11, 2017 8:46 am    Post subject: Reply with quote

stardotstar,

USE=bindist needs to be consistent across the crypto packages.
For other packages, like firefox, where it controls branding, it can be set on a per package basis.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum