From owner-freebsd-questions@freebsd.org Mon Jul 15 04:26:32 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DBAE7AFC94 for ; Mon, 15 Jul 2019 04:26:32 +0000 (UTC) (envelope-from lee@adminart.net) Received: from mo6-p00-ob.smtp.rzone.de (mo6-p00-ob.smtp.rzone.de [IPv6:2a01:238:20a:202:5300::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "*.smtp.rzone.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 44FF67514E for ; Mon, 15 Jul 2019 04:26:31 +0000 (UTC) (envelope-from lee@adminart.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1563164788; s=strato-dkim-0002; d=adminart.net; h=References:Message-ID:Date:In-Reply-To:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=/diYaQahnpaKd5VwBWUpg8f0RwmKwanXjZn9YARmFQg=; b=jlfdhXeB+by21qmmk77MPOpxvelTAt1sYnpW4eqApEh8wRlnNcJpDVSPz/Slim0+3x 7QYKjceH/8kN0Amrz9RkZqNTO7LGVy/o1bPieAQU4hz1PfccTFKxHo6USVQYcsR3sPmG zXmrY5+1xy19jhbcOoVGt+NYMoGLqyEAMY3HtxKseaMCzgKw+SKr6zS7L/DscYBg5zqO 4p185rrG8yHi7co810fVlgL+fR1xrrRPFCiQTGMUQqeKXnu+WiPlhCDNRQkjTjMkooOC 9C4Hp/DfrDnaVyHWXFCIiAW9AIDWqbqtUXautKsl6jxiWLtkwMrIlcE5z5g6lKdNuPjv xPww== X-RZG-AUTH: ":O2kGeEG7b/pS1FS4THaxjVF9w0vVgfQ9xGcjwO5WMRo5c+h5ceMqQWZ3yrBp+ARdaXvxIDf7nlw=" X-RZG-CLASS-ID: mo00 Received: from himinbjorg.adminart.net by smtp.strato.de (RZmta 44.24 DYNA|AUTH) with ESMTPSA id e0059dv6F4QSRPM (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Mon, 15 Jul 2019 06:26:28 +0200 (CEST) Received: from toy.adminart.net ([192.168.3.55]) by himinbjorg.adminart.net with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1hmsZH-0001yQ-Gt; Mon, 15 Jul 2019 06:26:27 +0200 Received: from lee by toy.adminart.net with local (Exim 4.92) (envelope-from ) id 1hmsZH-0000lA-Br; Mon, 15 Jul 2019 06:26:27 +0200 From: hw To: Polytropon Cc: freebsd-questions@freebsd.org Subject: Re: What does it mean to use ports? In-Reply-To: <20190715021053.2f82c84c.freebsd@edvax.de> (Polytropon's message of "Mon, 15 Jul 2019 02:10:53 +0200") Date: Mon, 15 Jul 2019 05:59:16 +0200 Organization: my virtual residence Message-ID: <87blxwosmj.fsf@toy.adminart.net> References: <87o91wqjl5.fsf@toy.adminart.net> <20190715021053.2f82c84c.freebsd@edvax.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Rspamd-Queue-Id: 44FF67514E X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=adminart.net header.s=strato-dkim-0002 header.b=jlfdhXeB X-Spamd-Result: default: False [-2.66 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[adminart.net:s=strato-dkim-0002]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[adminart.net]; HAS_ORG_HEADER(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: smtpin.rzone.de]; DKIM_TRACE(0.00)[adminart.net:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.83)[-0.826,0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[hw@adminart.net,lee@adminart.net]; RCVD_IN_DNSWL_LOW(-0.10)[1.0.0.0.0.0.0.0.0.0.0.0.0.0.3.5.2.0.2.0.a.0.2.0.8.3.2.0.1.0.a.2.list.dnswl.org : 127.0.5.1]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6724, ipnet:2a01:238::/32, country:DE]; FROM_NEQ_ENVFROM(0.00)[hw@adminart.net,lee@adminart.net]; IP_SCORE(-0.73)[ipnet: 2a01:238::/32(-3.23), asn: 6724(-0.41), country: DE(-0.01)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jul 2019 04:26:32 -0000 Polytropon writes: > On Mon, 15 Jul 2019 01:39:21 +0200, hw wrote: >> Hi, >> >> so I wanted to see what would happen if I used a port and removed the >> emacs-nox packages and its dependencies. Then I started installing the >> emacs port. >> >> What is going on here? It seems as if I need to compile the whole >> system myself now. > > That exactly is "using a port". A port is just a description > of sources, tools to use, how to use them, and where to put > the results. What you're seeing is to be expected: The port > you're building (and its dependencies) will be compiled from > sources, unless they're already installed in the correct > version. There seems to be a lot more stuff needing compilation than the dependencies of emacs-nox would suggest. Some of the dependencies are quite surprising, like I would think a -nox version wouldn't need support for JPEG2000 and not depend on things like font servers and all kinds of other stuff. At some point, the whole thing failed, and I made a bug report as the instructions said ... I could as well recompile everything so it's all optimized for the CPU it's running on. But are the defaults of the compile options the ones used to compile all the binary packages, or are they different? >> Is there a way to give all the answers to the questions about compile >> options at the beginning? I don't have time to sit around until the >> next question shows up. > > Just use "make config-recursive" before "make" and "make install". > Also see "man 7 ports". > > > >> What if I want to change the compile options? How do I make it so that >> all the packages asking for me for options will do so again? I don't >> even remember all the packages that want to be compiled. > > Remove the existing configuration ("make rmconfig-recursive"), > clean ("make clean"), then start the build again. > > > >> Can I globally set compile options like -march=native (or whatever the >> equivalent for FreeBSD is)? > > The file /etc/make.conf can be used for that. See "man 5 make.conf" > for details. Thanks a lot, I'll look into that.