Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 530704

Summary: net-firewall/shorewall-4.6.5.2 - Shorewall-init/install.sh: ERROR: Unknown BUILD environment
Product: Gentoo Linux Reporter: Arfrever Frehtes Taifersar Arahesis <arfrever.fta>
Component: Current packagesAssignee: Thomas Deutschmann (RETIRED) <whissi>
Status: RESOLVED FIXED    
Severity: normal CC: jlec, netmon, proxy-maint
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 534232    
Bug Blocks:    
Attachments: shorewall-4.6.5.2:20141126-023048.log
shorewall.patch
Patch to address the reported issue in the portage tree
Patch to address the reported issue in the portage tree

Description Arfrever Frehtes Taifersar Arahesis 2014-11-26 02:40:03 UTC
net-firewall/shorewall-4.6.5.2 fails to install, because it incorrectly tries to detect some things. The problem can be reproduced e.g. with empty /etc/os-release file.


 * Installing shorewall-init-4.6.5.2 ...
ERROR: Unknown BUILD environment
 * ERROR: net-firewall/shorewall-4.6.5.2::gentoo failed (install phase):
 *   Shorewall-init/install.sh failed
 * 
 * Call stack:
 *     ebuild.sh, line  93:  Called src_install
 *   environment, line 2836:  Called die
 * The specific snippet of code:
 *           DESTDIR="${D%/}" ${MY_PN_INIT}/install.sh shorewallrc.gentoo || die "${MY_PN_INIT}/install.sh failed";
Comment 1 Arfrever Frehtes Taifersar Arahesis 2014-11-26 02:41:38 UTC
Created attachment 390292 [details]
shorewall-4.6.5.2:20141126-023048.log
Comment 2 Arfrever Frehtes Taifersar Arahesis 2014-11-26 02:46:21 UTC
Created attachment 390294 [details, diff]
shorewall.patch
Comment 3 Thomas Deutschmann (RETIRED) gentoo-dev 2014-11-26 10:59:12 UTC
Created attachment 390320 [details, diff]
Patch to address the reported issue in the portage tree

@ Arfrever Frehtes Taifersar Arahesis:

Thanks for the report!



@ Proxy-Maint:

Please apply my attached patch against the portage tree to fix the problem.

The patch will solve the problem down to v4.5.21.9 and also clean up some orphan files from the removed v4.5.21.10.
Comment 4 Thomas Deutschmann (RETIRED) gentoo-dev 2014-11-26 14:13:13 UTC
Created attachment 390346 [details, diff]
Patch to address the reported issue in the portage tree

I updated the patch and removed the dependency on OpenRC-0.13 which was introduced with shorewall-4.6. This will help Funtoo & Co.
Comment 5 Justin Lecher (RETIRED) gentoo-dev 2015-01-04 09:52:32 UTC
+*shorewall-4.6.5.3 (04 Jan 2015)
+
+  04 Jan 2015; Justin Lecher <jlec@gentoo.org> -shorewall-4.6.5.2.ebuild,
+  +shorewall-4.6.5.3.ebuild, files/4.6/shorewall.initd,
+  files/4.6/shorewall.systemd, files/4.6/shorewall-init.initd,
+  files/4.6/shorewall-init.systemd, files/4.6/shorewall-lite.initd,
+  files/4.6/shorewall-lite.systemd, files/4.6/shorewall6-lite.initd,
+  files/4.6/shorewall6-lite.systemd, files/4.6/shorewall6.initd,
+  files/4.6/shorewall6.systemd, files/4.6/shorewallrc,
+  -files/4.6/shorewallrc-r1, metadata.xml:
+  Version Bump, #534232, Thanks Thomas D. for the patch; fixes bugs, #530704,
+  #534062
+