Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 530704 - net-firewall/shorewall-4.6.5.2 - Shorewall-init/install.sh: ERROR: Unknown BUILD environment
Summary: net-firewall/shorewall-4.6.5.2 - Shorewall-init/install.sh: ERROR: Unknown BU...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Thomas Deutschmann (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on: 534232
Blocks:
  Show dependency tree
 
Reported: 2014-11-26 02:40 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2015-01-04 09:52 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
shorewall-4.6.5.2:20141126-023048.log (shorewall-4.6.5.2:20141126-023048.log,49.03 KB, text/plain)
2014-11-26 02:41 UTC, Arfrever Frehtes Taifersar Arahesis
Details
shorewall.patch (shorewall.patch,641 bytes, patch)
2014-11-26 02:46 UTC, Arfrever Frehtes Taifersar Arahesis
Details | Diff
Patch to address the reported issue in the portage tree (shorewall-bugfix_530704.patch,17.30 KB, patch)
2014-11-26 10:59 UTC, Thomas Deutschmann (RETIRED)
Details | Diff
Patch to address the reported issue in the portage tree (shorewall-bugfix_530704b.patch,21.83 KB, patch)
2014-11-26 14:13 UTC, Thomas Deutschmann (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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
+