From d0d77f2d072f0aa57569bbb9ac9c1bd6d94c5834 Mon Sep 17 00:00:00 2001 From: grizzlyuser Date: Dec 23 2023 05:43:20 +0000 Subject: [PATCH 1/73] libre/iceweasel: 121.0.parabola1 Usual updates according to upstream changes. search-config-v2.json needs to be patched later, it seems to be unused currently. So just skip it in patch-json-files.py for now. --- diff --git a/libre/iceweasel/9002-FSDG-preference-defaults.patch b/libre/iceweasel/9002-FSDG-preference-defaults.patch index b13653a..770b1f8 100644 --- a/libre/iceweasel/9002-FSDG-preference-defaults.patch +++ b/libre/iceweasel/9002-FSDG-preference-defaults.patch @@ -18,7 +18,6 @@ possible while keeping the SW stack 100% free, release builds don't have any valid geolocation provider, so let's disable geolocation API by default for now. --- - modules/libpref/init/StaticPrefList.yaml | 2 +- modules/libpref/init/all.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) @@ -36,18 +35,18 @@ index 5632486c69..b977858e04 100644 # Time, in milliseconds, to wait for the location provider to spin up. diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js -index a366fdaeb8..c9d67004a2 100644 +index af04cba691..514f750a23 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js -@@ -3125,7 +3125,7 @@ pref("network.psl.onUpdate_notify", false); +@@ -3094,7 +3094,7 @@ pref("network.psl.onUpdate_notify", false); + // All the Geolocation preferences are here. // - #ifndef EARLY_BETA_OR_EARLIER -- pref("geo.provider.network.url", "https://www.googleapis.com/geolocation/v1/geolocate?key=%GOOGLE_LOCATION_SERVICE_API_KEY%"); -+ pref("geo.provider.network.url", ""); - #else - // Use MLS on Nightly and early Beta. - pref("geo.provider.network.url", "https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%"); +-pref("geo.provider.network.url", "https://www.googleapis.com/geolocation/v1/geolocate?key=%GOOGLE_LOCATION_SERVICE_API_KEY%"); ++pref("geo.provider.network.url", ""); + + // Timeout to wait before sending the location request. + pref("geo.provider.network.timeToWaitBeforeSending", 5000); -- 2.41.0 @@ -183,25 +182,25 @@ index c1983abc2b..35c24e5d43 100644 // Don't let XPIProvider install distribution add-ons; we do our own thing on mobile pref("extensions.installDistroAddons", false); diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js -index c9d67004a2..e14f539172 100644 +index 514f750a23..abbf229223 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js -@@ -1851,11 +1851,11 @@ pref("services.settings.poll_interval", 86400); // 24H - // other channels always report events. - pref("services.common.uptake.sampleRate", 1); // 1% - --pref("extensions.abuseReport.enabled", true); -+pref("extensions.abuseReport.enabled", false); - // Allow AMO to handoff reports to the Firefox integrated dialog. - pref("extensions.abuseReport.amWebAPI.enabled", true); +@@ -1851,11 +1851,11 @@ pref("services.common.uptake.sampleRate", 1); // 1% + pref("extensions.abuseReport.enabled", false); + // Whether abuse report originated from AMO should use the Firefox integrated dialog. + pref("extensions.abuseReport.amWebAPI.enabled", false); -pref("extensions.abuseReport.url", "https://services.addons.mozilla.org/api/v4/abuse/report/addon/"); -pref("extensions.abuseReport.amoDetailsURL", "https://services.addons.mozilla.org/api/v4/addons/addon/"); +pref("extensions.abuseReport.url", ""); +pref("extensions.abuseReport.amoDetailsURL", ""); + // Whether Firefox integrated abuse reporting feature should be opening the new abuse report form hosted on AMO. + pref("extensions.abuseReport.amoFormEnabled", false); +-pref("extensions.abuseReport.amoFormURL", "https://addons.mozilla.org/%LOCALE%/%APP%/feedback/addon/%addonID%/"); ++pref("extensions.abuseReport.amoFormURL", ""); // Blocklist preferences pref("extensions.blocklist.enabled", true); -@@ -3193,7 +3193,7 @@ pref("extensions.webextensions.ExtensionStorageIDB.enabled", true); +@@ -3158,7 +3158,7 @@ pref("extensions.webextensions.ExtensionStorageIDB.enabled", true); // Whether to allow the inline options browser in HTML about:addons page. pref("extensions.htmlaboutaddons.inline-options.enabled", true); // Show recommendations on the extension and theme list views. @@ -210,6 +209,23 @@ index c9d67004a2..e14f539172 100644 // The URL for the privacy policy related to recommended add-ons. pref("extensions.recommendations.privacyPolicyUrl", ""); +diff --git a/browser/app/profile/firefox.js b/browser/app/profile/firefox.js +index 1f1b1cbd3e..7ea9d82cdf 100644 +--- a/browser/app/profile/firefox.js ++++ b/browser/app/profile/firefox.js +@@ -22,9 +22,9 @@ + pref("browser.hiddenWindowChromeURL", "chrome://browser/content/hiddenWindowMac.xhtml"); + + // Set add-ons abuse report related prefs specific to Firefox Desktop. +-pref("extensions.abuseReport.enabled", true); +-pref("extensions.abuseReport.amWebAPI.enabled", true); +-pref("extensions.abuseReport.amoFormEnabled", true); ++pref("extensions.abuseReport.enabled", false); ++pref("extensions.abuseReport.amWebAPI.enabled", false); ++pref("extensions.abuseReport.amoFormEnabled", false); + + // Enables some extra Extension System Logging (can reduce performance) + pref("extensions.logging.enabled", false); -- 2.41.0 @@ -248,7 +264,7 @@ index 9c2562ff23..7577fbe008 100644 // Disable add-ons that are not installed by the user in all scopes by default. // See the SCOPE constants in AddonManager.jsm for values to use here. -@@ -1518,8 +1518,8 @@ pref("prompts.defaultModalType", 3); +@@ -1603,8 +1603,8 @@ pref("prompts.defaultModalType", 3); pref("browser.topsites.useRemoteSetting", true); // Fetch sponsored Top Sites from Mozilla Tiles Service (Contile) @@ -258,7 +274,7 @@ index 9c2562ff23..7577fbe008 100644 +pref("browser.topsites.contile.endpoint", ""); // Whether to enable the Share-of-Voice feature for Sponsored Topsites via Contile. - #if defined(EARLY_BETA_OR_EARLIER) + pref("browser.topsites.contile.sov.enabled", true); -- 2.41.0 diff --git a/libre/iceweasel/PKGBUILD b/libre/iceweasel/PKGBUILD index 3da81af..575bc74 100644 --- a/libre/iceweasel/PKGBUILD +++ b/libre/iceweasel/PKGBUILD @@ -70,7 +70,7 @@ pkgname=iceweasel epoch=1 -pkgver=120.0.1 +pkgver=121.0 pkgrel=1 pkgrel+=.parabola1 _brandingver=120.0 @@ -85,7 +85,7 @@ license=( MPL ) depends=( - dbus-glib + dbus ffmpeg gtk3 libpulse @@ -181,17 +181,17 @@ validpgpkeys+=( '3954A7AB837D0EA9CFA9798925DB7D9B5A8D4B40' # bill-auger ) -sha256sums=('76e7bb2a144880158444d8e9014f4d080d219bd150c3db405b27e4c7e3959ae2' +sha256sums=('edc7a5159d23ff2a23e22bf5abe22231658cee2902b93b5889ee73958aa06aa4' 'SKIP' '9cdc2602661717712092d28bb494e5b48e518cb930898aca85eaf21f91f7ef58') # $pkgname.desktop # identity-icons-brand.svg sha256sums+=('a5eed3c1f31a253f90b0284e0caf17bd35b3fa35197cfc403cb1bd987ecd56eb' # *.branding.tar.xz 'SKIP' '4ff07eff69343e50357c9bb571dfa6a702efb3a7915ce8ca8dcb42ee18446aac' # 9001-FSDG-sync-remote-settings-with-local-dump.patch - '77ce3e4de9b4bb280a6766cea61b0fbd81f0f946aa115bfe7bf24eca370e1d17' # 9002-FSDG-preference-defaults.patch + '3e3c5c0a9751e4728a7c7f009a1eb90565de4ebe1b938b74b6669b28168bf335' # 9002-FSDG-preference-defaults.patch '07d6910ddd07f60b803957259e06e3babee6f072f48c6fe31b906a1ea24e3b62' # 9003-FSDG-urihandlers.patch 'f999ddb5a2cde87217bb5b0ebf20b4e0aabe88657a73545c9487cddde1deab22' # 9004-FSDG-misc.patch - '00cb44a91b42942f17258ad165810866ff123777b667a5691ea0745ba72f4332' # process-json-files.py + '5f3a646d90a075458b4cb27c19ddbd50ae7717f4e3371c9e2e4de1a8e718553e' # process-json-files.py '86bd54db6026ff65bd24ac4f05d0679a645ff447e2f81b0ee44037c0c4285e06' # vendor.js.in '3803336b109ab3663d227d6d16f712c33f5c55712028ee74e6e82f2ef74bf55f') # zstandard-0.22.0.diff sha256sums_i686=('62fa060e09b95e92fa81f4ac47c06b03d70c2bbc6cda061d85e965a82730e1c0' # avoid-libxul-OOM-python-check.patch @@ -199,17 +199,17 @@ sha256sums_i686=('62fa060e09b95e92fa81f4ac47c06b03d70c2bbc6cda061d85e965a82730e1 'ed3bb281697af7c4353a34067ffb4b18a971d40757bef2d6af3c8bf2d28d42d1' # firefox-111.0.1-fdlibm.patch '2fb39374fd3d80eea9e346032a2a4b2bc2e357dee7380855b24bcf19b1335d06' # fix-i686-build-moz-1792159.patch 'c3ce181fbb0142055aa6dd17f3cda2ba6a1e54d7a689a8c6e9cce76aa40e6544') # fix-i686-xsimd-incomplete.patch -b2sums=('66ac2f1071ad8276b61946465db6d71cbe0a43c154fb57db67670e8f88183893fe7c7c8284388242964fd2883e50f40f29c879ebec3a2d759d20c356f27ca151' +b2sums=('80905caeb208ef5dce7b62e248c86598ca786eb7032e114ad5d10812623bfceb688832f646dfbe220ef2fcecacf11cefae2afb0f1cdc0f7952647b71c58c9602' 'SKIP' 'f86353bbba05d8994db34c6abb66094aa61d2c37c8599930dbe9d215413f0f718a1ce55a8f2d07a65074c3947e28fc80d44c925bd9be239a870f82d2a1803635') # $pkgname.desktop # identity-icons-brand.svg b2sums+=('d6ccdc46fce7cfc4bb35a6b09deee8cd96b9076c599c1f031b4d2c5a9c2722bdf98dd14eddde50422e9a1b88f24d425c8a5f1e861877a367c6ff5365e61258c0' # *.branding.tar.xz 'SKIP' '9834f69d69f9ce3cee872a7e75b6848d5539b94752aa50c74612177a740319a33b02734f1d2cdde31ee50efa7a3ed85cf85efb7e6687cfe6ab7be843b4089e7b' # 9001-FSDG-sync-remote-settings-with-local-dump.patch - '702f3179595ce27660e9761811369158a8102c94e77ccb28d3a58026641b055e53f9ec45a1272346eada54021d02956360e1267728fbec201c50fee42c7d677f' # 9002-FSDG-preference-defaults.patch + 'c11cb32b7959a47e6d52b45a1611d27c04129eefcb015f8f9b005c9b29a2ee216e4a4702386b159867ed121705768f0a1721e01f5cab03a5444cdf09a9ef053b' # 9002-FSDG-preference-defaults.patch 'dbb0f9639cbe08bf423faf9e2966b5464a26ab5c6314eea18be0e89edd8ac465bfa04a219821852bdd0801dfed9092999bcca1a982a631035bae9a51408d8dde' # 9003-FSDG-urihandlers.patch '7d7c9a67ef8035f85482b37d0b7b7743f005d5e7f48d1865f21745ebd10053ed8a6c15e1e176f42d5ef738e7bb074bdad8e912983ca4614a2aab50b95824a4a6' # 9004-FSDG-misc.patch - '085c4631ec8cfdf5842068d882185c783e976b1fde74167bb71ef4d7db8c70c12844177b17e76f858ba3ce2a402848ac8fc19910dcbefd29887abfaf5faac5e4' # process-json-files.py + '6224eb8db58c0d00353512d5bf420a16be90a86dc86c9a8d735026a7f77ca4a8a148fea38015fc9639254b9e02b17d01521ad6b233a890aa082fb8476992fa2f' # process-json-files.py 'f3f344196d03499f3f0392d5dfc5310e131d8c85772edd340faf1df3f04ebf2931eb1dda1b7fe6870d61d498618f4d8ae9f1dd446acbe83e0ce324e04b38f3f9' # vendor.js.in '6176a2e4b7a651b50b1ca2d6c8b62b1fd7557cacff50f38cb87f126590d9a2ac8d9b249c1671be0551cc81ce9a028a22e9b29ac121e480dab61cd7c10b891d50') # zstandard-0.22.0.diff b2sums_i686=('684559d207d33e8b83c70d79ddb8b4d7532f2440895668245856553e02b6c786cf0de776981cdcce2438c7add2d692f4afbc85255949558852bdec9800c59882' # avoid-libxul-OOM-python-check.patch diff --git a/libre/iceweasel/process-json-files.py b/libre/iceweasel/process-json-files.py index a2fd0e9..57e54d4 100644 --- a/libre/iceweasel/process-json-files.py +++ b/libre/iceweasel/process-json-files.py @@ -136,7 +136,7 @@ class Changes(RemoteSettings): changes = [] for collection in unwrapped_jsons: - if collection.path != RemoteSettings.DUMPS_PATH_ABSOLUTE / 'main/example.json': + if collection.path not in (RemoteSettings.DUMPS_PATH_ABSOLUTE / 'main/example.json', RemoteSettings.DUMPS_PATH_ABSOLUTE / 'main/search-config-v2.json'): latest_change = {} latest_change[cls._LAST_MODIFIED_KEY_NAME] = cls.get_collection_timestamp( collection) From 3462cdb21b49e57e61d94d2ad1fafe94831711f8 Mon Sep 17 00:00:00 2001 From: bill-auger Date: Dec 23 2023 05:43:34 +0000 Subject: [PATCH 2/73] [gstreamer]: upgrade to v1.22.8 --- diff --git a/libre/gstreamer/0001-HACK-meson-Disable-broken-tests.patch b/libre/gstreamer/0001-HACK-meson-Disable-broken-tests.patch index e79eb30..c9dfddf 100644 --- a/libre/gstreamer/0001-HACK-meson-Disable-broken-tests.patch +++ b/libre/gstreamer/0001-HACK-meson-Disable-broken-tests.patch @@ -4,15 +4,16 @@ Date: Mon, 6 Jun 2022 00:30:08 +0200 Subject: [PATCH] HACK: meson: Disable broken tests --- - subprojects/gst-editing-services/meson.build | 1 - - subprojects/gst-plugins-good/tests/check/elements/flvmux.c | 1 - - subprojects/gst-python/meson.build | 1 - - subprojects/gst-rtsp-server/tests/check/meson.build | 1 - - subprojects/gstreamer-vaapi/meson.build | 1 - - 5 files changed, 5 deletions(-) + subprojects/gst-editing-services/meson.build | 1 - + subprojects/gst-plugins-bad/tests/check/elements/dash_mpd.c | 1 - + subprojects/gst-plugins-good/tests/check/elements/flvmux.c | 1 - + subprojects/gst-python/meson.build | 1 - + subprojects/gst-rtsp-server/tests/check/meson.build | 1 - + subprojects/gstreamer-vaapi/meson.build | 1 - + 6 files changed, 6 deletions(-) diff --git a/subprojects/gst-editing-services/meson.build b/subprojects/gst-editing-services/meson.build -index 0d41498ddbeb..fc8a635a9bb7 100644 +index fc4f3cc45fa0..526f17b56882 100644 --- a/subprojects/gst-editing-services/meson.build +++ b/subprojects/gst-editing-services/meson.build @@ -270,7 +270,6 @@ subdir('ges') @@ -23,6 +24,18 @@ index 0d41498ddbeb..fc8a635a9bb7 100644 if not get_option('examples').disabled() subdir('examples') endif +diff --git a/subprojects/gst-plugins-bad/tests/check/elements/dash_mpd.c b/subprojects/gst-plugins-bad/tests/check/elements/dash_mpd.c +index 1d347b0a54ea..1ee4babf36ae 100644 +--- a/subprojects/gst-plugins-bad/tests/check/elements/dash_mpd.c ++++ b/subprojects/gst-plugins-bad/tests/check/elements/dash_mpd.c +@@ -6659,7 +6659,6 @@ dash_suite (void) + tcase_add_test (tc_simpleMPD, dash_mpdparser_default_presentation_delay); + + /* tests checking xlink attributes */ +- tcase_add_test (tc_simpleMPD, dash_mpdparser_xlink_period); + + /* tests checking the MPD management + * (eg. setting active streams, obtaining attributes values) diff --git a/subprojects/gst-plugins-good/tests/check/elements/flvmux.c b/subprojects/gst-plugins-good/tests/check/elements/flvmux.c index 53a8e634e41a..f270c1d11bfb 100644 --- a/subprojects/gst-plugins-good/tests/check/elements/flvmux.c @@ -36,7 +49,7 @@ index 53a8e634e41a..f270c1d11bfb 100644 tcase_add_test (tc_chain, test_video_caps_change_streamable); tcase_add_test (tc_chain, test_audio_caps_change_streamable_single); diff --git a/subprojects/gst-python/meson.build b/subprojects/gst-python/meson.build -index a9bd36afe7cc..235cfb162a49 100644 +index 789821395534..86f40eea4b43 100644 --- a/subprojects/gst-python/meson.build +++ b/subprojects/gst-python/meson.build @@ -107,5 +107,4 @@ if not get_option('plugin').disabled() @@ -58,7 +71,7 @@ index 229af32f8117..b9372c125d77 100644 'gst/sessionpool', 'gst/stream', diff --git a/subprojects/gstreamer-vaapi/meson.build b/subprojects/gstreamer-vaapi/meson.build -index d6176f64b67e..e036fb966234 100644 +index 2849f893feda..0279be6f90ab 100644 --- a/subprojects/gstreamer-vaapi/meson.build +++ b/subprojects/gstreamer-vaapi/meson.build @@ -219,7 +219,6 @@ plugins = [] diff --git a/libre/gstreamer/PKGBUILD b/libre/gstreamer/PKGBUILD index ca43739..a0c4b60 100644 --- a/libre/gstreamer/PKGBUILD +++ b/libre/gstreamer/PKGBUILD @@ -46,18 +46,15 @@ pkgname=( gst-plugin-wpe ) pkgname=( ${pkgname[*]/gst-plugin-opencv/} ) # FIXME: 'opencv' package FTBS -pkgver=1.22.7 +pkgver=1.22.8 pkgrel=1 -_pkgver_armv7h=${pkgver} -_pkgrel_armv7h=${pkgrel} _pkgver_i686=1.20.5 # NOTE: v1.20.5 fails to compile for i686 - after this moves ahead, _pkgrel_i686=3.0 # try to remove the LOCs with comment: "# n/a in v1.20.5" -_prev_ver=1.22.6 # current version of 'gst-plugins-bad' in parabola repos (x86_64) -_prev_ver_armv7h=${_prev_ver} # current version of 'gst-plugins-bad' in parabola repos (armv7h) -_prev_ver_i686=1.16.2 # current version of 'gst-plugins-bad' in parabola repos (i686) -eval "[[ -v _pkgver_${CARCH} ]] && pkgver=\$_pkgver_${CARCH}" # our different arches do not -eval "[[ -v _pkgrel_${CARCH} ]] && pkgrel=\$_pkgrel_${CARCH}" # always roll at the same speed -eval "[[ -v _prev_ver_${CARCH} ]] && _prev_ver=\$_prev_ver_${CARCH}" # self-dep +_prev_ver=1.22.7 # current version of 'gst-plugins-bad' in parabola repos (x86_64) +_prev_ver_i686=1.16.2 # current version of 'gst-plugins-bad' in parabola repos (i686) +eval "[[ -v _pkgver_${CARCH} ]] && pkgver=\$_pkgver_${CARCH}" # our different arches do not +eval "[[ -v _pkgrel_${CARCH} ]] && pkgrel=\$_pkgrel_${CARCH}" # always roll at the same speed +eval "[[ -v _prev_ver_${CARCH} ]] && _prev_ver=\$_prev_ver_${CARCH}" # nor at the same granularity pkgrel+=.parabola1 pkgdesc="Multimedia graph framework" url="https://gstreamer.freedesktop.org/" @@ -104,20 +101,24 @@ makedepends=( # gst-python # # DIFF: none are needed ) -makedepends=( ${makedepends[*]/faac/} ) # non-free -[[ "${CARCH}" == x86_64 ]] || makedepends=( ${makedepends[*]/svt-hevc/} ) # x86_64 only +makedepends=( ${makedepends[*]/faac/} ) # non-free +makedepends=( ${makedepends[*]/git/} ) # use source-ball, not VCS +makedepends=( ${makedepends[*]/$([[ "${CARCH}" == x86_64 ]] || echo svt-hevc)/} ) # x86_64 only checkdepends=(xorg-server-xvfb) source=( - # "git+https://gitlab.freedesktop.org/gstreamer/gstreamer.git?signed#tag=$pkgver" # DIFF: use source-ball not VCS - https://gitlab.freedesktop.org/gstreamer/gstreamer/-/archive/${pkgver}/gstreamer-${pkgver}.tar.gz # DIFF: use source-ball not VCS - # "https://gstreamer.freedesktop.org/src/gstreamer-docs/gstreamer-docs-$pkgver.tar.xz"{,.asc} # DIFF: n/a + "git+https://gitlab.freedesktop.org/gstreamer/gstreamer.git?signed#tag=$pkgver" + "https://gstreamer.freedesktop.org/src/gstreamer-docs/gstreamer-docs-$pkgver.tar.xz"{,.asc} 0001-HACK-meson-Disable-broken-tests.patch ) -b2sums=('29e59a1ff67f9a99214ac25e6578ab969f122195236f96da682a7c493d9a400bb50d5aca348caed10d581ec30ce183f9c32cb0aa6c7d407d7f7b8d624a813b90' +_srcball_url=https://gitlab.freedesktop.org/gstreamer/gstreamer/-/archive/${pkgver}/gstreamer-${pkgver}.tar.gz +source=( ${source[*]/git+*/$_srcball_url} ) # use source-ball, not VCS +source=( ${source[*]/*gstreamer-docs*/} ) # 'gstreamer-docs' n/a +b2sums=('SKIP' # 'gstreamer-docs' n/a # 'gstreamer-docs' n/a - '3e59a5ae821b83ad20f5e39e52195aa6932d5877538ef63aef7205988482e2667d6d43fc7bce2b5eaaf2c280cd4369f63a0d0d9ae39094ee70ec4ecd318a64b5') -_b2sum_i686=('518a025591e2d03296197dd4b6d30dbdd1a4c2b1d435df62cf451f13c1233c7fc1ad877344765c7b5c863e4886b7df750096fdb8835151cccf9618590801f1ea') + '1887212e956a617130469c6afbd387a555d388dc36b467505b3e5248d0e6a273886fd0500d0977b714075604c61fe149a77ea05ce785cfe27e3eae0999eecb3f') +_b2sum=29e59a1ff67f9a99214ac25e6578ab969f122195236f96da682a7c493d9a400bb50d5aca348caed10d581ec30ce183f9c32cb0aa6c7d407d7f7b8d624a813b90 # upstream source-ball +_b2sum_i686=518a025591e2d03296197dd4b6d30dbdd1a4c2b1d435df62cf451f13c1233c7fc1ad877344765c7b5c863e4886b7df750096fdb8835151cccf9618590801f1ea # upstream source-ball eval "[[ -v _b2sum_${CARCH} ]] && b2sums[0]=\$_b2sum_${CARCH}" # upstream source-ball validpgpkeys=( D637032E45B8C6585B9456565D2EEE6F6F349D7C # Tim Müller @@ -139,7 +140,7 @@ makedepends+=( libdc1394 ) # ERROR: Dependency "libdc1394-2" not found, tried pk # mksource() { # TODO: delete unused sources - the allsource packages are 650MB # or - # TODO: blacklist (reason: 'technical') and compile all split-packages, + # TODO: blacklist all split-packages (reason: 'technical') and re-package all, # simplifying the diff against the upstreams # } @@ -147,17 +148,11 @@ prepare() { ln -s gstreamer{-${pkgver},} # link source-ball root dir as VCS root dirname cd gstreamer - # ignore GL libs (however, this may break 'gst-plugin-opencv' build) - # gstreamer-1.22.5/subprojects/gst-plugins-bad/meson.build:331:12: - # ERROR: Neither a subproject directory nor a gst-plugins-base.wrap file was found. - # -> Failed to guess install tag for /usr/share/gstreamer-1.0/presets/GstFreeverb.prs - sed -i "s|required: get_option('gl')|required: false|" subprojects/gst-plugins-bad/meson.build - - # patch n/a (probably) + # arch patches usually do not apply to 'gst-plugins-bad'; though they may local grep_rx='^+++ b/subprojects/gst-plugins-bad/[^ ]' if grep "${grep_rx}" ../0001-HACK-meson-Disable-broken-tests.patch ; then # Disable broken tests - patch -Np1 < ../0001-HACK-meson-Disable-broken-tests.patch # DIFF: use source-ball not VCS + patch -Np1 < ../0001-HACK-meson-Disable-broken-tests.patch # DIFF: use source-ball, not VCS fi } @@ -251,12 +246,14 @@ build() { ## build ## - arch-meson gstreamer/subprojects/${pkgbase} build "${meson_options[@]}" # DIFF: use source-ball not VCS + arch-meson gstreamer/subprojects/${pkgbase} build "${meson_options[@]}" # DIFF: use source-ball, not VCS meson configure build # Print config meson compile -C build } check() ( + # networing tests fail in librechroots + # elements_rtpsrc, elements_rtpsink, elements_srtp, elements_netsim, elements_webrtcbin (( ! _DISABLE_TESTS )) || ! echo "skipping check()" || return 0 export XDG_RUNTIME_DIR="$PWD/runtime-dir" @@ -285,7 +282,7 @@ package_gst-plugins-bad-libs() { ) # arch has this command in the package_gstreamer() function - DESTDIR="$srcdir/root" meson install -C build + meson install -C build --destdir "$srcdir/root" cd root; local files=( usr/include/gstreamer-1.0/gst/audio/{audio-bad-prelude,gstnonstreamaudiodecoder,gstplanaraudioadapter}.h @@ -399,8 +396,8 @@ package_gst-plugins-bad() { ) # parabola tweaks - depends=( ${depends[*]/faac/} ) # non-free - [[ "${CARCH}" == x86_64 ]] || depends=( ${depends[*]/svt-hevc/} ) + depends=( ${depends[*]/faac/} ) # non-free + depends=( ${depends[*]/$([[ "${CARCH}" == x86_64 ]] || echo svt-hevc)/} ) # x86_64 only cd root; local files=( usr/lib/gstreamer-1.0/libgstaes.so @@ -467,12 +464,10 @@ package_gst-plugins-bad() { ) # parabola tweaks - [[ "${CARCH}" == x86_64 ]] || files=( + ${files[*]/usr\/lib\/gstreamer-1.0\/libgstfaac.so/} # non-free + ); [[ "${CARCH}" == x86_64 ]] || files=( ${files[*]/usr\/lib\/gstreamer-1.0\/libgstsvthevcenc.so/} # x86_64 only - ) - files=( - ${files[*]/usr\/lib\/gstreamer-1.0\/libgstfaac.so/} # non-free ); _install } From 9db3600b83ef25a2d6762333ff0a1205d603c58b Mon Sep 17 00:00:00 2001 From: bill-auger Date: Dec 24 2023 23:12:46 +0000 Subject: [PATCH 3/73] [texlive-bin]: add missing patch file --- diff --git a/libre/texlive-bin/context-luatex-1.17.patch b/libre/texlive-bin/context-luatex-1.17.patch new file mode 100644 index 0000000..08520cd --- /dev/null +++ b/libre/texlive-bin/context-luatex-1.17.patch @@ -0,0 +1,22 @@ +diff --git a/texk/texlive/linked_scripts/context/stubs/unix/mtxrun b/texk/texlive/linked_scripts/context/stubs/unix/mtxrun +index 6fc17adb0..722e9fc8f 100755 +--- a/texk/texlive/linked_scripts/context/stubs/unix/mtxrun ++++ b/texk/texlive/linked_scripts/context/stubs/unix/mtxrun +@@ -25606,7 +25606,7 @@ local function secondaryflags(arguments) + end + return concat(flags," ") + end +-local template=[[--ini %primaryflags% --lua=%luafile% %texfile% %secondaryflags% %redirect%]] ++local template=[[--ini %primaryflags% --socket --shell-escape --lua=%luafile% %texfile% %secondaryflags% %redirect%]] + local checkers={ + primaryflags="verbose", + secondaryflags="verbose", +@@ -25741,7 +25741,7 @@ function environment.make_format(formatname) + report_format() + lfs.chdir(startupdir) + end +-local template=[[%primaryflags% --fmt=%fmtfile% --lua=%luafile% %texfile% %secondaryflags%]] ++local template=[[%primaryflags% --socket --shell-escape --fmt=%fmtfile% --lua=%luafile% %texfile% %secondaryflags%]] + local checkers={ + primaryflags="verbose", + secondaryflags="verbose", From adb011cdfc771134820fff98edb266c0fa2120e7 Mon Sep 17 00:00:00 2001 From: David P Date: Dec 26 2023 18:09:18 +0000 Subject: [PATCH 4/73] updpkg: libre/linux-libre-pae 6.6.8-1 Signed-off-by: David P. --- diff --git a/libre/linux-libre-pae/0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch b/libre/linux-libre-pae/0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch index ba0d753..200467d 100644 --- a/libre/linux-libre-pae/0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch +++ b/libre/linux-libre-pae/0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch @@ -1,7 +1,7 @@ -From 63cec1d1efdb31caeef17411c7560e8b0f941073 Mon Sep 17 00:00:00 2001 +From 5356bd2edba31be92ea71b8fa2167e2bc3b60fbc Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" Date: Mon, 16 Sep 2019 04:53:20 +0200 -Subject: [PATCH 1/3] ZEN: Add sysctl and CONFIG to disallow unprivileged +Subject: [PATCH 1/2] ZEN: Add sysctl and CONFIG to disallow unprivileged CLONE_NEWUSER Our default behavior continues to match the vanilla kernel. @@ -14,10 +14,10 @@ Our default behavior continues to match the vanilla kernel. 5 files changed, 53 insertions(+) diff --git a/include/linux/user_namespace.h b/include/linux/user_namespace.h -index 33a4240e6a6f..82213f9c4c17 100644 +index 45f09bec02c4..87b20e2ee274 100644 --- a/include/linux/user_namespace.h +++ b/include/linux/user_namespace.h -@@ -139,6 +139,8 @@ static inline void set_rlimit_ucount_max(struct user_namespace *ns, +@@ -148,6 +148,8 @@ static inline void set_userns_rlimit_max(struct user_namespace *ns, #ifdef CONFIG_USER_NS @@ -26,7 +26,7 @@ index 33a4240e6a6f..82213f9c4c17 100644 static inline struct user_namespace *get_user_ns(struct user_namespace *ns) { if (ns) -@@ -172,6 +174,8 @@ extern bool current_in_userns(const struct user_namespace *target_ns); +@@ -181,6 +183,8 @@ extern bool current_in_userns(const struct user_namespace *target_ns); struct ns_common *ns_get_owner(struct ns_common *ns); #else @@ -36,10 +36,10 @@ index 33a4240e6a6f..82213f9c4c17 100644 { return &init_user_ns; diff --git a/init/Kconfig b/init/Kconfig -index fa63cc019ebf..5aa29feccae3 100644 +index 6d35728b94b2..0562c8ca7b30 100644 --- a/init/Kconfig +++ b/init/Kconfig -@@ -1249,6 +1249,22 @@ config USER_NS +@@ -1226,6 +1226,22 @@ config USER_NS If unsure, say N. @@ -63,12 +63,12 @@ index fa63cc019ebf..5aa29feccae3 100644 bool "PID Namespaces" default y diff --git a/kernel/fork.c b/kernel/fork.c -index 0d8abfb9e0f4..bd7c215e315f 100644 +index 177ce7438db6..6ecece1407fc 100644 --- a/kernel/fork.c +++ b/kernel/fork.c -@@ -99,6 +99,10 @@ - #include - #include +@@ -100,6 +100,10 @@ + #include + #include +#ifdef CONFIG_USER_NS +#include @@ -77,7 +77,7 @@ index 0d8abfb9e0f4..bd7c215e315f 100644 #include #include #include -@@ -1992,6 +1996,10 @@ static __latent_entropy struct task_struct *copy_process( +@@ -2260,6 +2264,10 @@ __latent_entropy struct task_struct *copy_process( if ((clone_flags & (CLONE_NEWUSER|CLONE_FS)) == (CLONE_NEWUSER|CLONE_FS)) return ERR_PTR(-EINVAL); @@ -88,7 +88,7 @@ index 0d8abfb9e0f4..bd7c215e315f 100644 /* * Thread groups must share signals as well, and detached threads * can only be started up within the thread group. -@@ -3128,6 +3136,12 @@ int ksys_unshare(unsigned long unshare_flags) +@@ -3413,6 +3421,12 @@ int ksys_unshare(unsigned long unshare_flags) if (unshare_flags & CLONE_NEWNS) unshare_flags |= CLONE_FS; @@ -102,20 +102,20 @@ index 0d8abfb9e0f4..bd7c215e315f 100644 if (err) goto bad_unshare_out; diff --git a/kernel/sysctl.c b/kernel/sysctl.c -index c42ba2d669dc..a6ddbf02a809 100644 +index 354a2d294f52..5bc5605e7cdb 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c -@@ -91,6 +91,9 @@ - #if defined(CONFIG_PROVE_LOCKING) || defined(CONFIG_LOCK_STAT) - #include +@@ -80,6 +80,9 @@ + #ifdef CONFIG_RT_MUTEXES + #include #endif +#ifdef CONFIG_USER_NS +#include +#endif - #if defined(CONFIG_SYSCTL) - -@@ -1806,6 +1809,15 @@ static struct ctl_table kern_table[] = { + /* shared constants to be used in various sysctls */ + const int sysctl_vals[] = { 0, 1, 2, 3, 4, 100, 200, 1000, 3000, INT_MAX, 65535, -1 }; +@@ -1623,6 +1626,15 @@ static struct ctl_table kern_table[] = { .mode = 0644, .proc_handler = proc_dointvec, }, @@ -132,10 +132,10 @@ index c42ba2d669dc..a6ddbf02a809 100644 { .procname = "tainted", diff --git a/kernel/user_namespace.c b/kernel/user_namespace.c -index 5481ba44a8d6..423ab2563ad7 100644 +index 1d8e47bed3f1..fec01d016a35 100644 --- a/kernel/user_namespace.c +++ b/kernel/user_namespace.c -@@ -21,6 +21,13 @@ +@@ -22,6 +22,13 @@ #include #include @@ -150,5 +150,5 @@ index 5481ba44a8d6..423ab2563ad7 100644 static DEFINE_MUTEX(userns_state_mutex); -- -2.37.1 +2.43.0 diff --git a/libre/linux-libre-pae/0002-HID-apple-Properly-handle-function-keys-on-Keychron-.patch b/libre/linux-libre-pae/0002-HID-apple-Properly-handle-function-keys-on-Keychron-.patch deleted file mode 100644 index 7212fe4..0000000 --- a/libre/linux-libre-pae/0002-HID-apple-Properly-handle-function-keys-on-Keychron-.patch +++ /dev/null @@ -1,107 +0,0 @@ -From 4b81eecd4c636d953aaf4ebafd8171716f4c61fe Mon Sep 17 00:00:00 2001 -From: Bryan Cain -Date: Thu, 5 May 2022 13:12:21 -0600 -Subject: [PATCH 2/3] HID: apple: Properly handle function keys on Keychron - keyboards -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -Keychron's C-series and K-series of keyboards copy the vendor and -product IDs of an Apple keyboard, but only behave like that device when -set to "Mac" mode. In "Windows" mode, the Fn key doesn't generate a -scancode, so it's impossible to use the F1-F12 keys when fnmode is set -to its default value of 1. - -To fix this, make fnmode default to the new value of 3, which behaves -like fnmode=2 for Keychron keyboards and like fnmode=1 for actual Apple -keyboards. This way, Keychron devices are fully usable in both "Windows" -and "Mac" modes, while behavior is unchanged for everything else. - -Signed-off-by: Bryan Cain -Reviewed-by: Hans de Goede -Tested-by: José Expósito -Signed-off-by: Jiri Kosina ---- - drivers/hid/hid-apple.c | 22 ++++++++++++++++++---- - 1 file changed, 18 insertions(+), 4 deletions(-) - -diff --git a/drivers/hid/hid-apple.c b/drivers/hid/hid-apple.c -index 0cf35caee9fa..42a568902f49 100644 ---- a/drivers/hid/hid-apple.c -+++ b/drivers/hid/hid-apple.c -@@ -21,6 +21,7 @@ - #include - #include - #include -+#include - - #include "hid-ids.h" - -@@ -35,16 +36,17 @@ - #define APPLE_NUMLOCK_EMULATION BIT(8) - #define APPLE_RDESC_BATTERY BIT(9) - #define APPLE_BACKLIGHT_CTL BIT(10) -+#define APPLE_IS_KEYCHRON BIT(11) - - #define APPLE_FLAG_FKEY 0x01 - - #define HID_COUNTRY_INTERNATIONAL_ISO 13 - #define APPLE_BATTERY_TIMEOUT_MS 60000 - --static unsigned int fnmode = 1; -+static unsigned int fnmode = 3; - module_param(fnmode, uint, 0644); - MODULE_PARM_DESC(fnmode, "Mode of fn key on Apple keyboards (0 = disabled, " -- "[1] = fkeyslast, 2 = fkeysfirst)"); -+ "1 = fkeyslast, 2 = fkeysfirst, [3] = auto)"); - - static int iso_layout = -1; - module_param(iso_layout, int, 0644); -@@ -349,6 +351,7 @@ static int hidinput_apple_event(struct hid_device *hid, struct input_dev *input, - const struct apple_key_translation *trans, *table; - bool do_translate; - u16 code = 0; -+ unsigned int real_fnmode; - - u16 fn_keycode = (swap_fn_leftctrl) ? (KEY_LEFTCTRL) : (KEY_FN); - -@@ -359,7 +362,13 @@ static int hidinput_apple_event(struct hid_device *hid, struct input_dev *input, - return 1; - } - -- if (fnmode) { -+ if (fnmode == 3) { -+ real_fnmode = (asc->quirks & APPLE_IS_KEYCHRON) ? 2 : 1; -+ } else { -+ real_fnmode = fnmode; -+ } -+ -+ if (real_fnmode) { - if (hid->product == USB_DEVICE_ID_APPLE_ALU_WIRELESS_ANSI || - hid->product == USB_DEVICE_ID_APPLE_ALU_WIRELESS_ISO || - hid->product == USB_DEVICE_ID_APPLE_ALU_WIRELESS_JIS || -@@ -406,7 +415,7 @@ static int hidinput_apple_event(struct hid_device *hid, struct input_dev *input, - - if (!code) { - if (trans->flags & APPLE_FLAG_FKEY) { -- switch (fnmode) { -+ switch (real_fnmode) { - case 1: - do_translate = !asc->fn_on; - break; -@@ -660,6 +669,11 @@ static int apple_input_configured(struct hid_device *hdev, - asc->quirks &= ~APPLE_HAS_FN; - } - -+ if (strncmp(hdev->name, "Keychron", 8) == 0) { -+ hid_info(hdev, "Keychron keyboard detected; function keys will default to fnmode=2 behavior\n"); -+ asc->quirks |= APPLE_IS_KEYCHRON; -+ } -+ - return 0; - } - --- -2.37.1 - diff --git a/libre/linux-libre-pae/0002-drivers-firmware-skip-simpledrm-if-nvidia-drm.modese.patch b/libre/linux-libre-pae/0002-drivers-firmware-skip-simpledrm-if-nvidia-drm.modese.patch new file mode 100644 index 0000000..3d2d12a --- /dev/null +++ b/libre/linux-libre-pae/0002-drivers-firmware-skip-simpledrm-if-nvidia-drm.modese.patch @@ -0,0 +1,89 @@ +From 71702f17b7826fda819d56e329680eb655344fcb Mon Sep 17 00:00:00 2001 +From: Javier Martinez Canillas +Date: Thu, 19 May 2022 14:40:07 +0200 +Subject: [PATCH 2/2] drivers/firmware: skip simpledrm if nvidia-drm.modeset=1 + is set + +The Nvidia proprietary driver has some bugs that leads to issues if used +with the simpledrm driver. The most noticeable is that does not register +an emulated fbdev device. + +It just relies on a fbdev to be registered by another driver, that could +be that could be attached to the framebuffer console. On UEFI machines, +this is the efifb driver. + +This means that disabling the efifb driver will cause virtual consoles to +not be present in the system when using the Nvidia driver. Legacy BIOS is +not affected just because fbcon is not used there, but instead vgacon. + +Unless a VGA mode is specified using the vga= kernel command line option, +in that case the vesafb driver is used instead and its fbdev attached to +the fbcon. + +This is a problem because with CONFIG_SYSFB_SIMPLEFB=y, the sysfb platform +code attempts to register a "simple-framebuffer" platform device (that is +matched against simpledrm) and only registers either an "efi-framebuffer" +or "vesa-framebuffer" if this fails to be registered due the video modes +not being compatible. + +The Nvidia driver relying on another driver to register the fbdev is quite +fragile, since it can't really assume those will stick around. For example +there are patches posted to remove the EFI and VESA platform devices once +a real DRM or fbdev driver probes. + +But in any case, moving to a simpledrm + emulated fbdev only breaks this +assumption and causes users to not have VT if the Nvidia driver is used. + +So to prevent this, let's add a workaround and make the sysfb to skip the +"simple-framebuffer" registration when nvidia-drm.modeset=1 option is set. + +This is quite horrible, but honestly I can't think of any other approach. + +For this to work, the CONFIG_FB_EFI and CONFIG_FB_VESA config options must +be enabled besides CONFIG_DRM_SIMPLEDRM. + +Signed-off-by: Javier Martinez Canillas +Cherry-picked-for: https://bugs.archlinux.org/task/73720 +--- + drivers/firmware/sysfb.c | 18 +++++++++++++++++- + 1 file changed, 17 insertions(+), 1 deletion(-) + +diff --git a/drivers/firmware/sysfb.c b/drivers/firmware/sysfb.c +index 82fcfd29bc4d..17b7e096b682 100644 +--- a/drivers/firmware/sysfb.c ++++ b/drivers/firmware/sysfb.c +@@ -34,6 +34,22 @@ + #include + #include + ++static int skip_simpledrm; ++ ++static int __init simpledrm_disable(char *opt) ++{ ++ if (!opt) ++ return -EINVAL; ++ ++ get_option(&opt, &skip_simpledrm); ++ ++ if (skip_simpledrm) ++ pr_info("The simpledrm driver will not be probed\n"); ++ ++ return 0; ++} ++early_param("nvidia-drm.modeset", simpledrm_disable); ++ + static struct platform_device *pd; + static DEFINE_MUTEX(disable_lock); + static bool disabled; +@@ -85,7 +101,7 @@ static __init int sysfb_init(void) + + /* try to create a simple-framebuffer device */ + compatible = sysfb_parse_mode(si, &mode); +- if (compatible) { ++ if (compatible && !skip_simpledrm) { + pd = sysfb_create_simplefb(si, &mode); + if (!IS_ERR(pd)) + goto unlock_mutex; +-- +2.43.0 + diff --git a/libre/linux-libre-pae/0003-soundwire-Raise-DEFAULT_PROBE_TIMEOUT-to-10000-ms.patch b/libre/linux-libre-pae/0003-soundwire-Raise-DEFAULT_PROBE_TIMEOUT-to-10000-ms.patch deleted file mode 100644 index 606afbd..0000000 --- a/libre/linux-libre-pae/0003-soundwire-Raise-DEFAULT_PROBE_TIMEOUT-to-10000-ms.patch +++ /dev/null @@ -1,26 +0,0 @@ -From 2da21cf28e573b84e5a5baecc1eda7372322375d Mon Sep 17 00:00:00 2001 -From: "Jan Alexander Steffens (heftig)" -Date: Sat, 23 Jul 2022 11:14:46 +0200 -Subject: [PATCH 3/3] soundwire: Raise DEFAULT_PROBE_TIMEOUT to 10000 ms - -See: https://github.com/thesofproject/linux/issues/3777#issuecomment-1192655300 ---- - drivers/soundwire/bus.h | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/drivers/soundwire/bus.h b/drivers/soundwire/bus.h -index 7631ef5e71fb..d3ed828daac0 100644 ---- a/drivers/soundwire/bus.h -+++ b/drivers/soundwire/bus.h -@@ -5,7 +5,7 @@ - #define __SDW_BUS_H - - #define DEFAULT_BANK_SWITCH_TIMEOUT 3000 --#define DEFAULT_PROBE_TIMEOUT 2000 -+#define DEFAULT_PROBE_TIMEOUT 10000 - - u64 sdw_dmi_override_adr(struct sdw_bus *bus, u64 addr); - --- -2.37.1 - diff --git a/libre/linux-libre-pae/PKGBUILD b/libre/linux-libre-pae/PKGBUILD index 556683c..7930caa 100644 --- a/libre/linux-libre-pae/PKGBUILD +++ b/libre/linux-libre-pae/PKGBUILD @@ -9,18 +9,31 @@ _replacesoldkernels=() # '%' gets replaced with kernel suffix _replacesoldmodules=() # '%' gets replaced with kernel suffix pkgbase=linux-libre-pae -pkgver=5.18.14 +pkgver=6.6.8 pkgrel=1 pkgdesc='Linux-libre PAE (physical address extension)' url='https://linux-libre.fsfla.org/' arch=(i686) license=(GPL2) makedepends=( - bc libelf pahole cpio perl tar xz - xmlto python-sphinx python-sphinx_rtd_theme graphviz imagemagick texlive-latexextra + bc + cpio + gettext + libelf + pahole + perl + python + tar + xz + + # htmldocs + #graphviz + #imagemagick + #python-sphinx + #texlive-latexextra ) options=('!strip') -_srcname=linux-5.18 +_srcname=linux-6.6 source=( "https://linux-libre.fsfla.org/pub/linux-libre/releases/${_srcname##*-}-gnu/linux-libre-${_srcname##*-}-gnu.tar.xz"{,.sign} "https://linux-libre.fsfla.org/pub/linux-libre/releases/$pkgver-gnu/patch-${_srcname##*-}-gnu-$pkgver-gnu.xz"{,.sign} @@ -36,32 +49,46 @@ source=( 0002-fix-Atmel-maXTouch-touchscreen-support.patch # Arch Linux patches 0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch - 0002-HID-apple-Properly-handle-function-keys-on-Keychron-.patch - 0003-soundwire-Raise-DEFAULT_PROBE_TIMEOUT-to-10000-ms.patch - # Arch Linux 32 patches + 0002-drivers-firmware-skip-simpledrm-if-nvidia-drm.modese.patch + # avoid using zstd compression in ultra mode (exhausts virtual memory) no-ultra-zstd.patch ) validpgpkeys=( - '474402C8C582DAFBE389C427BCB7CF877E7D47A7' # Alexandre Oliva - '6DB9C4B4F0D8C0DC432CF6E4227CA7C556B2BA78' # David P. + 474402C8C582DAFBE389C427BCB7CF877E7D47A7 # Alexandre Oliva + 6DB9C4B4F0D8C0DC432CF6E4227CA7C556B2BA78 # David P. ) -sha512sums=('13be3762fffd74c63eeb23b0d34b994a3e5198bfdbda4f013b38f8d3edd24b9bbebe5a4bfde0f5191aa1cf2678e4517f3b5540a40b30ebc05da1f6708cbb98bb' +sha256sums=('d71785bdb694fefaa4f183e5dd2ffc453c179db6f9427cc37e1ed046f0073ccf' 'SKIP' - '9016e87060d3ddbf4bad5adee54f07cba3930a23a5c2a7ca32338a98d0c51676228f3d97405c624f2f48a67849f9b40a5dc670e10fbc02bc75cc4d47deab4c34' + '4193aba41ae2eed56059b7fe917fa0b933573578b7a71f4e0fdb7a4487075170' 'SKIP' - '13cb5bc42542e7b8bb104d5f68253f6609e463b6799800418af33eb0272cc269aaa36163c3e6f0aacbdaaa1d05e2827a4a7c4a08a029238439ed08b89c564bb3' + 'bfd4a7f61febe63c880534dcb7c31c5b932dde6acf991810b41a939a93535494' 'SKIP' - '7a3716bfe3b9f546da309c7492f3e08f8f506813afeb1c737a474c83313d5c313cf4582b65215c2cfce3b74d9d1021c96e8badafe8f6e5b01fe28d2b5c61ae78' + '6de8a8319271809ffdb072b68d53d155eef12438e6d04ff06a5a4db82c34fa8a' 'SKIP' - '267295aa0cea65684968420c68b32f1a66a22d018b9d2b2c1ef14267bcf4cb68aaf7099d073cbfefe6c25c8608bdcbbd45f7ac8893fdcecbf1e621abdfe9ecc1' + '13bd7a8d9ed6b6bc971e4cd162262c5a20448a83796af39ce394d827b0e5de74' 'SKIP' - '145f8eb30125ee4bf1e2b37027ec762d2a15511dcf7eae3ad09472a682492d8f38fb606b2e81acac557de318a71b6d988b03c8680208b75c2be9bc1483b43e10' - '02af4dd2a007e41db0c63822c8ab3b80b5d25646af1906dc85d0ad9bb8bbf5236f8e381d7f91cf99ed4b0978c50aee37cb9567cdeef65b7ec3d91b882852b1af' - 'b8fe56e14006ab866970ddbd501c054ae37186ddc065bb869cf7d18db8c0d455118d5bda3255fb66a0dde38b544655cfe9040ffe46e41d19830b47959b2fb168' - '671ab29fb1858c3898792164ac49d57103ecdeff220d7b262efb0c74ee270a670cf40f746a76f400513019989d858326fb3da507a0159418215e0b645011c406' - '2fecb2fb31981af21e17ce08c8352236f8817e6000f7e542f7479eaa7300238c4581f992b4da4d49dd2657d3e3c038eb0369954559f233b2913c382ef25b5753' - '816ad9cb93a473376487234d4bf255f7d081c37186b1715e914c2c30dcdcfaee7b6db4eeb427969190d0cffa7499bc99c95ef58fb8c632d27e51d0350990f0ce' - 'bca15cc96f64c38adcd13a46752866b5b30555ac21e19b3f7afcd20fcb7ec585c9d990fe8f842f44d5f69d477d72867fe6a9102729f26f93f5a80b372e41ce85') + '8a8b10cbb3acb6904cf90f462c1c3fd41b2a2f8f31e42fe4f18c8b4df17347f5' + '0376bd5efa31d4e2a9d52558777cebd9f0941df8e1adab916c868bf0c05f2fc3' + '351fd96be8cd5ebd0435c0a8a978673fc023e3b1026085e67f86d815b2285e25' + 'f42b4d1cbde46fd9c2e3b9baaecb0a50fab3aa423a621a7849c42b5ddbbfa9b8' + '1ee62f3e582ffb63323097ff0698572b33507d1ff3dd3c88f7071dfa7a22fc24' + 'd32270be5fd9c3e3ba50f3aef33f6cfcb85be0c8216f03b777287cc621fdff28') +b2sums=('e3e753fed07258f34e2e44e1acd4be0c22a3c58a3ae4856b518a4f99358f5bf6e8f38e41f422d9a434b33b0d7ee972e93ac7d37c9734949d6db263afe4c4f47c' + 'SKIP' + '53cb120b0bc8bce90e19fce0a69d05ab3f69d07ce75976d2106e0edaf5699fb71f777b1913c1fc36075d9dc46d3f4bfa1f9e4f2e7901bae869c28d3642a0a93e' + 'SKIP' + '73fee2ae5cb1ffd3e6584e56da86a8b1ff6c713aae54d77c0dab113890fc673dc5f300eb9ed93fb367b045ece8fa80304ff277fe61665eccf7b7ce24f0c045eb' + 'SKIP' + 'd02a1153a4285b32c774dca4560fe37907ccf30b8e487a681b717ed95ae9bed5988875c0a118938e5885ae9d2857e53a6f216b732b6fa3368e3c5fe08c86382c' + 'SKIP' + '580911af9431c066bbc072fd22d5e2ef65f12d8358cec5ff5a4f1b7deebb86cef6b5c1ad631f42350af72c51d44d2093c71f761234fb224a8b9dbb3b64b8201d' + 'SKIP' + 'e18118ef69486e8839926c92a3f5f3842e6561065781c8e182a29167cd8d80e9198cb1def3611ad54c0b696d6e634ec4631c49b9449c05718790ed0fb1491eec' + 'c2214154c36900e311531bfe68184f31639f5c50fed23bc3803a7f18439b7ff258552a39f02fed0ea92f10744e17a6c55cef0ef1a98187f978fe480fb3dddc14' + '0c7ceba7cd90087db3296610a07886f337910bad265a32c052d3a703e6eb8e53f355ab9948d72d366408d968d8ee7435084dd89bef5ed0b69355fd884c2cd468' + '4f5df7bb477f09855294fd4afd6adedd97f1a96051d350a936cb3e061de9c599130e9db4a820d5b70086b8fac5e9e294ca2898fa924310c4fae684c2fbf9c5bc' + '9419a4ff2104313df9e40cd1e7f3f7629b4beec27e60b27c4935bb57a245c7b63189ffe38a70ca834d025708c489c623f2734a0e0b3260dde14e871c52455911' + '165ab9dd8cedeaae5327accc1581c19cf0be55f923b03feb889cad3351b74c7c4cd3d3c206938e5152bfe1d947513dea8f630f8f5544099ec13d16d254725c40') _replacesarchkernel=("${_replacesarchkernel[@]/\%/${pkgbase#linux-libre}}") _replacesoldkernels=("${_replacesoldkernels[@]/\%/${pkgbase#linux-libre}}") @@ -84,7 +111,6 @@ prepare() { ../logo_linux_{clut224.ppm,vga16.ppm,mono.pbm} echo "Setting version..." - scripts/setlocalversion --save-scmversion echo "-$pkgrel" > localversion.10-pkgrel echo "${pkgbase#linux-libre}" > localversion.20-pkgname @@ -92,6 +118,7 @@ prepare() { for src in "${source[@]}"; do src="${src%%::*}" src="${src##*/}" + src="${src%.zst}" [[ $src = *.patch ]] || continue echo "Applying patch $src..." patch -Np1 < "../$src" @@ -108,22 +135,34 @@ prepare() { build() { cd $_srcname - make htmldocs all + make all + #make htmldocs } _package() { pkgdesc="The $pkgdesc kernel and modules" - depends=(coreutils kmod initramfs) - optdepends=('wireless-regdb: to set the correct wireless channels of your country' - 'linux-libre-firmware: firmware images needed for some devices') - provides=(VIRTUALBOX-GUEST-MODULES WIREGUARD-MODULE) + depends=( + coreutils + initramfs + kmod + ) + optdepends=( + 'wireless-regdb: to set the correct wireless channels of your country' + 'linux-libre-firmware: firmware images needed for some devices' + ) + provides=( + KSMBD-MODULE + VIRTUALBOX-GUEST-MODULES + WIREGUARD-MODULE + ) + replaces=( + ) provides+=("${_replacesarchkernel[@]/%/=${pkgver%.*}}" "LINUX-ABI_VERSION=${pkgver%.*}") conflicts=("${_replacesarchkernel[@]}" "${_replacesoldkernels[@]}" "${_replacesoldmodules[@]}") replaces=("${_replacesarchkernel[@]}" "${_replacesoldkernels[@]}" "${_replacesoldmodules[@]}") cd $_srcname - local kernver="$( Date: Dec 26 2023 18:11:55 +0000 Subject: [PATCH 5/73] updpkg: libre/linux-libre-hardened 6.6.8.hardened1-1 Signed-off-by: David P. --- diff --git a/libre/linux-libre-hardened/PKGBUILD b/libre/linux-libre-hardened/PKGBUILD index 3b49f05..fea5fe2 100644 --- a/libre/linux-libre-hardened/PKGBUILD +++ b/libre/linux-libre-hardened/PKGBUILD @@ -9,18 +9,31 @@ _replacesoldkernels=() # '%' gets replaced with kernel suffix _replacesoldmodules=() # '%' gets replaced with kernel suffix pkgbase=linux-libre-hardened -pkgver=5.18.12.hardened1 +pkgver=6.6.8.hardened1 pkgrel=1 pkgdesc='Security-Hardened Linux-libre' url='https://linux-libre.fsfla.org/' arch=(x86_64) license=(GPL2) makedepends=( - bc libelf pahole cpio perl tar xz - xmlto python-sphinx python-sphinx_rtd_theme graphviz imagemagick texlive-latexextra + bc + cpio + gettext + libelf + pahole + perl + python + tar + xz + + # htmldocs + graphviz + imagemagick + python-sphinx + texlive-latexextra ) options=('!strip') -_srcname=linux-5.18 +_srcname=linux-6.6 _srctag=${pkgver%.*}-${pkgver##*.} source=( "https://linux-libre.fsfla.org/pub/linux-libre/releases/${_srcname##*-}-gnu/linux-libre-${_srcname##*-}-gnu.tar.xz"{,.sign} @@ -38,27 +51,42 @@ source=( 0002-fix-Atmel-maXTouch-touchscreen-support.patch ) validpgpkeys=( - '474402C8C582DAFBE389C427BCB7CF877E7D47A7' # Alexandre Oliva - '65EEFE022108E2B708CBFCF7F9E712E59AF5F22A' # Daniel Micay - '6DB9C4B4F0D8C0DC432CF6E4227CA7C556B2BA78' # David P. - 'E240B57E2C4630BA768E2F26FC1B547C8D8172C8' # Levente Polyak + 474402C8C582DAFBE389C427BCB7CF877E7D47A7 # Alexandre Oliva + 65EEFE022108E2B708CBFCF7F9E712E59AF5F22A # Daniel Micay + 6DB9C4B4F0D8C0DC432CF6E4227CA7C556B2BA78 # David P. + E240B57E2C4630BA768E2F26FC1B547C8D8172C8 # Levente Polyak ) -sha512sums=('13be3762fffd74c63eeb23b0d34b994a3e5198bfdbda4f013b38f8d3edd24b9bbebe5a4bfde0f5191aa1cf2678e4517f3b5540a40b30ebc05da1f6708cbb98bb' +sha256sums=('d71785bdb694fefaa4f183e5dd2ffc453c179db6f9427cc37e1ed046f0073ccf' 'SKIP' - '8093255d5508830de397707ad492cdb90c205d8a2eebb3f9b5a2eb32a51493dbfaf27f8fb546faa1bee41b3632c635e9e24b702f54ad4a28ebb10c0b4a7cb196' + '4193aba41ae2eed56059b7fe917fa0b933573578b7a71f4e0fdb7a4487075170' 'SKIP' - '1bd6ae6b24bdabe56c37cc6fac7c6d43bcb2c62acaa8b80710482a94251528e91f6c85ab177f7a49fb7c3e591c64cc2976312e1ba9cd37c6139bd4f44ef1d53e' + '693d082ffc74dbe0a7ef1ad332206bd4c591c3ecf9895d58be37acddd7b85956' 'SKIP' - '13cb5bc42542e7b8bb104d5f68253f6609e463b6799800418af33eb0272cc269aaa36163c3e6f0aacbdaaa1d05e2827a4a7c4a08a029238439ed08b89c564bb3' + 'bfd4a7f61febe63c880534dcb7c31c5b932dde6acf991810b41a939a93535494' 'SKIP' - '7a3716bfe3b9f546da309c7492f3e08f8f506813afeb1c737a474c83313d5c313cf4582b65215c2cfce3b74d9d1021c96e8badafe8f6e5b01fe28d2b5c61ae78' + '6de8a8319271809ffdb072b68d53d155eef12438e6d04ff06a5a4db82c34fa8a' 'SKIP' - '267295aa0cea65684968420c68b32f1a66a22d018b9d2b2c1ef14267bcf4cb68aaf7099d073cbfefe6c25c8608bdcbbd45f7ac8893fdcecbf1e621abdfe9ecc1' + '13bd7a8d9ed6b6bc971e4cd162262c5a20448a83796af39ce394d827b0e5de74' 'SKIP' - 'db147db1f15f82a365275e9042a47617bb32d4bf9c25575d1151d478a90668b604c26ab415c5438c11a32777d2f63f7fc63ab9d61148b13751470a9971223896' - '02af4dd2a007e41db0c63822c8ab3b80b5d25646af1906dc85d0ad9bb8bbf5236f8e381d7f91cf99ed4b0978c50aee37cb9567cdeef65b7ec3d91b882852b1af' - 'b8fe56e14006ab866970ddbd501c054ae37186ddc065bb869cf7d18db8c0d455118d5bda3255fb66a0dde38b544655cfe9040ffe46e41d19830b47959b2fb168') - + 'a803e9d0a4312ba6f21b96d1326814b026bd241367692cbb45210dc62aa91a29' + '0376bd5efa31d4e2a9d52558777cebd9f0941df8e1adab916c868bf0c05f2fc3' + '351fd96be8cd5ebd0435c0a8a978673fc023e3b1026085e67f86d815b2285e25') +b2sums=('e3e753fed07258f34e2e44e1acd4be0c22a3c58a3ae4856b518a4f99358f5bf6e8f38e41f422d9a434b33b0d7ee972e93ac7d37c9734949d6db263afe4c4f47c' + 'SKIP' + '53cb120b0bc8bce90e19fce0a69d05ab3f69d07ce75976d2106e0edaf5699fb71f777b1913c1fc36075d9dc46d3f4bfa1f9e4f2e7901bae869c28d3642a0a93e' + 'SKIP' + 'c58931b56e8663cc42d12e3dab3783aa24ac6f349e987cf20cc40202845e634b0f7e81bc03d09a563dfd00da788628bf65c5c4e56812df016e8be6751021529f' + 'SKIP' + '73fee2ae5cb1ffd3e6584e56da86a8b1ff6c713aae54d77c0dab113890fc673dc5f300eb9ed93fb367b045ece8fa80304ff277fe61665eccf7b7ce24f0c045eb' + 'SKIP' + 'd02a1153a4285b32c774dca4560fe37907ccf30b8e487a681b717ed95ae9bed5988875c0a118938e5885ae9d2857e53a6f216b732b6fa3368e3c5fe08c86382c' + 'SKIP' + '580911af9431c066bbc072fd22d5e2ef65f12d8358cec5ff5a4f1b7deebb86cef6b5c1ad631f42350af72c51d44d2093c71f761234fb224a8b9dbb3b64b8201d' + 'SKIP' + '3be4fd80ce5eeea261ae279f30aa0d973aa59e7d4370635e8c3820613eb31514c432dbc996202d90e4f3da3200cadcd019f01d625f54d7e10f4f863e210cd3ca' + 'c2214154c36900e311531bfe68184f31639f5c50fed23bc3803a7f18439b7ff258552a39f02fed0ea92f10744e17a6c55cef0ef1a98187f978fe480fb3dddc14' + '0c7ceba7cd90087db3296610a07886f337910bad265a32c052d3a703e6eb8e53f355ab9948d72d366408d968d8ee7435084dd89bef5ed0b69355fd884c2cd468') + _replacesarchkernel=("${_replacesarchkernel[@]/\%/${pkgbase#linux-libre}}") _replacesoldkernels=("${_replacesoldkernels[@]/\%/${pkgbase#linux-libre}}") _replacesoldmodules=("${_replacesoldmodules[@]/\%/${pkgbase#linux-libre}}") @@ -82,7 +110,6 @@ prepare() { echo "Setting version..." sed -e "/^[-+]EXTRAVERSION =/s/= */= -gnu/" \ -i "../linux-hardened-$_srctag.patch" - scripts/setlocalversion --save-scmversion echo "-$pkgrel" > localversion.10-pkgrel echo "${pkgbase#linux-libre}" > localversion.20-pkgname @@ -90,6 +117,7 @@ prepare() { for src in "${source[@]}"; do src="${src%%::*}" src="${src##*/}" + src="${src%.zst}" [[ $src = *.patch ]] || continue echo "Applying patch $src..." patch -Np1 < "../$src" @@ -106,23 +134,39 @@ prepare() { build() { cd $_srcname - make htmldocs all + + make htmldocs & + local pid_docs=$! + + make all + wait "${pid_docs}" } _package() { pkgdesc="The $pkgdesc kernel and modules" - depends=(coreutils kmod initramfs) - optdepends=('wireless-regdb: to set the correct wireless channels of your country' - 'linux-libre-firmware: firmware images needed for some devices' - 'usbctl: deny_new_usb control') - provides=(VIRTUALBOX-GUEST-MODULES WIREGUARD-MODULE) + depends=( + coreutils + initramfs + kmod + ) + optdepends=( + 'wireless-regdb: to set the correct wireless channels of your country' + 'linux-libre-firmware: firmware images needed for some devices' + 'usbctl: deny_new_usb control' + ) + provides=( + KSMBD-MODULE + VIRTUALBOX-GUEST-MODULES + WIREGUARD-MODULE + ) + replaces=( + ) provides+=("${_replacesarchkernel[@]/%/=${pkgver%.*}}" "LINUX-ABI_VERSION=${pkgver%.*}") conflicts=("${_replacesarchkernel[@]}" "${_replacesoldkernels[@]}" "${_replacesoldmodules[@]}") replaces=("${_replacesarchkernel[@]}" "${_replacesoldkernels[@]}" "${_replacesoldmodules[@]}") cd $_srcname - local kernver="$( Date: Dec 26 2023 23:36:58 +0000 Subject: [PATCH 6/73] updpkg: libre/linux-libre 6.6.8-1 Signed-off-by: David P. --- diff --git a/libre/linux-libre/0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch b/libre/linux-libre/0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch index ce00410..200467d 100644 --- a/libre/linux-libre/0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch +++ b/libre/linux-libre/0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch @@ -1,4 +1,4 @@ -From 59f2f4ec4f5168b6c8945d59b9859d8b2321882b Mon Sep 17 00:00:00 2001 +From 5356bd2edba31be92ea71b8fa2167e2bc3b60fbc Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" Date: Mon, 16 Sep 2019 04:53:20 +0200 Subject: [PATCH 1/2] ZEN: Add sysctl and CONFIG to disallow unprivileged @@ -36,10 +36,10 @@ index 45f09bec02c4..87b20e2ee274 100644 { return &init_user_ns; diff --git a/init/Kconfig b/init/Kconfig -index c88bb30a8b0b..32ba96d94028 100644 +index 6d35728b94b2..0562c8ca7b30 100644 --- a/init/Kconfig +++ b/init/Kconfig -@@ -1249,6 +1249,22 @@ config USER_NS +@@ -1226,6 +1226,22 @@ config USER_NS If unsure, say N. @@ -63,12 +63,12 @@ index c88bb30a8b0b..32ba96d94028 100644 bool "PID Namespaces" default y diff --git a/kernel/fork.c b/kernel/fork.c -index ea332319dffe..349945168239 100644 +index 177ce7438db6..6ecece1407fc 100644 --- a/kernel/fork.c +++ b/kernel/fork.c -@@ -98,6 +98,10 @@ - #include - #include +@@ -100,6 +100,10 @@ + #include + #include +#ifdef CONFIG_USER_NS +#include @@ -77,7 +77,7 @@ index ea332319dffe..349945168239 100644 #include #include #include -@@ -2032,6 +2036,10 @@ static __latent_entropy struct task_struct *copy_process( +@@ -2260,6 +2264,10 @@ __latent_entropy struct task_struct *copy_process( if ((clone_flags & (CLONE_NEWUSER|CLONE_FS)) == (CLONE_NEWUSER|CLONE_FS)) return ERR_PTR(-EINVAL); @@ -88,7 +88,7 @@ index ea332319dffe..349945168239 100644 /* * Thread groups must share signals as well, and detached threads * can only be started up within the thread group. -@@ -3182,6 +3190,12 @@ int ksys_unshare(unsigned long unshare_flags) +@@ -3413,6 +3421,12 @@ int ksys_unshare(unsigned long unshare_flags) if (unshare_flags & CLONE_NEWNS) unshare_flags |= CLONE_FS; @@ -102,10 +102,10 @@ index ea332319dffe..349945168239 100644 if (err) goto bad_unshare_out; diff --git a/kernel/sysctl.c b/kernel/sysctl.c -index 1c240d2c99bc..2971581a27e2 100644 +index 354a2d294f52..5bc5605e7cdb 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c -@@ -81,6 +81,9 @@ +@@ -80,6 +80,9 @@ #ifdef CONFIG_RT_MUTEXES #include #endif @@ -115,7 +115,7 @@ index 1c240d2c99bc..2971581a27e2 100644 /* shared constants to be used in various sysctls */ const int sysctl_vals[] = { 0, 1, 2, 3, 4, 100, 200, 1000, 3000, INT_MAX, 65535, -1 }; -@@ -1645,6 +1648,15 @@ static struct ctl_table kern_table[] = { +@@ -1623,6 +1626,15 @@ static struct ctl_table kern_table[] = { .mode = 0644, .proc_handler = proc_dointvec, }, @@ -150,5 +150,5 @@ index 1d8e47bed3f1..fec01d016a35 100644 static DEFINE_MUTEX(userns_state_mutex); -- -2.40.1 +2.43.0 diff --git a/libre/linux-libre/0002-drivers-firmware-skip-simpledrm-if-nvidia-drm.modese.patch b/libre/linux-libre/0002-drivers-firmware-skip-simpledrm-if-nvidia-drm.modese.patch new file mode 100644 index 0000000..3d2d12a --- /dev/null +++ b/libre/linux-libre/0002-drivers-firmware-skip-simpledrm-if-nvidia-drm.modese.patch @@ -0,0 +1,89 @@ +From 71702f17b7826fda819d56e329680eb655344fcb Mon Sep 17 00:00:00 2001 +From: Javier Martinez Canillas +Date: Thu, 19 May 2022 14:40:07 +0200 +Subject: [PATCH 2/2] drivers/firmware: skip simpledrm if nvidia-drm.modeset=1 + is set + +The Nvidia proprietary driver has some bugs that leads to issues if used +with the simpledrm driver. The most noticeable is that does not register +an emulated fbdev device. + +It just relies on a fbdev to be registered by another driver, that could +be that could be attached to the framebuffer console. On UEFI machines, +this is the efifb driver. + +This means that disabling the efifb driver will cause virtual consoles to +not be present in the system when using the Nvidia driver. Legacy BIOS is +not affected just because fbcon is not used there, but instead vgacon. + +Unless a VGA mode is specified using the vga= kernel command line option, +in that case the vesafb driver is used instead and its fbdev attached to +the fbcon. + +This is a problem because with CONFIG_SYSFB_SIMPLEFB=y, the sysfb platform +code attempts to register a "simple-framebuffer" platform device (that is +matched against simpledrm) and only registers either an "efi-framebuffer" +or "vesa-framebuffer" if this fails to be registered due the video modes +not being compatible. + +The Nvidia driver relying on another driver to register the fbdev is quite +fragile, since it can't really assume those will stick around. For example +there are patches posted to remove the EFI and VESA platform devices once +a real DRM or fbdev driver probes. + +But in any case, moving to a simpledrm + emulated fbdev only breaks this +assumption and causes users to not have VT if the Nvidia driver is used. + +So to prevent this, let's add a workaround and make the sysfb to skip the +"simple-framebuffer" registration when nvidia-drm.modeset=1 option is set. + +This is quite horrible, but honestly I can't think of any other approach. + +For this to work, the CONFIG_FB_EFI and CONFIG_FB_VESA config options must +be enabled besides CONFIG_DRM_SIMPLEDRM. + +Signed-off-by: Javier Martinez Canillas +Cherry-picked-for: https://bugs.archlinux.org/task/73720 +--- + drivers/firmware/sysfb.c | 18 +++++++++++++++++- + 1 file changed, 17 insertions(+), 1 deletion(-) + +diff --git a/drivers/firmware/sysfb.c b/drivers/firmware/sysfb.c +index 82fcfd29bc4d..17b7e096b682 100644 +--- a/drivers/firmware/sysfb.c ++++ b/drivers/firmware/sysfb.c +@@ -34,6 +34,22 @@ + #include + #include + ++static int skip_simpledrm; ++ ++static int __init simpledrm_disable(char *opt) ++{ ++ if (!opt) ++ return -EINVAL; ++ ++ get_option(&opt, &skip_simpledrm); ++ ++ if (skip_simpledrm) ++ pr_info("The simpledrm driver will not be probed\n"); ++ ++ return 0; ++} ++early_param("nvidia-drm.modeset", simpledrm_disable); ++ + static struct platform_device *pd; + static DEFINE_MUTEX(disable_lock); + static bool disabled; +@@ -85,7 +101,7 @@ static __init int sysfb_init(void) + + /* try to create a simple-framebuffer device */ + compatible = sysfb_parse_mode(si, &mode); +- if (compatible) { ++ if (compatible && !skip_simpledrm) { + pd = sysfb_create_simplefb(si, &mode); + if (!IS_ERR(pd)) + goto unlock_mutex; +-- +2.43.0 + diff --git a/libre/linux-libre/0002-drm-amd-display-Have-Payload-Properly-Created-After-.patch b/libre/linux-libre/0002-drm-amd-display-Have-Payload-Properly-Created-After-.patch deleted file mode 100644 index 73b1a4a..0000000 --- a/libre/linux-libre/0002-drm-amd-display-Have-Payload-Properly-Created-After-.patch +++ /dev/null @@ -1,50 +0,0 @@ -From 2fd9916a465e3b62452ac4346def013c3d8698a4 Mon Sep 17 00:00:00 2001 -From: Fangzhi Zuo -Date: Wed, 17 May 2023 19:37:13 +0800 -Subject: [PATCH 2/2] drm/amd/display: Have Payload Properly Created After - Resume - -At drm suspend sequence, MST dc_sink is removed. When commit cached -MST stream back in drm resume sequence, the MST stream payload is not -properly created and added into the payload table. After resume, topology -change is reprobed by removing existing streams first. That leads to -no payload is found in the existing payload table as below error -"[drm] ERROR No payload for [MST PORT:] found in mst state" - -1. In encoder .atomic_check routine, remove check existance of dc_sink -2. Bypass MST by checking existence of MST root port. dc_link_type cannot -differentiate MST port before topology is rediscovered. - -Reviewed-by: Wayne Lin -Acked-by: Tom Chung -Signed-off-by: Fangzhi Zuo -(cherry picked from https://patchwork.freedesktop.org/patch/537553/) ---- - drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c -index f54d670ab3ab..0695c7c3d489 100644 ---- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c -+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c -@@ -2813,7 +2813,7 @@ static int dm_resume(void *handle) - * this is the case when traversing through already created - * MST connectors, should be skipped - */ -- if (aconnector->dc_link->type == dc_connection_mst_branch) -+ if (aconnector && aconnector->mst_root) - continue; - - mutex_lock(&aconnector->hpd_lock); -@@ -6717,7 +6717,7 @@ static int dm_encoder_helper_atomic_check(struct drm_encoder *encoder, - int clock, bpp = 0; - bool is_y420 = false; - -- if (!aconnector->mst_output_port || !aconnector->dc_sink) -+ if (!aconnector->mst_output_port) - return 0; - - mst_port = aconnector->mst_output_port; --- -2.40.1 - diff --git a/libre/linux-libre/0005-set-default-cubietruck-led-triggers.patch b/libre/linux-libre/0005-set-default-cubietruck-led-triggers.patch deleted file mode 100644 index 76796e2..0000000 --- a/libre/linux-libre/0005-set-default-cubietruck-led-triggers.patch +++ /dev/null @@ -1,33 +0,0 @@ -From 3a5136fec1bdb0f7a5ca614dab47c55c3177d26a Mon Sep 17 00:00:00 2001 -From: Kevin Mihelich -Date: Sat, 14 Feb 2015 12:32:27 +0100 -Subject: [PATCH 5/7] set default cubietruck led triggers - -Signed-off-by: Kevin Mihelich ---- - arch/arm/boot/dts/sun7i-a20-cubietruck.dts | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts -index 52160e368304..21c8ef94c756 100644 ---- a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts -+++ b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts -@@ -78,6 +78,7 @@ leds { - led-0 { - label = "cubietruck:blue:usr"; - gpios = <&pio 7 21 GPIO_ACTIVE_HIGH>; -+ linux,default-trigger = "heartbeat"; - }; - - led-1 { -@@ -93,6 +94,7 @@ led-2 { - led-3 { - label = "cubietruck:green:usr"; - gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; -+ linux,default-trigger = "mmc0"; - }; - }; - --- -2.37.0 - diff --git a/libre/linux-libre/0006-exynos4412-odroid-set-higher-minimum-buck2-regulator.patch b/libre/linux-libre/0006-exynos4412-odroid-set-higher-minimum-buck2-regulator.patch deleted file mode 100644 index 4d19cce..0000000 --- a/libre/linux-libre/0006-exynos4412-odroid-set-higher-minimum-buck2-regulator.patch +++ /dev/null @@ -1,30 +0,0 @@ -From c87c82c5a03baf1202d22567e4f6d113cfe17bad Mon Sep 17 00:00:00 2001 -From: Kevin Mihelich -Date: Thu, 11 Aug 2016 00:42:37 -0600 -Subject: [PATCH 6/7] exynos4412-odroid: set higher minimum buck2 regulator - voltage - -Set a higher minimum voltage to help reboot issue. -http://www.spinics.net/lists/linux-samsung-soc/msg54434.html - -Signed-off-by: Kevin Mihelich ---- - arch/arm/boot/dts/exynos4412-odroid-common.dtsi | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/arch/arm/boot/dts/exynos4412-odroid-common.dtsi b/arch/arm/boot/dts/exynos4412-odroid-common.dtsi -index e7669b9e9edb..a1b4e182717f 100644 ---- a/arch/arm/boot/dts/exynos4412-odroid-common.dtsi -+++ b/arch/arm/boot/dts/exynos4412-odroid-common.dtsi -@@ -436,7 +436,7 @@ buck1_reg: BUCK1 { - - buck2_reg: BUCK2 { - regulator-name = "VDD_ARM"; -- regulator-min-microvolt = <900000>; -+ regulator-min-microvolt = <1100000>; - regulator-max-microvolt = <1350000>; - regulator-always-on; - regulator-boot-on; --- -2.37.0 - diff --git a/libre/linux-libre/0007-USB-Armory-MkII-support.patch b/libre/linux-libre/0007-USB-Armory-MkII-support.patch deleted file mode 100644 index 3d52336..0000000 --- a/libre/linux-libre/0007-USB-Armory-MkII-support.patch +++ /dev/null @@ -1,561 +0,0 @@ -From 23e406e404f935be33c917ca7772466dd52582c3 Mon Sep 17 00:00:00 2001 -From: Kevin Mihelich -Date: Sun, 11 Aug 2019 12:34:17 -0600 -Subject: [PATCH 7/7] USB Armory MkII support - ---- - arch/arm/boot/dts/Makefile | 2 + - arch/arm/boot/dts/imx6ul-usbarmory.dts | 256 +++++++++++++++++++++++ - arch/arm/boot/dts/imx6ull-usbarmory.dts | 257 ++++++++++++++++++++++++ - 3 files changed, 515 insertions(+) - create mode 100644 arch/arm/boot/dts/imx6ul-usbarmory.dts - create mode 100644 arch/arm/boot/dts/imx6ull-usbarmory.dts - -diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile -index 05d8aef6e5d2..c6c76fa5047f 100644 ---- a/arch/arm/boot/dts/Makefile -+++ b/arch/arm/boot/dts/Makefile -@@ -722,6 +722,7 @@ dtb-$(CONFIG_SOC_IMX6UL) += \ - imx6ul-tx6ul-0010.dtb \ - imx6ul-tx6ul-0011.dtb \ - imx6ul-tx6ul-mainboard.dtb \ -+ imx6ul-usbarmory.dtb \ - imx6ull-14x14-evk.dtb \ - imx6ull-colibri-aster.dtb \ - imx6ull-colibri-emmc-aster.dtb \ -@@ -745,6 +746,7 @@ dtb-$(CONFIG_SOC_IMX6UL) += \ - imx6ull-phytec-tauri-nand.dtb \ - imx6ull-tqma6ull2-mba6ulx.dtb \ - imx6ull-tqma6ull2l-mba6ulx.dtb \ -+ imx6ull-usbarmory.dtb \ - imx6ulz-14x14-evk.dtb \ - imx6ulz-bsh-smm-m2.dtb - dtb-$(CONFIG_SOC_IMX7D) += \ -diff --git a/arch/arm/boot/dts/imx6ul-usbarmory.dts b/arch/arm/boot/dts/imx6ul-usbarmory.dts -new file mode 100644 -index 000000000000..1fdcd6f611d5 ---- /dev/null -+++ b/arch/arm/boot/dts/imx6ul-usbarmory.dts -@@ -0,0 +1,256 @@ -+/* -+ * USB armory Mk II device tree file -+ * https://github.com/inversepath/usbarmory -+ * -+ * Copyright (C) 2019, F-Secure Corporation -+ * Andrej Rosano -+ * -+ * This file is dual-licensed: you can use it either under the terms -+ * of the GPL or the X11 license, at your option. Note that this dual -+ * licensing only applies to this file, and not this project as a -+ * whole. -+ * -+ * a) This file is free software; you can redistribute it and/or -+ * modify it under the terms of the GNU General Public License as -+ * published by the Free Software Foundation; either version 2 of the -+ * License, or (at your option) any later version. -+ * -+ * This file is distributed in the hope that it will be useful, -+ * but WITHOUT ANY WARRANTY; without even the implied warranty of -+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -+ * GNU General Public License for more details. -+ * -+ * Or, alternatively, -+ * -+ * b) Permission is hereby granted, free of charge, to any person -+ * obtaining a copy of this software and associated documentation -+ * files (the "Software"), to deal in the Software without -+ * restriction, including without limitation the rights to use, -+ * copy, modify, merge, publish, distribute, sublicense, and/or -+ * sell copies of the Software, and to permit persons to whom the -+ * Software is furnished to do so, subject to the following -+ * conditions: -+ * -+ * The above copyright notice and this permission notice shall be -+ * included in all copies or substantial portions of the Software. -+ * -+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -+ * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -+ * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -+ * OTHER DEALINGS IN THE SOFTWARE. -+ */ -+ -+/dts-v1/; -+ -+#include "imx6ul.dtsi" -+ -+/ { -+ model = "F-Secure USB armory Mk II"; -+ compatible = "inversepath,imx6ul-usbarmory-mkII", "fsl,imx6ul"; -+ -+ chosen { -+ stdout-path = &uart2; -+ }; -+ -+ memory { -+ device_type = "memory"; -+ reg = <0x80000000 0x20000000>; -+ }; -+ -+ leds { -+ compatible = "gpio-leds"; -+ pinctrl-names = "default"; -+ pinctrl-0 = <&pinctrl_led>; -+ -+ led-white { -+ label = "LED_WHITE"; -+ gpios = <&gpio4 21 GPIO_ACTIVE_LOW>; -+ linux,default-trigger = "heartbeat"; -+ }; -+ -+ led-blue { -+ label = "LED_BLUE"; -+ gpios = <&gpio4 22 GPIO_ACTIVE_LOW>; -+ }; -+ }; -+ -+ regulators { -+ compatible = "simple-bus"; -+ #address-cells = <1>; -+ #size-cells = <0>; -+ -+ reg_sd1_vmmc: sd1_regulator { -+ compatible = "regulator-fixed"; -+ regulator-name = "VSD_3V3"; -+ regulator-min-microvolt = <3300000>; -+ regulator-max-microvolt = <3300000>; -+ }; -+ }; -+}; -+ -+&uart1 { -+ pinctrl-names = "default"; -+ pinctrl-0 = <&pinctrl_bluetooth>; -+ uart-has-rtscts; -+ status = "okay"; -+}; -+ -+&uart2 { -+ pinctrl-names = "default"; -+ pinctrl-0 = <&pinctrl_uart2>; -+ status = "okay"; -+}; -+ -+&usdhc1 { -+ pinctrl-names = "default"; -+ pinctrl-0 = <&pinctrl_usdhc1>; -+ no-1-8-v; -+ keep-power-in-suspend; -+ wakeup-source; -+ status = "okay"; -+}; -+ -+&usdhc2 { -+ pinctrl-names = "default"; -+ pinctrl-0 = <&pinctrl_usdhc2>; -+ non-removable; -+ status = "okay"; -+}; -+ -+&i2c1 { -+ pinctrl-0 = <&pinctrl_i2c1>; -+ status = "okay"; -+}; -+ -+&iomuxc { -+ pinctrl_uart2: uart2grp { -+ fsl,pins = < -+ MX6UL_PAD_UART2_TX_DATA__UART2_DCE_TX 0x1b0b1 -+ MX6UL_PAD_UART2_RX_DATA__UART2_DCE_RX 0x1b0b1 -+ >; -+ }; -+ -+ pinctrl_bluetooth: uart1grp { -+ fsl,pins = < -+ MX6UL_PAD_UART1_TX_DATA__UART1_DCE_TX 0x1b0b0 /* BT_UART_TX */ -+ MX6UL_PAD_UART1_RX_DATA__UART1_DCE_RX 0x1b0b0 /* BT_UART_RX */ -+ MX6UL_PAD_UART1_CTS_B__UART1_DCE_CTS 0x1b0b0 /* BT_UART_CTS */ -+ MX6UL_PAD_GPIO1_IO07__UART1_DCE_RTS 0x130b0 /* BT_UART_RTS */ -+ MX6UL_PAD_UART3_TX_DATA__GPIO1_IO24 0x1f020 /* BT_UART_DSR */ -+ MX6UL_PAD_UART3_RX_DATA__GPIO1_IO25 0x10020 /* BT_UART_DTR */ -+ MX6UL_PAD_GPIO1_IO04__GPIO1_IO04 0x1f020 /* BT_SWDCLK */ -+ MX6UL_PAD_GPIO1_IO05__GPIO1_IO05 0x1f020 /* BT_SWDIO */ -+ MX6UL_PAD_GPIO1_IO09__GPIO1_IO09 0x1f020 /* BT_RESET */ -+ MX6UL_PAD_UART3_RTS_B__GPIO1_IO27 0x1f020 /* BT_SWITCH_1 */ -+ MX6UL_PAD_UART3_CTS_B__GPIO1_IO26 0x1f020 /* BT_SWITCH_2 */ -+ >; -+ }; -+ -+ pinctrl_i2c1: i2c1grp { -+ fsl,pins = < -+ MX6UL_PAD_GPIO1_IO02__I2C1_SCL 0x4001b8b0 -+ MX6UL_PAD_GPIO1_IO03__I2C1_SDA 0x4001b8b0 -+ >; -+ }; -+ -+ pinctrl_led: ledgrp { -+ fsl,pins = < -+ MX6UL_PAD_CSI_DATA06__GPIO4_IO27 0x1f020 -+ MX6UL_PAD_CSI_DATA07__GPIO4_IO28 0x1f020 -+ >; -+ }; -+ -+ pinctrl_usdhc1: usdhc1grp { -+ fsl,pins = < -+ MX6UL_PAD_SD1_CMD__USDHC1_CMD 0x1f019 -+ MX6UL_PAD_SD1_CLK__USDHC1_CLK 0x1f019 -+ MX6UL_PAD_SD1_DATA0__USDHC1_DATA0 0x1f019 -+ MX6UL_PAD_SD1_DATA1__USDHC1_DATA1 0x1f019 -+ MX6UL_PAD_SD1_DATA2__USDHC1_DATA2 0x1f019 -+ MX6UL_PAD_SD1_DATA3__USDHC1_DATA3 0x1f019 -+ >; -+ }; -+ -+ pinctrl_usdhc2: usdhc2grp { -+ fsl,pins = < -+ MX6UL_PAD_NAND_RE_B__USDHC2_CLK 0x10071 -+ MX6UL_PAD_NAND_WE_B__USDHC2_CMD 0x17059 -+ MX6UL_PAD_NAND_DATA00__USDHC2_DATA0 0x17059 -+ MX6UL_PAD_NAND_DATA01__USDHC2_DATA1 0x17059 -+ MX6UL_PAD_NAND_DATA02__USDHC2_DATA2 0x17059 -+ MX6UL_PAD_NAND_DATA03__USDHC2_DATA3 0x17059 -+ MX6UL_PAD_NAND_DATA04__USDHC2_DATA4 0x17059 -+ MX6UL_PAD_NAND_DATA05__USDHC2_DATA5 0x17059 -+ MX6UL_PAD_NAND_DATA06__USDHC2_DATA6 0x17059 -+ MX6UL_PAD_NAND_DATA07__USDHC2_DATA7 0x17059 -+ >; -+ }; -+}; -+ -+&aips2 { -+ crypto: crypto@2140000 { -+ compatible = "fsl,imx6ul-caam", "fsl,sec-v4.0"; -+ #address-cells = <1>; -+ #size-cells = <1>; -+ reg = <0x2140000 0x3c000>; -+ ranges = <0 0x2140000 0x3c000>; -+ interrupts = ; -+ clocks = <&clks IMX6UL_CLK_CAAM_IPG>, <&clks IMX6UL_CLK_CAAM_ACLK>, -+ <&clks IMX6UL_CLK_CAAM_MEM>; -+ clock-names = "ipg", "aclk", "mem"; -+ -+ sec_jr0: jr@1000 { -+ compatible = "fsl,sec-v4.0-job-ring"; -+ reg = <0x1000 0x1000>; -+ interrupts = ; -+ }; -+ -+ sec_jr1: jr@2000 { -+ compatible = "fsl,sec-v4.0-job-ring"; -+ reg = <0x2000 0x1000>; -+ interrupts = ; -+ }; -+ sec_jr2: jr@3000 { -+ compatible = "fsl,sec-v4.0-job-ring"; -+ reg = <0x3000 0x1000>; -+ interrupts = ; -+ }; -+ }; -+}; -+ -+/ { -+ soc { -+ caam_sm: caam-sm@00100000 { -+ compatible = "fsl,imx7d-caam-sm", "fsl,imx6q-caam-sm"; -+ reg = <0x00100000 0x3fff>; -+ }; -+ -+ irq_sec_vio: caam_secvio { -+ compatible = "fsl,imx7d-caam-secvio", "fsl,imx6q-caam-secvio"; -+ interrupts = ; -+ }; -+ }; -+ -+ caam_keyblob: caam-keyblob { -+ compatible = "fsl,sec-v4.0-keyblob"; -+ status = "okay"; -+ }; -+}; -+ -+&usbotg1 { -+ dr_mode = "peripheral"; -+ disable-over-current; -+ tpl-support; -+ status = "okay"; -+}; -+ -+&usbotg2 { -+ dr_mode = "host"; -+ disable-over-current; -+ tpl-support; -+ status = "okay"; -+}; -diff --git a/arch/arm/boot/dts/imx6ull-usbarmory.dts b/arch/arm/boot/dts/imx6ull-usbarmory.dts -new file mode 100644 -index 000000000000..f74d0296d5f6 ---- /dev/null -+++ b/arch/arm/boot/dts/imx6ull-usbarmory.dts -@@ -0,0 +1,257 @@ -+/* -+ * USB armory Mk II device tree file -+ * https://github.com/inversepath/usbarmory -+ * -+ * Copyright (C) 2019, F-Secure Corporation -+ * Andrej Rosano -+ * -+ * This file is dual-licensed: you can use it either under the terms -+ * of the GPL or the X11 license, at your option. Note that this dual -+ * licensing only applies to this file, and not this project as a -+ * whole. -+ * -+ * a) This file is free software; you can redistribute it and/or -+ * modify it under the terms of the GNU General Public License as -+ * published by the Free Software Foundation; either version 2 of the -+ * License, or (at your option) any later version. -+ * -+ * This file is distributed in the hope that it will be useful, -+ * but WITHOUT ANY WARRANTY; without even the implied warranty of -+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -+ * GNU General Public License for more details. -+ * -+ * Or, alternatively, -+ * -+ * b) Permission is hereby granted, free of charge, to any person -+ * obtaining a copy of this software and associated documentation -+ * files (the "Software"), to deal in the Software without -+ * restriction, including without limitation the rights to use, -+ * copy, modify, merge, publish, distribute, sublicense, and/or -+ * sell copies of the Software, and to permit persons to whom the -+ * Software is furnished to do so, subject to the following -+ * conditions: -+ * -+ * The above copyright notice and this permission notice shall be -+ * included in all copies or substantial portions of the Software. -+ * -+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -+ * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -+ * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -+ * OTHER DEALINGS IN THE SOFTWARE. -+ */ -+ -+/dts-v1/; -+ -+#include "imx6ul.dtsi" -+ -+/ { -+ model = "F-Secure USB armory Mk II"; -+ compatible = "inversepath,imx6ull-usbarmory-mkII", "fsl,imx6ull"; -+ -+ chosen { -+ stdout-path = &uart2; -+ }; -+ -+ memory { -+ device_type = "memory"; -+ reg = <0x80000000 0x20000000>; -+ }; -+ -+ leds { -+ compatible = "gpio-leds"; -+ pinctrl-names = "default"; -+ pinctrl-0 = <&pinctrl_led>; -+ -+ led-white { -+ label = "LED_WHITE"; -+ gpios = <&gpio4 21 GPIO_ACTIVE_LOW>; -+ linux,default-trigger = "heartbeat"; -+ }; -+ -+ led-blue { -+ label = "LED_BLUE"; -+ gpios = <&gpio4 22 GPIO_ACTIVE_LOW>; -+ }; -+ }; -+ -+ regulators { -+ compatible = "simple-bus"; -+ #address-cells = <1>; -+ #size-cells = <0>; -+ -+ reg_sd1_vmmc: sd1_regulator { -+ compatible = "regulator-fixed"; -+ regulator-name = "VSD_3V3"; -+ regulator-min-microvolt = <3300000>; -+ regulator-max-microvolt = <3300000>; -+ }; -+ }; -+}; -+ -+/* Delete CAAM node in AIPS-2 (i.MX6UL specific) */ -+/delete-node/ &crypto; -+ -+&cpu0 { -+ operating-points = < -+ /* kHz uV */ -+ 900000 1275000 -+ 792000 1225000 -+ 528000 1175000 -+ 396000 1025000 -+ 198000 950000 -+ >; -+ fsl,soc-operating-points = < -+ /* KHz uV */ -+ 900000 1250000 -+ 792000 1175000 -+ 528000 1175000 -+ 396000 1175000 -+ 198000 1175000 -+ >; -+}; -+ -+&uart1 { -+ pinctrl-names = "default"; -+ pinctrl-0 = <&pinctrl_bluetooth>; -+ uart-has-rtscts; -+ status = "okay"; -+}; -+ -+&uart2 { -+ pinctrl-names = "default"; -+ pinctrl-0 = <&pinctrl_uart2>; -+ status = "okay"; -+}; -+ -+&usdhc1 { -+ pinctrl-names = "default"; -+ pinctrl-0 = <&pinctrl_usdhc1>; -+ no-1-8-v; -+ keep-power-in-suspend; -+ wakeup-source; -+ status = "okay"; -+}; -+ -+&usdhc2 { -+ pinctrl-names = "default"; -+ pinctrl-0 = <&pinctrl_usdhc2>; -+ non-removable; -+ status = "okay"; -+}; -+ -+&i2c1 { -+ pinctrl-0 = <&pinctrl_i2c1>; -+ status = "okay"; -+}; -+ -+&iomuxc { -+ pinctrl_uart2: uart2grp { -+ fsl,pins = < -+ MX6UL_PAD_UART2_TX_DATA__UART2_DCE_TX 0x1b0b1 -+ MX6UL_PAD_UART2_RX_DATA__UART2_DCE_RX 0x1b0b1 -+ >; -+ }; -+ -+ pinctrl_bluetooth: uart1grp { -+ fsl,pins = < -+ MX6UL_PAD_UART1_TX_DATA__UART1_DCE_TX 0x1b0b0 /* BT_UART_TX */ -+ MX6UL_PAD_UART1_RX_DATA__UART1_DCE_RX 0x1b0b0 /* BT_UART_RX */ -+ MX6UL_PAD_UART1_CTS_B__UART1_DCE_CTS 0x1b0b0 /* BT_UART_CTS */ -+ MX6UL_PAD_GPIO1_IO07__UART1_DCE_RTS 0x130b0 /* BT_UART_RTS */ -+ MX6UL_PAD_UART3_TX_DATA__GPIO1_IO24 0x1f020 /* BT_UART_DSR */ -+ MX6UL_PAD_UART3_RX_DATA__GPIO1_IO25 0x10020 /* BT_UART_DTR */ -+ MX6UL_PAD_GPIO1_IO04__GPIO1_IO04 0x1f020 /* BT_SWDCLK */ -+ MX6UL_PAD_GPIO1_IO05__GPIO1_IO05 0x1f020 /* BT_SWDIO */ -+ MX6UL_PAD_GPIO1_IO09__GPIO1_IO09 0x1f020 /* BT_RESET */ -+ MX6UL_PAD_UART3_RTS_B__GPIO1_IO27 0x1f020 /* BT_SWITCH_1 */ -+ MX6UL_PAD_UART3_CTS_B__GPIO1_IO26 0x1f020 /* BT_SWITCH_2 */ -+ >; -+ }; -+ -+ pinctrl_i2c1: i2c1grp { -+ fsl,pins = < -+ MX6UL_PAD_GPIO1_IO02__I2C1_SCL 0x4001b8b0 -+ MX6UL_PAD_GPIO1_IO03__I2C1_SDA 0x4001b8b0 -+ >; -+ }; -+ -+ pinctrl_led: ledgrp { -+ fsl,pins = < -+ MX6UL_PAD_CSI_DATA06__GPIO4_IO27 0x1f020 -+ MX6UL_PAD_CSI_DATA07__GPIO4_IO28 0x1f020 -+ >; -+ }; -+ -+ pinctrl_usdhc1: usdhc1grp { -+ fsl,pins = < -+ MX6UL_PAD_SD1_CMD__USDHC1_CMD 0x1f019 -+ MX6UL_PAD_SD1_CLK__USDHC1_CLK 0x1f019 -+ MX6UL_PAD_SD1_DATA0__USDHC1_DATA0 0x1f019 -+ MX6UL_PAD_SD1_DATA1__USDHC1_DATA1 0x1f019 -+ MX6UL_PAD_SD1_DATA2__USDHC1_DATA2 0x1f019 -+ MX6UL_PAD_SD1_DATA3__USDHC1_DATA3 0x1f019 -+ >; -+ }; -+ -+ pinctrl_usdhc2: usdhc2grp { -+ fsl,pins = < -+ MX6UL_PAD_NAND_RE_B__USDHC2_CLK 0x10071 -+ MX6UL_PAD_NAND_WE_B__USDHC2_CMD 0x17059 -+ MX6UL_PAD_NAND_DATA00__USDHC2_DATA0 0x17059 -+ MX6UL_PAD_NAND_DATA01__USDHC2_DATA1 0x17059 -+ MX6UL_PAD_NAND_DATA02__USDHC2_DATA2 0x17059 -+ MX6UL_PAD_NAND_DATA03__USDHC2_DATA3 0x17059 -+ MX6UL_PAD_NAND_DATA04__USDHC2_DATA4 0x17059 -+ MX6UL_PAD_NAND_DATA05__USDHC2_DATA5 0x17059 -+ MX6UL_PAD_NAND_DATA06__USDHC2_DATA6 0x17059 -+ MX6UL_PAD_NAND_DATA07__USDHC2_DATA7 0x17059 -+ >; -+ }; -+}; -+ -+/ { -+ soc { -+ aips3: aips-bus@02200000 { -+ compatible = "fsl,aips-bus", "simple-bus"; -+ #address-cells = <1>; -+ #size-cells = <1>; -+ reg = <0x02200000 0x100000>; -+ ranges; -+ -+ dcp: dcp@02280000 { -+ compatible = "fsl,imx6ull-dcp", "fsl,imx6sl-dcp", "fsl,imx28-dcp"; -+ reg = <0x02280000 0x4000>; -+ interrupts = , -+ , -+ ; -+ clocks = <&clks IMX6ULL_CLK_DCP_CLK>; -+ clock-names = "dcp"; -+ }; -+ -+ rngb: rngb@02284000 { -+ compatible = "fsl,imx6sl-rng", "fsl,imx25-rngb", "fsl,imx-rng", "imx-rng"; -+ reg = <0x02284000 0x4000>; -+ interrupts = ; -+ clocks = <&clks IMX6UL_CLK_DUMMY>; -+ }; -+ }; -+ }; -+}; -+ -+&usbotg1 { -+ dr_mode = "peripheral"; -+ disable-over-current; -+ tpl-support; -+ status = "okay"; -+}; -+ -+&usbotg2 { -+ dr_mode = "host"; -+ disable-over-current; -+ tpl-support; -+ status = "okay"; -+}; --- -2.37.0 - diff --git a/libre/linux-libre/PKGBUILD b/libre/linux-libre/PKGBUILD index a06752f..bc71aec 100644 --- a/libre/linux-libre/PKGBUILD +++ b/libre/linux-libre/PKGBUILD @@ -14,11 +14,9 @@ _replacesoldkernels=() # '%' gets replaced with kernel suffix _replacesoldmodules=() # '%' gets replaced with kernel suffix pkgbase=linux-libre -pkgver=6.3.3 +pkgver=6.6.8 pkgrel=1 pkgdesc='Linux-libre' -rcnver=5.18.12 -rcnrel=armv7-x8 url='https://linux-libre.fsfla.org/' arch=(i686 x86_64 armv7h) license=(GPL2) @@ -26,10 +24,10 @@ makedepends=( bc cpio gettext - git libelf pahole perl + python tar xz @@ -38,18 +36,17 @@ makedepends=( imagemagick python-sphinx texlive-latexextra - xmlto ) makedepends_armv7h=(uboot-tools vboot-utils dtc) # required by linux-libre-chromebook options=('!strip') -_srcname=linux-6.3 +_srcname=linux-6.6 source=( "https://linux-libre.fsfla.org/pub/linux-libre/releases/${_srcname##*-}-gnu/linux-libre-${_srcname##*-}-gnu.tar.xz"{,.sign} "https://linux-libre.fsfla.org/pub/linux-libre/releases/$pkgver-gnu/patch-${_srcname##*-}-gnu-$pkgver-gnu.xz"{,.sign} "https://repo.parabola.nu/other/linux-libre/logos/logo_linux_"{clut224.ppm,vga16.ppm,mono.pbm}{,.sig} config.i686 config.x86_64 config.armv7h # the main kernel config files linux-armv7h.preset # armv7h preset file for mkinitcpio ramdisk - "kernel"{.its,.keyblock,_data_key.vbprivk} # files for signing Chromebooks kernels + "kernel"{.its,.keyblock,_data_key.vbprivk} # files for signing veyron Chromebook kernels # maintain the TTY over USB disconnects # http://www.coreboot.org/EHCI_Gadget_Debug @@ -60,34 +57,59 @@ source=( 0002-fix-Atmel-maXTouch-touchscreen-support.patch # Arch Linux patches 0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch - 0002-drm-amd-display-Have-Payload-Properly-Created-After-.patch + 0002-drivers-firmware-skip-simpledrm-if-nvidia-drm.modese.patch ) source_i686=( # avoid using zstd compression in ultra mode (exhausts virtual memory) no-ultra-zstd.patch ) source_armv7h=( - # RCN patch (CM3 firmware deblobbed and bloatware removed) - #"https://repo.parabola.nu/other/rcn-libre/patches/$rcnver/rcn-libre-$rcnver-$rcnrel.patch"{,.sig} # Arch Linux ARM patches 0001-ARM-atags-add-support-for-Marvell-s-u-boot.patch 0002-ARM-atags-fdt-retrieve-MAC-addresses-from-Marvell-bo.patch 0003-fix-mvsdio-eMMC-timing.patch 0004-net-smsc95xx-Allow-mac-address-to-be-set-as-a-parame.patch - 0005-set-default-cubietruck-led-triggers.patch - 0006-exynos4412-odroid-set-higher-minimum-buck2-regulator.patch - 0007-USB-Armory-MkII-support.patch + #0005-set-default-cubietruck-led-triggers.patch + #0006-exynos4412-odroid-set-higher-minimum-buck2-regulator.patch + #0007-USB-Armory-MkII-support.patch # ChromiumOS patch # https://labs.parabola.nu/issues/2372 0001-CHROMIUM-block-partitions-efi-Add-support-for-IGNORE.patch ) validpgpkeys=( - '474402C8C582DAFBE389C427BCB7CF877E7D47A7' # Alexandre Oliva - '6DB9C4B4F0D8C0DC432CF6E4227CA7C556B2BA78' # David P. + 474402C8C582DAFBE389C427BCB7CF877E7D47A7 # Alexandre Oliva + 6DB9C4B4F0D8C0DC432CF6E4227CA7C556B2BA78 # David P. ) -b2sums=('03c5869a2b432207208d002a3a8b55f42751dc2b50642fcd9ca982cc8da05c7965d359202e49e1418b0ff74307fdeb91d9f41f3293815bc4e508a43104ec1e92' +sha256sums=('d71785bdb694fefaa4f183e5dd2ffc453c179db6f9427cc37e1ed046f0073ccf' + 'SKIP' + '4193aba41ae2eed56059b7fe917fa0b933573578b7a71f4e0fdb7a4487075170' + 'SKIP' + 'bfd4a7f61febe63c880534dcb7c31c5b932dde6acf991810b41a939a93535494' + 'SKIP' + '6de8a8319271809ffdb072b68d53d155eef12438e6d04ff06a5a4db82c34fa8a' + 'SKIP' + '13bd7a8d9ed6b6bc971e4cd162262c5a20448a83796af39ce394d827b0e5de74' + 'SKIP' + '0e4aed294e60fc9ac397cff327a8b549e672d423bf71e4a2e53c62d36c60701c' + '62ddc229b843688d3b87d2bf17dcd49d718971b20307d9262bd1b6fc15ce9112' + 'b66961f28d8e01d4c0cb6bf9df6cc3edc89c7a3369f44bb718ff6a1d77f6fd74' + 'ca1708abbd2f8960c278722dc81a7c635973d92872386ad9e2fff10b86836e98' + '523d52a6fc9df4c43c8401f17cd796ebd281845d05358c9564a64d8c5a63f028' + '4e708c9ec43ac4a5d718474c9431ba6b6da3e64a9dda6afd2853a9e9e3079ffb' + 'bc9e707a86e55a93f423e7bcdae4a25fd470b868e53829b91bbe2ccfbc6da27b' + '0376bd5efa31d4e2a9d52558777cebd9f0941df8e1adab916c868bf0c05f2fc3' + '351fd96be8cd5ebd0435c0a8a978673fc023e3b1026085e67f86d815b2285e25' + 'f42b4d1cbde46fd9c2e3b9baaecb0a50fab3aa423a621a7849c42b5ddbbfa9b8' + '1ee62f3e582ffb63323097ff0698572b33507d1ff3dd3c88f7071dfa7a22fc24') +sha256sums_i686=('d32270be5fd9c3e3ba50f3aef33f6cfcb85be0c8216f03b777287cc621fdff28') +sha256sums_armv7h=('ef4661a32234fe12bda28e698400c78c11491387df83ee554c53afb4dba244da' + 'd3a4b7c7a3d3b4d69369b85630eef33b21cfbcffc23adbdc3cfa837610912287' + '2bce52fa4ae4d34ca171d3aa100302a920c231275fc3ba9141af8b2f68cf67d1' + '12d5706b00d2939b92130a4dc41d060f5e1fea75424b902ebceca72e427dc3b9' + 'f4d4b44adc4b47b18bac33aa2c46b458c1b7ceb277416eff59054b6d7687c6da') +b2sums=('e3e753fed07258f34e2e44e1acd4be0c22a3c58a3ae4856b518a4f99358f5bf6e8f38e41f422d9a434b33b0d7ee972e93ac7d37c9734949d6db263afe4c4f47c' 'SKIP' - 'cff40934db0b5da1624718bab083fc7e99418ee1f134fbb5d52f47927e32198fdc5117d1e8464dc86f504ce8dc1ad924dff6eb87f7cf844ef7b35861aa2a40c8' + '53cb120b0bc8bce90e19fce0a69d05ab3f69d07ce75976d2106e0edaf5699fb71f777b1913c1fc36075d9dc46d3f4bfa1f9e4f2e7901bae869c28d3642a0a93e' 'SKIP' '73fee2ae5cb1ffd3e6584e56da86a8b1ff6c713aae54d77c0dab113890fc673dc5f300eb9ed93fb367b045ece8fa80304ff277fe61665eccf7b7ce24f0c045eb' 'SKIP' @@ -95,25 +117,22 @@ b2sums=('03c5869a2b432207208d002a3a8b55f42751dc2b50642fcd9ca982cc8da05c7965d3592 'SKIP' '580911af9431c066bbc072fd22d5e2ef65f12d8358cec5ff5a4f1b7deebb86cef6b5c1ad631f42350af72c51d44d2093c71f761234fb224a8b9dbb3b64b8201d' 'SKIP' - '84f65302f45c83e28cb5204a9b6fcbf652dab3d535702b1fd84ff8af973de7e8edbe92ce58052c10c8bf4414856205785a88d76ac76eb524e36b7644d3f1f226' - 'aeb684b13d3ea869996f7af04211f2c35398441532ff8238885cb5ebd1c4ff22c6afaaf8d18794626af77d85345e7d8c89658504faed70afe634acc44be926e0' + '196423ae81a8c359db0c70888b3117d126594699ddbf3033c69c5c2aba02d20f7349a48b9d8095c7d398024b10ef1f89f12b59421074cd57ac74d9462b0457d0' + 'afcb497e56fced76d797caee65a223ac59925d33514b79d5384f4b114647936791fe3cb77982fb2d88cfc47194e16f99d38ff6ee08c2d24ad70452238dcb26fa' '5760e0879cf71dfc1c9bdd557829f28437909e701fa566cc3575a52785c81ac70d634ec929833ac01aea111bbae6ba402add738dc86623b32bcc3b523d43f60f' 'af69176b1117b94e56b043e97b0bd5873a2974a6a2fd52b102d0ffdca440ff68cfb241d6c4d4ef453cc8c220c236b739bad232e53fd500ce7672fa6e5ba87383' - 'f2d309c1d0a347539a8095223085691a9be228934b2258feb4872784f6cf6c2cc741426e4e755d63128ee57c284eddb13e0c719d4b5f8e101722e4cca4eb3ad5' + '9336fb5d1f98a77144673750b0f924b15b60e98e4bba0d13d1b1a5c977f14538f97143147081c94e0d8555b5dbd246fe0a410c7146a9b0866f3728176548fb0a' 'eeed12b2ab60c3d3aad598a1d44b4f23560d818e8fe1ef143f857c8e176652df53501b192ade7d4d915d425fff818b2a232d46bae0d3a0f46b8959e614e0ede2' 'aaa4e28a31967cc3a7fe25a86ba35fdfa210cd8b1a9cc96298349cbf01d60cdf146ee519d6803d05b175873f1b3367e47194a178db7ed97c802e59b38f8c303c' 'c2214154c36900e311531bfe68184f31639f5c50fed23bc3803a7f18439b7ff258552a39f02fed0ea92f10744e17a6c55cef0ef1a98187f978fe480fb3dddc14' '0c7ceba7cd90087db3296610a07886f337910bad265a32c052d3a703e6eb8e53f355ab9948d72d366408d968d8ee7435084dd89bef5ed0b69355fd884c2cd468' - '25b35ceabee03a287f21e7de5907fa760ad63e2e5125ee2c42fb8e4427c5fca1bd62be0bef32a1d46b649b513bb3f892337cc1413768440fe9e9613c51d0f8e3' - '9c7f23cc063ab6c8878e2785bf415320df1e41687db3e35e99286416d59f4c923b1a8bcf6cd0e51d9e689b063c49451bb765d18b47b9139990c8f5b01710783b') + '4f5df7bb477f09855294fd4afd6adedd97f1a96051d350a936cb3e061de9c599130e9db4a820d5b70086b8fac5e9e294ca2898fa924310c4fae684c2fbf9c5bc' + '9419a4ff2104313df9e40cd1e7f3f7629b4beec27e60b27c4935bb57a245c7b63189ffe38a70ca834d025708c489c623f2734a0e0b3260dde14e871c52455911') b2sums_i686=('165ab9dd8cedeaae5327accc1581c19cf0be55f923b03feb889cad3351b74c7c4cd3d3c206938e5152bfe1d947513dea8f630f8f5544099ec13d16d254725c40') b2sums_armv7h=('73ecc5862c6b4aef7b163c1992004273fbf791b82c75a8602e3def311f682f2b866124c0bfde90d03c7c76bb8b5853bdb9daad6ee2ab0908f4145cda476b8286' '15f7b70b5d153e9336006aba873a78f94d91b8df5e1939041f12e678bb9cfbdda2e362001068a07c044ce606cf0d4d2e625002df9c569c914f7ac248d4d3e8ad' '6219cec826bc543000ab87cf35dcc713f0635519cf79e75888b213a5e2d1f728e59e70df7fd842dda6e40494bf9cafa9f87368cb75b338c5a157a0adcf583512' '66d6cff292962c4c8bbea62b2240c4c53c0c514f9e99864be9244cb846c505e1bedd800ca1347b80883543035d20573b06796e5bacbace6e829880695ffca781' - 'e1d0949abbde146d68cddab53944c0391210fb4ac632a78788ec729dea834cb82698c8beef203608eee5323a07ecd566b9813552498e9ac659942060713c4549' - '56fdf81b439b6b94e63acfb18d61f90298dc4e29fc65efd4dcf41ae950e87f287f48b42b2be15f4ea0cf7a6d39df3c0ef882cf37b2474e91cc2985fb6cdd1089' - 'd00505c1ac57fd4b53bdb0d9a2172168a23d6082111695c679aeae58e8e749f5b2ef27ce1bc47b0d5fdd81fac792c57d9b45f125a3315b64297b146f727ac467' '741ad7ffc9e8200657315fc4111066b2477cde35ecdc5e73976457f17106f80d148d86bf97b92c523fef1cc5a26ddb867d16330f592f2aa4d886be596bedc8df') _replacesarchkernel=("${_replacesarchkernel[@]/\%/${pkgbase#linux-libre}}") @@ -129,11 +148,6 @@ export KBUILD_BUILD_HOST=parabola export KBUILD_BUILD_USER=$pkgbase export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})" -_make() { - test -s version - make KERNELRELEASE="$( localversion.10-pkgrel echo "${pkgbase#linux-libre}" > localversion.20-pkgname - make defconfig - make -s kernelrelease > version - make mrproper - if [ "$CARCH" = "armv7h" ]; then - local src_armv7h - for src_armv7h in "${source_armv7h[@]}"; do - src_armv7h="${src_armv7h%%::*}" - src_armv7h="${src_armv7h##*/}" - [[ $src_armv7h = *.patch ]] || continue - echo "Applying patch $src_armv7h..." - patch -Np1 < "../$src_armv7h" - done - fi - - if [ "$CARCH" = "i686" ]; then - local src_i686 - for src_i686 in "${source_i686[@]}"; do - src_i686="${src_i686%%::*}" - src_i686="${src_i686##*/}" - [[ $src_i686 = *.patch ]] || continue - echo "Applying patch $src_i686..." - patch -Np1 < "../$src_i686" - done - fi + local source_all + case "$CARCH" in + "armv7h") + source_all+=("${source_armv7h[@]}") ;; + "i686") + source_all+=("${source_i686[@]}") ;; + esac + source_all+=("${source[@]}") local src - for src in "${source[@]}"; do + for src in "${source_all[@]}"; do src="${src%%::*}" src="${src##*/}" + src="${src%.zst}" [[ $src = *.patch ]] || continue echo "Applying patch $src..." patch -Np1 < "../$src" @@ -186,15 +185,21 @@ prepare() { echo "Setting config..." cp ../config.$CARCH .config - _make olddefconfig + make olddefconfig diff -u ../config.$CARCH .config || : + make -s kernelrelease > version echo "Prepared $pkgbase version $( Date: Dec 31 2023 06:38:34 +0000 Subject: [PATCH 7/73] [lolcat]: rebuilds against latest 'ruby-optimist' --- diff --git a/libre/lolcat/PKGBUILD b/libre/lolcat/PKGBUILD index f55f7c1..b1a96ab 100644 --- a/libre/lolcat/PKGBUILD +++ b/libre/lolcat/PKGBUILD @@ -3,16 +3,16 @@ # Contributor: bill-auger # parabola changes and rationale: -# - install "un-packaged" to avoid the 'rubygems' dependency +# - install "un-packaged" (aka: de-pipped), to avoid the 'rubygems' dependency # NOTE: don't bother to diff this against arch - this required a total re-write pkgname=lolcat pkgver=100.0.1 -_gems_ver=3.0.0 # -> /usr/lib/ruby/gems/3.0.0/ -_optimist_ver=3.0.1 -_paint_ver=2.3.0 -pkgrel=1.parabola1 +_gems_ver=3.0.0 # -> /usr/lib/ruby/gems/${_gems_ver}/ +_optimist_ver=3.1.0 # $ pacman -S ruby-optimist --print-format=%v | cut -d '-' -f 1 +_paint_ver=2.3.0 # $ pacman -S ruby-paint --print-format=%v | cut -d '-' -f 1 +pkgrel=1.parabola2 pkgdesc='Rainbows and unicorns! Okay, no unicorns. But rainbows!!' url=https://github.com/busyloop/lolcat arch=(any) From 6df95ef088cac4f682f07db2ac4859fccadfffd7 Mon Sep 17 00:00:00 2001 From: Wael Karram Date: Dec 31 2023 06:39:04 +0000 Subject: [PATCH 8/73] Updated lagrange to v1.17.5 --- diff --git a/pcr/lagrange/PKGBUILD b/pcr/lagrange/PKGBUILD index 6989d53..5d0b722 100644 --- a/pcr/lagrange/PKGBUILD +++ b/pcr/lagrange/PKGBUILD @@ -6,13 +6,13 @@ pkgname=lagrange pkgrel=1 -pkgver=1.17.3 +pkgver=1.17.5 pkgdesc="Beautiful Gemini Client" url="https://gmi.skyjake.fi/lagrange/" arch=('x86_64' 'i686' 'aarch64' 'armv7h') license=("BSD2") source=("https://git.skyjake.fi/skyjake/$pkgname/releases/download/v$pkgver/lagrange-$pkgver.tar.gz") -sha256sums=('cd0c4797e399082ccbf4d0ede939ef286b96863c31860f62387fd94275dda3ba') +sha256sums=('01ae2066a6865f0f861c5e159f192eb120c1b36b04d032cd0bfcf2ffcbd990e0') depends=( "fribidi" From 5ff0f2d178989ad803731ecf3d776b6b94685101 Mon Sep 17 00:00:00 2001 From: Wael Karram Date: Dec 31 2023 06:39:20 +0000 Subject: [PATCH 9/73] Update unifont, commented out TTF compilation as it seems to be somewhat broken. --- diff --git a/pcr/unifont/PKGBUILD b/pcr/unifont/PKGBUILD index 5894a6c..0f05679 100644 --- a/pcr/unifont/PKGBUILD +++ b/pcr/unifont/PKGBUILD @@ -27,11 +27,11 @@ pkgname=('pcf-unifont' 'psf-unifont' 'hex-unifont' 'bdf-unifont' - 'ttf-unifont' +# 'ttf-unifont' 'otf-unifont' 'unifont-utils') pkgbase=unifont -pkgver=15.0.06 +pkgver=15.1.04 pkgrel=1 pkgdesc="A free bitmap font with wide Unicode support (PCF, PSF and hex versions)" arch=('any') @@ -39,7 +39,7 @@ arch=('any') url="http://unifoundry.com/" license=('GPL' 'custom:OFL') source=("http://unifoundry.com/pub/unifont/unifont-$pkgver/unifont-$pkgver.tar.gz"{,.sig}) -sha256sums=('36668eb1326d22e1466b94b3929beeafd10b9838bf3d41f4e5e3b52406ae69f1' +sha256sums=('4a0a481c06338543399f5130cb50cbec6b73eeff6b3466f72891c38cbe1c5cf7' 'SKIP') validpgpkeys=('95D2E9AB8740D8046387FD151A09227B1F435A33') # Paul Hardy From 5bb955a4754fa6a1efe55b28f42481758fac1f67 Mon Sep 17 00:00:00 2001 From: Wael Karram Date: Dec 31 2023 06:39:54 +0000 Subject: [PATCH 10/73] Updated memlockd to 1.3, fixed small issue with systemd service path. --- diff --git a/pcr/memlockd/PKGBUILD b/pcr/memlockd/PKGBUILD index c62e7ed..7274023 100644 --- a/pcr/memlockd/PKGBUILD +++ b/pcr/memlockd/PKGBUILD @@ -3,7 +3,7 @@ # Contributor: Wael Karram pkgname=memlockd -pkgver=1.2 +pkgver=1.3 pkgrel=1 pkgdesc="daemon that locks files into memory" arch=('i686' 'x86_64') @@ -11,7 +11,7 @@ url="http://doc.coker.com.au/projects/memlockd/" license=('GPL3') depends=('glibc') source=(http://www.coker.com.au/memlockd/memlockd_${pkgver}.tar.gz) -sha256sums=('3b99fd33793b5b870519189a4640f7b06601dd24e727b466a5c26c6bf0b7ac3a') +sha256sums=('048f7762b382f44d62242ef6d11f6adfcdf78181b08f8e1f9177bf774054cfa4') install=${pkgname}.install backup=(etc/memlockd.cfg) @@ -26,5 +26,6 @@ package() { install -D -m 644 memlockd.8 "${pkgdir}/usr/share/man/man8/memlockd.8" install -D -m 755 memlockd "${pkgdir}/usr/bin/memlockd" install -D -m 640 memlockd.cfg "${pkgdir}/etc/memlockd.cfg" + cd debian install -D -m 644 memlockd.service "${pkgdir}/usr/lib/systemd/system/memlockd.service" } From 26607b4f09fb4ef9ac4f2fb4ac6066c6193b5185 Mon Sep 17 00:00:00 2001 From: bill-auger Date: Dec 31 2023 06:40:32 +0000 Subject: [PATCH 11/73] [unifont]: housekeeping --- diff --git a/pcr/unifont/PKGBUILD b/pcr/unifont/PKGBUILD index 0f05679..957f731 100644 --- a/pcr/unifont/PKGBUILD +++ b/pcr/unifont/PKGBUILD @@ -20,14 +20,17 @@ # In order to publish all of these packages, `librestage` must be run twice. # The first run will stage the 'any' packages. # In order to librestage the per-arch 'unifont-utils' and source packages, -# uncomment the commented arch=() array temporarily. +# uncomment the commented arch=() array temporarily, and run librestage again. +# TODO: There is a WIP in librestage which adds a CLI option to specifiy arches. +# Once that is released, this note can be changed to suggest a single command +# eg: librestage -A '.*' pkgname=('pcf-unifont' 'psf-unifont' 'hex-unifont' 'bdf-unifont' -# 'ttf-unifont' +# 'ttf-unifont' # v15.1.04 fails to build 'otf-unifont' 'unifont-utils') pkgbase=unifont From cca593ef87536b982f87478ffccb6b9ff51f2f6c Mon Sep 17 00:00:00 2001 From: bill-auger Date: Dec 31 2023 06:40:45 +0000 Subject: [PATCH 12/73] [unifont]: list all contributors for diffing --- diff --git a/pcr/unifont/PKGBUILD b/pcr/unifont/PKGBUILD index 957f731..b056b05 100644 --- a/pcr/unifont/PKGBUILD +++ b/pcr/unifont/PKGBUILD @@ -1,14 +1,24 @@ # Maintainer: Wael Karram -# Maintainer (aur): neeshy -# Contributor: Carlos Aznarán -# Contributor: Martin C. Doege -# Contributor: Gregory G Danielson III +# Contributor: bill-auger +# bdf-unifont: +# Maintainer (aur:bdf-unifont): Carlos Aznarán +# Contributor: Antonio Rojas +# Contributor: Ronald van Haren +# hex-unifont: +# (no package, but is built from 'ttf-unifont' recipe) +# otf-unifont: +# Maintainer (aur:otf-unifont): Martin C. Doege +# Maintainer (aur:otf-unifont): txtsd # Contributor: nl6720 # Contributor: David McInnis # Contributor: megadriver -# Contributor: Antonio Rojas -# Contributor: Ronald van Haren -# Contributor: felix <`base64 -d <<< ZmVsaXgudm9uLnNAcG9zdGVvLmRlCg`> +# pcf-unifont: +# Maintainer (aur:pcf-unifont): neeshy +# psf-unifont: +# Maintainer (aur:psf-unifont): neeshy +# ttf-unifont: +# Maintainer (aur:ttf-unifont): txtsd +# Maintainer (aur:ttf-unifont): Martin C. Doege # parabola changes and rationale: From 53e72ad34ee3232d9c5334c08b437dd2b2bb24da Mon Sep 17 00:00:00 2001 From: bill-auger Date: Dec 31 2023 06:40:57 +0000 Subject: [PATCH 13/73] [unifont]: alphabetize pkgnames and package_* functions --- diff --git a/pcr/unifont/PKGBUILD b/pcr/unifont/PKGBUILD index b056b05..be0f497 100644 --- a/pcr/unifont/PKGBUILD +++ b/pcr/unifont/PKGBUILD @@ -36,12 +36,12 @@ # eg: librestage -A '.*' -pkgname=('pcf-unifont' - 'psf-unifont' +pkgname=('bdf-unifont' 'hex-unifont' - 'bdf-unifont' -# 'ttf-unifont' # v15.1.04 fails to build 'otf-unifont' + 'pcf-unifont' + 'psf-unifont' +# 'ttf-unifont' # v15.1.04 fails to build 'unifont-utils') pkgbase=unifont pkgver=15.1.04 @@ -67,12 +67,13 @@ build() { make } -package_pcf-unifont() { - pkgdesc="A free bitmap font with wide Unicode support (PCF version)" +package_bdf-unifont () { + pkgdesc="A free bitmap font with wide Unicode support (BDF version)" # Install the font. cd "$srcdir/unifont-$pkgver/font/precompiled" - install -Dm644 "unifont-$pkgver.pcf.gz" "$pkgdir/usr/share/fonts/misc/unifont.pcf.gz" + gzip -d --force "unifont-$pkgver.bdf.gz" + install -Dm644 "unifont-$pkgver.bdf" "$pkgdir/usr/share/fonts/misc/unifont.bdf" # Install the license. cd "$srcdir/unifont-$pkgver" install -Dm644 OFL-1.1.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" @@ -81,12 +82,12 @@ package_pcf-unifont() { install -Dm644 doc/unifont.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } -package_psf-unifont() { - pkgdesc="A free bitmap font with wide Unicode support (PSF version)" +package_hex-unifont() { + pkgdesc="A free bitmap font with wide Unicode support (hex version)" # Install the font. cd "$srcdir/unifont-$pkgver/font/precompiled" - install -Dm644 "Unifont-APL8x16-$pkgver.psf.gz" "$pkgdir/usr/share/kbd/consolefonts/Unifont-APL8x16.psf.gz" + install -Dm644 "unifont-$pkgver.hex" "$pkgdir/usr/share/unifont/unifont.hex" # Install the license. cd "$srcdir/unifont-$pkgver" install -Dm644 OFL-1.1.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" @@ -95,12 +96,16 @@ package_psf-unifont() { install -Dm644 doc/unifont.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } -package_hex-unifont() { - pkgdesc="A free bitmap font with wide Unicode support (hex version)" +package_otf-unifont() { + pkgdesc="A free bitmap font with wide Unicode support (OTF version)" # Install the font. cd "$srcdir/unifont-$pkgver/font/precompiled" - install -Dm644 "unifont-$pkgver.hex" "$pkgdir/usr/share/unifont/unifont.hex" + install -d "$pkgdir/usr/share/fonts/Unifont/" + install -m644 "unifont-$pkgver.otf" "$pkgdir/usr/share/fonts/Unifont/Unifont.otf" + install -m644 "unifont_jp-$pkgver.otf" "$pkgdir/usr/share/fonts/Unifont/Unifont_jp.otf" + install -m644 "unifont_upper-$pkgver.otf" "$pkgdir/usr/share/fonts/Unifont/Unifont_Upper.otf" + install -m644 "unifont_csur-$pkgver.otf" "$pkgdir/usr/share/fonts/Unifont/Unifont_CSUR.otf" # Install the license. cd "$srcdir/unifont-$pkgver" install -Dm644 OFL-1.1.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" @@ -109,13 +114,12 @@ package_hex-unifont() { install -Dm644 doc/unifont.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } -package_bdf-unifont () { - pkgdesc="A free bitmap font with wide Unicode support (BDF version)" +package_pcf-unifont() { + pkgdesc="A free bitmap font with wide Unicode support (PCF version)" # Install the font. cd "$srcdir/unifont-$pkgver/font/precompiled" - gzip -d --force "unifont-$pkgver.bdf.gz" - install -Dm644 "unifont-$pkgver.bdf" "$pkgdir/usr/share/fonts/misc/unifont.bdf" + install -Dm644 "unifont-$pkgver.pcf.gz" "$pkgdir/usr/share/fonts/misc/unifont.pcf.gz" # Install the license. cd "$srcdir/unifont-$pkgver" install -Dm644 OFL-1.1.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" @@ -124,16 +128,12 @@ package_bdf-unifont () { install -Dm644 doc/unifont.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } -package_ttf-unifont() { - pkgdesc="A free bitmap font with wide Unicode support (TTF version)" +package_psf-unifont() { + pkgdesc="A free bitmap font with wide Unicode support (PSF version)" # Install the font. cd "$srcdir/unifont-$pkgver/font/precompiled" - install -d "$pkgdir/usr/share/fonts/Unifont/" - install -m644 "unifont-$pkgver.ttf" "$pkgdir/usr/share/fonts/Unifont/Unifont.ttf" - install -m644 "unifont_jp-$pkgver.ttf" "$pkgdir/usr/share/fonts/Unifont/Unifont_jp.ttf" - install -m644 "unifont_upper-$pkgver.ttf" "$pkgdir/usr/share/fonts/Unifont/Unifont_Upper.ttf" - install -m644 "unifont_csur-$pkgver.ttf" "$pkgdir/usr/share/fonts/Unifont/Unifont_CSUR.ttf" + install -Dm644 "Unifont-APL8x16-$pkgver.psf.gz" "$pkgdir/usr/share/kbd/consolefonts/Unifont-APL8x16.psf.gz" # Install the license. cd "$srcdir/unifont-$pkgver" install -Dm644 OFL-1.1.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" @@ -142,16 +142,16 @@ package_ttf-unifont() { install -Dm644 doc/unifont.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } -package_otf-unifont() { - pkgdesc="A free bitmap font with wide Unicode support (OTF version)" +package_ttf-unifont() { + pkgdesc="A free bitmap font with wide Unicode support (TTF version)" # Install the font. cd "$srcdir/unifont-$pkgver/font/precompiled" install -d "$pkgdir/usr/share/fonts/Unifont/" - install -m644 "unifont-$pkgver.otf" "$pkgdir/usr/share/fonts/Unifont/Unifont.otf" - install -m644 "unifont_jp-$pkgver.otf" "$pkgdir/usr/share/fonts/Unifont/Unifont_jp.otf" - install -m644 "unifont_upper-$pkgver.otf" "$pkgdir/usr/share/fonts/Unifont/Unifont_Upper.otf" - install -m644 "unifont_csur-$pkgver.otf" "$pkgdir/usr/share/fonts/Unifont/Unifont_CSUR.otf" + install -m644 "unifont-$pkgver.ttf" "$pkgdir/usr/share/fonts/Unifont/Unifont.ttf" + install -m644 "unifont_jp-$pkgver.ttf" "$pkgdir/usr/share/fonts/Unifont/Unifont_jp.ttf" + install -m644 "unifont_upper-$pkgver.ttf" "$pkgdir/usr/share/fonts/Unifont/Unifont_Upper.ttf" + install -m644 "unifont_csur-$pkgver.ttf" "$pkgdir/usr/share/fonts/Unifont/Unifont_CSUR.ttf" # Install the license. cd "$srcdir/unifont-$pkgver" install -Dm644 OFL-1.1.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" From 9050174f1d57cb3f4c602fceb1faf14c31a7ae75 Mon Sep 17 00:00:00 2001 From: bill-auger Date: Dec 31 2023 06:41:08 +0000 Subject: [PATCH 14/73] [memlockd]: add armv7h support --- diff --git a/pcr/memlockd/PKGBUILD b/pcr/memlockd/PKGBUILD index 7274023..c294800 100644 --- a/pcr/memlockd/PKGBUILD +++ b/pcr/memlockd/PKGBUILD @@ -6,7 +6,7 @@ pkgname=memlockd pkgver=1.3 pkgrel=1 pkgdesc="daemon that locks files into memory" -arch=('i686' 'x86_64') +arch=('armv7h' 'i686' 'x86_64') url="http://doc.coker.com.au/projects/memlockd/" license=('GPL3') depends=('glibc') From a0fff3f88a17d7e34b62ba8009aa7e8da9fa5a01 Mon Sep 17 00:00:00 2001 From: bill-auger Date: Dec 31 2023 06:58:38 +0000 Subject: [PATCH 15/73] [memlockd]: minimize diff against AUR --- diff --git a/pcr/memlockd/PKGBUILD b/pcr/memlockd/PKGBUILD index c294800..f0324e7 100644 --- a/pcr/memlockd/PKGBUILD +++ b/pcr/memlockd/PKGBUILD @@ -1,3 +1,4 @@ +# Maintainer (aur): Giancarlo Razzolini # Contributor: fauno # Maintainer: Parabola Hackers # Contributor: Wael Karram @@ -6,22 +7,24 @@ pkgname=memlockd pkgver=1.3 pkgrel=1 pkgdesc="daemon that locks files into memory" -arch=('armv7h' 'i686' 'x86_64') -url="http://doc.coker.com.au/projects/memlockd/" +arch=('i686' 'x86_64') +arch=('armv7h') +url="https://doc.coker.com.au/projects/memlockd/" license=('GPL3') depends=('glibc') -source=(http://www.coker.com.au/memlockd/memlockd_${pkgver}.tar.gz) -sha256sums=('048f7762b382f44d62242ef6d11f6adfcdf78181b08f8e1f9177bf774054cfa4') -install=${pkgname}.install backup=(etc/memlockd.cfg) +install=memlockd.install +source=($pkgname-$pkgver.tar.gz::https://www.coker.com.au/$pkgname/$pkgname\_$pkgver.tar.gz +) +sha256sums=('048f7762b382f44d62242ef6d11f6adfcdf78181b08f8e1f9177bf774054cfa4') build() { - cd "$srcdir/$pkgname-$pkgver" + cd "$pkgname-$pkgver" make } package() { - cd "$srcdir/$pkgname-$pkgver" + cd "$pkgname-$pkgver" install -d -m 750 "${pkgdir}/usr/lib/memlockd" "${pkgdir}/etc/memlockd.d" install -D -m 644 memlockd.8 "${pkgdir}/usr/share/man/man8/memlockd.8" install -D -m 755 memlockd "${pkgdir}/usr/bin/memlockd" From f3081e629404a780eaa1c6362e626405f6fb22ac Mon Sep 17 00:00:00 2001 From: Wael Karram Date: Dec 31 2023 06:58:49 +0000 Subject: [PATCH 16/73] Updated inspircd to 3.17.0 --- diff --git a/pcr/inspircd/PKGBUILD b/pcr/inspircd/PKGBUILD index f216220..ae1cbcb 100644 --- a/pcr/inspircd/PKGBUILD +++ b/pcr/inspircd/PKGBUILD @@ -1,6 +1,5 @@ # Maintainer (aur): Maxime Poulin # Maintainer (aur): Felix Golatofski -# Contributor: Christian Pfeiffer # Contributor: Damian Nowak # Contributor: Kyle Fuller # Contributor: jibi @@ -8,7 +7,7 @@ pkgname='inspircd' -pkgver='3.16.1' +pkgver='3.17.0' pkgrel='1' pkgdesc='InspIRCd is a modular Internet Relay Chat (IRC) server written in C++ for Linux, BSD, Windows and macOS systems.' arch=('x86_64' 'aarch64') @@ -39,7 +38,7 @@ source=("https://github.com/inspircd/inspircd/archive/v$pkgver.tar.gz" "$pkgname.service" "$pkgname.sysusers" ) -sha256sums=('cee0eca7b0c91ac0665199fdfb8ed4edb436a08b8b850b35e19da607c102aec0' +sha256sums=('181de90130e11a26ec107fcb6b74005cbce3051b89b500347e416054e29c3166' 'b59bbb46ed411ad4f39f04539ea3957f3d029c4a2f8994769eb775b17a804351' 'cab41d386b4207e967b8fc5ab6859e20b342fd91c7e55a20eac856b8ab6cdf8c') From 4dfe71a4e27cb99475a6b9badb6243e13f38a2e4 Mon Sep 17 00:00:00 2001 From: bill-auger Date: Jan 01 2024 20:04:21 +0000 Subject: [PATCH 17/73] [linux-libre-vanilla]: bugfix optdepends --- diff --git a/libre/linux-libre-vanilla/PKGBUILD b/libre/linux-libre-vanilla/PKGBUILD index 8156474..72eb8a8 100644 --- a/libre/linux-libre-vanilla/PKGBUILD +++ b/libre/linux-libre-vanilla/PKGBUILD @@ -163,7 +163,7 @@ _package() { ) optdepends=( 'wireless-regdb: to set the correct wireless channels of your country' - 'linux-libre-firmware: firmware images needed for some devices' + 'linux-firmware: firmware images needed for some devices' ) optdepends=( "${optdepends[@]/linux/linux-libre}" ) # minimize diff provides=( From 81cc824643d83f4eb8d203dd4e3515238e98e97c Mon Sep 17 00:00:00 2001 From: David P Date: Jan 03 2024 00:39:41 +0000 Subject: [PATCH 18/73] updpkg: libre/linux-libre-zen 6.6.8.zen1-1 Signed-off-by: David P. --- diff --git a/libre/linux-libre-zen/0001-ARM-atags-add-support-for-Marvell-s-u-boot.patch b/libre/linux-libre-zen/0001-ARM-atags-add-support-for-Marvell-s-u-boot.patch new file mode 100644 index 0000000..d4c3cf0 --- /dev/null +++ b/libre/linux-libre-zen/0001-ARM-atags-add-support-for-Marvell-s-u-boot.patch @@ -0,0 +1,51 @@ +From 4533007cef1bd1da546752b372234b9bb9548214 Mon Sep 17 00:00:00 2001 +From: Willy Tarreau +Date: Sun, 2 Dec 2012 19:59:28 +0100 +Subject: [PATCH 1/7] ARM: atags: add support for Marvell's u-boot + +Marvell uses a specific atag in its u-boot which includes among other +information the MAC addresses for up to 4 network interfaces. + +Signed-off-by: Willy Tarreau +--- + arch/arm/include/uapi/asm/setup.h | 17 +++++++++++++++++ + 1 file changed, 17 insertions(+) + +diff --git a/arch/arm/include/uapi/asm/setup.h b/arch/arm/include/uapi/asm/setup.h +index 25ceda63b284..83578c54975b 100644 +--- a/arch/arm/include/uapi/asm/setup.h ++++ b/arch/arm/include/uapi/asm/setup.h +@@ -144,6 +144,18 @@ struct tag_memclk { + __u32 fmemclk; + }; + ++/* Marvell uboot parameters */ ++#define ATAG_MV_UBOOT 0x41000403 ++struct tag_mv_uboot { ++ __u32 uboot_version; ++ __u32 tclk; ++ __u32 sysclk; ++ __u32 isUsbHost; ++ __u8 macAddr[4][6]; ++ __u16 mtu[4]; ++ __u32 nand_ecc; ++}; ++ + struct tag { + struct tag_header hdr; + union { +@@ -166,6 +178,11 @@ struct tag { + * DC21285 specific + */ + struct tag_memclk memclk; ++ ++ /* ++ * Marvell specific ++ */ ++ struct tag_mv_uboot mv_uboot; + } u; + }; + +-- +2.37.0 + diff --git a/libre/linux-libre-zen/0001-usb-serial-gadget-no-TTY-hangup-on-USB-disconnect-WI.patch b/libre/linux-libre-zen/0001-usb-serial-gadget-no-TTY-hangup-on-USB-disconnect-WI.patch new file mode 100644 index 0000000..e9de435 --- /dev/null +++ b/libre/linux-libre-zen/0001-usb-serial-gadget-no-TTY-hangup-on-USB-disconnect-WI.patch @@ -0,0 +1,39 @@ +From 716120e8010a7f400c6bed7384000e95e1465c94 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= +Date: Mon, 26 Aug 2013 19:19:44 +0300 +Subject: [PATCH 1/2] usb serial gadget: no TTY hangup on USB disconnect [WIP] +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +We may want to maintain the TTY over USB disconnects. + +This is useful when we have a terminal console to a host which +power-cycles or for other reasons resets the USB host controller. + +Signed-off-by: Kyösti Mälkki +--- + drivers/usb/gadget/function/u_serial.c | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/drivers/usb/gadget/function/u_serial.c b/drivers/usb/gadget/function/u_serial.c +index b369292..d156a28 100644 +--- a/drivers/usb/gadget/function/u_serial.c ++++ b/drivers/usb/gadget/function/u_serial.c +@@ -1258,8 +1258,13 @@ void gserial_disconnect(struct gserial *gser) + gser->ioport = NULL; + if (port->port.count > 0 || port->openclose) { + wake_up_interruptible(&port->drain_wait); ++#if 0 + if (port->port.tty) + tty_hangup(port->port.tty); ++#else ++ if (port->port.tty) ++ stop_tty(port->port.tty); ++#endif + } + spin_unlock_irqrestore(&port->port_lock, flags); + +-- +1.8.1.1 + diff --git a/libre/linux-libre-zen/0002-ARM-atags-fdt-retrieve-MAC-addresses-from-Marvell-bo.patch b/libre/linux-libre-zen/0002-ARM-atags-fdt-retrieve-MAC-addresses-from-Marvell-bo.patch new file mode 100644 index 0000000..758c050 --- /dev/null +++ b/libre/linux-libre-zen/0002-ARM-atags-fdt-retrieve-MAC-addresses-from-Marvell-bo.patch @@ -0,0 +1,38 @@ +From b2f96ec9b408c8bbec437c3d3b54c0b748fca85a Mon Sep 17 00:00:00 2001 +From: Willy Tarreau +Date: Sun, 2 Dec 2012 19:56:58 +0100 +Subject: [PATCH 2/7] ARM: atags/fdt: retrieve MAC addresses from Marvell boot + loader + +The atags are parsed and if a Marvell atag is found, up to 4 MAC +addresses are extracted there and assigned to node aliases eth0..3 +with the name "mac-address". + +This was tested on my Mirabox and the two NICs had their correct +address set. + +Signed-off-by: Willy Tarreau +--- + arch/arm/boot/compressed/atags_to_fdt.c | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/arch/arm/boot/compressed/atags_to_fdt.c b/arch/arm/boot/compressed/atags_to_fdt.c +index 1feb6b0f7a1f..5e5cb3094b6a 100644 +--- a/arch/arm/boot/compressed/atags_to_fdt.c ++++ b/arch/arm/boot/compressed/atags_to_fdt.c +@@ -205,6 +205,12 @@ int atags_to_fdt(void *atag_list, void *fdt, int total_space) + hex_str(serno, atag->u.serialnr.high); + hex_str(serno+8, atag->u.serialnr.low); + setprop_string(fdt, "/", "serial-number", serno); ++ } else if (atag->hdr.tag == ATAG_MV_UBOOT) { ++ /* This ATAG provides up to 4 MAC addresses */ ++ setprop(fdt, "eth0", "mac-address", atag->u.mv_uboot.macAddr[0], 6); ++ setprop(fdt, "eth1", "mac-address", atag->u.mv_uboot.macAddr[1], 6); ++ setprop(fdt, "eth2", "mac-address", atag->u.mv_uboot.macAddr[2], 6); ++ setprop(fdt, "eth3", "mac-address", atag->u.mv_uboot.macAddr[3], 6); + } + } + +-- +2.37.0 + diff --git a/libre/linux-libre-zen/0002-fix-Atmel-maXTouch-touchscreen-support.patch b/libre/linux-libre-zen/0002-fix-Atmel-maXTouch-touchscreen-support.patch new file mode 100644 index 0000000..5ad26fc --- /dev/null +++ b/libre/linux-libre-zen/0002-fix-Atmel-maXTouch-touchscreen-support.patch @@ -0,0 +1,37 @@ +From ab8cc1b2dc1b716d5c08f72dacbe1eded269f304 Mon Sep 17 00:00:00 2001 +From: André Silva +Date: Tue, 22 Mar 2016 17:58:59 -0300 +Subject: [PATCH 2/2] fix Atmel maXTouch touchscreen support + +The Atmel maXTouch touchscreen works with Linux-libre 3.13-gnu, +but not with the current longterm and mainline kernels in +Parabola. + +Now it needs to load nonfree firmware in mxt_initialize(), +which is in drivers/input/touchscreen/atmel_mxt_ts.c, and the +atmel_mxt_ts driver fails to work. + +This driver works if changing reject_firmware_nowait to +request_firmware_nowait in atmel_mxt_ts.c. This line is +requesting the file named MXT_CFG_NAME, and it's a config file, +not the firmware blob. + +Signed-off-by: André Silva +Signed-off-by: mytbk +--- + drivers/input/touchscreen/atmel_mxt_ts.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c +index 726a83e..d818834 100644 +--- a/drivers/input/touchscreen/atmel_mxt_ts.c ++++ b/drivers/input/touchscreen/atmel_mxt_ts.c +@@ -1989,7 +1989,7 @@ static int mxt_initialize(struct mxt_data *data) + if (error) + goto err_free_object_table; + +- error = reject_firmware_nowait(THIS_MODULE, true, MXT_CFG_NAME, ++ error = request_firmware_nowait(THIS_MODULE, true, MXT_CFG_NAME, + &client->dev, GFP_KERNEL, data, + mxt_config_cb); + if (error) { diff --git a/libre/linux-libre-zen/0003-fix-mvsdio-eMMC-timing.patch b/libre/linux-libre-zen/0003-fix-mvsdio-eMMC-timing.patch new file mode 100644 index 0000000..a447eaa --- /dev/null +++ b/libre/linux-libre-zen/0003-fix-mvsdio-eMMC-timing.patch @@ -0,0 +1,38 @@ +From 5b76d7e549a6f65f881ef832cb39ae6a4ad34119 Mon Sep 17 00:00:00 2001 +From: Kevin Mihelich +Date: Fri, 5 Sep 2014 15:43:56 -0600 +Subject: [PATCH 3/7] fix mvsdio eMMC timing + +These changes from Globalscale change the MMC timing to allow the eMMC versions +of the Mirabox and SMILE Plug to work. + +Signed-off-by: Kevin Mihelich +--- + drivers/mmc/host/mvsdio.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/drivers/mmc/host/mvsdio.c b/drivers/mmc/host/mvsdio.c +index 629efbe639c4..c507c064736c 100644 +--- a/drivers/mmc/host/mvsdio.c ++++ b/drivers/mmc/host/mvsdio.c +@@ -90,7 +90,7 @@ static int mvsd_setup_data(struct mvsd_host *host, struct mmc_data *data) + tmout_index = fls(tmout - 1) - 12; + if (tmout_index < 0) + tmout_index = 0; +- if (tmout_index > MVSD_HOST_CTRL_TMOUT_MAX) ++// if (tmout_index > MVSD_HOST_CTRL_TMOUT_MAX) //by steven, try to setup the timeout to maximum value + tmout_index = MVSD_HOST_CTRL_TMOUT_MAX; + + dev_dbg(host->dev, "data %s at 0x%08x: blocks=%d blksz=%d tmout=%u (%d)\n", +@@ -613,6 +613,8 @@ static void mvsd_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) + u32 m = DIV_ROUND_UP(host->base_clock, ios->clock) - 1; + if (m > MVSD_BASE_DIV_MAX) + m = MVSD_BASE_DIV_MAX; ++ if(ios->clock==50000000 ) //by steven ++ m=1; + mvsd_write(MVSD_CLK_DIV, m); + host->clock = ios->clock; + host->ns_per_clk = 1000000000 / (host->base_clock / (m+1)); +-- +2.37.0 + diff --git a/libre/linux-libre-zen/0004-net-smsc95xx-Allow-mac-address-to-be-set-as-a-parame.patch b/libre/linux-libre-zen/0004-net-smsc95xx-Allow-mac-address-to-be-set-as-a-parame.patch new file mode 100644 index 0000000..b487155 --- /dev/null +++ b/libre/linux-libre-zen/0004-net-smsc95xx-Allow-mac-address-to-be-set-as-a-parame.patch @@ -0,0 +1,95 @@ +From 824cc151d839ce92269200119f9148013755adb8 Mon Sep 17 00:00:00 2001 +From: popcornmix +Date: Tue, 18 Feb 2014 01:43:50 -0300 +Subject: [PATCH 4/7] net/smsc95xx: Allow mac address to be set as a parameter + +--- + drivers/net/usb/smsc95xx.c | 56 ++++++++++++++++++++++++++++++++++++++ + 1 file changed, 56 insertions(+) + +diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c +index bfb58c91db04..29b7c4cb90f1 100644 +--- a/drivers/net/usb/smsc95xx.c ++++ b/drivers/net/usb/smsc95xx.c +@@ -54,6 +54,7 @@ + #define SUSPEND_SUSPEND3 (0x08) + #define SUSPEND_ALLMODES (SUSPEND_SUSPEND0 | SUSPEND_SUSPEND1 | \ + SUSPEND_SUSPEND2 | SUSPEND_SUSPEND3) ++#define MAC_ADDR_LEN (6) + + #define SMSC95XX_NR_IRQS (1) /* raise to 12 for GPIOs */ + #define PHY_HWIRQ (SMSC95XX_NR_IRQS - 1) +@@ -78,6 +79,10 @@ static bool turbo_mode = true; + module_param(turbo_mode, bool, 0644); + MODULE_PARM_DESC(turbo_mode, "Enable multiple frames per Rx transaction"); + ++static char *macaddr = ":"; ++module_param(macaddr, charp, 0); ++MODULE_PARM_DESC(macaddr, "MAC address"); ++ + static int __must_check smsc95xx_read_reg(struct usbnet *dev, u32 index, + u32 *data) + { +@@ -761,8 +766,59 @@ static int smsc95xx_ioctl(struct net_device *netdev, struct ifreq *rq, int cmd) + return phy_mii_ioctl(netdev->phydev, rq, cmd); + } + ++/* Check the macaddr module parameter for a MAC address */ ++static int smsc95xx_is_macaddr_param(struct usbnet *dev, u8 *dev_mac) ++{ ++ int i, j, got_num, num; ++ u8 mtbl[MAC_ADDR_LEN]; ++ ++ if (macaddr[0] == ':') ++ return 0; ++ ++ i = 0; ++ j = 0; ++ num = 0; ++ got_num = 0; ++ while (j < MAC_ADDR_LEN) { ++ if (macaddr[i] && macaddr[i] != ':') { ++ got_num++; ++ if ('0' <= macaddr[i] && macaddr[i] <= '9') ++ num = num * 16 + macaddr[i] - '0'; ++ else if ('A' <= macaddr[i] && macaddr[i] <= 'F') ++ num = num * 16 + 10 + macaddr[i] - 'A'; ++ else if ('a' <= macaddr[i] && macaddr[i] <= 'f') ++ num = num * 16 + 10 + macaddr[i] - 'a'; ++ else ++ break; ++ i++; ++ } else if (got_num == 2) { ++ mtbl[j++] = (u8) num; ++ num = 0; ++ got_num = 0; ++ i++; ++ } else { ++ break; ++ } ++ } ++ ++ if (j == MAC_ADDR_LEN) { ++ netif_dbg(dev, ifup, dev->net, "Overriding MAC address with: " ++ "%02x:%02x:%02x:%02x:%02x:%02x\n", mtbl[0], mtbl[1], mtbl[2], ++ mtbl[3], mtbl[4], mtbl[5]); ++ for (i = 0; i < MAC_ADDR_LEN; i++) ++ dev_mac[i] = mtbl[i]; ++ return 1; ++ } else { ++ return 0; ++ } ++} ++ + static void smsc95xx_init_mac_address(struct usbnet *dev) + { ++ /* Check module parameters */ ++ if (smsc95xx_is_macaddr_param(dev, dev->net->dev_addr)) ++ return; ++ + u8 addr[ETH_ALEN]; + + /* maybe the boot loader passed the MAC address in devicetree */ +-- +2.37.0 + diff --git a/libre/linux-libre-zen/PKGBUILD b/libre/linux-libre-zen/PKGBUILD new file mode 100644 index 0000000..86d957d --- /dev/null +++ b/libre/linux-libre-zen/PKGBUILD @@ -0,0 +1,373 @@ +# Maintainer: David P. +# Contributor: André Silva +# Contributor: Márcio Silva +# Contributor: Nicolás Reynolds +# Contributor: Sorin-Mihai Vârgolici +# Contributor: Michał Masłowski +# Contributor: Luke R. + +# Based on linux-zen package + +_replacesarchkernel=() +_replacesoldkernels=(linux-libre-pck) +_replacesoldmodules=() + +pkgbase=linux-libre-zen +pkgver=6.6.8.zen1 +pkgrel=1 +pkgdesc='Linux-libre' +url='https://linux-libre.fsfla.org/' +arch=(i686 x86_64 armv7h) +license=(GPL2) +makedepends=( + bc + cpio + gettext + libelf + pahole + perl + python + tar + xz + + # htmldocs + graphviz + imagemagick + python-sphinx + texlive-latexextra +) +options=('!strip') +_srcname=linux-6.6 +_srctag=v${pkgver%.*}-${pkgver##*.} +source=( + "https://linux-libre.fsfla.org/pub/linux-libre/releases/${_srcname##*-}-gnu/linux-libre-${_srcname##*-}-gnu.tar.xz"{,.sign} + "https://linux-libre.fsfla.org/pub/linux-libre/releases/${pkgver%.*}-gnu/patch-${_srcname##*-}-gnu-${pkgver%.*}-gnu.xz"{,.sign} + "https://repo.parabola.nu/other/linux-libre/logos/logo_linux_"{clut224.ppm,vga16.ppm,mono.pbm}{,.sig} + "https://github.com/zen-kernel/zen-kernel/releases/download/$_srctag/linux-$_srctag.patch.zst"{,.sig} + config.i686 config.x86_64 config.armv7h # the main kernel config files + linux-armv7h.preset # armv7h preset file for mkinitcpio ramdisk + + # maintain the TTY over USB disconnects + # http://www.coreboot.org/EHCI_Gadget_Debug + 0001-usb-serial-gadget-no-TTY-hangup-on-USB-disconnect-WI.patch + # fix Atmel maXTouch touchscreen support + # https://labs.parabola.nu/issues/877 + # http://www.fsfla.org/pipermail/linux-libre/2015-November/003202.html + 0002-fix-Atmel-maXTouch-touchscreen-support.patch +) +source_i686=( + # avoid using zstd compression in ultra mode (exhausts virtual memory) + no-ultra-zstd.patch +) +source_armv7h=( + # Arch Linux ARM patches + 0001-ARM-atags-add-support-for-Marvell-s-u-boot.patch + 0002-ARM-atags-fdt-retrieve-MAC-addresses-from-Marvell-bo.patch + 0003-fix-mvsdio-eMMC-timing.patch + 0004-net-smsc95xx-Allow-mac-address-to-be-set-as-a-parame.patch + #0005-set-default-cubietruck-led-triggers.patch + #0006-exynos4412-odroid-set-higher-minimum-buck2-regulator.patch + #0007-USB-Armory-MkII-support.patch +) +validpgpkeys=( + 474402C8C582DAFBE389C427BCB7CF877E7D47A7 # Alexandre Oliva + 6DB9C4B4F0D8C0DC432CF6E4227CA7C556B2BA78 # David P. + A2FF3A36AAA56654109064AB19802F8B0D70FC30 # Jan Alexander Steffens (heftig) +) +sha256sums=('d71785bdb694fefaa4f183e5dd2ffc453c179db6f9427cc37e1ed046f0073ccf' + 'SKIP' + '4193aba41ae2eed56059b7fe917fa0b933573578b7a71f4e0fdb7a4487075170' + 'SKIP' + 'bfd4a7f61febe63c880534dcb7c31c5b932dde6acf991810b41a939a93535494' + 'SKIP' + '6de8a8319271809ffdb072b68d53d155eef12438e6d04ff06a5a4db82c34fa8a' + 'SKIP' + '13bd7a8d9ed6b6bc971e4cd162262c5a20448a83796af39ce394d827b0e5de74' + 'SKIP' + '754939cecb0938e147c7973ebce505b6aacd3e21572345f9aced312177df3ebf' + 'SKIP' + '63a18d5ca9202e2aecbd5fe6fbe09e9f3c17f490f10992272e583d4aaf348261' + 'daac5c2cc80ff908d01dae730907a8be4cb9a271b677c0626faaa1fb3a322df3' + '5d2601056dcde3544204ef4cbf396362fe604f542ed31cb3831a00e28c4040f6' + 'ca1708abbd2f8960c278722dc81a7c635973d92872386ad9e2fff10b86836e98' + '0376bd5efa31d4e2a9d52558777cebd9f0941df8e1adab916c868bf0c05f2fc3' + '351fd96be8cd5ebd0435c0a8a978673fc023e3b1026085e67f86d815b2285e25') +sha256sums_i686=('d32270be5fd9c3e3ba50f3aef33f6cfcb85be0c8216f03b777287cc621fdff28') +sha256sums_armv7h=('ef4661a32234fe12bda28e698400c78c11491387df83ee554c53afb4dba244da' + 'd3a4b7c7a3d3b4d69369b85630eef33b21cfbcffc23adbdc3cfa837610912287' + '2bce52fa4ae4d34ca171d3aa100302a920c231275fc3ba9141af8b2f68cf67d1' + '12d5706b00d2939b92130a4dc41d060f5e1fea75424b902ebceca72e427dc3b9') +b2sums=('e3e753fed07258f34e2e44e1acd4be0c22a3c58a3ae4856b518a4f99358f5bf6e8f38e41f422d9a434b33b0d7ee972e93ac7d37c9734949d6db263afe4c4f47c' + 'SKIP' + '53cb120b0bc8bce90e19fce0a69d05ab3f69d07ce75976d2106e0edaf5699fb71f777b1913c1fc36075d9dc46d3f4bfa1f9e4f2e7901bae869c28d3642a0a93e' + 'SKIP' + '73fee2ae5cb1ffd3e6584e56da86a8b1ff6c713aae54d77c0dab113890fc673dc5f300eb9ed93fb367b045ece8fa80304ff277fe61665eccf7b7ce24f0c045eb' + 'SKIP' + 'd02a1153a4285b32c774dca4560fe37907ccf30b8e487a681b717ed95ae9bed5988875c0a118938e5885ae9d2857e53a6f216b732b6fa3368e3c5fe08c86382c' + 'SKIP' + '580911af9431c066bbc072fd22d5e2ef65f12d8358cec5ff5a4f1b7deebb86cef6b5c1ad631f42350af72c51d44d2093c71f761234fb224a8b9dbb3b64b8201d' + 'SKIP' + 'b43bea249615fd8ebce9303fa9c889d4e4fd3310b0949c66aaa4ba026bd4b3bed871ef452536aaf891e33a5cf0b427d96da04146e8aa8e2e61f36afc203efcab' + 'SKIP' + '0842075aaddbd7e13878ab99f2136497a38efa2ca34a7aa8332c8dbe40220435b46a9c0294d87e2904c8d947d5bc803fe569ff9ca717f885857ec7ac5925bc68' + '6f5db13379546514d21091d24845c421bab9c1721a4b102ab970976e508f2505e5555d57ca85fc4f0da026d5200398e9a39e542bc718c9935aea86751b38296f' + '0455c8bd5b4db664bec18ffa3e6c11b616d4920e10a14dbbae120516a4c0204d7fb411fb5af8ece5054d37901ffdc3df41d781ecb7259693f0d61cbacafca012' + 'af69176b1117b94e56b043e97b0bd5873a2974a6a2fd52b102d0ffdca440ff68cfb241d6c4d4ef453cc8c220c236b739bad232e53fd500ce7672fa6e5ba87383' + 'c2214154c36900e311531bfe68184f31639f5c50fed23bc3803a7f18439b7ff258552a39f02fed0ea92f10744e17a6c55cef0ef1a98187f978fe480fb3dddc14' + '0c7ceba7cd90087db3296610a07886f337910bad265a32c052d3a703e6eb8e53f355ab9948d72d366408d968d8ee7435084dd89bef5ed0b69355fd884c2cd468') +b2sums_i686=('165ab9dd8cedeaae5327accc1581c19cf0be55f923b03feb889cad3351b74c7c4cd3d3c206938e5152bfe1d947513dea8f630f8f5544099ec13d16d254725c40') +b2sums_armv7h=('73ecc5862c6b4aef7b163c1992004273fbf791b82c75a8602e3def311f682f2b866124c0bfde90d03c7c76bb8b5853bdb9daad6ee2ab0908f4145cda476b8286' + '15f7b70b5d153e9336006aba873a78f94d91b8df5e1939041f12e678bb9cfbdda2e362001068a07c044ce606cf0d4d2e625002df9c569c914f7ac248d4d3e8ad' + '6219cec826bc543000ab87cf35dcc713f0635519cf79e75888b213a5e2d1f728e59e70df7fd842dda6e40494bf9cafa9f87368cb75b338c5a157a0adcf583512' + '66d6cff292962c4c8bbea62b2240c4c53c0c514f9e99864be9244cb846c505e1bedd800ca1347b80883543035d20573b06796e5bacbace6e829880695ffca781') + +_replacesarchkernel=("${_replacesarchkernel[@]/\%/${pkgbase#linux-libre}}") +_replacesoldkernels=("${_replacesoldkernels[@]/\%/${pkgbase#linux-libre}}") +_replacesoldmodules=("${_replacesoldmodules[@]/\%/${pkgbase#linux-libre}}") + +case "$CARCH" in + i686|x86_64) KARCH=x86;; + armv7h) KARCH=arm;; +esac + +export KBUILD_BUILD_HOST=parabola +export KBUILD_BUILD_USER=$pkgbase +export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})" + +prepare() { + cd $_srcname + + if [ "${_srcname##*-}" != "${pkgver%.*}" ]; then + echo "Applying upstream patch..." + patch -Np1 < "../patch-${_srcname##*-}-gnu-${pkgver%.*}-gnu" + fi + + echo "Adding freedo as boot logo..." + install -m644 -t drivers/video/logo \ + ../logo_linux_{clut224.ppm,vga16.ppm,mono.pbm} + + echo "Setting version..." + echo "-$pkgrel" > localversion.10-pkgrel + echo "${pkgbase#linux-libre}" > localversion.20-pkgname + + sed -e "/^[-+]EXTRAVERSION =/s/= */= -gnu/" \ + -i "../linux-$_srctag.patch" + + local source=("${source[@]}") + case "$CARCH" in + "armv7h") + source+=("${source_armv7h[@]}") ;; + "i686") + source+=("${source_i686[@]}") ;; + esac + + local src + for src in "${source[@]}"; do + src="${src%%::*}" + src="${src##*/}" + src="${src%.zst}" + [[ $src = *.patch ]] || continue + echo "Applying patch $src..." + patch -Np1 < "../$src" + done + + echo "Setting config..." + cp ../config.$CARCH .config + make olddefconfig + diff -u ../config.$CARCH .config || : + + make -s kernelrelease > version + echo "Prepared $pkgbase version $( $@ + + quiet_cmd_zstd22 = ZSTD22 $@ +- cmd_zstd22 = cat $(real-prereqs) | $(ZSTD) -22 --ultra > $@ ++ cmd_zstd22 = cat $(real-prereqs) | $(ZSTD) -19 > $@ + + quiet_cmd_zstd22_with_size = ZSTD22 $@ +- cmd_zstd22_with_size = { cat $(real-prereqs) | $(ZSTD) -22 --ultra; $(size_append); } > $@ ++ cmd_zstd22_with_size = { cat $(real-prereqs) | $(ZSTD) -19; $(size_append); } > $@ + + # ASM offsets From b1e45cf75d7cf878607ead25d209844b19d54e20 Mon Sep 17 00:00:00 2001 From: David P Date: Jan 03 2024 00:41:28 +0000 Subject: [PATCH 19/73] remove linux-libre-pck Signed-off-by: David P. --- diff --git a/libre/linux-libre-pck/0001-ARM-atags-add-support-for-Marvell-s-u-boot.patch b/libre/linux-libre-pck/0001-ARM-atags-add-support-for-Marvell-s-u-boot.patch deleted file mode 100644 index a6967e0..0000000 --- a/libre/linux-libre-pck/0001-ARM-atags-add-support-for-Marvell-s-u-boot.patch +++ /dev/null @@ -1,51 +0,0 @@ -From cf30569da906ee631341244693ab1affde38809d Mon Sep 17 00:00:00 2001 -From: Willy Tarreau -Date: Sun, 2 Dec 2012 19:59:28 +0100 -Subject: [PATCH 1/7] ARM: atags: add support for Marvell's u-boot - -Marvell uses a specific atag in its u-boot which includes among other -information the MAC addresses for up to 4 network interfaces. - -Signed-off-by: Willy Tarreau ---- - arch/arm/include/uapi/asm/setup.h | 17 +++++++++++++++++ - 1 file changed, 17 insertions(+) - -diff --git a/arch/arm/include/uapi/asm/setup.h b/arch/arm/include/uapi/asm/setup.h -index 25ceda63b284..83578c54975b 100644 ---- a/arch/arm/include/uapi/asm/setup.h -+++ b/arch/arm/include/uapi/asm/setup.h -@@ -144,6 +144,18 @@ struct tag_memclk { - __u32 fmemclk; - }; - -+/* Marvell uboot parameters */ -+#define ATAG_MV_UBOOT 0x41000403 -+struct tag_mv_uboot { -+ __u32 uboot_version; -+ __u32 tclk; -+ __u32 sysclk; -+ __u32 isUsbHost; -+ __u8 macAddr[4][6]; -+ __u16 mtu[4]; -+ __u32 nand_ecc; -+}; -+ - struct tag { - struct tag_header hdr; - union { -@@ -166,6 +178,11 @@ struct tag { - * DC21285 specific - */ - struct tag_memclk memclk; -+ -+ /* -+ * Marvell specific -+ */ -+ struct tag_mv_uboot mv_uboot; - } u; - }; - --- -2.35.1 - diff --git a/libre/linux-libre-pck/0001-usb-serial-gadget-no-TTY-hangup-on-USB-disconnect-WI.patch b/libre/linux-libre-pck/0001-usb-serial-gadget-no-TTY-hangup-on-USB-disconnect-WI.patch deleted file mode 100644 index e9de435..0000000 --- a/libre/linux-libre-pck/0001-usb-serial-gadget-no-TTY-hangup-on-USB-disconnect-WI.patch +++ /dev/null @@ -1,39 +0,0 @@ -From 716120e8010a7f400c6bed7384000e95e1465c94 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= -Date: Mon, 26 Aug 2013 19:19:44 +0300 -Subject: [PATCH 1/2] usb serial gadget: no TTY hangup on USB disconnect [WIP] -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -We may want to maintain the TTY over USB disconnects. - -This is useful when we have a terminal console to a host which -power-cycles or for other reasons resets the USB host controller. - -Signed-off-by: Kyösti Mälkki ---- - drivers/usb/gadget/function/u_serial.c | 5 +++++ - 1 file changed, 5 insertions(+) - -diff --git a/drivers/usb/gadget/function/u_serial.c b/drivers/usb/gadget/function/u_serial.c -index b369292..d156a28 100644 ---- a/drivers/usb/gadget/function/u_serial.c -+++ b/drivers/usb/gadget/function/u_serial.c -@@ -1258,8 +1258,13 @@ void gserial_disconnect(struct gserial *gser) - gser->ioport = NULL; - if (port->port.count > 0 || port->openclose) { - wake_up_interruptible(&port->drain_wait); -+#if 0 - if (port->port.tty) - tty_hangup(port->port.tty); -+#else -+ if (port->port.tty) -+ stop_tty(port->port.tty); -+#endif - } - spin_unlock_irqrestore(&port->port_lock, flags); - --- -1.8.1.1 - diff --git a/libre/linux-libre-pck/0002-ARM-atags-fdt-retrieve-MAC-addresses-from-Marvell-bo.patch b/libre/linux-libre-pck/0002-ARM-atags-fdt-retrieve-MAC-addresses-from-Marvell-bo.patch deleted file mode 100644 index c822087..0000000 --- a/libre/linux-libre-pck/0002-ARM-atags-fdt-retrieve-MAC-addresses-from-Marvell-bo.patch +++ /dev/null @@ -1,38 +0,0 @@ -From 9f2269dc32ec1f583bba94432ca17dcef3778677 Mon Sep 17 00:00:00 2001 -From: Willy Tarreau -Date: Sun, 2 Dec 2012 19:56:58 +0100 -Subject: [PATCH 2/7] ARM: atags/fdt: retrieve MAC addresses from Marvell boot - loader - -The atags are parsed and if a Marvell atag is found, up to 4 MAC -addresses are extracted there and assigned to node aliases eth0..3 -with the name "mac-address". - -This was tested on my Mirabox and the two NICs had their correct -address set. - -Signed-off-by: Willy Tarreau ---- - arch/arm/boot/compressed/atags_to_fdt.c | 6 ++++++ - 1 file changed, 6 insertions(+) - -diff --git a/arch/arm/boot/compressed/atags_to_fdt.c b/arch/arm/boot/compressed/atags_to_fdt.c -index 1feb6b0f7a1f..5e5cb3094b6a 100644 ---- a/arch/arm/boot/compressed/atags_to_fdt.c -+++ b/arch/arm/boot/compressed/atags_to_fdt.c -@@ -205,6 +205,12 @@ int atags_to_fdt(void *atag_list, void *fdt, int total_space) - hex_str(serno, atag->u.serialnr.high); - hex_str(serno+8, atag->u.serialnr.low); - setprop_string(fdt, "/", "serial-number", serno); -+ } else if (atag->hdr.tag == ATAG_MV_UBOOT) { -+ /* This ATAG provides up to 4 MAC addresses */ -+ setprop(fdt, "eth0", "mac-address", atag->u.mv_uboot.macAddr[0], 6); -+ setprop(fdt, "eth1", "mac-address", atag->u.mv_uboot.macAddr[1], 6); -+ setprop(fdt, "eth2", "mac-address", atag->u.mv_uboot.macAddr[2], 6); -+ setprop(fdt, "eth3", "mac-address", atag->u.mv_uboot.macAddr[3], 6); - } - } - --- -2.35.1 - diff --git a/libre/linux-libre-pck/0002-fix-Atmel-maXTouch-touchscreen-support.patch b/libre/linux-libre-pck/0002-fix-Atmel-maXTouch-touchscreen-support.patch deleted file mode 100644 index 5ad26fc..0000000 --- a/libre/linux-libre-pck/0002-fix-Atmel-maXTouch-touchscreen-support.patch +++ /dev/null @@ -1,37 +0,0 @@ -From ab8cc1b2dc1b716d5c08f72dacbe1eded269f304 Mon Sep 17 00:00:00 2001 -From: André Silva -Date: Tue, 22 Mar 2016 17:58:59 -0300 -Subject: [PATCH 2/2] fix Atmel maXTouch touchscreen support - -The Atmel maXTouch touchscreen works with Linux-libre 3.13-gnu, -but not with the current longterm and mainline kernels in -Parabola. - -Now it needs to load nonfree firmware in mxt_initialize(), -which is in drivers/input/touchscreen/atmel_mxt_ts.c, and the -atmel_mxt_ts driver fails to work. - -This driver works if changing reject_firmware_nowait to -request_firmware_nowait in atmel_mxt_ts.c. This line is -requesting the file named MXT_CFG_NAME, and it's a config file, -not the firmware blob. - -Signed-off-by: André Silva -Signed-off-by: mytbk ---- - drivers/input/touchscreen/atmel_mxt_ts.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c -index 726a83e..d818834 100644 ---- a/drivers/input/touchscreen/atmel_mxt_ts.c -+++ b/drivers/input/touchscreen/atmel_mxt_ts.c -@@ -1989,7 +1989,7 @@ static int mxt_initialize(struct mxt_data *data) - if (error) - goto err_free_object_table; - -- error = reject_firmware_nowait(THIS_MODULE, true, MXT_CFG_NAME, -+ error = request_firmware_nowait(THIS_MODULE, true, MXT_CFG_NAME, - &client->dev, GFP_KERNEL, data, - mxt_config_cb); - if (error) { diff --git a/libre/linux-libre-pck/0003-fix-mvsdio-eMMC-timing.patch b/libre/linux-libre-pck/0003-fix-mvsdio-eMMC-timing.patch deleted file mode 100644 index a494c2d..0000000 --- a/libre/linux-libre-pck/0003-fix-mvsdio-eMMC-timing.patch +++ /dev/null @@ -1,38 +0,0 @@ -From e8da1680d0273aaca806c23a10b4f3467a6b4f96 Mon Sep 17 00:00:00 2001 -From: Kevin Mihelich -Date: Fri, 5 Sep 2014 15:43:56 -0600 -Subject: [PATCH 3/7] fix mvsdio eMMC timing - -These changes from Globalscale change the MMC timing to allow the eMMC versions -of the Mirabox and SMILE Plug to work. - -Signed-off-by: Kevin Mihelich ---- - drivers/mmc/host/mvsdio.c | 4 +++- - 1 file changed, 3 insertions(+), 1 deletion(-) - -diff --git a/drivers/mmc/host/mvsdio.c b/drivers/mmc/host/mvsdio.c -index 629efbe639c4..c507c064736c 100644 ---- a/drivers/mmc/host/mvsdio.c -+++ b/drivers/mmc/host/mvsdio.c -@@ -90,7 +90,7 @@ static int mvsd_setup_data(struct mvsd_host *host, struct mmc_data *data) - tmout_index = fls(tmout - 1) - 12; - if (tmout_index < 0) - tmout_index = 0; -- if (tmout_index > MVSD_HOST_CTRL_TMOUT_MAX) -+// if (tmout_index > MVSD_HOST_CTRL_TMOUT_MAX) //by steven, try to setup the timeout to maximum value - tmout_index = MVSD_HOST_CTRL_TMOUT_MAX; - - dev_dbg(host->dev, "data %s at 0x%08x: blocks=%d blksz=%d tmout=%u (%d)\n", -@@ -613,6 +613,8 @@ static void mvsd_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) - u32 m = DIV_ROUND_UP(host->base_clock, ios->clock) - 1; - if (m > MVSD_BASE_DIV_MAX) - m = MVSD_BASE_DIV_MAX; -+ if(ios->clock==50000000 ) //by steven -+ m=1; - mvsd_write(MVSD_CLK_DIV, m); - host->clock = ios->clock; - host->ns_per_clk = 1000000000 / (host->base_clock / (m+1)); --- -2.35.1 - diff --git a/libre/linux-libre-pck/0004-net-smsc95xx-Allow-mac-address-to-be-set-as-a-parame.patch b/libre/linux-libre-pck/0004-net-smsc95xx-Allow-mac-address-to-be-set-as-a-parame.patch deleted file mode 100644 index fd99811..0000000 --- a/libre/linux-libre-pck/0004-net-smsc95xx-Allow-mac-address-to-be-set-as-a-parame.patch +++ /dev/null @@ -1,95 +0,0 @@ -From f0eaedee0904275b2ed55b383dba794d53fac17d Mon Sep 17 00:00:00 2001 -From: popcornmix -Date: Tue, 18 Feb 2014 01:43:50 -0300 -Subject: [PATCH 4/7] net/smsc95xx: Allow mac address to be set as a parameter - ---- - drivers/net/usb/smsc95xx.c | 56 ++++++++++++++++++++++++++++++++++++++ - 1 file changed, 56 insertions(+) - -diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c -index bc1e3dd67c04..51ae8e6fec4e 100644 ---- a/drivers/net/usb/smsc95xx.c -+++ b/drivers/net/usb/smsc95xx.c -@@ -50,6 +50,7 @@ - #define SUSPEND_SUSPEND3 (0x08) - #define SUSPEND_ALLMODES (SUSPEND_SUSPEND0 | SUSPEND_SUSPEND1 | \ - SUSPEND_SUSPEND2 | SUSPEND_SUSPEND3) -+#define MAC_ADDR_LEN (6) - - struct smsc95xx_priv { - u32 mac_cr; -@@ -67,6 +68,10 @@ static bool turbo_mode = true; - module_param(turbo_mode, bool, 0644); - MODULE_PARM_DESC(turbo_mode, "Enable multiple frames per Rx transaction"); - -+static char *macaddr = ":"; -+module_param(macaddr, charp, 0); -+MODULE_PARM_DESC(macaddr, "MAC address"); -+ - static int __must_check __smsc95xx_read_reg(struct usbnet *dev, u32 index, - u32 *data, int in_pm) - { -@@ -753,8 +758,59 @@ static int smsc95xx_ioctl(struct net_device *netdev, struct ifreq *rq, int cmd) - return phy_mii_ioctl(netdev->phydev, rq, cmd); - } - -+/* Check the macaddr module parameter for a MAC address */ -+static int smsc95xx_is_macaddr_param(struct usbnet *dev, u8 *dev_mac) -+{ -+ int i, j, got_num, num; -+ u8 mtbl[MAC_ADDR_LEN]; -+ -+ if (macaddr[0] == ':') -+ return 0; -+ -+ i = 0; -+ j = 0; -+ num = 0; -+ got_num = 0; -+ while (j < MAC_ADDR_LEN) { -+ if (macaddr[i] && macaddr[i] != ':') { -+ got_num++; -+ if ('0' <= macaddr[i] && macaddr[i] <= '9') -+ num = num * 16 + macaddr[i] - '0'; -+ else if ('A' <= macaddr[i] && macaddr[i] <= 'F') -+ num = num * 16 + 10 + macaddr[i] - 'A'; -+ else if ('a' <= macaddr[i] && macaddr[i] <= 'f') -+ num = num * 16 + 10 + macaddr[i] - 'a'; -+ else -+ break; -+ i++; -+ } else if (got_num == 2) { -+ mtbl[j++] = (u8) num; -+ num = 0; -+ got_num = 0; -+ i++; -+ } else { -+ break; -+ } -+ } -+ -+ if (j == MAC_ADDR_LEN) { -+ netif_dbg(dev, ifup, dev->net, "Overriding MAC address with: " -+ "%02x:%02x:%02x:%02x:%02x:%02x\n", mtbl[0], mtbl[1], mtbl[2], -+ mtbl[3], mtbl[4], mtbl[5]); -+ for (i = 0; i < MAC_ADDR_LEN; i++) -+ dev_mac[i] = mtbl[i]; -+ return 1; -+ } else { -+ return 0; -+ } -+} -+ - static void smsc95xx_init_mac_address(struct usbnet *dev) - { -+ /* Check module parameters */ -+ if (smsc95xx_is_macaddr_param(dev, dev->net->dev_addr)) -+ return; -+ - u8 addr[ETH_ALEN]; - - /* maybe the boot loader passed the MAC address in devicetree */ --- -2.35.1 - diff --git a/libre/linux-libre-pck/0005-set-default-cubietruck-led-triggers.patch b/libre/linux-libre-pck/0005-set-default-cubietruck-led-triggers.patch deleted file mode 100644 index f090515..0000000 --- a/libre/linux-libre-pck/0005-set-default-cubietruck-led-triggers.patch +++ /dev/null @@ -1,33 +0,0 @@ -From 363e156344b831978306bf95dac7859dafe61d14 Mon Sep 17 00:00:00 2001 -From: Kevin Mihelich -Date: Sat, 14 Feb 2015 12:32:27 +0100 -Subject: [PATCH 5/7] set default cubietruck led triggers - -Signed-off-by: Kevin Mihelich ---- - arch/arm/boot/dts/sun7i-a20-cubietruck.dts | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts -index 52160e368304..21c8ef94c756 100644 ---- a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts -+++ b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts -@@ -78,6 +78,7 @@ leds { - led-0 { - label = "cubietruck:blue:usr"; - gpios = <&pio 7 21 GPIO_ACTIVE_HIGH>; -+ linux,default-trigger = "heartbeat"; - }; - - led-1 { -@@ -93,6 +94,7 @@ led-2 { - led-3 { - label = "cubietruck:green:usr"; - gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; -+ linux,default-trigger = "mmc0"; - }; - }; - --- -2.35.1 - diff --git a/libre/linux-libre-pck/0006-exynos4412-odroid-set-higher-minimum-buck2-regulator.patch b/libre/linux-libre-pck/0006-exynos4412-odroid-set-higher-minimum-buck2-regulator.patch deleted file mode 100644 index 3190152..0000000 --- a/libre/linux-libre-pck/0006-exynos4412-odroid-set-higher-minimum-buck2-regulator.patch +++ /dev/null @@ -1,30 +0,0 @@ -From b4dcf8b9c59c451b667f7cc3f20e7fe837951517 Mon Sep 17 00:00:00 2001 -From: Kevin Mihelich -Date: Thu, 11 Aug 2016 00:42:37 -0600 -Subject: [PATCH 6/7] exynos4412-odroid: set higher minimum buck2 regulator - voltage - -Set a higher minimum voltage to help reboot issue. -http://www.spinics.net/lists/linux-samsung-soc/msg54434.html - -Signed-off-by: Kevin Mihelich ---- - arch/arm/boot/dts/exynos4412-odroid-common.dtsi | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/arch/arm/boot/dts/exynos4412-odroid-common.dtsi b/arch/arm/boot/dts/exynos4412-odroid-common.dtsi -index 5b1d4591b35c..8a8d2c6add10 100644 ---- a/arch/arm/boot/dts/exynos4412-odroid-common.dtsi -+++ b/arch/arm/boot/dts/exynos4412-odroid-common.dtsi -@@ -436,7 +436,7 @@ buck1_reg: BUCK1 { - - buck2_reg: BUCK2 { - regulator-name = "VDD_ARM"; -- regulator-min-microvolt = <900000>; -+ regulator-min-microvolt = <1100000>; - regulator-max-microvolt = <1350000>; - regulator-always-on; - regulator-boot-on; --- -2.35.1 - diff --git a/libre/linux-libre-pck/0007-USB-Armory-MkII-support.patch b/libre/linux-libre-pck/0007-USB-Armory-MkII-support.patch deleted file mode 100644 index 711d50d..0000000 --- a/libre/linux-libre-pck/0007-USB-Armory-MkII-support.patch +++ /dev/null @@ -1,561 +0,0 @@ -From 915405b2da517ee56a07e57230273ab2ff4e522d Mon Sep 17 00:00:00 2001 -From: Kevin Mihelich -Date: Sun, 11 Aug 2019 12:34:17 -0600 -Subject: [PATCH 7/7] USB Armory MkII support - ---- - arch/arm/boot/dts/Makefile | 2 + - arch/arm/boot/dts/imx6ul-usbarmory.dts | 256 +++++++++++++++++++++++ - arch/arm/boot/dts/imx6ull-usbarmory.dts | 257 ++++++++++++++++++++++++ - 3 files changed, 515 insertions(+) - create mode 100644 arch/arm/boot/dts/imx6ul-usbarmory.dts - create mode 100644 arch/arm/boot/dts/imx6ull-usbarmory.dts - -diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile -index 235ad559acb2..ca79830160bd 100644 ---- a/arch/arm/boot/dts/Makefile -+++ b/arch/arm/boot/dts/Makefile -@@ -694,6 +694,7 @@ dtb-$(CONFIG_SOC_IMX6UL) += \ - imx6ul-tx6ul-0010.dtb \ - imx6ul-tx6ul-0011.dtb \ - imx6ul-tx6ul-mainboard.dtb \ -+ imx6ul-usbarmory.dtb \ - imx6ull-14x14-evk.dtb \ - imx6ull-colibri-emmc-eval-v3.dtb \ - imx6ull-colibri-eval-v3.dtb \ -@@ -704,6 +705,7 @@ dtb-$(CONFIG_SOC_IMX6UL) += \ - imx6ull-phytec-segin-ff-rdk-nand.dtb \ - imx6ull-phytec-segin-ff-rdk-emmc.dtb \ - imx6ull-phytec-segin-lc-rdk-nand.dtb \ -+ imx6ull-usbarmory.dtb \ - imx6ulz-14x14-evk.dtb \ - imx6ulz-bsh-smm-m2.dtb - dtb-$(CONFIG_SOC_IMX7D) += \ -diff --git a/arch/arm/boot/dts/imx6ul-usbarmory.dts b/arch/arm/boot/dts/imx6ul-usbarmory.dts -new file mode 100644 -index 000000000000..1fdcd6f611d5 ---- /dev/null -+++ b/arch/arm/boot/dts/imx6ul-usbarmory.dts -@@ -0,0 +1,256 @@ -+/* -+ * USB armory Mk II device tree file -+ * https://github.com/inversepath/usbarmory -+ * -+ * Copyright (C) 2019, F-Secure Corporation -+ * Andrej Rosano -+ * -+ * This file is dual-licensed: you can use it either under the terms -+ * of the GPL or the X11 license, at your option. Note that this dual -+ * licensing only applies to this file, and not this project as a -+ * whole. -+ * -+ * a) This file is free software; you can redistribute it and/or -+ * modify it under the terms of the GNU General Public License as -+ * published by the Free Software Foundation; either version 2 of the -+ * License, or (at your option) any later version. -+ * -+ * This file is distributed in the hope that it will be useful, -+ * but WITHOUT ANY WARRANTY; without even the implied warranty of -+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -+ * GNU General Public License for more details. -+ * -+ * Or, alternatively, -+ * -+ * b) Permission is hereby granted, free of charge, to any person -+ * obtaining a copy of this software and associated documentation -+ * files (the "Software"), to deal in the Software without -+ * restriction, including without limitation the rights to use, -+ * copy, modify, merge, publish, distribute, sublicense, and/or -+ * sell copies of the Software, and to permit persons to whom the -+ * Software is furnished to do so, subject to the following -+ * conditions: -+ * -+ * The above copyright notice and this permission notice shall be -+ * included in all copies or substantial portions of the Software. -+ * -+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -+ * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -+ * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -+ * OTHER DEALINGS IN THE SOFTWARE. -+ */ -+ -+/dts-v1/; -+ -+#include "imx6ul.dtsi" -+ -+/ { -+ model = "F-Secure USB armory Mk II"; -+ compatible = "inversepath,imx6ul-usbarmory-mkII", "fsl,imx6ul"; -+ -+ chosen { -+ stdout-path = &uart2; -+ }; -+ -+ memory { -+ device_type = "memory"; -+ reg = <0x80000000 0x20000000>; -+ }; -+ -+ leds { -+ compatible = "gpio-leds"; -+ pinctrl-names = "default"; -+ pinctrl-0 = <&pinctrl_led>; -+ -+ led-white { -+ label = "LED_WHITE"; -+ gpios = <&gpio4 21 GPIO_ACTIVE_LOW>; -+ linux,default-trigger = "heartbeat"; -+ }; -+ -+ led-blue { -+ label = "LED_BLUE"; -+ gpios = <&gpio4 22 GPIO_ACTIVE_LOW>; -+ }; -+ }; -+ -+ regulators { -+ compatible = "simple-bus"; -+ #address-cells = <1>; -+ #size-cells = <0>; -+ -+ reg_sd1_vmmc: sd1_regulator { -+ compatible = "regulator-fixed"; -+ regulator-name = "VSD_3V3"; -+ regulator-min-microvolt = <3300000>; -+ regulator-max-microvolt = <3300000>; -+ }; -+ }; -+}; -+ -+&uart1 { -+ pinctrl-names = "default"; -+ pinctrl-0 = <&pinctrl_bluetooth>; -+ uart-has-rtscts; -+ status = "okay"; -+}; -+ -+&uart2 { -+ pinctrl-names = "default"; -+ pinctrl-0 = <&pinctrl_uart2>; -+ status = "okay"; -+}; -+ -+&usdhc1 { -+ pinctrl-names = "default"; -+ pinctrl-0 = <&pinctrl_usdhc1>; -+ no-1-8-v; -+ keep-power-in-suspend; -+ wakeup-source; -+ status = "okay"; -+}; -+ -+&usdhc2 { -+ pinctrl-names = "default"; -+ pinctrl-0 = <&pinctrl_usdhc2>; -+ non-removable; -+ status = "okay"; -+}; -+ -+&i2c1 { -+ pinctrl-0 = <&pinctrl_i2c1>; -+ status = "okay"; -+}; -+ -+&iomuxc { -+ pinctrl_uart2: uart2grp { -+ fsl,pins = < -+ MX6UL_PAD_UART2_TX_DATA__UART2_DCE_TX 0x1b0b1 -+ MX6UL_PAD_UART2_RX_DATA__UART2_DCE_RX 0x1b0b1 -+ >; -+ }; -+ -+ pinctrl_bluetooth: uart1grp { -+ fsl,pins = < -+ MX6UL_PAD_UART1_TX_DATA__UART1_DCE_TX 0x1b0b0 /* BT_UART_TX */ -+ MX6UL_PAD_UART1_RX_DATA__UART1_DCE_RX 0x1b0b0 /* BT_UART_RX */ -+ MX6UL_PAD_UART1_CTS_B__UART1_DCE_CTS 0x1b0b0 /* BT_UART_CTS */ -+ MX6UL_PAD_GPIO1_IO07__UART1_DCE_RTS 0x130b0 /* BT_UART_RTS */ -+ MX6UL_PAD_UART3_TX_DATA__GPIO1_IO24 0x1f020 /* BT_UART_DSR */ -+ MX6UL_PAD_UART3_RX_DATA__GPIO1_IO25 0x10020 /* BT_UART_DTR */ -+ MX6UL_PAD_GPIO1_IO04__GPIO1_IO04 0x1f020 /* BT_SWDCLK */ -+ MX6UL_PAD_GPIO1_IO05__GPIO1_IO05 0x1f020 /* BT_SWDIO */ -+ MX6UL_PAD_GPIO1_IO09__GPIO1_IO09 0x1f020 /* BT_RESET */ -+ MX6UL_PAD_UART3_RTS_B__GPIO1_IO27 0x1f020 /* BT_SWITCH_1 */ -+ MX6UL_PAD_UART3_CTS_B__GPIO1_IO26 0x1f020 /* BT_SWITCH_2 */ -+ >; -+ }; -+ -+ pinctrl_i2c1: i2c1grp { -+ fsl,pins = < -+ MX6UL_PAD_GPIO1_IO02__I2C1_SCL 0x4001b8b0 -+ MX6UL_PAD_GPIO1_IO03__I2C1_SDA 0x4001b8b0 -+ >; -+ }; -+ -+ pinctrl_led: ledgrp { -+ fsl,pins = < -+ MX6UL_PAD_CSI_DATA06__GPIO4_IO27 0x1f020 -+ MX6UL_PAD_CSI_DATA07__GPIO4_IO28 0x1f020 -+ >; -+ }; -+ -+ pinctrl_usdhc1: usdhc1grp { -+ fsl,pins = < -+ MX6UL_PAD_SD1_CMD__USDHC1_CMD 0x1f019 -+ MX6UL_PAD_SD1_CLK__USDHC1_CLK 0x1f019 -+ MX6UL_PAD_SD1_DATA0__USDHC1_DATA0 0x1f019 -+ MX6UL_PAD_SD1_DATA1__USDHC1_DATA1 0x1f019 -+ MX6UL_PAD_SD1_DATA2__USDHC1_DATA2 0x1f019 -+ MX6UL_PAD_SD1_DATA3__USDHC1_DATA3 0x1f019 -+ >; -+ }; -+ -+ pinctrl_usdhc2: usdhc2grp { -+ fsl,pins = < -+ MX6UL_PAD_NAND_RE_B__USDHC2_CLK 0x10071 -+ MX6UL_PAD_NAND_WE_B__USDHC2_CMD 0x17059 -+ MX6UL_PAD_NAND_DATA00__USDHC2_DATA0 0x17059 -+ MX6UL_PAD_NAND_DATA01__USDHC2_DATA1 0x17059 -+ MX6UL_PAD_NAND_DATA02__USDHC2_DATA2 0x17059 -+ MX6UL_PAD_NAND_DATA03__USDHC2_DATA3 0x17059 -+ MX6UL_PAD_NAND_DATA04__USDHC2_DATA4 0x17059 -+ MX6UL_PAD_NAND_DATA05__USDHC2_DATA5 0x17059 -+ MX6UL_PAD_NAND_DATA06__USDHC2_DATA6 0x17059 -+ MX6UL_PAD_NAND_DATA07__USDHC2_DATA7 0x17059 -+ >; -+ }; -+}; -+ -+&aips2 { -+ crypto: crypto@2140000 { -+ compatible = "fsl,imx6ul-caam", "fsl,sec-v4.0"; -+ #address-cells = <1>; -+ #size-cells = <1>; -+ reg = <0x2140000 0x3c000>; -+ ranges = <0 0x2140000 0x3c000>; -+ interrupts = ; -+ clocks = <&clks IMX6UL_CLK_CAAM_IPG>, <&clks IMX6UL_CLK_CAAM_ACLK>, -+ <&clks IMX6UL_CLK_CAAM_MEM>; -+ clock-names = "ipg", "aclk", "mem"; -+ -+ sec_jr0: jr@1000 { -+ compatible = "fsl,sec-v4.0-job-ring"; -+ reg = <0x1000 0x1000>; -+ interrupts = ; -+ }; -+ -+ sec_jr1: jr@2000 { -+ compatible = "fsl,sec-v4.0-job-ring"; -+ reg = <0x2000 0x1000>; -+ interrupts = ; -+ }; -+ sec_jr2: jr@3000 { -+ compatible = "fsl,sec-v4.0-job-ring"; -+ reg = <0x3000 0x1000>; -+ interrupts = ; -+ }; -+ }; -+}; -+ -+/ { -+ soc { -+ caam_sm: caam-sm@00100000 { -+ compatible = "fsl,imx7d-caam-sm", "fsl,imx6q-caam-sm"; -+ reg = <0x00100000 0x3fff>; -+ }; -+ -+ irq_sec_vio: caam_secvio { -+ compatible = "fsl,imx7d-caam-secvio", "fsl,imx6q-caam-secvio"; -+ interrupts = ; -+ }; -+ }; -+ -+ caam_keyblob: caam-keyblob { -+ compatible = "fsl,sec-v4.0-keyblob"; -+ status = "okay"; -+ }; -+}; -+ -+&usbotg1 { -+ dr_mode = "peripheral"; -+ disable-over-current; -+ tpl-support; -+ status = "okay"; -+}; -+ -+&usbotg2 { -+ dr_mode = "host"; -+ disable-over-current; -+ tpl-support; -+ status = "okay"; -+}; -diff --git a/arch/arm/boot/dts/imx6ull-usbarmory.dts b/arch/arm/boot/dts/imx6ull-usbarmory.dts -new file mode 100644 -index 000000000000..f74d0296d5f6 ---- /dev/null -+++ b/arch/arm/boot/dts/imx6ull-usbarmory.dts -@@ -0,0 +1,257 @@ -+/* -+ * USB armory Mk II device tree file -+ * https://github.com/inversepath/usbarmory -+ * -+ * Copyright (C) 2019, F-Secure Corporation -+ * Andrej Rosano -+ * -+ * This file is dual-licensed: you can use it either under the terms -+ * of the GPL or the X11 license, at your option. Note that this dual -+ * licensing only applies to this file, and not this project as a -+ * whole. -+ * -+ * a) This file is free software; you can redistribute it and/or -+ * modify it under the terms of the GNU General Public License as -+ * published by the Free Software Foundation; either version 2 of the -+ * License, or (at your option) any later version. -+ * -+ * This file is distributed in the hope that it will be useful, -+ * but WITHOUT ANY WARRANTY; without even the implied warranty of -+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -+ * GNU General Public License for more details. -+ * -+ * Or, alternatively, -+ * -+ * b) Permission is hereby granted, free of charge, to any person -+ * obtaining a copy of this software and associated documentation -+ * files (the "Software"), to deal in the Software without -+ * restriction, including without limitation the rights to use, -+ * copy, modify, merge, publish, distribute, sublicense, and/or -+ * sell copies of the Software, and to permit persons to whom the -+ * Software is furnished to do so, subject to the following -+ * conditions: -+ * -+ * The above copyright notice and this permission notice shall be -+ * included in all copies or substantial portions of the Software. -+ * -+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -+ * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -+ * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -+ * OTHER DEALINGS IN THE SOFTWARE. -+ */ -+ -+/dts-v1/; -+ -+#include "imx6ul.dtsi" -+ -+/ { -+ model = "F-Secure USB armory Mk II"; -+ compatible = "inversepath,imx6ull-usbarmory-mkII", "fsl,imx6ull"; -+ -+ chosen { -+ stdout-path = &uart2; -+ }; -+ -+ memory { -+ device_type = "memory"; -+ reg = <0x80000000 0x20000000>; -+ }; -+ -+ leds { -+ compatible = "gpio-leds"; -+ pinctrl-names = "default"; -+ pinctrl-0 = <&pinctrl_led>; -+ -+ led-white { -+ label = "LED_WHITE"; -+ gpios = <&gpio4 21 GPIO_ACTIVE_LOW>; -+ linux,default-trigger = "heartbeat"; -+ }; -+ -+ led-blue { -+ label = "LED_BLUE"; -+ gpios = <&gpio4 22 GPIO_ACTIVE_LOW>; -+ }; -+ }; -+ -+ regulators { -+ compatible = "simple-bus"; -+ #address-cells = <1>; -+ #size-cells = <0>; -+ -+ reg_sd1_vmmc: sd1_regulator { -+ compatible = "regulator-fixed"; -+ regulator-name = "VSD_3V3"; -+ regulator-min-microvolt = <3300000>; -+ regulator-max-microvolt = <3300000>; -+ }; -+ }; -+}; -+ -+/* Delete CAAM node in AIPS-2 (i.MX6UL specific) */ -+/delete-node/ &crypto; -+ -+&cpu0 { -+ operating-points = < -+ /* kHz uV */ -+ 900000 1275000 -+ 792000 1225000 -+ 528000 1175000 -+ 396000 1025000 -+ 198000 950000 -+ >; -+ fsl,soc-operating-points = < -+ /* KHz uV */ -+ 900000 1250000 -+ 792000 1175000 -+ 528000 1175000 -+ 396000 1175000 -+ 198000 1175000 -+ >; -+}; -+ -+&uart1 { -+ pinctrl-names = "default"; -+ pinctrl-0 = <&pinctrl_bluetooth>; -+ uart-has-rtscts; -+ status = "okay"; -+}; -+ -+&uart2 { -+ pinctrl-names = "default"; -+ pinctrl-0 = <&pinctrl_uart2>; -+ status = "okay"; -+}; -+ -+&usdhc1 { -+ pinctrl-names = "default"; -+ pinctrl-0 = <&pinctrl_usdhc1>; -+ no-1-8-v; -+ keep-power-in-suspend; -+ wakeup-source; -+ status = "okay"; -+}; -+ -+&usdhc2 { -+ pinctrl-names = "default"; -+ pinctrl-0 = <&pinctrl_usdhc2>; -+ non-removable; -+ status = "okay"; -+}; -+ -+&i2c1 { -+ pinctrl-0 = <&pinctrl_i2c1>; -+ status = "okay"; -+}; -+ -+&iomuxc { -+ pinctrl_uart2: uart2grp { -+ fsl,pins = < -+ MX6UL_PAD_UART2_TX_DATA__UART2_DCE_TX 0x1b0b1 -+ MX6UL_PAD_UART2_RX_DATA__UART2_DCE_RX 0x1b0b1 -+ >; -+ }; -+ -+ pinctrl_bluetooth: uart1grp { -+ fsl,pins = < -+ MX6UL_PAD_UART1_TX_DATA__UART1_DCE_TX 0x1b0b0 /* BT_UART_TX */ -+ MX6UL_PAD_UART1_RX_DATA__UART1_DCE_RX 0x1b0b0 /* BT_UART_RX */ -+ MX6UL_PAD_UART1_CTS_B__UART1_DCE_CTS 0x1b0b0 /* BT_UART_CTS */ -+ MX6UL_PAD_GPIO1_IO07__UART1_DCE_RTS 0x130b0 /* BT_UART_RTS */ -+ MX6UL_PAD_UART3_TX_DATA__GPIO1_IO24 0x1f020 /* BT_UART_DSR */ -+ MX6UL_PAD_UART3_RX_DATA__GPIO1_IO25 0x10020 /* BT_UART_DTR */ -+ MX6UL_PAD_GPIO1_IO04__GPIO1_IO04 0x1f020 /* BT_SWDCLK */ -+ MX6UL_PAD_GPIO1_IO05__GPIO1_IO05 0x1f020 /* BT_SWDIO */ -+ MX6UL_PAD_GPIO1_IO09__GPIO1_IO09 0x1f020 /* BT_RESET */ -+ MX6UL_PAD_UART3_RTS_B__GPIO1_IO27 0x1f020 /* BT_SWITCH_1 */ -+ MX6UL_PAD_UART3_CTS_B__GPIO1_IO26 0x1f020 /* BT_SWITCH_2 */ -+ >; -+ }; -+ -+ pinctrl_i2c1: i2c1grp { -+ fsl,pins = < -+ MX6UL_PAD_GPIO1_IO02__I2C1_SCL 0x4001b8b0 -+ MX6UL_PAD_GPIO1_IO03__I2C1_SDA 0x4001b8b0 -+ >; -+ }; -+ -+ pinctrl_led: ledgrp { -+ fsl,pins = < -+ MX6UL_PAD_CSI_DATA06__GPIO4_IO27 0x1f020 -+ MX6UL_PAD_CSI_DATA07__GPIO4_IO28 0x1f020 -+ >; -+ }; -+ -+ pinctrl_usdhc1: usdhc1grp { -+ fsl,pins = < -+ MX6UL_PAD_SD1_CMD__USDHC1_CMD 0x1f019 -+ MX6UL_PAD_SD1_CLK__USDHC1_CLK 0x1f019 -+ MX6UL_PAD_SD1_DATA0__USDHC1_DATA0 0x1f019 -+ MX6UL_PAD_SD1_DATA1__USDHC1_DATA1 0x1f019 -+ MX6UL_PAD_SD1_DATA2__USDHC1_DATA2 0x1f019 -+ MX6UL_PAD_SD1_DATA3__USDHC1_DATA3 0x1f019 -+ >; -+ }; -+ -+ pinctrl_usdhc2: usdhc2grp { -+ fsl,pins = < -+ MX6UL_PAD_NAND_RE_B__USDHC2_CLK 0x10071 -+ MX6UL_PAD_NAND_WE_B__USDHC2_CMD 0x17059 -+ MX6UL_PAD_NAND_DATA00__USDHC2_DATA0 0x17059 -+ MX6UL_PAD_NAND_DATA01__USDHC2_DATA1 0x17059 -+ MX6UL_PAD_NAND_DATA02__USDHC2_DATA2 0x17059 -+ MX6UL_PAD_NAND_DATA03__USDHC2_DATA3 0x17059 -+ MX6UL_PAD_NAND_DATA04__USDHC2_DATA4 0x17059 -+ MX6UL_PAD_NAND_DATA05__USDHC2_DATA5 0x17059 -+ MX6UL_PAD_NAND_DATA06__USDHC2_DATA6 0x17059 -+ MX6UL_PAD_NAND_DATA07__USDHC2_DATA7 0x17059 -+ >; -+ }; -+}; -+ -+/ { -+ soc { -+ aips3: aips-bus@02200000 { -+ compatible = "fsl,aips-bus", "simple-bus"; -+ #address-cells = <1>; -+ #size-cells = <1>; -+ reg = <0x02200000 0x100000>; -+ ranges; -+ -+ dcp: dcp@02280000 { -+ compatible = "fsl,imx6ull-dcp", "fsl,imx6sl-dcp", "fsl,imx28-dcp"; -+ reg = <0x02280000 0x4000>; -+ interrupts = , -+ , -+ ; -+ clocks = <&clks IMX6ULL_CLK_DCP_CLK>; -+ clock-names = "dcp"; -+ }; -+ -+ rngb: rngb@02284000 { -+ compatible = "fsl,imx6sl-rng", "fsl,imx25-rngb", "fsl,imx-rng", "imx-rng"; -+ reg = <0x02284000 0x4000>; -+ interrupts = ; -+ clocks = <&clks IMX6UL_CLK_DUMMY>; -+ }; -+ }; -+ }; -+}; -+ -+&usbotg1 { -+ dr_mode = "peripheral"; -+ disable-over-current; -+ tpl-support; -+ status = "okay"; -+}; -+ -+&usbotg2 { -+ dr_mode = "host"; -+ disable-over-current; -+ tpl-support; -+ status = "okay"; -+}; --- -2.35.1 - diff --git a/libre/linux-libre-pck/PKGBUILD b/libre/linux-libre-pck/PKGBUILD deleted file mode 100644 index 035825f..0000000 --- a/libre/linux-libre-pck/PKGBUILD +++ /dev/null @@ -1,354 +0,0 @@ -# Maintainer: David P. -# Contributor: André Silva -# Contributor: Márcio Silva -# Contributor: Nicolás Reynolds -# Contributor: Sorin-Mihai Vârgolici -# Contributor: Michał Masłowski -# Contributor: Luke R. - -# Based on linux-zen package - -_replacesarchkernel=('linux-zen') -_replacesoldkernels=() -_replacesoldmodules=() - -pkgbase=linux-libre-pck -pkgver=5.18.14.pck1 -pkgrel=1 -pkgdesc='Linux-libre PCK (Parabola community kernel)' -zenver="${pkgver//pck/zen}" -aufsver=20220620 -rcnver=5.18.12 -rcnrel=armv7-x8 -url='https://wiki.parabola.nu/PCK' -arch=(i686 x86_64 armv7h) -license=(GPL2) -makedepends=( - bc libelf pahole cpio perl tar xz - xmlto python-sphinx python-sphinx_rtd_theme graphviz imagemagick texlive-latexextra -) -options=('!strip') -_srcname=linux-5.18 -source=( - "https://linux-libre.fsfla.org/pub/linux-libre/releases/${_srcname##*-}-gnu/linux-libre-${_srcname##*-}-gnu.tar.xz"{,.sign} - "https://linux-libre.fsfla.org/pub/linux-libre/releases/${pkgver%.*}-gnu/patch-${_srcname##*-}-gnu-${pkgver%.*}-gnu.xz"{,.sign} - "https://repo.parabola.nu/other/linux-libre/logos/logo_linux_"{clut224.ppm,vga16.ppm,mono.pbm}{,.sig} - "https://framagit.org/Megver83/zen-patches/-/raw/main/patch-${zenver//.zen/-zen}.diff" - #"https://raw.githubusercontent.com/dolohow/uksm/master/v5.x/uksm-${_srcname##*-}.patch" - "https://gitlab.com/sirlucjan/kernel-patches/-/raw/master/${_srcname##*-}/aufs-patches/0001-aufs-${aufsver}.patch" - config.i686 config.x86_64 config.armv7h # the main kernel config files - linux-armv7h.preset # armv7h preset file for mkinitcpio ramdisk - - # maintain the TTY over USB disconnects - # http://www.coreboot.org/EHCI_Gadget_Debug - 0001-usb-serial-gadget-no-TTY-hangup-on-USB-disconnect-WI.patch - # fix Atmel maXTouch touchscreen support - # https://labs.parabola.nu/issues/877 - # http://www.fsfla.org/pipermail/linux-libre/2015-November/003202.html - 0002-fix-Atmel-maXTouch-touchscreen-support.patch -) -source_i686=( - # avoid using zstd compression in ultra mode (exhausts virtual memory) - no-ultra-zstd.patch -) -source_armv7h=( - # RCN patch (CM3 firmware deblobbed and bloatware removed) - "https://repo.parabola.nu/other/rcn-libre/patches/$rcnver/rcn-libre-$rcnver-$rcnrel.patch"{,.sig} - # Arch Linux ARM patches - 0001-ARM-atags-add-support-for-Marvell-s-u-boot.patch - 0002-ARM-atags-fdt-retrieve-MAC-addresses-from-Marvell-bo.patch - 0003-fix-mvsdio-eMMC-timing.patch - 0004-net-smsc95xx-Allow-mac-address-to-be-set-as-a-parame.patch - 0005-set-default-cubietruck-led-triggers.patch - 0006-exynos4412-odroid-set-higher-minimum-buck2-regulator.patch - 0007-USB-Armory-MkII-support.patch -) -validpgpkeys=( - '474402C8C582DAFBE389C427BCB7CF877E7D47A7' # Alexandre Oliva - '6DB9C4B4F0D8C0DC432CF6E4227CA7C556B2BA78' # David P. -) -sha512sums=('13be3762fffd74c63eeb23b0d34b994a3e5198bfdbda4f013b38f8d3edd24b9bbebe5a4bfde0f5191aa1cf2678e4517f3b5540a40b30ebc05da1f6708cbb98bb' - 'SKIP' - '9016e87060d3ddbf4bad5adee54f07cba3930a23a5c2a7ca32338a98d0c51676228f3d97405c624f2f48a67849f9b40a5dc670e10fbc02bc75cc4d47deab4c34' - 'SKIP' - '13cb5bc42542e7b8bb104d5f68253f6609e463b6799800418af33eb0272cc269aaa36163c3e6f0aacbdaaa1d05e2827a4a7c4a08a029238439ed08b89c564bb3' - 'SKIP' - '7a3716bfe3b9f546da309c7492f3e08f8f506813afeb1c737a474c83313d5c313cf4582b65215c2cfce3b74d9d1021c96e8badafe8f6e5b01fe28d2b5c61ae78' - 'SKIP' - '267295aa0cea65684968420c68b32f1a66a22d018b9d2b2c1ef14267bcf4cb68aaf7099d073cbfefe6c25c8608bdcbbd45f7ac8893fdcecbf1e621abdfe9ecc1' - 'SKIP' - 'e86399efba97b385cb748e1f5e41dd777d9ce3c7a0affb33bfa6f3a3e7ca1c6d2b3a50b3341f1132cdd2be9590e817b82e73883698e50447e45ddc490c6b52a7' - 'f47bcdd8d32b0b2ff1c58d552e2fe83047b6aa183ba03670dfd4e0f1f27eec6808eab53904847b316d8e31c85b4d63a7f365c6a91008a6d6cbcf89639073a880' - '1f247490ca428c372194838919ba049e61f357249419998692c3a20cc6728d509b079f39f3edcc0f76342c437a350d28eefafe8aa743477cecbfff1bb43ea8bb' - '88369e64e767fe490c22a221a55a5aa51377995897b7462320d53d64c9e83cb57fba3ea8ec591f15263905f86dc9f23cca0492cbb6a562aeb1a0fab0f8e447cf' - '959f644c82015be6ddf0b84100b24d48a8208af7374d3ae748226e45ca592970354d20125df8cad2d71369c3d9d950f930776263dde8ce222d1afd571af331eb' - '53103bf55b957b657039510527df0df01279dec59cda115a4d6454e4135025d4546167fa30bdc99107f232561c1e096d8328609ab5a876cf7017176f92ad3e0b' - '02af4dd2a007e41db0c63822c8ab3b80b5d25646af1906dc85d0ad9bb8bbf5236f8e381d7f91cf99ed4b0978c50aee37cb9567cdeef65b7ec3d91b882852b1af' - 'b8fe56e14006ab866970ddbd501c054ae37186ddc065bb869cf7d18db8c0d455118d5bda3255fb66a0dde38b544655cfe9040ffe46e41d19830b47959b2fb168') -sha512sums_i686=('bca15cc96f64c38adcd13a46752866b5b30555ac21e19b3f7afcd20fcb7ec585c9d990fe8f842f44d5f69d477d72867fe6a9102729f26f93f5a80b372e41ce85') -sha512sums_armv7h=('94c6243d23bc995dec3edcb1dd5cc7d5e7d30fec70fc32b9be5f3e7d934da7035e9152fea3cce58a53b0f35f29060bdef2a3a2dac3c46f520adf1088897362f9' - 'SKIP' - '8da996a42249672893fa532ccbd096347580a0dc1698c45e9c865646e2765789553b1bb42793e721de30aea70340fdc116d2e4a50580fef999ca5fc627aaf4c3' - '0e6ddc24011d77a2e422b642c4507317fc2d26b20f5649818a2f11acac165ccab2cf2e64ab50d44ce7affcfe12c2ef5158790e499058831e7995400b2087df78' - '5d2f228151148358b07744a9c09cf6e2420c4284735d4ce7dc925a1deb3970298cc95dd766ee13e094e2853847b016c3ebc2d61bb423e370b4bc33938367ebda' - 'a206c3dc678839831d72eefee997cbe1bb877af7f6f90dfe5cab0bd7d9686a3b13a2aba74c8fbe5533872e12306ac9ea1b5eede18ef3cf10b8d01361afd67e9c' - 'a1072dd808c63592178cc01ea3c36de946f277fb451b13c34f51a5ac134cde4a8a4d57487132af1c6d7b5820842cdda9dc4edb3da85d33bd02bf87a032c3263a' - '85b2e16a930b8066990c42f973d386dc3c6d62fdf3d1289bbb51df3df296c26f30051162fba49a42d38f71f05de926aa8c065097f14bd8e9f8e28a52949ead00' - '2e99582d8b670b6c6b27add14b60e957cbcf9cd6aae40491bd9dea6ac455c0ade0bbee21e3bdfb5e06ce83ad27c5a788404b05bf7ac93831ca18d2e60a67017c') - -_replacesarchkernel=("${_replacesarchkernel[@]/\%/${pkgbase#linux-libre}}") -_replacesoldkernels=("${_replacesoldkernels[@]/\%/${pkgbase#linux-libre}}") -_replacesoldmodules=("${_replacesoldmodules[@]/\%/${pkgbase#linux-libre}}") - -case "$CARCH" in - i686|x86_64) KARCH=x86;; - armv7h) KARCH=arm;; -esac - -export KBUILD_BUILD_HOST=parabola -export KBUILD_BUILD_USER=$pkgbase -export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})" - -prepare() { - cd $_srcname - - if [ "${_srcname##*-}" != "${pkgver%.*}" ]; then - echo "Applying upstream patch..." - patch -Np1 < "../patch-${_srcname##*-}-gnu-${pkgver%.*}-gnu" - fi - - echo "Adding freedo as boot logo..." - install -m644 -t drivers/video/logo \ - ../logo_linux_{clut224.ppm,vga16.ppm,mono.pbm} - - echo "Setting version..." - scripts/setlocalversion --save-scmversion - echo "-$pkgrel" > localversion.10-pkgrel - echo "${pkgbase#linux-libre}" > localversion.20-pkgname - - echo "Applying Zen Patch..." - sed -e "/^+EXTRAVERSION = -zen/s/zen/pck/" \ - -e "/^[-+]EXTRAVERSION =/s/= */= -gnu/" \ - "../patch-${zenver//.zen/-zen}.diff" | patch -Np1 -i - - - if [ "$CARCH" = "armv7h" ]; then - local src_armv7h - for src_armv7h in "${source_armv7h[@]}"; do - src_armv7h="${src_armv7h%%::*}" - src_armv7h="${src_armv7h##*/}" - [[ $src_armv7h = *.patch ]] || continue - echo "Applying patch $src_armv7h..." - patch -Np1 < "../$src_armv7h" - done - fi - - if [ "$CARCH" = "i686" ]; then - local src_i686 - for src_i686 in "${source_i686[@]}"; do - src_i686="${src_i686%%::*}" - src_i686="${src_i686##*/}" - [[ $src_i686 = *.patch ]] || continue - echo "Applying patch $src_i686..." - patch -Np1 < "../$src_i686" - done - fi - - local src - for src in "${source[@]}"; do - src="${src%%::*}" - src="${src##*/}" - [[ $src = *.patch ]] || continue - echo "Applying patch $src..." - patch -Np1 < "../$src" - done - - echo "Setting config..." - cp ../config.$CARCH .config - make olddefconfig - diff -u ../config.$CARCH .config || : - - make -s kernelrelease > version - echo "Prepared $pkgbase version $( $@ - - quiet_cmd_zstd22 = ZSTD22 $@ -- cmd_zstd22 = cat $(real-prereqs) | $(ZSTD) -22 --ultra > $@ -+ cmd_zstd22 = cat $(real-prereqs) | $(ZSTD) -19 > $@ - - quiet_cmd_zstd22_with_size = ZSTD22 $@ -- cmd_zstd22_with_size = { cat $(real-prereqs) | $(ZSTD) -22 --ultra; $(size_append); } > $@ -+ cmd_zstd22_with_size = { cat $(real-prereqs) | $(ZSTD) -19; $(size_append); } > $@ - - # ASM offsets From c3513aa35b6040936476dc14b0591010a94ed1b0 Mon Sep 17 00:00:00 2001 From: David P Date: Jan 03 2024 02:31:01 +0000 Subject: [PATCH 20/73] remove uefi-shell --- diff --git a/libre/uefi-shell/PKGBUILD b/libre/uefi-shell/PKGBUILD deleted file mode 100644 index e77751e..0000000 --- a/libre/uefi-shell/PKGBUILD +++ /dev/null @@ -1,114 +0,0 @@ -# Maintainer (hyperbola): André Silva -# Maintainer: David P. - -# based in Hyperbola's edk2-uefi-shell, but without i686/IA32 -# support and with UEFI Shell v1 included - -pkgname=uefi-shell -pkgver=201811 -pkgrel=1 -_srcname=edk2-stable$pkgver -pkgdesc='Tianocore UEFI Shell v1 and v2' -url='https://github.com/tianocore/edk2' -arch=(x86_64) -license=(BSD) -makedepends=(python2 nasm gnu-efi-libs subversion) -options=(!strip !makeflags) -source=(https://github.com/tianocore/edk2/archive/$_srcname.tar.gz - svn+https://svn.code.sf.net/p/efi-shell/code/trunk/Shell) -sha512sums=('103cb503b73a57996b4ea7c941cb788ebf276e0f4b55480acf2080a632e956d27b0cf4b2a9cb41bac04e1c6aecf38d51c4b49432908e2fcbe6e10ced94d01573' - 'SKIP') - -prepare() { - cd $srcdir/edk2-$_srcname - - msg 'Cleanup UDK config files' - rm -rf Build - rm -rf Conf - mkdir -p Conf - mkdir -p Build - - msg 'Delete bogus dependency files' - find . -name '*.d' -delete - - msg 'Disable build ID generation' - sed -i 's|,--gc-sections|,--gc-sections,--build-id=none|g' BaseTools/Conf/tools_def.template - - msg 'Use python2 for UDK BaseTools' - sed -i 's|python |python2 |g' BaseTools/BinWrappers/PosixLike/* - sed -i 's|python |python2 |g' BaseTools/Tests/GNUmakefile - - msg 'Fix GCC Warning as error' - sed -i 's|-Werror |-Wno-error -Wno-unused-but-set-variable |g' BaseTools/Source/C/Makefiles/header.makefile - sed -i 's|-Werror |-Wno-error -Wno-unused-but-set-variable |g' BaseTools/Conf/tools_def.template - - msg 'Remove GCC -g debug option and add -O0 -mabi=ms -maccumulate-outgoing-args' - sed -i 's|DEFINE GCC_ALL_CC_FLAGS = -g |DEFINE GCC_ALL_CC_FLAGS = -O0 -mabi=ms -maccumulate-outgoing-args |g' BaseTools/Conf/tools_def.template - sed -i 's|DEFINE GCC44_ALL_CC_FLAGS = -g |DEFINE GCC44_ALL_CC_FLAGS = -O0 -mabi=ms -maccumulate-outgoing-args |g' BaseTools/Conf/tools_def.template - - msg 'Fix UDK Target Platform' - sed -i 's|ACTIVE_PLATFORM = Nt32Pkg/Nt32Pkg.dsc|ACTIVE_PLATFORM = EdkShellPkg/EdkShellPkg.dsc|g' BaseTools/Conf/target.template - sed -i 's|TARGET = DEBUG|TARGET = RELEASE|g' BaseTools/Conf/target.template - sed -i 's|TOOL_CHAIN_TAG = MYTOOLS|TOOL_CHAIN_TAG = GCC5|g' BaseTools/Conf/target.template - sed -i 's|IA32|X64|g' BaseTools/Conf/target.template - - chmod 0755 BaseTools/BuildEnv - - msg 'Move Shell directory to the main source' - mv ../Shell . - - msg 'Apply EDK Shell patch to support GCC' - cd Shell - patch -p1 -i ../EdkShellPkg/ShellR64.patch - - msg 'Fix efilibplat.h path' - sed -i 's|efilibplat.h|efi/x86_64/efilibplat.h|g' Library/EfiShellLib.h - sed -i 's|#define RFC_3066_ENTRY_SIZE 12|#define RFC_3066_ENTRY_SIZE 12\n\n#define MIN_ALIGNMENT_SIZE 8|' Library/EfiShellLib.h -} - -build() { - cd $srcdir/edk2-$_srcname - - msg 'Unset all compiler FLAGS' - unset CFLAGS - unset CPPFLAGS - unset CXXFLAGS - unset LDFLAGS - unset MAKEFLAGS - - msg 'Setup UDK Environment' - source $srcdir/edk2-$_srcname/BaseTools/BuildEnv BaseTools - echo - - msg 'Compile UDK BaseTools' - make -C BaseTools - echo - - msg 'Unset all compiler FLAGS' - unset CFLAGS - unset CPPFLAGS - unset CXXFLAGS - unset LDFLAGS - unset MAKEFLAGS - - msg 'Compile UEFI Shell v1 X64 binary' - BaseTools/BinWrappers/PosixLike/build -p EdkShellPkg/EdkShellPkg.dsc -a X64 -b RELEASE -t GCC5 -m Shell/Shell.inf - echo - - msg 'Compile UEFI Shell v2 X64 binary' - BaseTools/BinWrappers/PosixLike/build -p ShellPkg/ShellPkg.dsc -a X64 -b RELEASE -t GCC5 - echo -} - -package() { - msg 'Install the UEFI Shell v1 X64 binary' - install -d $pkgdir/usr/share/uefi-shell - install -D -m0644 $srcdir/edk2-$_srcname/Build/EdkShellPkg/RELEASE_GCC5/X64/Shell.efi $pkgdir/usr/share/uefi-shell/shellx64_v1.efi - - msg 'Install the UEFI Shell v2 X64 binary' - install -d $pkgdir/usr/share/uefi-shell - install -D -m0644 $srcdir/edk2-$_srcname/Build/Shell/RELEASE_GCC5/X64/Shell.efi $pkgdir/usr/share/uefi-shell/shellx64_v2.efi - - msg 'Install license' - install -Dm644 $srcdir/edk2-$_srcname/License.txt $pkgdir/usr/share/licenses/$pkgname/License.txt -} From 0f1133252b7ed9b62426fb247d82854bdcec84ef Mon Sep 17 00:00:00 2001 From: bill-auger Date: Jan 06 2024 23:57:03 +0000 Subject: [PATCH 21/73] [your-freedom]: upgrade to v20240103 --- diff --git a/libre/your-freedom/PKGBUILD b/libre/your-freedom/PKGBUILD index 12e33f1..0fff1a5 100644 --- a/libre/your-freedom/PKGBUILD +++ b/libre/your-freedom/PKGBUILD @@ -11,8 +11,8 @@ pkgname=your-freedom -pkgver=20230907 -_gitver=5accb7a0a8afd5498743f3eba66d535d4c84bb42 +pkgver=20240103 +_gitver=4a4e77e8b0157e1d993d331140caff5a5bed3bbb pkgrel=1 pkgdesc="This meta-package conflicts with every known non-free Arch package" arch=(any) @@ -24,7 +24,7 @@ makedepends=(librelib) install=${pkgname}.install source=(${pkgname}-blacklist-${_gitver}.txt::https://git.parabola.nu/blacklist.git/plain/blacklist.txt?id=${_gitver}) -sha256sums=('b22645d364cd57e7d49f028b1ce8ce47ca06ebf65b96d82d27603fbe8f941ba2') +sha256sums=('07c9400deef1d96cc6c470a8a88ccd0cde222d085cb7eb557b9b95a00e8d8073') package() From 61260dd92b3f6e05c1a3e949db89fcd9008ebe01 Mon Sep 17 00:00:00 2001 From: bill-auger Date: Jan 06 2024 23:57:31 +0000 Subject: [PATCH 22/73] [your-freedom][your-gaming-freedom][your-privacy][your-init-freedom]: normalize related recipes --- diff --git a/libre/your-freedom/PKGBUILD b/libre/your-freedom/PKGBUILD index 0fff1a5..4002b04 100644 --- a/libre/your-freedom/PKGBUILD +++ b/libre/your-freedom/PKGBUILD @@ -6,23 +6,24 @@ # The package is normally built automatically by the auto-builder. # To generate a new package, simply push changes to blacklist.git. # If ${pkgname}-blacklist.txt is modified, the auto-builder will -# replace $pkgver, $_gitver, and the checksum (updpkgsums), +# replace $pkgver, $_srcver, and the checksum (updpkgsums), # build and publish the package, and commit the changes to abslibre. pkgname=your-freedom pkgver=20240103 -_gitver=4a4e77e8b0157e1d993d331140caff5a5bed3bbb +_srcver=4a4e77e8b0157e1d993d331140caff5a5bed3bbb pkgrel=1 pkgdesc="This meta-package conflicts with every known non-free Arch package" arch=(any) url=https://wiki.parabola.nu/Blacklist -license=(custom:CCPL:zero) # TODO: NYI -# license=('CCPL:zero') # TODO: NYI +license=(custom:CCPL:zero) +# license=('CCPL:zero') # TODO: NYI makedepends=(librelib) install=${pkgname}.install -source=(${pkgname}-blacklist-${_gitver}.txt::https://git.parabola.nu/blacklist.git/plain/blacklist.txt?id=${_gitver}) +_srcname=${pkgname}-blacklist-${_srcver}.txt +source=(${_srcname}::https://git.parabola.nu/blacklist.git/plain/blacklist.txt?id=${_srcver}) sha256sums=('07c9400deef1d96cc6c470a8a88ccd0cde222d085cb7eb557b9b95a00e8d8073') @@ -31,10 +32,8 @@ package() { # collect blacklisted package names as pacman conflicts, # also to be excluded by the repo importer, and rejected by libremakepkg - # TODO: rename blacklist.txt to your-freedom-blacklist.txt (without breaking tools) -# conflicts=( $( libreblacklist normalize < ${pkgname}-blacklist-${_gitver}.txt | \ - conflicts=( $( libreblacklist normalize < blacklist-${_gitver}.txt | \ - cut -d: -f1,2 | sed -n 's/:$//p' | sort -u ) ) + conflicts=( $( libreblacklist normalize < ${_srcname} | \ + cut -d: -f1,2 | sed -n 's/:$//p' | sort -u ) ) - install -Dm644 ${pkgname}-blacklist-${_gitver}.txt "${pkgdir}"/usr/share/doc/${pkgname}/blacklist.txt + install -Dm644 ${_srcname} "${pkgdir}"/usr/share/doc/${pkgname}/blacklist.txt } diff --git a/libre/your-gaming-freedom/PKGBUILD b/libre/your-gaming-freedom/PKGBUILD index 073b60c..549c938 100644 --- a/libre/your-gaming-freedom/PKGBUILD +++ b/libre/your-gaming-freedom/PKGBUILD @@ -6,24 +6,25 @@ # The package is normally built automatically by the auto-builder. # To generate a new package, simply push changes to blacklist.git. # If ${pkgname}-blacklist.txt is modified, the auto-builder will -# replace $pkgver, $_gitver, and the checksum (updpkgsums), +# replace $pkgver, $_srcver, and the checksum (updpkgsums), # build and publish the package, and commit the changes to abslibre. pkgname=your-gaming-freedom # TODO: change any references on the wiki pkgver=20210421 pkgrel=1 -_gitver=110648841b57d023531ac19319f360a8bd727ec6 +_srcver=110648841b57d023531ac19319f360a8bd727ec6 pkgdesc="This meta-package conflicts with emulators for which no libre games, OS or applications exist (yet)" pkgdesc+=", and games with dubious free culture licensing" # TODO: why not right? - either this, or many games should be deleted arch=(any) url=https://wiki.parabola.nu/Blacklist -license=(custom:CCPL:zero) # TODO: NYI -# license=('CCPL:zero') # TODO: NYI +license=(custom:CCPL:zero) +# license=('CCPL:zero') # TODO: NYI makedepends=(librelib) install=${pkgname}.install -source=(${pkgname}-blacklist-${_gitver}.txt::https://git.parabola.nu/blacklist.git/plain/${pkgname}-blacklist.txt?id=${_gitver}) +_srcname=${pkgname}-blacklist-${_srcver}.txt +source=(${_srcname}::https://git.parabola.nu/blacklist.git/plain/blacklist.txt?id=${_srcver}) sha256sums=('62def808e6f25d9e63cf0e13420e40631aee11cfd68391224b2658e29ad03970') @@ -31,8 +32,8 @@ sha256sums=('62def808e6f25d9e63cf0e13420e40631aee11cfd68391224b2658e29ad03970') package() { # collect blacklisted package names as pacman conflicts - conflicts=( $( libreblacklist normalize < ${pkgname}-blacklist-${_gitver}.txt | \ - cut -d: -f1,2 | sed -n 's/:$//p' | sort -u ) ) + conflicts=( $( libreblacklist normalize < ${_srcname} | \ + cut -d: -f1,2 | sed -n 's/:$//p' | sort -u ) ) - install -Dm644 ${pkgname}-blacklist-${_gitver}.txt "${pkgdir}"/usr/share/doc/${pkgname}/blacklist.txt + install -Dm644 ${_srcname} "${pkgdir}"/usr/share/doc/${pkgname}/blacklist.txt } diff --git a/nonprism/your-privacy/PKGBUILD b/nonprism/your-privacy/PKGBUILD index 42c51e3..d234981 100644 --- a/nonprism/your-privacy/PKGBUILD +++ b/nonprism/your-privacy/PKGBUILD @@ -6,25 +6,26 @@ # The package is normally built automatically by the auto-builder. # To generate a new package, simply push changes to blacklist.git. # If ${pkgname}-blacklist.txt is modified, the auto-builder will -# replace $pkgver, $_gitver, and the checksum (updpkgsums), +# replace $pkgver, $_srcver, and the checksum (updpkgsums), # build and publish the package, and commit the changes to abslibre. pkgname=your-privacy pkgver=20221006 pkgrel=2 -_gitver=ab32447a5a47a2a5ec5a3fa6043dc6b9024e3674 +_srcver=ab32447a5a47a2a5ec5a3fa6043dc6b9024e3674 pkgdesc="This package will remove support for protocols and services known to endanger privacy." arch=(any) url=https://wiki.parabola.nu/Blacklist -license=(GPL3) +license=(custom:CCPL:zero) +# license=('CCPL:zero') # TODO: NYI makedepends=(librelib) backup=(etc/NetworkManager/conf.d/20-connectivity.conf) install=${pkgname}.install - -source=(${pkgname}-blacklist-${_gitver}.txt::https://git.parabola.nu/blacklist.git/plain/${pkgname}-blacklist.txt?id=${_gitver} - archlinux-keyring.hook) +_srcname=${pkgname}-blacklist-${_srcver}.txt +source=(${_srcname}::https://git.parabola.nu/blacklist.git/plain/blacklist.txt?id=${_srcver}) +source+=(archlinux-keyring.hook) sha512sums=('9ab837a9ca351bb844ecdfc147d69ec1f0d1971fbe12ceeed3b837fc59c54b10d2476901e60f677b0f53166a805b493b0a8bcd638e9e6638012dd454c7930cf8' '864b419e3aec86adc3ee2cc49ccba69e209f53cf174e889f25c21b0f0813760432e98e7eb024d30376163efec2a6e6d2693a871d895d7de5133bcd2f4df9626b') @@ -32,15 +33,11 @@ sha512sums=('9ab837a9ca351bb844ecdfc147d69ec1f0d1971fbe12ceeed3b837fc59c54b10d24 package() { - local blacklist_file=${pkgname}-blacklist-${_gitver}.txt - # collect blacklisted package names as pacman conflicts - conflicts=( $( libreblacklist normalize < ${blacklist_file} | \ - cut -d: -f1,2 | \ - sed -n 's/:$//p' | \ - sort -u ) ) + conflicts=( $( libreblacklist normalize < ${_srcname} | \ + cut -d: -f1,2 | sed -n 's/:$//p' | sort -u ) ) - install -Dm644 ${blacklist_file} "${pkgdir}"/usr/share/doc/${pkgname}/blacklist.txt + install -Dm644 ${_srcname} "${pkgdir}"/usr/share/doc/${pkgname}/blacklist.txt # disable automatic archlinux-keyring refresh install -Dm644 archlinux-keyring.hook "${pkgdir}"/usr/share/libalpm/hooks/archlinux-keyring.hook diff --git a/nonsystemd/your-init-freedom/PKGBUILD b/nonsystemd/your-init-freedom/PKGBUILD index 0aa4104..249e174 100644 --- a/nonsystemd/your-init-freedom/PKGBUILD +++ b/nonsystemd/your-init-freedom/PKGBUILD @@ -6,25 +6,26 @@ # The package is normally built automatically by the auto-builder. # To generate a new package, simply push changes to blacklist.git. # If ${pkgname}-blacklist.txt is modified, the auto-builder will -# replace $pkgver, $_gitver, and the checksum (updpkgsums), +# replace $pkgver, $_srcver, and the checksum (updpkgsums), # build and publish the package, and commit the changes to abslibre. pkgname=your-init-freedom pkgver=20221021 pkgrel=1 -_gitver=249a8e38967abf9243252f03a4b33100cd636dbb +_srcver=249a8e38967abf9243252f03a4b33100cd636dbb pkgdesc="This meta-package conflicts with every package which strictly requires systemd" arch=(any) url=https://wiki.parabola.nu/Blacklist -license=(custom:CCPL:zero) # TODO: NYI -# license=('CCPL:zero') # TODO: NYI +license=(custom:CCPL:zero) +# license=('CCPL:zero') # TODO: NYI replaces=(your-initfreedom) makedepends=(librelib) install=${pkgname}.install -source=(${pkgname}-blacklist-${_gitver}.txt::https://git.parabola.nu/blacklist.git/plain/${pkgname}-blacklist.txt?id=${_gitver}) +_srcname=${pkgname}-blacklist-${_srcver}.txt +source=(${_srcname}::https://git.parabola.nu/blacklist.git/plain/blacklist.txt?id=${_srcver}) sha256sums=('6dbe07d8f0fe38d90a1b6811ecfd2543f4638a94a36954256d3b6d1432768891') @@ -32,8 +33,8 @@ sha256sums=('6dbe07d8f0fe38d90a1b6811ecfd2543f4638a94a36954256d3b6d1432768891') package() { # collect blacklisted package names as pacman conflicts - conflicts=( $( libreblacklist normalize < ${pkgname}-blacklist-${_gitver}.txt | \ - cut -d: -f1,2 | sed -n 's/:$//p' | sort -u ) ) + conflicts=( $( libreblacklist normalize < ${_srcname} | \ + cut -d: -f1,2 | sed -n 's/:$//p' | sort -u ) ) - install -Dm644 ${pkgname}-blacklist-${_gitver}.txt "${pkgdir}"/usr/share/doc/${pkgname}/blacklist.txt + install -Dm644 ${_srcname} "${pkgdir}"/usr/share/doc/${pkgname}/blacklist.txt } From d6f5d7fa8b096137a301e4d852385020087001c4 Mon Sep 17 00:00:00 2001 From: bill-auger Date: Jan 06 2024 23:57:45 +0000 Subject: [PATCH 23/73] housekeeping --- diff --git a/libre/uboot4extlinux-sunxi/PKGBUILD b/libre/uboot4extlinux-sunxi/PKGBUILD index e32db85..b742be2 100644 --- a/libre/uboot4extlinux-sunxi/PKGBUILD +++ b/libre/uboot4extlinux-sunxi/PKGBUILD @@ -9,9 +9,9 @@ # - The package name. Example: uboot4extlinux-a20-olinuxino_micro # - The u-boot configuration. Example: A20-OLinuXino_MICRO_defconfig # - The name of the board(s). Example: A20 OLinuXino Micro -# A single package / u-boot configuration sometimes support multiple -# boards and the configuration name doesn't always have the boards names -# in it. Example: uboot4extlinux-am335x_bone supports various BeagleBones, +# A single u-boot configuration/package sometimes supports multiple +# boards and the configuration name doesn't always denote all board names +# Example: uboot4extlinux-am335x_bone supports various BeagleBones, # the AM335x GP EVM and the EVM SK all in one u-boot binary and package. # - If relevant, the packages it replaces, if there are older u-boot packages # also supporting that board. Example:uboot-a20-olinuxino-micro @@ -26,11 +26,13 @@ # for example of the information mentioned above and add it in the PKGBUILD # for their boards. # -# After adding a new board in this PKGBUILD, to get the board officially -# supported by Parabola.you also need to create a page for it in the -# Parabola wiki for that board and update the ARM installation guide to -# point to it when relevant. Examples of that are available for other -# boards in the ARM installation guide. +# After adding a new board in this PKGBUILD, you should also create a +# 'Computers/' page on the Parabola wiki for that board, and update the relevant +# sections of the 'ARM Installation Guide' to refer to it for any board-specific +# details. The wiki has examples: +# * https://wiki.parabola.nu/ARM_Installation_Guide +# * https://wiki.parabola.nu/Computers. + _pkgbase=u-boot-libre pkgbase=uboot4extlinux-sunxi diff --git a/libre/uboot4extlinux-sunxi/install-uboot4extlinux.sh.in b/libre/uboot4extlinux-sunxi/install-uboot4extlinux.sh.in index 1c744f3..d3a40f0 100644 --- a/libre/uboot4extlinux-sunxi/install-uboot4extlinux.sh.in +++ b/libre/uboot4extlinux-sunxi/install-uboot4extlinux.sh.in @@ -2,13 +2,12 @@ # SPDX-License-Identifier: GPL-2.0+ # Copyright (C) 2020 Denis 'GNUtoo' Carikli -progname="install-uboot4extlinux.sh" u_boot_with_spl="@u_boot_with_spl@" u_boot_with_spl_offset=@u_boot_with_spl_offset@ usage() { - echo "Usage: ${progname} [INSTALL_DEVICE]" + echo "Usage: $0 [INSTALL_DEVICE]" } install_image() @@ -60,7 +59,7 @@ install_image() echo " offset: ${offset}" echo " size: ${image_size}" echo " By default, "\ - "partitioing tools makes the first partition start at 1MiB" + "partitioning tools makes the first partition start at 1MiB" echo " Instaling ${images} "\ "would overwrite that first partition (if it's present)." echo " Please contact the Parabola developers " \ @@ -82,7 +81,7 @@ install_image() } if [ $# -ne 1 ] ; then - usage + usage else - install_image "$1" "${u_boot_with_spl_offset}" "${u_boot_with_spl}" + install_image "$1" "${u_boot_with_spl_offset}" "${u_boot_with_spl}" fi From cb8f06da040a0f6731cbf4f414d3d2f1015ed56c Mon Sep 17 00:00:00 2001 From: SolveFinder Date: Jan 06 2024 23:58:02 +0000 Subject: [PATCH 24/73] updpkg: libre/ark 23.08.4-1.parabola1 --- diff --git a/libre/ark/PKGBUILD b/libre/ark/PKGBUILD index af276d0..e22153b 100644 --- a/libre/ark/PKGBUILD +++ b/libre/ark/PKGBUILD @@ -6,8 +6,8 @@ # Contributor: jc_gargma pkgname=ark -pkgver=23.08.2 -pkgrel=2 +pkgver=23.08.4 +pkgrel=1 pkgrel+=.parabola1 pkgdesc='Archiving Tool' pkgdesc+=', with unarchiver support' @@ -20,20 +20,16 @@ makedepends=(extra-cmake-modules kdoctools5) optdepends=('p7zip: 7Z format support' 'unarchiver: RAR format support' 'lzop: LZO format support' 'lrzip: LRZ format support' 'arj: ARJ format support') groups=(kde-applications kde-utilities) -source=(https://download.kde.org/stable/release-service/$pkgver/src/$pkgname-$pkgver.tar.xz{,.sig} - https://invent.kde.org/utilities/ark/-/commit/9bcbcb05.patch) +source=(https://download.kde.org/stable/release-service/$pkgver/src/$pkgname-$pkgver.tar.xz{,.sig}) source+=(libre.patch) -sha256sums=('3112e6be5eae476c851ece194b2b68888d29b167b7ec1b3a8754a8838ee72b6f' +sha256sums=('222426ca788b3ba286c619ee6f9228e5f256d5e013d45ea7ef5d322fdb9eaa9e' 'SKIP' - '3f05d8333fc79c089d3193c17ec5751f52ac73799c57594b86273c1e2633cd5f' '624bd7cd221db2a80b21cd5f71c447d86091e52276f2bdb609c8916755c7d602') validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7 # Albert Astals Cid F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87 # Christoph Feck D81C0CB38EB725EF6691C385BB463350D6EF31EF) # Heiko Becker prepare() { - patch -d $pkgname-$pkgver -p1 < 9bcbcb05.patch # Fix opening bzip2 files - # Remove unrar plugin patch -d $pkgname-$pkgver -p1 < libre.patch rm -rv $pkgname-$pkgver/plugins/clirarplugin From b0cc87d365c9912c16536a8c215b374ab26317a1 Mon Sep 17 00:00:00 2001 From: bill-auger Date: Jan 06 2024 23:58:47 +0000 Subject: [PATCH 25/73] [ark]: housekeeping - tweak for i686 --- diff --git a/libre/ark/PKGBUILD b/libre/ark/PKGBUILD index e22153b..303a8f9 100644 --- a/libre/ark/PKGBUILD +++ b/libre/ark/PKGBUILD @@ -1,36 +1,40 @@ -# Maintainer (Arch): Antonio Rojas -# Maintainer (Arch): Felix Yan -# Contributor (Arch): Andrea Scarpino +# Maintainer (arch): Antonio Rojas +# Maintainer (arch): Felix Yan +# Contributor: Andrea Scarpino # Maintainer: Andreas Grapentin # Contributor: André Silva # Contributor: jc_gargma + pkgname=ark pkgver=23.08.4 pkgrel=1 pkgrel+=.parabola1 pkgdesc='Archiving Tool' -pkgdesc+=', with unarchiver support' arch=(x86_64) -arch+=(i686 armv7h) +arch+=(armv7h i686) url='https://apps.kde.org/ark/' license=(GPL) depends=(kparts5 kpty5 libarchive libzip hicolor-icon-theme) makedepends=(extra-cmake-modules kdoctools5) +[[ "${CARCH}" == i686 ]] && depends=( ${depends[*]%5} ) # k*5 things n/a i686 +[[ "${CARCH}" == i686 ]] && makedepends=( ${makedepends[*]%5} ) # k*5 things n/a i686 optdepends=('p7zip: 7Z format support' 'unarchiver: RAR format support' 'lzop: LZO format support' 'lrzip: LRZ format support' 'arj: ARJ format support') groups=(kde-applications kde-utilities) source=(https://download.kde.org/stable/release-service/$pkgver/src/$pkgname-$pkgver.tar.xz{,.sig}) source+=(libre.patch) sha256sums=('222426ca788b3ba286c619ee6f9228e5f256d5e013d45ea7ef5d322fdb9eaa9e' - 'SKIP' - '624bd7cd221db2a80b21cd5f71c447d86091e52276f2bdb609c8916755c7d602') + 'SKIP') +sha256sums+=('624bd7cd221db2a80b21cd5f71c447d86091e52276f2bdb609c8916755c7d602') validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7 # Albert Astals Cid F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87 # Christoph Feck D81C0CB38EB725EF6691C385BB463350D6EF31EF) # Heiko Becker + prepare() { # Remove unrar plugin + echo "applying libre.patch" patch -d $pkgname-$pkgver -p1 < libre.patch rm -rv $pkgname-$pkgver/plugins/clirarplugin } diff --git a/libre/ark/keys/pgp/CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7.asc b/libre/ark/keys/pgp/CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7.asc new file mode 100644 index 0000000..07050e6 --- /dev/null +++ b/libre/ark/keys/pgp/CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7.asc @@ -0,0 +1,29 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQINBFfNZD4BEACo0YKCUEhTY7v8VZVw3csAtnsRSFQ18G8xfYIt7mJEBrtfiGG4 +g28EjNeWQfN8wGIaAeRGl5nb7s9RRpxXStUu719jGX1Z9Sr8p/JOmBS5kdfAtYId +9Cl3VsGRvf4Smg1ClrEv6tQ97j+d1FY8QfgW/GS46YBOEeOFVQRtfi7Yv9lZkiBF +rzP0Nr7JV9u1GkBsFgNkVuYs/3RDYULItBwGFerduOyQCOt819QvHHSZkXqJWwNR +OA6lc8gW36lKbDHoZ1jSkDnDV0bW0cX1/6WJSzWYdcPiceA1vj/VDg0Kr23SVQ1P +yPvBirT7ToirQm6KrIiKHWLSg156ht8/K2C1Dgypf+YMseMbHQxVLrI2p4zpmxu3 +B2SrSj3ImM5FO0XGd1gxn/qywNVJDQBfcYnndksD2i/9/Es8I/F6OymBZl4HWBvx +7ixm2JPXkmwVPEC/lJn3eCBb1fAaJSlroHtaAEteCWuE5/Mg/uYEh1UeAstP47N3 +P0B3l1E4Ccw1ne2/O1BdsnXeUaI3YVYz9aZkVlL7ywda3h/goRKxc1b18bmgu/Ed +QmcTEMj29B3szMpetWNt1ZbaMJzfDw+z+SiQ3toOTUiqMuWq+l+JK0dVUzOvpGhG +VHv5m9CtJFP671ivEc4it0hJRH5kdW9aNbeG0g9TxHQqQMJIpeLvRq5WKwARAQAB +tCFBbGJlcnQgQXN0YWxzIENpZCA8YWFjaWRAa2RlLm9yZz6JAlQEEwEIAD4CGwMF +CwkIBwIGFQgJCgsCBBYCAwECHgECF4AWIQTKJixsg95NL7KKMyo6ak24Oeqm1wUC +XVO22wUJB2eGHQAKCRA6ak24Oeqm176hD/9QGNeGm0UX/X8PY6OManUuC5tl/RI2 +xo5ZbckxgSlNKgdhuE9hcrCOX74smdFKkk3EoxfXTa+YaarjXPq+ZfqgOiAk7TyU +BjZiiRiqgg7rWvsUa0ifxP++oN8aV9bTT8+WvkU2nXEPLtvaoSTXn/zE1bv7dIhB +13u2Du3PIVoUQBfcg9tyNkMQ+ifAQxjUghbPKeqsoql1bqY3v561SVg6D+IqeA5s +3Q8xxve4wc8vFgwRsWm4ugFTGRHdLhAFc3LlFxmFDhPMNvQguPh9MifBGthFcHBd +F2lUTdXffhiKpCQ3+qUP/YP0rurL+Ke8aBNBXlU68+2l0JrCjySnDj3a5RKWOgWk +2SSadUia06GGHRBaTVs5AAOfL0vaIbeUMxSv7Itg8jkqH2/9PdoCDOFznNS1C6o+ +MxtPFmjZSGna5wSlyUobCrcRGL1mD5w4r16MKFICSVQM5ns617bm0tWS0qyAARid +Ng3baLoStf64wyk5QUwfVj1huQzRmk7os3OOik44J+nF8BqloW0bAsJ3mFgJVqLW +5U6GpbURaVsnxgnu4VuRedHg/JC1gy7JqNASq3vlExmBJDsNZjgPWKlnUezyxM0+ +UP3OGb4AVPm7yVUZWB3XuPyk2565rOWEFyXy1/oOrHAgijD5d4FPGe4sxy0WH88E +z+nBNcht+1juVw== +=t/sG +-----END PGP PUBLIC KEY BLOCK----- diff --git a/libre/ark/keys/pgp/D81C0CB38EB725EF6691C385BB463350D6EF31EF.asc b/libre/ark/keys/pgp/D81C0CB38EB725EF6691C385BB463350D6EF31EF.asc new file mode 100644 index 0000000..ac8562f --- /dev/null +++ b/libre/ark/keys/pgp/D81C0CB38EB725EF6691C385BB463350D6EF31EF.asc @@ -0,0 +1,63 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQINBFIoa28BEACX3sZB3hjIPlaXouQLMDX7yA5FeVccsyadoNnpJ6q04ZUSYbYW +XvXKkDEK9D8DsQ7cftWcafQqNxamfmqQ5fyXtbQsmWty0MrckcT4pA5OaZlGZIgb +gim4UDOtQF3EYCtw2Mwo4XnSrQtrWv8CWXY1sxCsVf4/txHm/VZ2s8pmT2b0+qVJ +gUeK342Y1sZFoVtADcMCMCtMRi1JwZ5ARthRsLB2y9l5GwsSX30FvIwfGzHOjWWc +5bzuaFIbPTrn8pyCD+FNWuS1Oth8LHDV76N/fbPkgoKk4Zqivb2/NfOlPiG2uPlh +CPUd0ZoSSO4BFxpW/dkAbin5fWDF14cW4tE/P8M2DpUmvLsfrg1LGyyqkzYi9ha+ +HQVHHUC2k8lI+OEIoX+P/4JMK23jrjJdjbtqCRsuEAUGFsXXTf4XTaMi6SQJCaIy +dVy9ehn9f68kCVt9FA/gv4h247wFkTR+RiHMxRZmzI6nNbN8pKAjsKlwh4TdzU7A +DXfPShzafC7cs4fS3nhbqEj8p31t+SYK/XsKl5CTMhZDvRXljPDVfTyLBtQNC1Qj +t8Uo+y9C7afB/W1rhAXb55CdJvvbRN+W+dMOfEpNnJcNCo1ov/dcDW4XhB4ax0Xd +6IR1XCIQ0uJHp9e2hrN2q9tErO7DeqHmnoL9TVBmsj7SAx64c5KLZMWvAwARAQAB +tB5IZWlrbyBCZWNrZXIgPGhlaWtvQHNocnV1Zi5kZT6JAjkEEwECACMFAlIoa28C +GyMHCwkIBwMCAQYVCAIJCgsEFgIDAQIeAQIXgAAKCRC7RjNQ1u8x7301D/sGoym9 +VtnwmVis3fXeY0BwjvRSnJ2vGuf9wNjjQNxiSbh61Zx4gV4w1SGL1pttPEj/3Vub +LItXwsH8M2WDFl5gW4b5AGGFdBbBlPlHjcJMILCe9s1ayc0HpeMKf9VkuY93WcTM +2cHQj96oxDyLwWEiaSIoYRHib28X2mYPHctQ307mp8HF3GeFtY9936ZiAfEXLykW +F2f5iSKXKMK8t7P7dgDAUQ+C+IfyYpQLEcGUKMVpCk4ZoTItth56fe6xpwo1PllL +oXgzy6gYQXwrOnM/w3j/1hJQal2o/gUVJzLhrb/zKoEyIhxV+bvgFiSd/ChDkits +x1qf0FMbs3ACPgbCLYjbr8sFMHPQDTw2DmqGCLwEGAh/KEQ+Q2HVLS88glRwVLp2 +O16+26dm3f3DgiElmW3Qf4iMhj/+KGyWUf3eRldg/mTlBc0v8QKhJS8a+Pex6oPO +jIo9+yyuSl2BK8Vvm8MLi5FFM1uLrsMo1plkNdTKUPoNRTCELREAIvq0ICnLit2j +wDT4N5JWWcAZlhYAag7R0gnEOt3VAxCkGDSdS1mMgl5npgesu3T7k+khIEcvaU48 +g7II/q4kgYJvp8iWDwJew+n6PnYv0DjtmXoXISDIkmOESa1Py4M+K28omBu170es +e3CK3LerNbBJSnlZgoYUqQMPGuMFE0mCOb0+8rQjSGVpa28gQmVja2VyIDxoZWly +ZWNrYUBleGhlcmJvLm9yZz6JAjkEEwECACMFAlIobWYCGyMHCwkIBwMCAQYVCAIJ +CgsEFgIDAQIeAQIXgAAKCRC7RjNQ1u8x7+tDEACRF1c9DVGJnubyrF5Aqn9ChCCR +3GS4ynTxmf21xCoARpbbh8edBlzxJ7HNf1+t/0wEcmKGNdaRZUVIyXMCj2Uye6/C +KbmBz0ynHjoRkVSX+imJynJKmKjWsqctRqT67K9pnCB5KIiUK3c3GWrxd2u8dZUJ +pb5XhbWzIDwnR7AdvoT0ytuANbUA5gtwH0WriUQ2qsZK3tzmm0L4EJ07qGXB94WY +VaLrz4+26ja4O/v87Pm0yadGMGjIFkq7u8g7kiME1VPvzjkUwxk3XcDVcFt5Gjct +1beMX/SUt8WLYfL3XUyU8i/UKraf0hPG7TeWpPOvlmfjgMicmfgYDXMyTz3h54GR +G3AvIZA9oMbcsc9SX6+IayWCN4m7j3qZWBbzCtbkXTJU42dHKjnANTRj+5e8RVVa +DaI6WzWW4VCLfJrsVqEJvoJvCBrpfVClV64D/tqiCHNbBpBIcxBJd6i5QceS95EH +BRjCvqeSUNvyVeIFWTBOodycMZufEtCMgPBvzSyT0FUtjk1PtQowe1VA47PiyjIw +7CrcTzfC3KhOb0iXZLPVXZ8+A3Zbgq3iFt8MNj/Wvn+OnvZ6eFtoH5yfqmvrMisM +mRxwMH+sd9WDqIpEf/vQhC54mA9F99dYmqYFJdkfgAaECqdqR+LwbNl8unPs5/BF +gHGN+x6HNq5UXNx+pbkCDQRSKGtvARAAoyoGg3MhkXhQkJqsEsKq+D5mVWwaH4Ah +h3YuujOk+sCdxOonSUPu3HMzQiZsxFrq/sT2QgrY+MIegB0ZtW0BpiacIkZPapgG +xSaAaZv58ICBgvuX5N1CzqKQGjnyN01eyUvN+m1zbqB00iDeJ4MI5BJWipSls0ah +FQqL5ZkFZ7bRDkPdxL7HrBJVs8Q/cs0eV2SaAsVxV4bz1DPdymsZbJnAXz9X/6Tv +Fu+ANDD6XqhhYSsAzrCvkX8VVCBb+gdwFxHU9lrOYGqFL/bG0apNky2DILRCu8y/ +vHhtugRApJiTfvg4UToc9LkaU58gQbwnfP7t13Hz0iVKwyPuluFK+SlrRHOoCmXc +hPwrhLiLWH9gCecxu/hm/uDj/ncNaxg0tU4myRoPBC2PC3c/bNHSLBrt3QXwb/HU +4ot4rV4AYwAgPSTcDMPr/SIs4FsMP2lfWinMsrUO9TkMDVno7PzFncFA/ZCfp0+N +MXbxCF2C8CyaQZHkApuHc1a2FZ3v3KrmqB+/h27UUZmNGHbGOYt0dm/NVHn05NNl +gcNCt1etSkjFLvo+pWCnfqDhTBB+mPm1kW1rm+3X9nzGHfCbMWcy32ya9nDGQ9Y7 +8z5Gupd7CtJwqjFDzR10HqTPiydDriKYXB0guYRiJ7rqea+5LM54l/C+NcfDYpu+ +KzMmvOUCH8UAEQEAAYkCHwQYAQIACQUCUihrbwIbDAAKCRC7RjNQ1u8x7+X5D/46 +greky5mJmwRa2IqZpgk5PE5mN0EueCV3iH1K1jKjU8ZFwEkAG0XGDcPe8nBgXxfN +CnTMayF3xWNWMUrX1WcGD/tEylkWRD3CGVvBS4U0Xym5n7gNhXXOBfLn853eySf9 +0OF6HCp31TWq/jwmjFpG7nvzQSV4CpMWn+LH9WsJ20VsR/k2TxmHtplGfv/zTiU4 +SWjSyjDS1v5JRd04Zxe44tnP1UfikHZCi/HetMV+4iDcp4s0M3/Y5aVtSnAXozAx +3uEXQmDchFFEzG+4myyobj+m/KV6ABGkzXpwH8Tx54U5wTxuhklj0bmLZwwN2xpV +fljZWtJNc9ZglS8PRLulu3Z8bVQOTnnuoyZxP7+9R5XhDY/SA2vj7n/w5F6lnqjy +b8FsXr2qiEl2E0+xAa6UEku9zGgWPNTHZmmtiDKsqhlNW4eAphMvZFqC+6i7vRVV +9moZ+8ueD0rMrVdP53th/W/R9cQtf/swwtof79ERqObC9Ur3/yy/CCNPI+Dj1qqM +ZsFEKALVipcexKbqGhQfKYwwaKgDSe8mVHc/JbTwof2rmPxbmBNQWVgHwRVUGB63 +Jnn9afS3SYEBTAz/f4S6TAM30VL2To6H+vKtc4ZPtzRIQD5dU3SDWT4qGMusAgSl +rG55+BcCqtgEEF7/JbOUHbLUu8+g/F2rZpAbsr5V8g== +=P9hR +-----END PGP PUBLIC KEY BLOCK----- diff --git a/libre/ark/keys/pgp/F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87.asc b/libre/ark/keys/pgp/F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87.asc new file mode 100644 index 0000000..ea1f1fc --- /dev/null +++ b/libre/ark/keys/pgp/F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87.asc @@ -0,0 +1,30 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQENBFlRpEYBCACecX3F5xzF6wzeXiuBAuHq74bVHON7I89U+ROloEWYUYMRNTz2 +l1BkNHWRTTqfmPO7LhMY6g4gOPeQVCwgTGVjI8bn6sJd3SFdeiRvvaFBpmn7SjBd +s1rkKKJIjeMUl1w8dFnmf22V0PnhSSepmNwmd8RQnl1umCTSihDJydGxixw6ZNhr +4tzbn+Rfadybli61H2hc6/JJHe91i+V1ltgkHwGcs6MUCqXgSL0dUIJs49gSrla0 +gkrcJYF5MWyGxKlajbCjkMCJtN+8bhEmpc4Oe8NZ33arEWnlyh1RVgi5p3RTNApY +Pxctcg57ExczbKn9R8VLYmPJ7Di3gX0cmotrABEBAAG0HkNocmlzdG9waCBGZWNr +IDxjZmVja0BrZGUub3JnPokBTgQTAQgAOBYhBPIydeS/EK/B32kUptvSzok+LRyH +BQJZUaRGAhsDBQsJCAcCBhUICQoLAgQWAgMBAh4BAheAAAoJENvSzok+LRyHeWcH +/A1E2d5UL2oHsrLIolIiWMmheRorcac+0Hgll1mMUQ5tfPH+LVzgrlMMG7g1Amky +Hk1qZ5oszrXUg2H/28/cOF/WVlHgQcSGr7aQbHieUivPtZMua+lHUdILC3UV2l1V +22Zz8HIDl4kxmK6EpoNIOK5Mo550S3e3AKYq5pa/FlckCV9/JoK9+thRCsoAAj3g +oWwTx9RY5pmLPtklqyC5961Je7KHSIVqapJ/G5DX+yfOC1Psc+vIfyQVqnaefZPW +dIxXQQhn46i6IRRimw94Gkwca+wslkimt/L/Z7ByZqBsXMyixSQPq+dtSO9CMgr0 +WxTX78wATkTGzh5oSwKCMga5AQ0EWVGkRgEIAMuUnfNfrdx8xn7Jjcm6MGkB/Yep +XVysrlHxUUS6q7629JdSlVWnQo9GFO927GZClWI9rCGLQMfZZk/jfgKV/nkpLod3 +I51remOg7ohSkwRLAdwJ7xCuNrafhKntFh5/NxuaXxaVIY1muvZbTAsIRyks2jCE +pUoK43Z8dr4/QPhBstssB8czDME1Tw4r7X+RwjFrQqDItFv6f0BIdEwR462khLEw +vbXRN1nzs+6Y0foJbJCS3VDZC9scsrrMVMV+OEBF3DXp9ypSWsLnkuBPPIus6Y8G +j7JvYUBtrUhKL5a7o5G3Te9YhwGgOKVqWlncs6ZLiOV6HnG0BO3xdPcn09cAEQEA +AYkBNgQYAQgAIBYhBPIydeS/EK/B32kUptvSzok+LRyHBQJZUaRGAhsMAAoJENvS +zok+LRyHaRMIAI5YaTfGeQDmR08I2LvztOEH/3YF63cNCP/Vp+WAtF/Kr8mMFpFS +oTHJNMi7p964lHYTTPzPeQzLzV3ayiQjq+DHs6HFmYl73ukzlGGc7KDlyhugQjm6 +AqNtqqXAVykaixnFj8jf2WtQGl1hqpm8GhDRBmZycqMqne4tZokujhtpdC6suRvc +AB0S+lRZUwrY05k6Nc1A8J8k/lxXXa9KzXNaqKsqppgBZoqKN3zS4146uEjvuLsh +CarZ/6uUidvP0LBTR7HKye5A9Qdbjlg9qvtR7YF3hqy4g1PRNZWRlsQ1pkCdCTfN +TA+HYUzK0ESVpY72lWvH49lNg+ufZ1bKvKI= +=MZJ5 +-----END PGP PUBLIC KEY BLOCK----- From 10172331c70a09aae861964d694acbcd99b8df46 Mon Sep 17 00:00:00 2001 From: Luke T. Shumaker Date: Jan 07 2024 22:22:54 +0000 Subject: [PATCH 26/73] libre/grub: delete unused files --- diff --git a/libre/grub/09_parabola b/libre/grub/09_parabola deleted file mode 100644 index 90a9062..0000000 --- a/libre/grub/09_parabola +++ /dev/null @@ -1,195 +0,0 @@ -#!/usr/bin/env bash - -## -## grub-mkconfig helper script specific to Parabola GNU/Linux-libre -## Contributed by "Keshav Amburay" -## Rebranded for Parabola by "André Silva" -## Updated on 08 February 2014 -## -## Script based on do_grub_config() function in Arch Archboot ISO Installer/Setup script -## Some parts taken from /etc/grub.d/10_linux script shipped by GRUB(2) upstream -## -## This script can be freely distributed and/or modified -## under the terms of the GNU General Public License as published by -## the Free Software Foundation, either version 3 of the License, or -## (at your option) any later version. -## -## This script is distributed in the hope that it will be useful, -## but WITHOUT ANY WARRANTY; without even the implied warranty of -## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -## GNU General Public License for more details. -## - -_FUNC_GRUB_FILE_PRESENT() { - - [[ -z "${GRUB_PLATFORM}" ]] && GRUB_PLATFORM="x86" - - if [[ "${GRUB_PLATFORM}" == "x86" ]]; then - check="--is-x86-linux32" - elif [[ "${GRUB_PLATFORM}" == "i386-xen-pae" ]]; then - check="--is-i386-xen-pae-domu" - elif [[ "${GRUB_PLATFORM}" == "x86_64-xen" ]]; then - check="--is-x86_64-xen-domu" - else - check="--is-${GRUB_PLATFORM}-linux" - fi - - case "${GRUB_PLATFORM}" in - x86) - list="$(for i in "${GRUB_ROOT}"/boot/vmlinuz-linux* ; do - if grub_file_is_not_garbage "${i}" && "${grub_file}" ${check} "${i}" ; then echo -n "${i} " ; fi - done)" ;; - *) - list="$(for i in "${GRUB_ROOT}"/boot/vmlinuz-linux* ; do - if grub_file_is_not_garbage "${i}" && "${grub_file}" ${check} "${i}" ; then echo -n "${i} " ; fi - done)" ;; - esac -} - -set -e - -prefix="/usr" -exec_prefix="${prefix}" -datarootdir="/usr/share" -datadir="${datarootdir}" -sysconfdir="/etc" - -. "${datarootdir}/grub/grub-mkconfig_lib" - -. "${sysconfdir}/default/grub" - -export TEXTDOMAIN="grub" -export TEXTDOMAINDIR="${datarootdir}/locale" - -CLASS="--class parabola --class gnu-linux --class gnu --class os" - -[[ "${grub_file}" != "" ]] && _FUNC_GRUB_FILE_PRESENT - -BOOT_PART_FS_UUID="$(${grub_probe} --target="fs_uuid" "/boot" 2>/dev/null)" -BOOT_PART_HINTS_STRING="$(${grub_probe} --target="hints_string" "/boot" 2>/dev/null || true)" -BOOT_PART_FS="$(${grub_probe} --target="fs" "/boot" 2>/dev/null)" - -ROOT_PART_GRUB_DEVICE="$(${grub_probe} --target=device / || true)" -ROOT_PART_FS="$(${grub_probe} --device ${ROOT_PART_GRUB_DEVICE} --target=fs 2> /dev/null || echo "unknown")" - -if [[ "${GRUB_LINUX_ROOT_DEVICE}" == "" ]]; then - - case "${ROOT_PART_FS}" in - btrfs) - rootsubvol="$(make_system_path_relative_to_its_root /)" - rootsubvol="${rootsubvol#/}" - if [[ "${rootsubvol}" != "" ]]; then - GRUB_LINUX_ROOT_DEVICE="subvol=${rootsubvol}" - fi - ;; - zfs) - rpool="$(${grub_probe} --device ${GRUB_DEVICE} --target=fs_label 2>/dev/null || true)" - bootfs="$(make_system_path_relative_to_its_root / | sed -e "s,@$,,")" - GRUB_LINUX_ROOT_DEVICE="ZFS=${rpool}${bootfs}" - ;; - esac - - if [[ "${GRUB_DEVICE_UUID}" == "" ]] || \ - [[ "${GRUB_DISABLE_LINUX_UUID}" == "true" ]] || \ - [[ ! -e "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" ]] || \ - uses_abstraction "${GRUB_DEVICE}" lvm ; then - GRUB_LINUX_ROOT_DEVICE="${GRUB_DEVICE}" - else - GRUB_LINUX_ROOT_DEVICE="UUID=${GRUB_DEVICE_UUID}" - fi -fi - -[[ "${GRUB_LINUX_PARAMS}" == "" ]] && GRUB_LINUX_PARAMS="${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" - -for _KERNEL_ in ${list} ; do - - echo "Found linux image: ${_KERNEL_}" >&2 - - basename="$(basename "${_KERNEL_}")" - dirname="$(dirname "${_KERNEL_}")" - REAL_DIR="$(make_system_path_relative_to_its_root "${dirname}")" - - _KERNEL_FILE_="$(echo ${_KERNEL_} | sed 's,/boot/,,g')" - _KERNEL_PKG_="pkg-$(echo ${_KERNEL_FILE_} | sed 's,vmlinuz-,,g')" - - _INITRAMFS_="${_KERNEL_FILE_/vmlinuz-/initramfs-}.img" - - if [[ -e "/boot/${_INITRAMFS_}" ]]; then - - echo "Found initramfs image: /boot/${_INITRAMFS_}" >&2 - -cat << EOF - -menuentry "Parabola GNU/Linux-libre ${_KERNEL_PKG_} kernel" ${CLASS} { - $(save_default_entry) - if [ x\$feature_all_video_module = xy ]; then - insmod all_video - fi - set gfxpayload=keep - insmod ${BOOT_PART_FS} - if [ x\$feature_platform_search_hint = xy ]; then - search --no-floppy --fs-uuid --set=root ${BOOT_PART_HINTS_STRING} ${BOOT_PART_FS_UUID} - else - search --no-floppy --fs-uuid --set=root ${BOOT_PART_FS_UUID} - fi - echo 'Loading Parabola GNU/Linux-libre ${_KERNEL_PKG_} kernel ...' - linux ${REAL_DIR}/${_KERNEL_FILE_} root=${GRUB_LINUX_ROOT_DEVICE} rw ${GRUB_LINUX_PARAMS} - echo 'Loading Parabola GNU/Linux-libre ${_KERNEL_PKG_} kernel initramfs ...' - initrd ${REAL_DIR}/${_INITRAMFS_} -} - -EOF - fi - - _INITRAMFS_FALLBACK_="${_KERNEL_FILE_/vmlinuz-/initramfs-}-fallback.img" - - if [[ -e "/boot/${_INITRAMFS_FALLBACK_}" ]]; then - - echo "Found fallback initramfs image: /boot/${_INITRAMFS_FALLBACK_}" >&2 - -cat << EOF - -menuentry "Parabola GNU/Linux-libre ${_KERNEL_PKG_} kernel (fallback initramfs)" ${CLASS} { - $(save_default_entry) - if [ x\$feature_all_video_module = xy ]; then - insmod all_video - fi - set gfxpayload=keep - insmod ${BOOT_PART_FS} - if [ x\$feature_platform_search_hint = xy ]; then - search --no-floppy --fs-uuid --set=root ${BOOT_PART_HINTS_STRING} ${BOOT_PART_FS_UUID} - else - search --no-floppy --fs-uuid --set=root ${BOOT_PART_FS_UUID} - fi - echo 'Loading Parabola GNU/Linux-libre ${_KERNEL_PKG_} kernel ...' - linux ${REAL_DIR}/${_KERNEL_FILE_} root=${GRUB_LINUX_ROOT_DEVICE} rw ${GRUB_LINUX_PARAMS} - echo 'Loading Parabola GNU/Linux-libre ${_KERNEL_PKG_} kernel fallback initramfs ...' - initrd ${REAL_DIR}/${_INITRAMFS_FALLBACK_} -} - -EOF - fi - - if [[ ! -e "/boot/${_INITRAMFS_}" ]] && [[ ! -e "/boot/${_INITRAMFS_FALLBACK_}" ]]; then -cat << EOF - -menuentry "Parabola GNU/Linux-libre ${_KERNEL_PKG_} kernel (no initramfs)" ${CLASS} { - $(save_default_entry) - if [ x\$feature_all_video_module = xy ]; then - insmod all_video - fi - set gfxpayload=keep - insmod ${BOOT_PART_FS} - if [ x\$feature_platform_search_hint = xy ]; then - search --no-floppy --fs-uuid --set=root ${BOOT_PART_HINTS_STRING} ${BOOT_PART_FS_UUID} - else - search --no-floppy --fs-uuid --set=root ${BOOT_PART_FS_UUID} - fi - echo 'Loading Parabola GNU/Linux-libre ${_KERNEL_PKG_} kernel ...' - linux ${REAL_DIR}/${_KERNEL_FILE_} root=${GRUB_LINUX_ROOT_DEVICE} rw ${GRUB_LINUX_PARAMS} -} - -EOF - fi - -done diff --git a/libre/grub/arm-extra b/libre/grub/arm-extra deleted file mode 100644 index 87d4aa8..0000000 --- a/libre/grub/arm-extra +++ /dev/null @@ -1,333 +0,0 @@ -### ARM_UBOOT - loadaddr ### -# 0x00007fc0 - versatile[versatile_ab/versatile_pb] -# 0x00100000 - snowball/u8500_href -# 0x00800000 - dns325/highbank/wireless_space -# 0x02000000 - zynq[zynq_microzed/zynq_picozed/zynq_zc702/zynq_zc706/zynq_zc70x/zynq_zc770[zynq_zc770_xm010/zynq_zc770_xm012/zynq_zc770_xm013]/zynq_zed/zynq_zybo] -# 0x08000000 - grub -# 0x10800000 - cm_fx6 -# 0x12000000 - aristainetos[aristainetos/aristainetos2]/mx6[mx6slevk/mx6sxsabresd] -# 0x40007000 - origen -# 0x43e00000 - origen -# 0x60008000 - vexpress_ca9x4 -# 0x70800000 - ima3-mx53/mx53evk/mx53smd -# 0x72000000 - mx53ard/mx53loco -# 0x80000000 - am335x_bur[kwb/tseries]/am3517[am3517_crane/am3517_evm]/mcx -# 0x80007fc0 - am335x_ti[pcm051] -# 0x80008000 - vexpress_ca9x4/vexpress[vexpress_ca15_tc2/vexpress_ca5x2](extended-mem) -# 0x80100000 - am335x_bur[kwb]/ls2085a[ls2085a_emu/ls2085a_simu/ls2085aqds/ls2085ardb] -# 0x80200000 - am335x_bur[tseries]/am335x_ti[am335x_evm/omap3_beagle/pengwyn]/ti814x_evm -# 0x80800000 - * flea3/mx31ads/mx35pdk/qong/woodburn/woodburn_sd -# 0x81000000 - ti814x_evm * mx25pdk/omap3_logic/ti816x_evm/tx25 -# 0x82000000 - am335x_ti[am335x_evm/omap3_beagle/pcm051/pengwyn]/am3517[am3517_crane/am3517_evm]/mcx -# /mx6[gw_ventana[gwventana]/mx6cuboxi/mx6qarm2[mx6dlarm2]/mx6qsabreauto[mx6dlsabreauto]/mx6sabresd[mx6dlsabresd/mx6qsabresd]] -# /omap3_ti[devkit8000] -# * bav335x/cm_t335/cm_t3517/dig297/omap3_evm/omap3_igep00x0/omap3_mvblx/omap3_sdp3430/omap3_zoom1/tao3530 -# 0x84000000 - am335x_baltos -# 0x90000000 - vexpress64_base[vexpress_aemv8a_semi]/vexpress64_juno[vexpress_aemv8a_juno] -# 0x90000000UL - ls2085a[ls2085a_emu/ls2085a_simu/ls2085aqds/ls2085ardb] -# 0x90800000 - vision2 -# 0x92000000 - mx51evk -# 0xa0008000 - vexpress[vexpress_ca15_tc2/vexpress_ca5x2](extended-mem) -# 0xa0800000 - imx27lite -# 0xc0000014 - davinci[ea20] -# 0xc0700000 - davinci[ea20] -# 0x12000000 - udoo_dl udoo_quad - -# alt -# am335x_igep0033 -# am43xx_evm -# apalis_t30 -# apf27 -# apx4devkit -# armadillo-800eva -# arndale -# aspenite -# at91rm9200ek -# at91sam9260ek at91sam9g20ek/at91sam9xeek -# at91sam9261ek at91sam9g10ek -# at91sam9263ek -# at91sam9m10g45ek -# at91sam9n12ek -# at91sam9rlek -# at91sam9x5ek -# balloon3 -# bav335x birdland_bav335a/birdland_bav335b -# bcm28155_ap bcm11130/bcm28155_w1d -# bcmcygnus bcm911360/bcm911360k/bcm958300k/bcm958305k -# bcmnsp bcm958622hr -# beagle_x15 -# beaver -# bg0900 -# calimain -# cam_enc_4xx -# cardhu -# cgtqmx6eval cgtqmx6qeval -# cm_t335 -# cm_t3517 -# cm_t35 -# cm_t54 -# colibri_pxa270 -# colibri_t20 -# colibri_t30 -# colibri_vf -# corvus -# cpu9260 cpu9G20 -# cpuat91 -# da830evm -# da850evm da850_am18xxevm -# dalmore -# davinci_dm355evm -# davinci_dm355leopard -# davinci_dm365evm -# davinci_dm6467evm davinci_dm6467Tevm -# davinci_dvevm -# davinci_schmoogie -# davinci_sffsdr -# davinci_sonata -# db-88f6820-gp -# db-mv784mp-gp -# devkit3250 -# devkit8000 -# dig297 -# dockstar -# dra7xx_evm -# draco -# dreamplug -# duovero -# eb_cpux9k2 -# eco5pk -# edb93xx edb9315a -# edminiv2 -# embestmx6boards marsboard/riotboard -# enbw_cmc -# ethernut5 -# flea3 -# goflexhome -# gose -# gplugd -# guruplug -# h2200 -# harmony -# ib62x0 -# iconnect -# imx27lite -# imx31_litekit -# imx31_phycore -# integrator_ap integratorap_cm720t/integratorap_cm920t/integratorap_cm926ej_s/integratorap_cm946es -# integrator_cp integratorcp_cm1136/integratorcp_cm920t/integratorcp_cm926ej_s/integratorcp_cm946es -# ipam390 -# jetson-tk1 -# jornada -# k2e_evm -# k2hk_evm -# k2l_evm -# km_kirkwood kmcoge5un/kmnusa/kmsugp1/kmsuv31/mgcoge3un/portl2 -# koelsch -# kosagi_novena novena -# kzm9g -# lager -# lp8x4x -# ls1021aqds -# ls1021atwr -# lsxl lschlv2/lsxhl -# magnesium -# maxbcm -# mcx -# medcom-wide -# meesc -# m28evk -# m53evk -# mt_ventoux -# mv88f6281gtw_ge -# mx23_olinuxino -# mx23evk -# mx25pdk -# mx28evk -# mx31ads -# mx31pdk -# mx35pdk -# mx51_efikamx mx51_efikasb -# mx51evk -# nas220 -# net2big_v2 d2net_v2 -# netspace_v2 inetspace_v2/netspace_lite_v2/netspace_max_v2/netspace_mini_v2 -# nitrogen6x mx6qsabrelite/nitrogen6dl2g/nitrogen6dl/nitrogen6q2g/nitrogen6q/nitrogen6s1g/nitrogen6s -# nokia_rx51 -# nomadik_nhk8815 -# nyan-big -# odroid -# odroid-xu3 -# omap3_cairo cairo -# omap3_evm -# omap3_evm_quick -# omap3_igep00x0 igep0020/igep0030/igep0032 -# omap3_logic -# omap3_mvblx -# omap3_overo -# omap3_pandora -# omap3_sdp3430 -# omap3_zoom1 -# omap4_panda -# omap4_sdp4430 -# omap5_uevm -# omapl138_lcdk -# openrd -# origen -# ot1200 -# otc570 -# palmld -# palmtreo680 -# paz00 -# peach-pi -# peach-pit -# pengwyn -# pepper -# platinum_picon -# platinum_titanium -# plutux -# pm9261 -# pm9263 -# pm9g45 -# pogo_e02 -# porter -# pxa255_idp -# pxm2 -# qong -# rastaban -# rd6281a -# rpi_2 -# rpi -# rut -# s5p_goni -# s5pc210_universal -# sama5d3_xplained -# sama5d3xek -# sama5d4_xplained -# sama5d4ek -# sansa_fuze_plus -# sc_sps_1 -# scb9328 -# seaboard -# secomx6 secomx6quq7 -# sheevaplug -# silk -# smdk2410 -# smdk5250 -# smdk5420 -# smdkc100 -# smdkv310 -# snapper9260 snapper9g20 -# snow -# socfpga_arria5 -# socfpga_cyclone5 socfpga_socrates -# spear300 -# spear310 -# spear320 -# spear600 -# stamp9g20 portuxg20 -# stm32f429-discovery -# stv0991 -# sun4i-a10-a1000(mele) -# sun4i-a10-ba10-tvbox -# sun4i-a10-chuwi-v7-cw0825 -# sun4i-a10-cubieboard -# sun4i-a10-gemei-g9 -# sun4i-a10-hyundai-a7hd -# sun4i-a10-inet-3f -# sun4i-a10-inet-3w -# sun4i-a10-jesurun-q5 -# sun4i-a10-marsboard -# sun4i-a10-mini-xplus -# sun4i-a10-mk802 -# sun4i-a10-mk802ii -# sun4i-a10-olinuxino-lime -# sun4i-a10-pcduino -# sun5i-a10s-auxtek-t004 -# sun5i-a10s-mk802 -# sun5i-a10s-olinuxino-micro -# sun5i-a10s-r7-tv-dongle -# sun5i-a13-ampe-a76 -# sun5i-a13-forfun-q88db -# sun5i-a13-inet-86vs -# sun5i-a13-olinuxino -# sun5i-a13-olinuxino-micro -# sun5i-a13-tzx-q8-713b7 -# sun5i-a13-utoo-p66 -# sun6i-a31-colombus -# sun6i-a31-hummingbird -# sun6i-a31-i7(mele) -# sun6i-a31-m9(mele) -# sun6i-a31-mele-a1000g-quad -# sun6i-a31-mixtile-loftq -# sun6i-a31s-cs908 -# sun6i-a31s-primo81(msi) -# sun7i-a20-ainol-aw1 -# sun7i-a20-bananapi -# sun7i-a20-bananapro -# sun7i-a20-cubieboard2 -# sun7i-a20-cubietruck -# sun7i-a20-i12-tvbox -# sun7i-a20-m3(mele) -# sun7i-a20-m5(mele) -# sun7i-a20-mk808c -# sun7i-a20-olinuxino-lime -# sun7i-a20-olinuxino-lime2 -# sun7i-a20-olinuxino-micro -# sun7i-a20-orangepi -# sun7i-a20-orangepi-mini -# sun7i-a20-pcduino3 -# sun7i-a20-pcduino3-nano -# sun7i-a20-primo73(msi) -# sun7i-a20-wexler-tab7200 -# sun7i-a20-wits-pro-a20-dkt -# sun7i-a20-yones-toptech-bd1078 -# sun8i-a23-ippo-q8h-v1.2 -# sun8i-a23-ippo-q8h-v5 -# sun8i-a33-et-q8-v1.6 -# sun8i-a33-ga10h-v1.1 -# sun8i-a33-ippo-q8h-v1.2 -# sun8i-a33-sinlinx-sina33 -# sun9i-a80-optimus(merri) -# tao3530 omap3_ha -# taurus axm -# tbs2910 -# tec -# tec-ng -# thuban -# ti814x_evm -# ti816x_evm -# titanium -# tk71 -# tqma6 tqma6q_mba6/tqma6s_mba6 -# trats -# trats2 -# tricorder -# trimslice -# trizepsiv polaris -# tseries -# tt01 -# twister -# tx25 -# uniphier-ph1-ld4-ref -# uniphier-ph1-pro4-ref -# uniphier-ph1-sld8-ref -# usb_a9263 -# usbarmory -# VCMA9 -# venice2 -# ventana -# vf610twr -# vl_ma2sc -# vpac270 -# wandboard -# warp -# whistler -# woodburn -# woodburn_sd -# work_92105 -# x600 -# xaeniax -# xfi3 -# xilinx_zynqmp -# zipitz2 -# zmx25 From 3588fef4dad7bbb21bc93b10757a61c41c733809 Mon Sep 17 00:00:00 2001 From: Luke T. Shumaker Date: Jan 07 2024 22:22:54 +0000 Subject: [PATCH 27/73] libre/grub: add a comment about differences from Arch --- diff --git a/libre/grub/PKGBUILD b/libre/grub/PKGBUILD index 1b031ac..b3b6deb 100644 --- a/libre/grub/PKGBUILD +++ b/libre/grub/PKGBUILD @@ -6,6 +6,52 @@ # Contributor: Márcio Silva # Maintainer: Omar Vega Ramos +# Differences from Arch's `core/grub`: +# +# - Branded for Parabola, not Arch +# +# - Add arch+=(i686) +# +# - Add arch+=(armv7h) +# +# - Add more platforms: +# +# + Arch starts with: +# +# * --with-platform=pc (x86 BIOS) +# * --with-platform=efi (UEFI, x86 and ARM; if +# _IA32_EFI_IN_ARCH_X86=1 then the x86_64 +# package contains both 32bit and 64bit +# builds) +# * --with-platform=emu (if _GRUB_EMU_BUILD=1, user-mode, x86 and ARM) +# +# + Parabola additions, since +# +# "grub: add armv7h support (U-Boot and UEFI)" +# (2015-09-26, Márcio Alexandre Silva Delgado ) +# +# * --with-platform=uboot (ARM) +# +# + Parabola additions, since +# +# "grub: rm unused grub-extras in U-Boot, fix msg on U-Boot build; add IEEE1275 (OpenFirmware) and Libreboot support" +# (2015-09-26, Márcio Alexandre Silva Delgado ) +# +# * --with-platform=ieee1275 (OpenFirmware, x86-only) +# * --with-platform=coreboot (Libreboot, x86-only) +# +# + Parabola additions, since +# +# "grub: add QEMU, XEN and Multiboot support" +# (2015-09-27, Márcio Alexandre Silva Delgado ) +# +# * --with-platform=xen (if _XEN=1, x86-only; if +# _IA32_XEN_IN_ARCH_X86=1 then the x86_64 +# package contains both 32bit and 64bit +# builds) +# * --with-platform=qemu (a separate -kernel file for Qemu, x86-only) +# * --with-platform=multiboot (x86-only) + ## '1' to enable Xen support, '0' to disable _XEN='0' @@ -15,7 +61,7 @@ _IA32_EFI_IN_ARCH_X64='1' ## '1' to enable IA32-XEN build in Arch x86_64, "0" to disable _IA32_XEN_IN_ARCH_X64='1' -## '1' to enable EMU build (x86_64 and i686 only), "0" to disable +## '1' to enable EMU build, "0" to disable _GRUB_EMU_BUILD='0' [[ "${CARCH}" = 'armv7h' ]] && _EFI_ARCH='arm' From b04dc7f90e0eab051f49d61637d33658e011b151 Mon Sep 17 00:00:00 2001 From: Luke T. Shumaker Date: Jan 07 2024 22:22:54 +0000 Subject: [PATCH 28/73] libre/grub: rename the patch files to have obvious ordering/purpose --- diff --git a/libre/grub/0002-10_linux-20_linux_xen-detect-parabola-initramfs.patch b/libre/grub/0002-10_linux-20_linux_xen-detect-parabola-initramfs.patch new file mode 100644 index 0000000..3ae7d95 --- /dev/null +++ b/libre/grub/0002-10_linux-20_linux_xen-detect-parabola-initramfs.patch @@ -0,0 +1,138 @@ +--- a/util/grub.d/10_linux.in 2021-06-17 03:06:45.912081000 -0500 ++++ b/util/grub.d/10_linux.in 2021-06-17 13:39:03.509682976 -0500 +@@ -91,10 +91,14 @@ + fi + if [ x$type != xsimple ] ; then + case $type in ++ booster) ++ title="$(gettext_printf "%s, %s kernel (booster initramfs)" "${os}" "${version}")" ;; ++ fallback) ++ title="$(gettext_printf "%s, %s kernel (fallback initramfs)" "${os}" "${version}")" ;; + recovery) +- title="$(gettext_printf "%s, with Linux %s (recovery mode)" "${os}" "${version}")" ;; ++ title="$(gettext_printf "%s, %s kernel (recovery mode)" "${os}" "${version}")" ;; + *) +- title="$(gettext_printf "%s, with Linux %s" "${os}" "${version}")" ;; ++ title="$(gettext_printf "%s, %s kernel" "${os}" "${version}")" ;; + esac + if [ x"$title" = x"$GRUB_ACTUAL_DEFAULT" ] || [ x"Previous Linux versions>$title" = x"$GRUB_ACTUAL_DEFAULT" ]; then + replacement_title="$(echo "Advanced options for ${OS}" | sed 's,>,>>,g')>$(echo "$title" | sed 's,>,>>,g')" +@@ -106,7 +110,7 @@ + else + echo "menuentry '$(echo "$os" | grub_quote)' ${CLASS} \$menuentry_id_option 'gnulinux-simple-$boot_device_id' {" | sed "s/^/$submenu_indentation/" + fi +- if [ x$type != xrecovery ] ; then ++ if [ x$type != xrecovery ] && [ x$type != xfallback ] ; then + save_default_entry | grub_add_tab + fi + +@@ -138,7 +142,7 @@ + fi + printf '%s\n' "${prepare_boot_cache}" | sed "s/^/$submenu_indentation/" + fi +- message="$(gettext_printf "Loading Linux %s ..." ${version})" ++ message="$(gettext_printf "Loading %s kernel ..." ${version})" + sed "s/^/$submenu_indentation/" << EOF + echo '$(echo "$message" | grub_quote)' + linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args} +@@ -198,7 +202,7 @@ + basename=`basename $linux` + dirname=`dirname $linux` + rel_dirname=`make_system_path_relative_to_its_root $dirname` +- version=`echo $basename | sed -e "s,^[^0-9]*-,,g"` ++ version=`echo $basename | sed -e "s,vmlinuz-,,g"` + alt_version=`echo $version | sed -e "s,\.old$,,g"` + linux_root_device_thisversion="${LINUX_ROOT_DEVICE}" + +@@ -285,6 +289,29 @@ + + linux_entry "${OS}" "${version}" advanced \ + "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" ++ ++ if test -e "${dirname}/initramfs-${version}-fallback.img" ; then ++ initrd="${initrd_early} initramfs-${version}-fallback.img" ++ ++ if test -n "${initrd}" ; then ++ gettext_printf "Found fallback initramfs image: %s\n" "${dirname}/${initrd}" >&2 ++ fi ++ ++ linux_entry "${OS}" "${version}" fallback \ ++ "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" ++ fi ++ ++ if test -e "${dirname}/booster-${version}.img" ; then ++ initrd="${initrd_early} booster-${version}.img" ++ ++ if test -n "${initrd}" ; then ++ gettext_printf "Found booster initrd image(s) in %s:%s\n" "${dirname}" "${initrd_extra} ${initrd}" >&2 ++ fi ++ ++ linux_entry "${OS}" "${version}" booster \ ++ "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" ++ fi ++ + if [ "x${GRUB_DISABLE_RECOVERY}" != "xtrue" ]; then + linux_entry "${OS}" "${version}" recovery \ + "single ${GRUB_CMDLINE_LINUX}" +--- a/util/grub.d/20_linux_xen.in 2021-06-17 03:06:56.202081000 -0500 ++++ b/util/grub.d/20_linux_xen.in 2021-06-17 03:22:43.732079272 -0500 +@@ -117,9 +117,11 @@ + fi + if [ x$type != xsimple ] ; then + if [ x$type = xrecovery ] ; then +- title="$(gettext_printf "%s, with Xen %s and Linux %s (recovery mode)" "${os}" "${xen_version}" "${version}")" ++ title="$(gettext_printf "%s, with Xen %s and %s kernel (recovery mode)" "${os}" "${xen_version}" "${version}")" ++ elif [ x$type = xfallback ] ; then ++ title="$(gettext_printf "%s, with Xen %s and %s kernel (fallback initramfs)" "${os}" "${xen_version}" "${version}")" + else +- title="$(gettext_printf "%s, with Xen %s and Linux %s" "${os}" "${xen_version}" "${version}")" ++ title="$(gettext_printf "%s, with Xen %s and %s kernel" "${os}" "${xen_version}" "${version}")" + fi + replacement_title="$(echo "Advanced options for ${OS}" | sed 's,>,>>,g')>$(echo "$title" | sed 's,>,>>,g')" + if [ x"Xen ${xen_version}>$title" = x"$GRUB_ACTUAL_DEFAULT" ]; then +@@ -132,7 +134,7 @@ + title="$(gettext_printf "%s, with Xen hypervisor" "${os}")" + echo "menuentry '$(echo "$title" | grub_quote)' ${CLASS} \$menuentry_id_option 'xen-gnulinux-simple-$boot_device_id' {" | sed "s/^/$submenu_indentation/" + fi +- if [ x$type != xrecovery ] ; then ++ if [ x$type != xrecovery ] && [ x$type != xfallback ] ; then + save_default_entry | grub_add_tab | sed "s/^/$submenu_indentation/" + fi + +@@ -141,7 +143,7 @@ + fi + printf '%s\n' "${prepare_boot_cache}" | sed "s/^/$submenu_indentation/" + xmessage="$(gettext_printf "Loading Xen %s ..." ${xen_version})" +- lmessage="$(gettext_printf "Loading Linux %s ..." ${version})" ++ lmessage="$(gettext_printf "Loading %s kernel ..." ${version})" + sed "s/^/$submenu_indentation/" << EOF + echo '$(echo "$xmessage" | grub_quote)' + if [ "\$grub_platform" = "pc" -o "\$grub_platform" = "" ]; then +@@ -275,7 +277,7 @@ + basename=`basename $linux` + dirname=`dirname $linux` + rel_dirname=`make_system_path_relative_to_its_root $dirname` +- version=`echo $basename | sed -e "s,^[^0-9]*-,,g"` ++ version=`echo $basename | sed -e "s,vmlinuz-,,g"` + alt_version=`echo $version | sed -e "s,\.old$,,g"` + linux_root_device_thisversion="${LINUX_ROOT_DEVICE}" + +@@ -341,6 +343,18 @@ + + linux_entry "${OS}" "${version}" "${xen_version}" advanced \ + "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" "${GRUB_CMDLINE_XEN} ${GRUB_CMDLINE_XEN_DEFAULT}" ++ ++ if test -e "${dirname}/initramfs-${version}-fallback.img" ; then ++ initrd="initramfs-${version}-fallback.img" ++ ++ if test -n "${initrd}" ; then ++ gettext_printf "Found fallback initramfs image: %s\n" "${dirname}/${initrd}" >&2 ++ fi ++ ++ linux_entry "${OS}" "${version}" "${xen_version}" fallback \ ++ "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" "${GRUB_CMDLINE_XEN} ${GRUB_CMDLINE_XEN_DEFAULT}" ++ fi ++ + if [ "x${GRUB_DISABLE_RECOVERY}" != "xtrue" ]; then + linux_entry "${OS}" "${version}" "${xen_version}" recovery \ + "single ${GRUB_CMDLINE_LINUX}" "${GRUB_CMDLINE_XEN}" diff --git a/libre/grub/0003-10_linux-20_linux_xen-detect-am335x_bone+am335x_boneblack-devicetree-file.patch b/libre/grub/0003-10_linux-20_linux_xen-detect-am335x_bone+am335x_boneblack-devicetree-file.patch deleted file mode 100644 index eac637d..0000000 --- a/libre/grub/0003-10_linux-20_linux_xen-detect-am335x_bone+am335x_boneblack-devicetree-file.patch +++ /dev/null @@ -1,90 +0,0 @@ ---- a/util/grub.d/10_linux.in 2021-06-17 03:06:45.912081000 -0500 -+++ b/util/grub.d/10_linux.in 2021-06-18 02:16:38.219592837 -0500 -@@ -155,6 +155,25 @@ - initrd $(echo $initrd_path) - EOF - fi -+ if [ "$(cat /sys/devices/platform/bone_capemgr/baseboard/board-name)" = 'A335BONE' ]; then -+ if test -f "${rel_dirname}/dtbs/${version}/am335x-bone.dtb" ; then -+ # TRANSLATORS: Device tree path isn't identifier. Should be translated. -+ message="$(gettext_printf "Loading devices tree file ...")" -+ sed "s/^/$submenu_indentation/" << EOF -+ echo '$(echo "$message" | grub_quote)' -+ devicetree ${rel_dirname}/dtbs/${version}/am335x-bone.dtb -+EOF -+ fi -+ elif [ "$(cat /sys/devices/platform/bone_capemgr/baseboard/board-name)" = 'A335BNLT' ]; then -+ if test -f "${rel_dirname}/dtbs/${version}/am335x-boneblack.dtb" ; then -+ # TRANSLATORS: Device tree path isn't identifier. Should be translated. -+ message="$(gettext_printf "Loading devices tree file ...")" -+ sed "s/^/$submenu_indentation/" << EOF -+ echo '$(echo "$message" | grub_quote)' -+ devicetree ${rel_dirname}/dtbs/${version}/am335x-boneblack.dtb -+EOF -+ fi -+ fi - sed "s/^/$submenu_indentation/" << EOF - } - EOF -@@ -261,6 +280,16 @@ - fi - fi - -+ if [ "$(cat /sys/devices/platform/bone_capemgr/baseboard/board-name)" = 'A335BONE' ]; then -+ if test -f "${dirname}/dtbs/${version}/am335x-bone.dtb" ; then -+ gettext_printf "Found device tree file: %s\n" "${dirname}/dtbs/${version}/am335x-bone.dtb" >&2 -+ fi -+ elif [ "$(cat /sys/devices/platform/bone_capemgr/baseboard/board-name)" = 'A335BNLT' ]; then -+ if test -f "${dirname}/dtbs/${version}/am335x-boneblack.dtb" ; then -+ gettext_printf "Found device tree file: %s\n" "${dirname}/dtbs/${version}/am335x-boneblack.dtb" >&2 -+ fi -+ fi -+ - # The GRUB_DISABLE_SUBMENU option used to be different than others since it was - # mentioned in the documentation that has to be set to 'y' instead of 'true' to - # enable it. This caused a lot of confusion to users that set the option to 'y', ---- a/util/grub.d/20_linux_xen.in 2021-06-17 03:06:56.202081000 -0500 -+++ b/util/grub.d/20_linux_xen.in 2021-06-18 02:23:54.679591971 -0500 -@@ -172,6 +172,25 @@ - ${module_loader} ${rel_dirname}/${xenpolicy} - EOF - fi -+ if [ "$(cat /sys/devices/platform/bone_capemgr/baseboard/board-name)" = 'A335BONE' ]; then -+ if test -f "${rel_dirname}/dtbs/${version}/am335x-bone.dtb" ; then -+ # TRANSLATORS: Device tree path isn't identifier. Should be translated. -+ message="$(gettext_printf "Loading devices tree file ...")" -+ sed "s/^/$submenu_indentation/" << EOF -+ echo '$(echo "$message" | grub_quote)' -+ devicetree ${rel_dirname}/dtbs/${version}/am335x-bone.dtb -+EOF -+ fi -+ elif [ "$(cat /sys/devices/platform/bone_capemgr/baseboard/board-name)" = 'A335BNLT' ]; then -+ if test -f "${rel_dirname}/dtbs/${version}/am335x-boneblack.dtb" ; then -+ # TRANSLATORS: Device tree path isn't identifier. Should be translated. -+ message="$(gettext_printf "Loading devices tree file ...")" -+ sed "s/^/$submenu_indentation/" << EOF -+ echo '$(echo "$message" | grub_quote)' -+ devicetree ${rel_dirname}/dtbs/${version}/am335x-boneblack.dtb -+EOF -+ fi -+ fi - sed "s/^/$submenu_indentation/" << EOF - } - EOF -@@ -316,6 +335,16 @@ - fi - fi - -+ if [ "$(cat /sys/devices/platform/bone_capemgr/baseboard/board-name)" = 'A335BONE' ]; then -+ if test -f "${dirname}/dtbs/${version}/am335x-bone.dtb" ; then -+ gettext_printf "Found device tree file: %s\n" "${dirname}/dtbs/${version}/am335x-bone.dtb" >&2 -+ fi -+ elif [ "$(cat /sys/devices/platform/bone_capemgr/baseboard/board-name)" = 'A335BNLT' ]; then -+ if test -f "${dirname}/dtbs/${version}/am335x-boneblack.dtb" ; then -+ gettext_printf "Found device tree file: %s\n" "${dirname}/dtbs/${version}/am335x-boneblack.dtb" >&2 -+ fi -+ fi -+ - # The GRUB_DISABLE_SUBMENU option used to be different than others since it was - # mentioned in the documentation that has to be set to 'y' instead of 'true' to - # enable it. This caused a lot of confusion to users that set the option to 'y', diff --git a/libre/grub/0003-10_linux-20_linux_xen-detect-omap3_beagle-devicetree-file.patch b/libre/grub/0003-10_linux-20_linux_xen-detect-omap3_beagle-devicetree-file.patch deleted file mode 100644 index 71d04cb..0000000 --- a/libre/grub/0003-10_linux-20_linux_xen-detect-omap3_beagle-devicetree-file.patch +++ /dev/null @@ -1,56 +0,0 @@ ---- a/util/grub.d/10_linux.in 2021-06-17 03:06:45.912081000 -0500 -+++ b/util/grub.d/10_linux.in 2021-06-18 02:35:47.579590557 -0500 -@@ -155,6 +155,14 @@ - initrd $(echo $initrd_path) - EOF - fi -+ if test -d "${rel_dirname}/dtbs/${version}/omap3-beagle.dtb" ; then -+ # TRANSLATORS: Device tree path isn't identifier. Should be translated. -+ message="$(gettext_printf "Loading devices tree path ...")" -+ sed "s/^/$submenu_indentation/" << EOF -+ echo '$(echo "$message" | grub_quote)' -+ devicetree ${rel_dirname}/dtbs/${version}/omap3-beagle.dtb -+EOF -+ fi - sed "s/^/$submenu_indentation/" << EOF - } - EOF -@@ -261,6 +269,10 @@ - fi - fi - -+ if test -d "${dirname}/dtbs/${version}/omap3-beagle.dtb" ; then -+ gettext_printf "Found device tree directory: %s\n" "${dirname}/dtbs/${version}/omap3-beagle.dtb" >&2 -+ fi -+ - # The GRUB_DISABLE_SUBMENU option used to be different than others since it was - # mentioned in the documentation that has to be set to 'y' instead of 'true' to - # enable it. This caused a lot of confusion to users that set the option to 'y', ---- a/util/grub.d/20_linux_xen.in 2021-06-17 03:06:56.202081000 -0500 -+++ b/util/grub.d/20_linux_xen.in 2021-06-18 02:38:28.569590238 -0500 -@@ -172,6 +172,14 @@ - ${module_loader} ${rel_dirname}/${xenpolicy} - EOF - fi -+ if test -d "${rel_dirname}/dtbs/${version}/omap3-beagle.dtb" ; then -+ # TRANSLATORS: Device tree path isn't identifier. Should be translated. -+ message="$(gettext_printf "Loading devices tree path ...")" -+ sed "s/^/$submenu_indentation/" << EOF -+ echo '$(echo "$message" | grub_quote)' -+ devicetree ${rel_dirname}/dtbs/${version}/omap3-beagle.dtb -+EOF -+ fi - sed "s/^/$submenu_indentation/" << EOF - } - EOF -@@ -316,6 +324,10 @@ - fi - fi - -+ if test -d "${dirname}/dtbs/${version}/omap3-beagle.dtb" ; then -+ gettext_printf "Found device tree directory: %s\n" "${dirname}/dtbs/${version}/omap3-beagle.dtb" >&2 -+ fi -+ - # The GRUB_DISABLE_SUBMENU option used to be different than others since it was - # mentioned in the documentation that has to be set to 'y' instead of 'true' to - # enable it. This caused a lot of confusion to users that set the option to 'y', diff --git a/libre/grub/0003-10_linux-20_linux_xen-detect-omap3_beagle_xm-devicetree-file.patch b/libre/grub/0003-10_linux-20_linux_xen-detect-omap3_beagle_xm-devicetree-file.patch deleted file mode 100644 index 3ba413c..0000000 --- a/libre/grub/0003-10_linux-20_linux_xen-detect-omap3_beagle_xm-devicetree-file.patch +++ /dev/null @@ -1,56 +0,0 @@ ---- a/util/grub.d/10_linux.in 2021-06-17 03:06:45.912081000 -0500 -+++ b/util/grub.d/10_linux.in 2021-06-18 02:45:30.129589402 -0500 -@@ -155,6 +155,14 @@ - initrd $(echo $initrd_path) - EOF - fi -+ if test -d "${rel_dirname}/dtbs/${version}/omap3-beagle-xm.dtb" ; then -+ # TRANSLATORS: Device tree path isn't identifier. Should be translated. -+ message="$(gettext_printf "Loading devices tree path ...")" -+ sed "s/^/$submenu_indentation/" << EOF -+ echo '$(echo "$message" | grub_quote)' -+ devicetree ${rel_dirname}/dtbs/${version}/omap3-beagle-xm.dtb -+EOF -+ fi - sed "s/^/$submenu_indentation/" << EOF - } - EOF -@@ -261,6 +269,10 @@ - fi - fi - -+ if test -d "${dirname}/dtbs/${version}/omap3-beagle-xm.dtb" ; then -+ gettext_printf "Found device tree directory: %s\n" "${dirname}/dtbs/${version}/omap3-beagle-xm.dtb" >&2 -+ fi -+ - # The GRUB_DISABLE_SUBMENU option used to be different than others since it was - # mentioned in the documentation that has to be set to 'y' instead of 'true' to - # enable it. This caused a lot of confusion to users that set the option to 'y', ---- a/util/grub.d/20_linux_xen.in 2021-06-17 03:06:56.202081000 -0500 -+++ b/util/grub.d/20_linux_xen.in 2021-06-18 02:46:39.199589265 -0500 -@@ -172,6 +172,14 @@ - ${module_loader} ${rel_dirname}/${xenpolicy} - EOF - fi -+ if test -d "${rel_dirname}/dtbs/${version}/omap3-beagle-xm.dtb" ; then -+ # TRANSLATORS: Device tree path isn't identifier. Should be translated. -+ message="$(gettext_printf "Loading devices tree path ...")" -+ sed "s/^/$submenu_indentation/" << EOF -+ echo '$(echo "$message" | grub_quote)' -+ devicetree ${rel_dirname}/dtbs/${version}/omap3-beagle-xm.dtb -+EOF -+ fi - sed "s/^/$submenu_indentation/" << EOF - } - EOF -@@ -316,6 +324,10 @@ - fi - fi - -+ if test -d "${dirname}/dtbs/${version}/omap3-beagle-xm.dtb" ; then -+ gettext_printf "Found device tree directory: %s\n" "${dirname}/dtbs/${version}/omap3-beagle-xm.dtb" >&2 -+ fi -+ - # The GRUB_DISABLE_SUBMENU option used to be different than others since it was - # mentioned in the documentation that has to be set to 'y' instead of 'true' to - # enable it. This caused a lot of confusion to users that set the option to 'y', diff --git a/libre/grub/0003-10_linux-20_linux_xen-detect-omap3_beagle_xm_ab-devicetree-file.patch b/libre/grub/0003-10_linux-20_linux_xen-detect-omap3_beagle_xm_ab-devicetree-file.patch deleted file mode 100644 index f24eed1..0000000 --- a/libre/grub/0003-10_linux-20_linux_xen-detect-omap3_beagle_xm_ab-devicetree-file.patch +++ /dev/null @@ -1,56 +0,0 @@ ---- a/util/grub.d/10_linux.in 2021-06-17 03:06:45.912081000 -0500 -+++ b/util/grub.d/10_linux.in 2021-06-18 02:52:13.679588602 -0500 -@@ -155,6 +155,14 @@ - initrd $(echo $initrd_path) - EOF - fi -+ if test -d "${rel_dirname}/dtbs/${version}/omap3-beagle-xm-ab.dtb" ; then -+ # TRANSLATORS: Device tree path isn't identifier. Should be translated. -+ message="$(gettext_printf "Loading devices tree path ...")" -+ sed "s/^/$submenu_indentation/" << EOF -+ echo '$(echo "$message" | grub_quote)' -+ devicetree ${rel_dirname}/dtbs/${version}/omap3-beagle-xm-ab.dtb -+EOF -+ fi - sed "s/^/$submenu_indentation/" << EOF - } - EOF -@@ -261,6 +269,10 @@ - fi - fi - -+ if test -d "${dirname}/dtbs/${version}/omap3-beagle-xm-ab.dtb" ; then -+ gettext_printf "Found device tree directory: %s\n" "${dirname}/dtbs/${version}/omap3-beagle-xm-ab.dtb" >&2 -+ fi -+ - # The GRUB_DISABLE_SUBMENU option used to be different than others since it was - # mentioned in the documentation that has to be set to 'y' instead of 'true' to - # enable it. This caused a lot of confusion to users that set the option to 'y', ---- a/util/grub.d/20_linux_xen.in 2021-06-17 03:06:56.202081000 -0500 -+++ b/util/grub.d/20_linux_xen.in 2021-06-18 02:53:25.419588460 -0500 -@@ -172,6 +172,14 @@ - ${module_loader} ${rel_dirname}/${xenpolicy} - EOF - fi -+ if test -d "${rel_dirname}/dtbs/${version}/omap3-beagle-xm-ab.dtb" ; then -+ # TRANSLATORS: Device tree path isn't identifier. Should be translated. -+ message="$(gettext_printf "Loading devices tree path ...")" -+ sed "s/^/$submenu_indentation/" << EOF -+ echo '$(echo "$message" | grub_quote)' -+ devicetree ${rel_dirname}/dtbs/${version}/omap3-beagle-xm-ab.dtb -+EOF -+ fi - sed "s/^/$submenu_indentation/" << EOF - } - EOF -@@ -316,6 +324,10 @@ - fi - fi - -+ if test -d "${dirname}/dtbs/${version}/omap3-beagle-xm-ab.dtb" ; then -+ gettext_printf "Found device tree directory: %s\n" "${dirname}/dtbs/${version}/omap3-beagle-xm-ab.dtb" >&2 -+ fi -+ - # The GRUB_DISABLE_SUBMENU option used to be different than others since it was - # mentioned in the documentation that has to be set to 'y' instead of 'true' to - # enable it. This caused a lot of confusion to users that set the option to 'y', diff --git a/libre/grub/0003-10_linux-20_linux_xen-detect-parabola-initramfs.patch b/libre/grub/0003-10_linux-20_linux_xen-detect-parabola-initramfs.patch deleted file mode 100644 index 3ae7d95..0000000 --- a/libre/grub/0003-10_linux-20_linux_xen-detect-parabola-initramfs.patch +++ /dev/null @@ -1,138 +0,0 @@ ---- a/util/grub.d/10_linux.in 2021-06-17 03:06:45.912081000 -0500 -+++ b/util/grub.d/10_linux.in 2021-06-17 13:39:03.509682976 -0500 -@@ -91,10 +91,14 @@ - fi - if [ x$type != xsimple ] ; then - case $type in -+ booster) -+ title="$(gettext_printf "%s, %s kernel (booster initramfs)" "${os}" "${version}")" ;; -+ fallback) -+ title="$(gettext_printf "%s, %s kernel (fallback initramfs)" "${os}" "${version}")" ;; - recovery) -- title="$(gettext_printf "%s, with Linux %s (recovery mode)" "${os}" "${version}")" ;; -+ title="$(gettext_printf "%s, %s kernel (recovery mode)" "${os}" "${version}")" ;; - *) -- title="$(gettext_printf "%s, with Linux %s" "${os}" "${version}")" ;; -+ title="$(gettext_printf "%s, %s kernel" "${os}" "${version}")" ;; - esac - if [ x"$title" = x"$GRUB_ACTUAL_DEFAULT" ] || [ x"Previous Linux versions>$title" = x"$GRUB_ACTUAL_DEFAULT" ]; then - replacement_title="$(echo "Advanced options for ${OS}" | sed 's,>,>>,g')>$(echo "$title" | sed 's,>,>>,g')" -@@ -106,7 +110,7 @@ - else - echo "menuentry '$(echo "$os" | grub_quote)' ${CLASS} \$menuentry_id_option 'gnulinux-simple-$boot_device_id' {" | sed "s/^/$submenu_indentation/" - fi -- if [ x$type != xrecovery ] ; then -+ if [ x$type != xrecovery ] && [ x$type != xfallback ] ; then - save_default_entry | grub_add_tab - fi - -@@ -138,7 +142,7 @@ - fi - printf '%s\n' "${prepare_boot_cache}" | sed "s/^/$submenu_indentation/" - fi -- message="$(gettext_printf "Loading Linux %s ..." ${version})" -+ message="$(gettext_printf "Loading %s kernel ..." ${version})" - sed "s/^/$submenu_indentation/" << EOF - echo '$(echo "$message" | grub_quote)' - linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args} -@@ -198,7 +202,7 @@ - basename=`basename $linux` - dirname=`dirname $linux` - rel_dirname=`make_system_path_relative_to_its_root $dirname` -- version=`echo $basename | sed -e "s,^[^0-9]*-,,g"` -+ version=`echo $basename | sed -e "s,vmlinuz-,,g"` - alt_version=`echo $version | sed -e "s,\.old$,,g"` - linux_root_device_thisversion="${LINUX_ROOT_DEVICE}" - -@@ -285,6 +289,29 @@ - - linux_entry "${OS}" "${version}" advanced \ - "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" -+ -+ if test -e "${dirname}/initramfs-${version}-fallback.img" ; then -+ initrd="${initrd_early} initramfs-${version}-fallback.img" -+ -+ if test -n "${initrd}" ; then -+ gettext_printf "Found fallback initramfs image: %s\n" "${dirname}/${initrd}" >&2 -+ fi -+ -+ linux_entry "${OS}" "${version}" fallback \ -+ "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" -+ fi -+ -+ if test -e "${dirname}/booster-${version}.img" ; then -+ initrd="${initrd_early} booster-${version}.img" -+ -+ if test -n "${initrd}" ; then -+ gettext_printf "Found booster initrd image(s) in %s:%s\n" "${dirname}" "${initrd_extra} ${initrd}" >&2 -+ fi -+ -+ linux_entry "${OS}" "${version}" booster \ -+ "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" -+ fi -+ - if [ "x${GRUB_DISABLE_RECOVERY}" != "xtrue" ]; then - linux_entry "${OS}" "${version}" recovery \ - "single ${GRUB_CMDLINE_LINUX}" ---- a/util/grub.d/20_linux_xen.in 2021-06-17 03:06:56.202081000 -0500 -+++ b/util/grub.d/20_linux_xen.in 2021-06-17 03:22:43.732079272 -0500 -@@ -117,9 +117,11 @@ - fi - if [ x$type != xsimple ] ; then - if [ x$type = xrecovery ] ; then -- title="$(gettext_printf "%s, with Xen %s and Linux %s (recovery mode)" "${os}" "${xen_version}" "${version}")" -+ title="$(gettext_printf "%s, with Xen %s and %s kernel (recovery mode)" "${os}" "${xen_version}" "${version}")" -+ elif [ x$type = xfallback ] ; then -+ title="$(gettext_printf "%s, with Xen %s and %s kernel (fallback initramfs)" "${os}" "${xen_version}" "${version}")" - else -- title="$(gettext_printf "%s, with Xen %s and Linux %s" "${os}" "${xen_version}" "${version}")" -+ title="$(gettext_printf "%s, with Xen %s and %s kernel" "${os}" "${xen_version}" "${version}")" - fi - replacement_title="$(echo "Advanced options for ${OS}" | sed 's,>,>>,g')>$(echo "$title" | sed 's,>,>>,g')" - if [ x"Xen ${xen_version}>$title" = x"$GRUB_ACTUAL_DEFAULT" ]; then -@@ -132,7 +134,7 @@ - title="$(gettext_printf "%s, with Xen hypervisor" "${os}")" - echo "menuentry '$(echo "$title" | grub_quote)' ${CLASS} \$menuentry_id_option 'xen-gnulinux-simple-$boot_device_id' {" | sed "s/^/$submenu_indentation/" - fi -- if [ x$type != xrecovery ] ; then -+ if [ x$type != xrecovery ] && [ x$type != xfallback ] ; then - save_default_entry | grub_add_tab | sed "s/^/$submenu_indentation/" - fi - -@@ -141,7 +143,7 @@ - fi - printf '%s\n' "${prepare_boot_cache}" | sed "s/^/$submenu_indentation/" - xmessage="$(gettext_printf "Loading Xen %s ..." ${xen_version})" -- lmessage="$(gettext_printf "Loading Linux %s ..." ${version})" -+ lmessage="$(gettext_printf "Loading %s kernel ..." ${version})" - sed "s/^/$submenu_indentation/" << EOF - echo '$(echo "$xmessage" | grub_quote)' - if [ "\$grub_platform" = "pc" -o "\$grub_platform" = "" ]; then -@@ -275,7 +277,7 @@ - basename=`basename $linux` - dirname=`dirname $linux` - rel_dirname=`make_system_path_relative_to_its_root $dirname` -- version=`echo $basename | sed -e "s,^[^0-9]*-,,g"` -+ version=`echo $basename | sed -e "s,vmlinuz-,,g"` - alt_version=`echo $version | sed -e "s,\.old$,,g"` - linux_root_device_thisversion="${LINUX_ROOT_DEVICE}" - -@@ -341,6 +343,18 @@ - - linux_entry "${OS}" "${version}" "${xen_version}" advanced \ - "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" "${GRUB_CMDLINE_XEN} ${GRUB_CMDLINE_XEN_DEFAULT}" -+ -+ if test -e "${dirname}/initramfs-${version}-fallback.img" ; then -+ initrd="initramfs-${version}-fallback.img" -+ -+ if test -n "${initrd}" ; then -+ gettext_printf "Found fallback initramfs image: %s\n" "${dirname}/${initrd}" >&2 -+ fi -+ -+ linux_entry "${OS}" "${version}" "${xen_version}" fallback \ -+ "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" "${GRUB_CMDLINE_XEN} ${GRUB_CMDLINE_XEN_DEFAULT}" -+ fi -+ - if [ "x${GRUB_DISABLE_RECOVERY}" != "xtrue" ]; then - linux_entry "${OS}" "${version}" "${xen_version}" recovery \ - "single ${GRUB_CMDLINE_LINUX}" "${GRUB_CMDLINE_XEN}" diff --git a/libre/grub/0003-10_linux-20_linux_xen-detect-udoo-devicetree-file.patch b/libre/grub/0003-10_linux-20_linux_xen-detect-udoo-devicetree-file.patch deleted file mode 100644 index 692ac51..0000000 --- a/libre/grub/0003-10_linux-20_linux_xen-detect-udoo-devicetree-file.patch +++ /dev/null @@ -1,56 +0,0 @@ ---- a/util/grub.d/10_linux.in 2021-06-17 03:06:45.912081000 -0500 -+++ b/util/grub.d/10_linux.in 2021-06-18 02:58:17.879587880 -0500 -@@ -155,6 +155,14 @@ - initrd $(echo $initrd_path) - EOF - fi -+ if test -d "${rel_dirname}/dtbs/${version}/imx6q-udoo.dtb" ; then -+ # TRANSLATORS: Device tree path isn't identifier. Should be translated. -+ message="$(gettext_printf "Loading devices tree path ...")" -+ sed "s/^/$submenu_indentation/" << EOF -+ echo '$(echo "$message" | grub_quote)' -+ devicetree ${rel_dirname}/dtbs/${version}/imx6q-udoo.dtb -+EOF -+ fi - sed "s/^/$submenu_indentation/" << EOF - } - EOF -@@ -261,6 +269,10 @@ - fi - fi - -+ if test -d "${dirname}/dtbs/${version}/imx6q-udoo.dtb" ; then -+ gettext_printf "Found device tree directory: %s\n" "${dirname}/dtbs/${version}/imx6q-udoo.dtb" >&2 -+ fi -+ - # The GRUB_DISABLE_SUBMENU option used to be different than others since it was - # mentioned in the documentation that has to be set to 'y' instead of 'true' to - # enable it. This caused a lot of confusion to users that set the option to 'y', ---- a/util/grub.d/20_linux_xen.in 2021-06-17 03:06:56.202081000 -0500 -+++ b/util/grub.d/20_linux_xen.in 2021-06-18 02:59:12.559587771 -0500 -@@ -172,6 +172,14 @@ - ${module_loader} ${rel_dirname}/${xenpolicy} - EOF - fi -+ if test -d "${rel_dirname}/dtbs/${version}/imx6q-udoo.dtb" ; then -+ # TRANSLATORS: Device tree path isn't identifier. Should be translated. -+ message="$(gettext_printf "Loading devices tree path ...")" -+ sed "s/^/$submenu_indentation/" << EOF -+ echo '$(echo "$message" | grub_quote)' -+ devicetree ${rel_dirname}/dtbs/${version}/imx6q-udoo.dtb -+EOF -+ fi - sed "s/^/$submenu_indentation/" << EOF - } - EOF -@@ -316,6 +324,10 @@ - fi - fi - -+ if test -d "${dirname}/dtbs/${version}/imx6q-udoo.dtb" ; then -+ gettext_printf "Found device tree directory: %s\n" "${dirname}/dtbs/${version}/imx6q-udoo.dtb" >&2 -+ fi -+ - # The GRUB_DISABLE_SUBMENU option used to be different than others since it was - # mentioned in the documentation that has to be set to 'y' instead of 'true' to - # enable it. This caused a lot of confusion to users that set the option to 'y', diff --git a/libre/grub/1000-am335x_bone--10_linux-20_linux_xen-detect-devicetree-file.patch b/libre/grub/1000-am335x_bone--10_linux-20_linux_xen-detect-devicetree-file.patch new file mode 100644 index 0000000..eac637d --- /dev/null +++ b/libre/grub/1000-am335x_bone--10_linux-20_linux_xen-detect-devicetree-file.patch @@ -0,0 +1,90 @@ +--- a/util/grub.d/10_linux.in 2021-06-17 03:06:45.912081000 -0500 ++++ b/util/grub.d/10_linux.in 2021-06-18 02:16:38.219592837 -0500 +@@ -155,6 +155,25 @@ + initrd $(echo $initrd_path) + EOF + fi ++ if [ "$(cat /sys/devices/platform/bone_capemgr/baseboard/board-name)" = 'A335BONE' ]; then ++ if test -f "${rel_dirname}/dtbs/${version}/am335x-bone.dtb" ; then ++ # TRANSLATORS: Device tree path isn't identifier. Should be translated. ++ message="$(gettext_printf "Loading devices tree file ...")" ++ sed "s/^/$submenu_indentation/" << EOF ++ echo '$(echo "$message" | grub_quote)' ++ devicetree ${rel_dirname}/dtbs/${version}/am335x-bone.dtb ++EOF ++ fi ++ elif [ "$(cat /sys/devices/platform/bone_capemgr/baseboard/board-name)" = 'A335BNLT' ]; then ++ if test -f "${rel_dirname}/dtbs/${version}/am335x-boneblack.dtb" ; then ++ # TRANSLATORS: Device tree path isn't identifier. Should be translated. ++ message="$(gettext_printf "Loading devices tree file ...")" ++ sed "s/^/$submenu_indentation/" << EOF ++ echo '$(echo "$message" | grub_quote)' ++ devicetree ${rel_dirname}/dtbs/${version}/am335x-boneblack.dtb ++EOF ++ fi ++ fi + sed "s/^/$submenu_indentation/" << EOF + } + EOF +@@ -261,6 +280,16 @@ + fi + fi + ++ if [ "$(cat /sys/devices/platform/bone_capemgr/baseboard/board-name)" = 'A335BONE' ]; then ++ if test -f "${dirname}/dtbs/${version}/am335x-bone.dtb" ; then ++ gettext_printf "Found device tree file: %s\n" "${dirname}/dtbs/${version}/am335x-bone.dtb" >&2 ++ fi ++ elif [ "$(cat /sys/devices/platform/bone_capemgr/baseboard/board-name)" = 'A335BNLT' ]; then ++ if test -f "${dirname}/dtbs/${version}/am335x-boneblack.dtb" ; then ++ gettext_printf "Found device tree file: %s\n" "${dirname}/dtbs/${version}/am335x-boneblack.dtb" >&2 ++ fi ++ fi ++ + # The GRUB_DISABLE_SUBMENU option used to be different than others since it was + # mentioned in the documentation that has to be set to 'y' instead of 'true' to + # enable it. This caused a lot of confusion to users that set the option to 'y', +--- a/util/grub.d/20_linux_xen.in 2021-06-17 03:06:56.202081000 -0500 ++++ b/util/grub.d/20_linux_xen.in 2021-06-18 02:23:54.679591971 -0500 +@@ -172,6 +172,25 @@ + ${module_loader} ${rel_dirname}/${xenpolicy} + EOF + fi ++ if [ "$(cat /sys/devices/platform/bone_capemgr/baseboard/board-name)" = 'A335BONE' ]; then ++ if test -f "${rel_dirname}/dtbs/${version}/am335x-bone.dtb" ; then ++ # TRANSLATORS: Device tree path isn't identifier. Should be translated. ++ message="$(gettext_printf "Loading devices tree file ...")" ++ sed "s/^/$submenu_indentation/" << EOF ++ echo '$(echo "$message" | grub_quote)' ++ devicetree ${rel_dirname}/dtbs/${version}/am335x-bone.dtb ++EOF ++ fi ++ elif [ "$(cat /sys/devices/platform/bone_capemgr/baseboard/board-name)" = 'A335BNLT' ]; then ++ if test -f "${rel_dirname}/dtbs/${version}/am335x-boneblack.dtb" ; then ++ # TRANSLATORS: Device tree path isn't identifier. Should be translated. ++ message="$(gettext_printf "Loading devices tree file ...")" ++ sed "s/^/$submenu_indentation/" << EOF ++ echo '$(echo "$message" | grub_quote)' ++ devicetree ${rel_dirname}/dtbs/${version}/am335x-boneblack.dtb ++EOF ++ fi ++ fi + sed "s/^/$submenu_indentation/" << EOF + } + EOF +@@ -316,6 +335,16 @@ + fi + fi + ++ if [ "$(cat /sys/devices/platform/bone_capemgr/baseboard/board-name)" = 'A335BONE' ]; then ++ if test -f "${dirname}/dtbs/${version}/am335x-bone.dtb" ; then ++ gettext_printf "Found device tree file: %s\n" "${dirname}/dtbs/${version}/am335x-bone.dtb" >&2 ++ fi ++ elif [ "$(cat /sys/devices/platform/bone_capemgr/baseboard/board-name)" = 'A335BNLT' ]; then ++ if test -f "${dirname}/dtbs/${version}/am335x-boneblack.dtb" ; then ++ gettext_printf "Found device tree file: %s\n" "${dirname}/dtbs/${version}/am335x-boneblack.dtb" >&2 ++ fi ++ fi ++ + # The GRUB_DISABLE_SUBMENU option used to be different than others since it was + # mentioned in the documentation that has to be set to 'y' instead of 'true' to + # enable it. This caused a lot of confusion to users that set the option to 'y', diff --git a/libre/grub/1000-omap3_beagle--10_linux-20_linux_xen-detect-devicetree-file.patch b/libre/grub/1000-omap3_beagle--10_linux-20_linux_xen-detect-devicetree-file.patch new file mode 100644 index 0000000..71d04cb --- /dev/null +++ b/libre/grub/1000-omap3_beagle--10_linux-20_linux_xen-detect-devicetree-file.patch @@ -0,0 +1,56 @@ +--- a/util/grub.d/10_linux.in 2021-06-17 03:06:45.912081000 -0500 ++++ b/util/grub.d/10_linux.in 2021-06-18 02:35:47.579590557 -0500 +@@ -155,6 +155,14 @@ + initrd $(echo $initrd_path) + EOF + fi ++ if test -d "${rel_dirname}/dtbs/${version}/omap3-beagle.dtb" ; then ++ # TRANSLATORS: Device tree path isn't identifier. Should be translated. ++ message="$(gettext_printf "Loading devices tree path ...")" ++ sed "s/^/$submenu_indentation/" << EOF ++ echo '$(echo "$message" | grub_quote)' ++ devicetree ${rel_dirname}/dtbs/${version}/omap3-beagle.dtb ++EOF ++ fi + sed "s/^/$submenu_indentation/" << EOF + } + EOF +@@ -261,6 +269,10 @@ + fi + fi + ++ if test -d "${dirname}/dtbs/${version}/omap3-beagle.dtb" ; then ++ gettext_printf "Found device tree directory: %s\n" "${dirname}/dtbs/${version}/omap3-beagle.dtb" >&2 ++ fi ++ + # The GRUB_DISABLE_SUBMENU option used to be different than others since it was + # mentioned in the documentation that has to be set to 'y' instead of 'true' to + # enable it. This caused a lot of confusion to users that set the option to 'y', +--- a/util/grub.d/20_linux_xen.in 2021-06-17 03:06:56.202081000 -0500 ++++ b/util/grub.d/20_linux_xen.in 2021-06-18 02:38:28.569590238 -0500 +@@ -172,6 +172,14 @@ + ${module_loader} ${rel_dirname}/${xenpolicy} + EOF + fi ++ if test -d "${rel_dirname}/dtbs/${version}/omap3-beagle.dtb" ; then ++ # TRANSLATORS: Device tree path isn't identifier. Should be translated. ++ message="$(gettext_printf "Loading devices tree path ...")" ++ sed "s/^/$submenu_indentation/" << EOF ++ echo '$(echo "$message" | grub_quote)' ++ devicetree ${rel_dirname}/dtbs/${version}/omap3-beagle.dtb ++EOF ++ fi + sed "s/^/$submenu_indentation/" << EOF + } + EOF +@@ -316,6 +324,10 @@ + fi + fi + ++ if test -d "${dirname}/dtbs/${version}/omap3-beagle.dtb" ; then ++ gettext_printf "Found device tree directory: %s\n" "${dirname}/dtbs/${version}/omap3-beagle.dtb" >&2 ++ fi ++ + # The GRUB_DISABLE_SUBMENU option used to be different than others since it was + # mentioned in the documentation that has to be set to 'y' instead of 'true' to + # enable it. This caused a lot of confusion to users that set the option to 'y', diff --git a/libre/grub/1000-omap3_beagle_xm--10_linux-20_linux_xen-detect-devicetree-file.patch b/libre/grub/1000-omap3_beagle_xm--10_linux-20_linux_xen-detect-devicetree-file.patch new file mode 100644 index 0000000..3ba413c --- /dev/null +++ b/libre/grub/1000-omap3_beagle_xm--10_linux-20_linux_xen-detect-devicetree-file.patch @@ -0,0 +1,56 @@ +--- a/util/grub.d/10_linux.in 2021-06-17 03:06:45.912081000 -0500 ++++ b/util/grub.d/10_linux.in 2021-06-18 02:45:30.129589402 -0500 +@@ -155,6 +155,14 @@ + initrd $(echo $initrd_path) + EOF + fi ++ if test -d "${rel_dirname}/dtbs/${version}/omap3-beagle-xm.dtb" ; then ++ # TRANSLATORS: Device tree path isn't identifier. Should be translated. ++ message="$(gettext_printf "Loading devices tree path ...")" ++ sed "s/^/$submenu_indentation/" << EOF ++ echo '$(echo "$message" | grub_quote)' ++ devicetree ${rel_dirname}/dtbs/${version}/omap3-beagle-xm.dtb ++EOF ++ fi + sed "s/^/$submenu_indentation/" << EOF + } + EOF +@@ -261,6 +269,10 @@ + fi + fi + ++ if test -d "${dirname}/dtbs/${version}/omap3-beagle-xm.dtb" ; then ++ gettext_printf "Found device tree directory: %s\n" "${dirname}/dtbs/${version}/omap3-beagle-xm.dtb" >&2 ++ fi ++ + # The GRUB_DISABLE_SUBMENU option used to be different than others since it was + # mentioned in the documentation that has to be set to 'y' instead of 'true' to + # enable it. This caused a lot of confusion to users that set the option to 'y', +--- a/util/grub.d/20_linux_xen.in 2021-06-17 03:06:56.202081000 -0500 ++++ b/util/grub.d/20_linux_xen.in 2021-06-18 02:46:39.199589265 -0500 +@@ -172,6 +172,14 @@ + ${module_loader} ${rel_dirname}/${xenpolicy} + EOF + fi ++ if test -d "${rel_dirname}/dtbs/${version}/omap3-beagle-xm.dtb" ; then ++ # TRANSLATORS: Device tree path isn't identifier. Should be translated. ++ message="$(gettext_printf "Loading devices tree path ...")" ++ sed "s/^/$submenu_indentation/" << EOF ++ echo '$(echo "$message" | grub_quote)' ++ devicetree ${rel_dirname}/dtbs/${version}/omap3-beagle-xm.dtb ++EOF ++ fi + sed "s/^/$submenu_indentation/" << EOF + } + EOF +@@ -316,6 +324,10 @@ + fi + fi + ++ if test -d "${dirname}/dtbs/${version}/omap3-beagle-xm.dtb" ; then ++ gettext_printf "Found device tree directory: %s\n" "${dirname}/dtbs/${version}/omap3-beagle-xm.dtb" >&2 ++ fi ++ + # The GRUB_DISABLE_SUBMENU option used to be different than others since it was + # mentioned in the documentation that has to be set to 'y' instead of 'true' to + # enable it. This caused a lot of confusion to users that set the option to 'y', diff --git a/libre/grub/1000-omap3_beagle_xm_ab--10_linux-20_linux_xen-detect-devicetree-file.patch b/libre/grub/1000-omap3_beagle_xm_ab--10_linux-20_linux_xen-detect-devicetree-file.patch new file mode 100644 index 0000000..f24eed1 --- /dev/null +++ b/libre/grub/1000-omap3_beagle_xm_ab--10_linux-20_linux_xen-detect-devicetree-file.patch @@ -0,0 +1,56 @@ +--- a/util/grub.d/10_linux.in 2021-06-17 03:06:45.912081000 -0500 ++++ b/util/grub.d/10_linux.in 2021-06-18 02:52:13.679588602 -0500 +@@ -155,6 +155,14 @@ + initrd $(echo $initrd_path) + EOF + fi ++ if test -d "${rel_dirname}/dtbs/${version}/omap3-beagle-xm-ab.dtb" ; then ++ # TRANSLATORS: Device tree path isn't identifier. Should be translated. ++ message="$(gettext_printf "Loading devices tree path ...")" ++ sed "s/^/$submenu_indentation/" << EOF ++ echo '$(echo "$message" | grub_quote)' ++ devicetree ${rel_dirname}/dtbs/${version}/omap3-beagle-xm-ab.dtb ++EOF ++ fi + sed "s/^/$submenu_indentation/" << EOF + } + EOF +@@ -261,6 +269,10 @@ + fi + fi + ++ if test -d "${dirname}/dtbs/${version}/omap3-beagle-xm-ab.dtb" ; then ++ gettext_printf "Found device tree directory: %s\n" "${dirname}/dtbs/${version}/omap3-beagle-xm-ab.dtb" >&2 ++ fi ++ + # The GRUB_DISABLE_SUBMENU option used to be different than others since it was + # mentioned in the documentation that has to be set to 'y' instead of 'true' to + # enable it. This caused a lot of confusion to users that set the option to 'y', +--- a/util/grub.d/20_linux_xen.in 2021-06-17 03:06:56.202081000 -0500 ++++ b/util/grub.d/20_linux_xen.in 2021-06-18 02:53:25.419588460 -0500 +@@ -172,6 +172,14 @@ + ${module_loader} ${rel_dirname}/${xenpolicy} + EOF + fi ++ if test -d "${rel_dirname}/dtbs/${version}/omap3-beagle-xm-ab.dtb" ; then ++ # TRANSLATORS: Device tree path isn't identifier. Should be translated. ++ message="$(gettext_printf "Loading devices tree path ...")" ++ sed "s/^/$submenu_indentation/" << EOF ++ echo '$(echo "$message" | grub_quote)' ++ devicetree ${rel_dirname}/dtbs/${version}/omap3-beagle-xm-ab.dtb ++EOF ++ fi + sed "s/^/$submenu_indentation/" << EOF + } + EOF +@@ -316,6 +324,10 @@ + fi + fi + ++ if test -d "${dirname}/dtbs/${version}/omap3-beagle-xm-ab.dtb" ; then ++ gettext_printf "Found device tree directory: %s\n" "${dirname}/dtbs/${version}/omap3-beagle-xm-ab.dtb" >&2 ++ fi ++ + # The GRUB_DISABLE_SUBMENU option used to be different than others since it was + # mentioned in the documentation that has to be set to 'y' instead of 'true' to + # enable it. This caused a lot of confusion to users that set the option to 'y', diff --git a/libre/grub/1000-udoo--10_linux-20_linux_xen-detect-devicetree-file.patch b/libre/grub/1000-udoo--10_linux-20_linux_xen-detect-devicetree-file.patch new file mode 100644 index 0000000..692ac51 --- /dev/null +++ b/libre/grub/1000-udoo--10_linux-20_linux_xen-detect-devicetree-file.patch @@ -0,0 +1,56 @@ +--- a/util/grub.d/10_linux.in 2021-06-17 03:06:45.912081000 -0500 ++++ b/util/grub.d/10_linux.in 2021-06-18 02:58:17.879587880 -0500 +@@ -155,6 +155,14 @@ + initrd $(echo $initrd_path) + EOF + fi ++ if test -d "${rel_dirname}/dtbs/${version}/imx6q-udoo.dtb" ; then ++ # TRANSLATORS: Device tree path isn't identifier. Should be translated. ++ message="$(gettext_printf "Loading devices tree path ...")" ++ sed "s/^/$submenu_indentation/" << EOF ++ echo '$(echo "$message" | grub_quote)' ++ devicetree ${rel_dirname}/dtbs/${version}/imx6q-udoo.dtb ++EOF ++ fi + sed "s/^/$submenu_indentation/" << EOF + } + EOF +@@ -261,6 +269,10 @@ + fi + fi + ++ if test -d "${dirname}/dtbs/${version}/imx6q-udoo.dtb" ; then ++ gettext_printf "Found device tree directory: %s\n" "${dirname}/dtbs/${version}/imx6q-udoo.dtb" >&2 ++ fi ++ + # The GRUB_DISABLE_SUBMENU option used to be different than others since it was + # mentioned in the documentation that has to be set to 'y' instead of 'true' to + # enable it. This caused a lot of confusion to users that set the option to 'y', +--- a/util/grub.d/20_linux_xen.in 2021-06-17 03:06:56.202081000 -0500 ++++ b/util/grub.d/20_linux_xen.in 2021-06-18 02:59:12.559587771 -0500 +@@ -172,6 +172,14 @@ + ${module_loader} ${rel_dirname}/${xenpolicy} + EOF + fi ++ if test -d "${rel_dirname}/dtbs/${version}/imx6q-udoo.dtb" ; then ++ # TRANSLATORS: Device tree path isn't identifier. Should be translated. ++ message="$(gettext_printf "Loading devices tree path ...")" ++ sed "s/^/$submenu_indentation/" << EOF ++ echo '$(echo "$message" | grub_quote)' ++ devicetree ${rel_dirname}/dtbs/${version}/imx6q-udoo.dtb ++EOF ++ fi + sed "s/^/$submenu_indentation/" << EOF + } + EOF +@@ -316,6 +324,10 @@ + fi + fi + ++ if test -d "${dirname}/dtbs/${version}/imx6q-udoo.dtb" ; then ++ gettext_printf "Found device tree directory: %s\n" "${dirname}/dtbs/${version}/imx6q-udoo.dtb" >&2 ++ fi ++ + # The GRUB_DISABLE_SUBMENU option used to be different than others since it was + # mentioned in the documentation that has to be set to 'y' instead of 'true' to + # enable it. This caused a lot of confusion to users that set the option to 'y', diff --git a/libre/grub/PKGBUILD b/libre/grub/PKGBUILD index b3b6deb..e62d748 100644 --- a/libre/grub/PKGBUILD +++ b/libre/grub/PKGBUILD @@ -128,29 +128,30 @@ validpgpkeys=('E53D497F3FA42AD8C9B4D1E835A93B74E82E4209' # Vladimir 'phcoder' S source=("git+https://git.savannah.gnu.org/git/grub.git#tag=${_tag}?signed" "git+https://git.savannah.gnu.org/git/gnulib.git#commit=${_gnulib_commit}" "https://ftp.gnu.org/gnu/unifont/unifont-${_unifont_ver}/unifont-${_unifont_ver}.bdf.gz"{,.sig} - '0003-10_linux-20_linux_xen-detect-parabola-initramfs.patch' '0001-00_header-add-GRUB_COLOR_-variables.patch' - 'grub.default' - '0003-10_linux-20_linux_xen-detect-am335x_bone+am335x_boneblack-devicetree-file.patch' - '0003-10_linux-20_linux_xen-detect-omap3_beagle-devicetree-file.patch' - '0003-10_linux-20_linux_xen-detect-omap3_beagle_xm-devicetree-file.patch' - '0003-10_linux-20_linux_xen-detect-omap3_beagle_xm_ab-devicetree-file.patch' - '0003-10_linux-20_linux_xen-detect-udoo-devicetree-file.patch' - '0003-10_linux-20_linux_xen-rebrand-free-distros.patch') + '0002-10_linux-20_linux_xen-detect-parabola-initramfs.patch' + '0003-10_linux-20_linux_xen-rebrand-free-distros.patch' + 'grub.default') +source_armv7h=( + '1000-am335x_bone--10_linux-20_linux_xen-detect-devicetree-file.patch' + '1000-omap3_beagle--10_linux-20_linux_xen-detect-devicetree-file.patch' + '1000-omap3_beagle_xm--10_linux-20_linux_xen-detect-devicetree-file.patch' + '1000-omap3_beagle_xm_ab--10_linux-20_linux_xen-detect-devicetree-file.patch' + '1000-udoo--10_linux-20_linux_xen-detect-devicetree-file.patch') sha256sums=('SKIP' 'SKIP' 'b7668a5d498972dc4981250c49f83601babce797be19b4fdd0f2f1c6cfbd0fc5' 'SKIP' - 'b32a28cb5b97b0bb139c0ee2199b81a2aba124c2ead9b01cfd4485fd2551257f' '5dee6628c48eef79812bb9e86ee772068d85e7fcebbd2b2b8d1e19d24eda9dab' - 'ed6cf7d8efc391b9331322e4502f7469473a8ed05599c36e2b18f167b3cb7879' - '0f2e9abaf872e1e18dfe0cd1da42bdc4f49d3956f97a01c39b82c0e3016c1a32' - 'c0d84384db273d9fd6ea2aab2a9d8ba36402daf8daf591dcba329cfa02253c87' - 'ef105dcc067c673e543d4d5384aa7bf6b93e9eca96fec4323ab69a91ec079f56' - 'f5fb1673536d56a88b3d1aaec75501e4d0acca081ac658d1059ec276f9e062c6' - 'd8911a513166d2db337b9449542e0ad0e91b114f92dc4b876d88d77d23829a1d' - '7374137d183957ec8834ce749163c9fa98ff8ee61bbb74b0b38e29daf93857a4') + 'b32a28cb5b97b0bb139c0ee2199b81a2aba124c2ead9b01cfd4485fd2551257f' + '7374137d183957ec8834ce749163c9fa98ff8ee61bbb74b0b38e29daf93857a4' + 'ed6cf7d8efc391b9331322e4502f7469473a8ed05599c36e2b18f167b3cb7879') +sha256sums_armv7h=('0f2e9abaf872e1e18dfe0cd1da42bdc4f49d3956f97a01c39b82c0e3016c1a32' + 'c0d84384db273d9fd6ea2aab2a9d8ba36402daf8daf591dcba329cfa02253c87' + 'ef105dcc067c673e543d4d5384aa7bf6b93e9eca96fec4323ab69a91ec079f56' + 'f5fb1673536d56a88b3d1aaec75501e4d0acca081ac658d1059ec276f9e062c6' + 'd8911a513166d2db337b9449542e0ad0e91b114f92dc4b876d88d77d23829a1d') _backports=( ) @@ -192,7 +193,7 @@ prepare() { patch -Np1 -i "${srcdir}/0001-00_header-add-GRUB_COLOR_-variables.patch" echo "Patch to detect of Parabola GNU/Linux-libre initramfs images by grub-mkconfig..." - patch -Np1 -i "${srcdir}/0003-10_linux-20_linux_xen-detect-parabola-initramfs.patch" + patch -Np1 -i "${srcdir}/0002-10_linux-20_linux_xen-detect-parabola-initramfs.patch" echo "Fix DejaVuSans.ttf location so that grub-mkfont can create *.pf2 files for starfield theme..." sed 's|/usr/share/fonts/dejavu|/usr/share/fonts/dejavu /usr/share/fonts/TTF|g' -i "configure.ac" @@ -716,7 +717,7 @@ package_grub-am335x_bone() { cd "${srcdir}/grub-uboot_am335x-bone/" echo 'Patch to detect am335x-bone device tree blob file (dtb)...' - patch -Np1 -i "${srcdir}/0003-10_linux-20_linux_xen-detect-am335x_bone+am335x_boneblack-devicetree-file.patch" + patch -Np1 -i "${srcdir}/1000-am335x_bone--10_linux-20_linux_xen-detect-devicetree-file.patch" echo 'Package grub U-Boot stuff...' ## _package_grub-uboot @@ -731,10 +732,6 @@ package_grub-am335x_bone() { echo 'Install /etc/default/grub (used by grub-mkconfig)...' install -D -m0644 "${srcdir}/grub.default" "${pkgdir}/etc/default/grub" - - ## echo 'Patch to detect am335x-bone device tree blob file (dtb)...' - ## cd "${pkgdir}/etc/grub.d/" - ## patch -Np1 -i "${srcdir}/0003-10_linux-20_linux_xen-detect-am335x_bone+am335x_boneblack-devicetree-file.patch" } package_grub-omap3_beagle() { @@ -749,7 +746,7 @@ package_grub-omap3_beagle() { cd "${srcdir}/grub-uboot_omap3_beagle/" echo 'Patch to detect omap3_beagle device tree blob file (dtb)...' - patch -Np1 -i "${srcdir}/0003-10_linux-20_linux_xen-detect-omap3_beagle-devicetree-file.patch" + patch -Np1 -i "${srcdir}/1000-omap3_beagle--10_linux-20_linux_xen-detect-devicetree-file.patch" echo 'Package grub U-Boot stuff...' ## _package_grub-uboot @@ -764,10 +761,6 @@ package_grub-omap3_beagle() { echo 'Install /etc/default/grub (used by grub-mkconfig)...' install -D -m0644 "${srcdir}/grub.default" "${pkgdir}/etc/default/grub" - - ## echo 'Patch to detect omap3_beagle device tree blob file (dtb)...' - ## cd "${pkgdir}/etc/grub.d/" - ## patch -Np1 -i "${srcdir}/0003-10_linux-20_linux_xen-detect-omap3_beagle-devicetree-file.patch" } package_grub-omap3_beagle_xm() { @@ -782,7 +775,7 @@ package_grub-omap3_beagle_xm() { cd "${srcdir}/grub-uboot_omap3_beagle_xm/" echo 'Patch to detect omap3_beagle_xm device tree blob file (dtb)...' - patch -Np1 -i "${srcdir}/0003-10_linux-20_linux_xen-detect-omap3_beagle_xm-devicetree-file.patch" + patch -Np1 -i "${srcdir}/1000-omap3_beagle_xm--10_linux-20_linux_xen-detect-devicetree-file.patch" echo 'Package grub U-Boot stuff...' ## _package_grub-uboot @@ -797,10 +790,6 @@ package_grub-omap3_beagle_xm() { echo 'Install /etc/default/grub (used by grub-mkconfig)...' install -D -m0644 "${srcdir}/grub.default" "${pkgdir}/etc/default/grub" - - ## echo 'Patch to detect omap3_beagle_xm device tree blob file (dtb)...' - ## cd "${pkgdir}/etc/grub.d/" - ## patch -Np1 -i "${srcdir}/0003-10_linux-20_linux_xen-detect-omap3_beagle_xm-devicetree-file.patch" } package_grub-omap3_beagle_xm_ab() { @@ -815,7 +804,7 @@ package_grub-omap3_beagle_xm_ab() { cd "${srcdir}/grub-uboot_omap3_beagle_xm_ab/" echo 'Patch to detect omap3_beagle_xm_ab device tree blob file (dtb)...' - patch -Np1 -i "${srcdir}/0003-10_linux-20_linux_xen-detect-omap3_beagle_xm_ab-devicetree-file.patch" + patch -Np1 -i "${srcdir}/1000-omap3_beagle_xm_ab--10_linux-20_linux_xen-detect-devicetree-file.patch" echo 'Package grub U-Boot stuff...' ## _package_grub-uboot @@ -830,10 +819,6 @@ package_grub-omap3_beagle_xm_ab() { echo 'Install /etc/default/grub (used by grub-mkconfig)...' install -D -m0644 "${srcdir}/grub.default" "${pkgdir}/etc/default/grub" - - ## echo 'Patch to detect omap3_beagle_xm_ab device tree blob file (dtb)...' - ## cd "${pkgdir}/etc/grub.d/" - ## patch -Np1 -i "${srcdir}/0003-10_linux-20_linux_xen-detect-omap3_beagle_xm_ab-devicetree-file.patch" } package_grub-udoo() { @@ -847,7 +832,7 @@ package_grub-udoo() { cd "${srcdir}/grub-uboot_udoo/" echo 'Patch to detect udoo device tree blob file (dtb)...' - patch -Np1 -i "${srcdir}/0003-10_linux-20_linux_xen-detect-udoo-devicetree-file.patch" + patch -Np1 -i "${srcdir}/1000-udoo--10_linux-20_linux_xen-detect-devicetree-file.patch" echo 'Package grub U-Boot stuff...' ## _package_grub-uboot @@ -862,8 +847,4 @@ package_grub-udoo() { echo 'Install /etc/default/grub (used by grub-mkconfig)...' install -D -m0644 "${srcdir}/grub.default" "${pkgdir}/etc/default/grub" - - ## echo 'Patch to detect udoo device tree blob file (dtb)...' - ## cd "${pkgdir}/etc/grub.d/" - ## patch -Np1 -i "${srcdir}/0003-10_linux-20_linux_xen-detect-udoo-devicetree-file.patch" } From dbc32760f6d1cb21ddce5ba8c0b60a29c6fd6681 Mon Sep 17 00:00:00 2001 From: Luke T. Shumaker Date: Jan 08 2024 03:17:33 +0000 Subject: [PATCH 29/73] libre/grub: factor out the common part of the arm-uboot package_* functions --- diff --git a/libre/grub/PKGBUILD b/libre/grub/PKGBUILD index e62d748..2f408e0 100644 --- a/libre/grub/PKGBUILD +++ b/libre/grub/PKGBUILD @@ -706,18 +706,21 @@ package_grub() { install -D -m0644 "${srcdir}/grub.default" "${pkgdir}/etc/default/grub" } -package_grub-am335x_bone() { - pkgdesc='GNU GRand Unified Bootloader (2) for BeagleBone and BeagleBone Black (am335x-bone), (Parabola rebranded)' +_package_grub-uboot-dev() { + local devname=$1 + local devdesc=$2 + + pkgdesc="GNU GRand Unified Bootloader (2) for $devdesc ($devname), (Parabola rebranded)" optdepends+=('dosfstools: For grub-mkrescue FAT FS' 'os-prober: To detect other OSes when generating grub.cfg in BIOS systems' 'mtools: For grub-mkrescue FAT FS support') - echo "Copy the source for packaging the U-Boot (am335x-bone) part..." - cp -r "${srcdir}/grub-uboot/" "${srcdir}/grub-uboot_am335x-bone/" - cd "${srcdir}/grub-uboot_am335x-bone/" + echo "Copy the source for packaging the U-Boot ($devname) part..." + cp -r "${srcdir}/grub-uboot/" "${srcdir}/grub-uboot_$devname/" + cd "${srcdir}/grub-uboot_$devname/" - echo 'Patch to detect am335x-bone device tree blob file (dtb)...' - patch -Np1 -i "${srcdir}/1000-am335x_bone--10_linux-20_linux_xen-detect-devicetree-file.patch" + echo "Patch to detect $devname device tree blob file (dtb)..." + patch -Np1 -i "${srcdir}/1000-${pkgname#grub-}--10_linux-20_linux_xen-detect-devicetree-file.patch" echo 'Package grub U-Boot stuff...' ## _package_grub-uboot @@ -734,117 +737,25 @@ package_grub-am335x_bone() { install -D -m0644 "${srcdir}/grub.default" "${pkgdir}/etc/default/grub" } +package_grub-am335x_bone() { + _package_grub-uboot-dev 'am335x-bone' 'BeagleBone and BeagleBone Black' +} + package_grub-omap3_beagle() { - pkgdesc='GNU GRand Unified Bootloader (2) for BeagleBoard (omap3_beagle), (Parabola rebranded)' provides+=('grub-beagleboard') - optdepends+=('dosfstools: For grub-mkrescue FAT FS' - 'os-prober: To detect other OSes when generating grub.cfg in BIOS systems' - 'mtools: For grub-mkrescue FAT FS support') - - echo "Copy the source for packaging the U-Boot (omap3_beagle) part..." - cp -r "${srcdir}/grub-uboot/" "${srcdir}/grub-uboot_omap3_beagle/" - cd "${srcdir}/grub-uboot_omap3_beagle/" - - echo 'Patch to detect omap3_beagle device tree blob file (dtb)...' - patch -Np1 -i "${srcdir}/1000-omap3_beagle--10_linux-20_linux_xen-detect-devicetree-file.patch" - - echo 'Package grub U-Boot stuff...' - ## _package_grub-uboot - - echo 'Run make install for U-Boot build...' - make DESTDIR="${pkgdir}/" bashcompletiondir="/usr/share/bash-completion/completions" install - - echo 'Remove gdb debugging related files for U-Boot build...' - rm -f "${pkgdir}/usr/lib/grub/arm-uboot"/*.module || true - rm -f "${pkgdir}/usr/lib/grub/arm-uboot"/*.image || true - rm -f "${pkgdir}/usr/lib/grub/arm-uboot"/{kernel.exec,gdb_grub,gmodule.pl} || true - - echo 'Install /etc/default/grub (used by grub-mkconfig)...' - install -D -m0644 "${srcdir}/grub.default" "${pkgdir}/etc/default/grub" + _package_grub-uboot-dev "${pkgname#grub-}" 'BeagleBoard' } package_grub-omap3_beagle_xm() { - pkgdesc='GNU GRand Unified Bootloader (2) for BeagleBoard-xM (omap3_beagle_xm), (Parabola rebranded)' provides+=('grub-beagleboard') - optdepends+=('dosfstools: For grub-mkrescue FAT FS' - 'os-prober: To detect other OSes when generating grub.cfg in BIOS systems' - 'mtools: For grub-mkrescue FAT FS support') - - echo "Copy the source for packaging the U-Boot (omap3_beagle_xm) part..." - cp -r "${srcdir}/grub-uboot/" "${srcdir}/grub-uboot_omap3_beagle_xm/" - cd "${srcdir}/grub-uboot_omap3_beagle_xm/" - - echo 'Patch to detect omap3_beagle_xm device tree blob file (dtb)...' - patch -Np1 -i "${srcdir}/1000-omap3_beagle_xm--10_linux-20_linux_xen-detect-devicetree-file.patch" - - echo 'Package grub U-Boot stuff...' - ## _package_grub-uboot - - echo 'Run make install for U-Boot build...' - make DESTDIR="${pkgdir}/" bashcompletiondir="/usr/share/bash-completion/completions" install - - echo 'Remove gdb debugging related files for U-Boot build...' - rm -f "${pkgdir}/usr/lib/grub/arm-uboot"/*.module || true - rm -f "${pkgdir}/usr/lib/grub/arm-uboot"/*.image || true - rm -f "${pkgdir}/usr/lib/grub/arm-uboot"/{kernel.exec,gdb_grub,gmodule.pl} || true - - echo 'Install /etc/default/grub (used by grub-mkconfig)...' - install -D -m0644 "${srcdir}/grub.default" "${pkgdir}/etc/default/grub" + _package_grub-uboot-dev "${pkgname#grub-}" 'BeagleBoard-xM' } package_grub-omap3_beagle_xm_ab() { - pkgdesc='GNU GRand Unified Bootloader (2) for BeagleBoard-xM rev A/B (omap3_beagle_xm_ab), (Parabola rebranded)' provides+=('grub-beagleboard') - optdepends+=('dosfstools: For grub-mkrescue FAT FS' - 'os-prober: To detect other OSes when generating grub.cfg in BIOS systems' - 'mtools: For grub-mkrescue FAT FS support') - - echo "Copy the source for packaging the U-Boot (omap3_beagle_xm_ab) part..." - cp -r "${srcdir}/grub-uboot/" "${srcdir}/grub-uboot_omap3_beagle_xm_ab/" - cd "${srcdir}/grub-uboot_omap3_beagle_xm_ab/" - - echo 'Patch to detect omap3_beagle_xm_ab device tree blob file (dtb)...' - patch -Np1 -i "${srcdir}/1000-omap3_beagle_xm_ab--10_linux-20_linux_xen-detect-devicetree-file.patch" - - echo 'Package grub U-Boot stuff...' - ## _package_grub-uboot - - echo 'Run make install for U-Boot build...' - make DESTDIR="${pkgdir}/" bashcompletiondir="/usr/share/bash-completion/completions" install - - echo 'Remove gdb debugging related files for U-Boot build...' - rm -f "${pkgdir}/usr/lib/grub/arm-uboot"/*.module || true - rm -f "${pkgdir}/usr/lib/grub/arm-uboot"/*.image || true - rm -f "${pkgdir}/usr/lib/grub/arm-uboot"/{kernel.exec,gdb_grub,gmodule.pl} || true - - echo 'Install /etc/default/grub (used by grub-mkconfig)...' - install -D -m0644 "${srcdir}/grub.default" "${pkgdir}/etc/default/grub" + _package_grub-uboot-dev "${pkgname#grub-}" 'BeagleBoard-xM rev A/B' } package_grub-udoo() { - pkgdesc='GNU GRand Unified Bootloader (2) for UDOO (udoo), (Parabola rebranded)' - optdepends+=('dosfstools: For grub-mkrescue FAT FS' - 'os-prober: To detect other OSes when generating grub.cfg in BIOS systems' - 'mtools: For grub-mkrescue FAT FS support') - - echo "Copy the source for packaging the U-Boot (udoo) part..." - cp -r "${srcdir}/grub-uboot/" "${srcdir}/grub-uboot_udoo/" - cd "${srcdir}/grub-uboot_udoo/" - - echo 'Patch to detect udoo device tree blob file (dtb)...' - patch -Np1 -i "${srcdir}/1000-udoo--10_linux-20_linux_xen-detect-devicetree-file.patch" - - echo 'Package grub U-Boot stuff...' - ## _package_grub-uboot - - echo 'Run make install for U-Boot build...' - make DESTDIR="${pkgdir}/" bashcompletiondir="/usr/share/bash-completion/completions" install - - echo 'Remove gdb debugging related files for U-Boot build...' - rm -f "${pkgdir}/usr/lib/grub/arm-uboot"/*.module || true - rm -f "${pkgdir}/usr/lib/grub/arm-uboot"/*.image || true - rm -f "${pkgdir}/usr/lib/grub/arm-uboot"/{kernel.exec,gdb_grub,gmodule.pl} || true - - echo 'Install /etc/default/grub (used by grub-mkconfig)...' - install -D -m0644 "${srcdir}/grub.default" "${pkgdir}/etc/default/grub" + _package_grub-uboot-dev "${pkgname#grub-}" 'UDOO' } From cddec269f4bbda6d231cb8987c475403a2a36120 Mon Sep 17 00:00:00 2001 From: Luke T. Shumaker Date: Jan 08 2024 03:17:33 +0000 Subject: [PATCH 30/73] libre/grub: factor out the common part of the _build_grub-* functions --- diff --git a/libre/grub/PKGBUILD b/libre/grub/PKGBUILD index 2f408e0..7eb37bb 100644 --- a/libre/grub/PKGBUILD +++ b/libre/grub/PKGBUILD @@ -212,62 +212,54 @@ prepare() { gzip -cd "${srcdir}/unifont-${_unifont_ver}.bdf.gz" > "unifont.bdf" } -_build_grub-efi() { - echo "Copy the source for building the ${_EFI_ARCH} EFI part..." - cp -r "${srcdir}/grub/" "${srcdir}/grub-efi-${_EFI_ARCH}/" - cd "${srcdir}/grub-efi-${_EFI_ARCH}/" - - echo "Unset all compiler FLAGS for ${_EFI_ARCH} EFI build..." +# Usage: _build_grub DIRSUFFIX 'Human Description' CPU-PLATFORM CONFIG_OPTIONS... +_build_grub() { + local bld_name="$1" + local bld_desc="$2" + local bld_cpu="${3%-*}" + local bld_plat="${3#*-}" + local bld_configure_options=("${@:4}") + + echo "Copy the source for building the ${bld_desc} part..." + cp -r "${srcdir}/grub/" "${srcdir}/grub-${bld_name}/" + cd "${srcdir}/grub-${bld_name}/" + + echo "Unset all compiler FLAGS for ${bld_desc} build..." unset CFLAGS unset CPPFLAGS unset CXXFLAGS unset LDFLAGS unset MAKEFLAGS - echo "Run bootstrap for ${_EFI_ARCH} EFI build..." + echo "Run bootstrap for ${bld_desc} build..." ./bootstrap \ --gnulib-srcdir="${srcdir}/gnulib/" \ --no-git - echo "Run ./configure for ${_EFI_ARCH} EFI build..." + echo "Run ./configure for ${bld_desc} build..." ./configure \ - --with-platform="efi" \ - --target="${_EFI_ARCH}" \ + --with-platform="${bld_plat}" \ + --target="${bld_cpu}" \ + "${bld_configure_options[@]}" + + echo "Run make for ${bld_desc} build..." + make +} + +_build_grub-efi() { + _build_grub "efi-${_EFI_ARCH}" "${_EFI_ARCH} EFI" \ + "${_EFI_ARCH}-efi" \ --disable-efiemu \ --enable-boot-time \ "${_configure_options[@]}" - - echo "Run make for ${_EFI_ARCH} EFI build..." - make } _build_grub-xen() { - echo "Copy the source for building the ${_XEN_ARCH} XEN part..." - cp -r "${srcdir}/grub/" "${srcdir}/grub-xen-${_XEN_ARCH}/" - cd "${srcdir}/grub-xen-${_XEN_ARCH}/" - - echo "Unset all compiler FLAGS for ${_XEN_ARCH} XEN build..." - unset CFLAGS - unset CPPFLAGS - unset CXXFLAGS - unset LDFLAGS - unset MAKEFLAGS - - echo "Run bootstrap for ${_XEN_ARCH} XEN build..." - ./bootstrap \ - --gnulib-srcdir="${srcdir}/gnulib/" \ - --no-git - - echo "Run ./configure for ${_XEN_ARCH} XEN build..." - ./configure \ - --with-platform='xen' \ - --target="${_XEN_ARCH}" \ + _build_grub "xen-${_XEN_ARCH}" "${_XEN_ARCH} XEN" \ + "${_XEN_ARCH}-xen" \ --disable-efiemu \ --enable-boot-time \ "${_configure_options[@]}" - - echo "Run make for ${_XEN_ARCH} XEN build..." - make } _build_grub-bios() { @@ -278,212 +270,62 @@ _build_grub-bios() { _EFIEMU='--disable-efiemu' fi - echo 'Copy the source for building the BIOS part...' - cp -r "${srcdir}/grub/" "${srcdir}/grub-bios/" - cd "${srcdir}/grub-bios/" - - echo 'Unset all compiler FLAGS for BIOS build...' - unset CFLAGS - unset CPPFLAGS - unset CXXFLAGS - unset LDFLAGS - unset MAKEFLAGS - - echo 'Run bootstrap for BIOS build...' - ./bootstrap \ - --gnulib-srcdir="${srcdir}/gnulib/" \ - --no-git - - echo 'Run ./configure for BIOS build...' - ./configure \ - --with-platform='pc' \ - --target='i386' \ + _build_grub 'bios' 'BIOS' \ + 'i386-pc' \ "${_EFIEMU}" \ --enable-boot-time \ "${_configure_options[@]}" - - echo 'Run make for BIOS build...' - make } _build_grub-qemu() { - echo 'Copy the source for building the QEMU part...' - cp -r "${srcdir}/grub/" "${srcdir}/grub-qemu/" - cd "${srcdir}/grub-qemu/" - - echo 'Unset all compiler FLAGS for QEMU build...' - unset CFLAGS - unset CPPFLAGS - unset CXXFLAGS - unset LDFLAGS - unset MAKEFLAGS - - echo 'Run bootstrap for QEMU build...' - ./bootstrap \ - --gnulib-srcdir="${srcdir}/gnulib/" \ - --no-git - - echo 'Run ./configure for QEMU build...' - ./configure \ + _build_grub 'qemu' 'QEMU' \ + 'i386-qemu' \ BUILD_FREETYPE="pkg-config freetype2" \ - --with-platform='qemu' \ - --target='i386' \ --disable-efiemu \ --enable-boot-time \ "${_configure_options[@]}" - - echo 'Run make for QEMU build...' - make } _build_grub-ieee1275() { - echo 'Copy the source for building the IEEE1275 (OpenFirmware) part...' - cp -r "${srcdir}/grub/" "${srcdir}/grub-ieee1275/" - cd "${srcdir}/grub-ieee1275/" - - echo 'Unset all compiler FLAGS for IEEE1275 (OpenFirmware) build...' - unset CFLAGS - unset CPPFLAGS - unset CXXFLAGS - unset LDFLAGS - unset MAKEFLAGS - - echo 'Run bootstrap for IEEE1275 (OpenFirmware) build...' - ./bootstrap \ - --gnulib-srcdir="${srcdir}/gnulib/" \ - --no-git - - echo 'Run ./configure for IEEE1275 (OpenFirmware) build...' - ./configure \ - --with-platform='ieee1275' \ - --target='i386' \ + _build_grub 'ieee1275' 'IEEE1275 (OpenFirmware)' \ + 'i386-ieee1275' \ --disable-efiemu \ --enable-boot-time \ "${_configure_options[@]}" - - echo 'Run make for IEEE1275 (OpenFirmware) build...' - make } _build_grub-libreboot() { - echo 'Copy the source for building the Libreboot part...' - cp -r "${srcdir}/grub/" "${srcdir}/grub-libreboot/" - cd "${srcdir}/grub-libreboot/" - - echo 'Unset all compiler FLAGS for Libreboot build...' - unset CFLAGS - unset CPPFLAGS - unset CXXFLAGS - unset LDFLAGS - unset MAKEFLAGS - - echo 'Run bootstrap for Libreboot build...' - ./bootstrap \ - --gnulib-srcdir="${srcdir}/gnulib/" \ - --no-git - - echo 'Run ./configure for Libreboot build...' - ./configure \ + _build_grub 'libreboot' 'Libreboot' \ + 'i386-coreboot' \ BUILD_FREETYPE="pkg-config freetype2" \ - --with-platform='coreboot' \ - --target='i386' \ --disable-efiemu \ --enable-boot-time \ "${_configure_options[@]}" - - echo 'Run make for Libreboot build...' - make } _build_grub-multiboot() { - echo 'Copy the source for building the Multiboot part...' - cp -r "${srcdir}/grub/" "${srcdir}/grub-multiboot/" - cd "${srcdir}/grub-multiboot/" - - echo 'Unset all compiler FLAGS for Multiboot build...' - unset CFLAGS - unset CPPFLAGS - unset CXXFLAGS - unset LDFLAGS - unset MAKEFLAGS - - echo 'Run bootstrap for Multiboot build...' - ./bootstrap \ - --gnulib-srcdir="${srcdir}/gnulib/" \ - --no-git - - echo 'Run ./configure for Multiboot build...' - ./configure \ - --with-platform='multiboot' \ - --target='i386' \ + _build_grub 'multiboot' 'Multiboot' \ + 'i386-multiboot' \ --disable-efiemu \ --enable-boot-time \ "${_configure_options[@]}" - - echo 'Run make for Multiboot build...' - make } _build_grub-emu() { - echo 'Copy the source for building the emu part...' - cp -r "${srcdir}/grub/" "${srcdir}/grub-emu/" - cd "${srcdir}/grub-emu/" - - echo 'Unset all compiler FLAGS for emu build...' - unset CFLAGS - unset CPPFLAGS - unset CXXFLAGS - unset LDFLAGS - unset MAKEFLAGS - - echo 'Run bootstrap for emu build...' - ./bootstrap \ - --gnulib-srcdir="${srcdir}/gnulib/" \ - --no-git - - echo 'Run ./configure for emu build...' - ./configure \ - --with-platform='emu' \ - --target="${_EMU_ARCH}" \ + _build_grub 'emu' 'emu' \ + "${_EMU_ARCH}-emu" \ --enable-grub-emu-usb=no \ --enable-grub-emu-sdl=no \ --disable-grub-emu-pci \ "${_configure_options[@]}" - - echo 'Run make for emu build...' - make } _build_grub-uboot() { - echo "Copy the source for building the U-Boot part..." - cp -r "${srcdir}/grub/" "${srcdir}/grub-uboot/" - cd "${srcdir}/grub-uboot/" - - echo 'Unset all compiler FLAGS for U-Boot build...' - unset CFLAGS - unset CPPFLAGS - unset CXXFLAGS - unset LDFLAGS - unset MAKEFLAGS - - #sed -i '\|grub_arm_disable_caches_mmu|,+4 d - # ' grub-core/loader/arm/linux.c - - echo 'Run bootstrap for U-Boot build...' - ./bootstrap \ - --gnulib-srcdir="${srcdir}/gnulib/" \ - --no-git - - echo 'Run ./configure for U-Boot build...' - ./configure \ - --with-platform='uboot' \ - --target='arm' \ + _build_grub 'uboot' 'U-Boot' \ + 'arm-uboot' \ --disable-efiemu \ --enable-boot-time \ "${_configure_options[@]}" - - echo 'Run make for U-Boot build...' - make } build() { From 4535064c1064a998f972e89291f99dd8fcb0a8f4 Mon Sep 17 00:00:00 2001 From: Luke T. Shumaker Date: Jan 08 2024 03:18:05 +0000 Subject: [PATCH 31/73] libre/grub: factor out the common part of the _package_grub-* functions --- diff --git a/libre/grub/PKGBUILD b/libre/grub/PKGBUILD index 7eb37bb..5321f78 100644 --- a/libre/grub/PKGBUILD +++ b/libre/grub/PKGBUILD @@ -377,112 +377,66 @@ build() { fi } -_package_grub-efi() { - cd "${srcdir}/grub-efi-${_EFI_ARCH}/" +# Usage: _package_grub DIRSUFFIX 'Human Description' CPU-PLATFORM +_package_grub() { + local bld_name="$1" + local bld_desc="$2" + local bld_cpuplat="$3" + + cd "${srcdir}/grub-${bld_name}/" - echo "Run make install for ${_EFI_ARCH} EFI build..." + echo "Run make install for ${bld_desc} build..." make DESTDIR="${pkgdir}/" bashcompletiondir="/usr/share/bash-completion/completions" install - echo "Remove gdb debugging related files for ${_EFI_ARCH} EFI build..." - rm -f "${pkgdir}/usr/lib/grub/${_EFI_ARCH}-efi"/*.module || true - rm -f "${pkgdir}/usr/lib/grub/${_EFI_ARCH}-efi"/*.image || true - rm -f "${pkgdir}/usr/lib/grub/${_EFI_ARCH}-efi"/{kernel.exec,gdb_grub,gmodule.pl} || true + echo "Remove gdb debugging related files for ${bld_desc} build..." + rm -f "${pkgdir}/usr/lib/grub/${bld_cpuplat}"/*.module || true + rm -f "${pkgdir}/usr/lib/grub/${bld_cpuplat}"/*.image || true + rm -f "${pkgdir}/usr/lib/grub/${bld_cpuplat}"/{kernel.exec,gdb_grub,gmodule.pl} || true } -_package_grub-xen() { - cd "${srcdir}/grub-xen-${_XEN_ARCH}/" - - echo "Run make install for ${_XEN_ARCH} XEN build..." - make DESTDIR="${pkgdir}/" bashcompletiondir="/usr/share/bash-completion/completions" install +_package_grub-efi() { + _package_grub "efi-${_EFI_ARCH}" "${_EFI_ARCH} EFI" \ + "${_EFI_ARCH}-efi" +} - echo "Remove gdb debugging related files for ${_XEN_ARCH} XEN build..." - rm -f "${pkgdir}/usr/lib/grub/${_XEN_ARCH}-xen"/*.module || true - rm -f "${pkgdir}/usr/lib/grub/${_XEN_ARCH}-xen"/*.image || true - rm -f "${pkgdir}/usr/lib/grub/${_XEN_ARCH}-xen"/{kernel.exec,gdb_grub,gmodule.pl} || true +_package_grub-xen() { + _package_grub "xen-${_XEN_ARCH}" "${_XEN_ARCH} XEN" \ + "${_XEN_ARCH}-xen" } _package_grub-bios() { - cd "${srcdir}/grub-bios/" - - echo 'Run make install for BIOS build...' - make DESTDIR="${pkgdir}/" bashcompletiondir="/usr/share/bash-completion/completions" install - - echo 'Remove gdb debugging related files for BIOS build...' - rm -f "${pkgdir}/usr/lib/grub/i386-pc"/*.module || true - rm -f "${pkgdir}/usr/lib/grub/i386-pc"/*.image || true - rm -f "${pkgdir}/usr/lib/grub/i386-pc"/{kernel.exec,gdb_grub,gmodule.pl} || true + _package_grub 'bios' 'BIOS' \ + 'i386-pc' } _package_grub-qemu() { - cd "${srcdir}/grub-qemu/" - - echo 'Run make install for QEMU build...' - make DESTDIR="${pkgdir}/" bashcompletiondir="/usr/share/bash-completion/completions" install - - echo 'Remove gdb debugging related files for QEMU build...' - rm -f "${pkgdir}/usr/lib/grub/i386-qemu"/*.module || true - rm -f "${pkgdir}/usr/lib/grub/i386-qemu"/*.image || true - rm -f "${pkgdir}/usr/lib/grub/i386-qemu"/{kernel.exec,gdb_grub,gmodule.pl} || true + _package_grub 'qemu' 'QEMU' \ + 'i386-qemu' } _package_grub-ieee1275() { - cd "${srcdir}/grub-ieee1275/" - - echo 'Run make install for IEEE1275 (OpenFirmware) build...' - make DESTDIR="${pkgdir}/" bashcompletiondir="/usr/share/bash-completion/completions" install - - echo 'Remove gdb debugging related files for IEEE1275 (OpenFirmware) build...' - rm -f "${pkgdir}/usr/lib/grub/i386-ieee1275"/*.module || true - rm -f "${pkgdir}/usr/lib/grub/i386-ieee1275"/*.image || true - rm -f "${pkgdir}/usr/lib/grub/i386-ieee1275"/{kernel.exec,gdb_grub,gmodule.pl} || true + _package_grub 'ieee1275' 'IEEE1275 (OpenFirmware)' \ + 'i386-ieee1275' } _package_grub-libreboot() { - cd "${srcdir}/grub-libreboot/" - - echo 'Run make install for Libreboot build...' - make DESTDIR="${pkgdir}/" bashcompletiondir="/usr/share/bash-completion/completions" install - - echo 'Remove gdb debugging related files for Libreboot build...' - rm -f "${pkgdir}/usr/lib/grub/i386-coreboot"/*.module || true - rm -f "${pkgdir}/usr/lib/grub/i386-coreboot"/*.image || true - rm -f "${pkgdir}/usr/lib/grub/i386-coreboot"/{kernel.exec,gdb_grub,gmodule.pl} || true + _package_grub 'libreboot' 'Libreboot' \ + 'i386-coreboot' } _package_grub-multiboot() { - cd "${srcdir}/grub-multiboot/" - - echo 'Run make install for Multiboot build...' - make DESTDIR="${pkgdir}/" bashcompletiondir="/usr/share/bash-completion/completions" install - - echo 'Remove gdb debugging related files for Multiboot build...' - rm -f "${pkgdir}/usr/lib/grub/i386-multiboot"/*.module || true - rm -f "${pkgdir}/usr/lib/grub/i386-multiboot"/*.image || true - rm -f "${pkgdir}/usr/lib/grub/i386-multiboot"/{kernel.exec,gdb_grub,gmodule.pl} || true + _package_grub 'multiboot' 'Multiboot' \ + 'i386-multiboot' } _package_grub-emu() { - cd "${srcdir}/grub-emu/" - - echo 'Run make install for emu build...' - make DESTDIR="${pkgdir}/" bashcompletiondir="/usr/share/bash-completion/completions" install - - echo 'Remove gdb debugging related files for emu build...' - rm -f "${pkgdir}/usr/lib/grub/${_EMU_ARCH}-emu"/*.module || true - rm -f "${pkgdir}/usr/lib/grub/${_EMU_ARCH}-emu"/*.image || true - rm -f "${pkgdir}/usr/lib/grub/${_EMU_ARCH}-emu"/{kernel.exec,gdb_grub,gmodule.pl} || true + _package_grub 'emu' 'emu' \ + "${_EMU_ARCH}-emu" } _package_grub-uboot() { - cd "${srcdir}/grub-uboot/" - - echo 'Run make install for U-Boot build...' - make DESTDIR="${pkgdir}/" bashcompletiondir="/usr/share/bash-completion/completions" install - - echo 'Remove gdb debugging related files for U-Boot build...' - rm -f "${pkgdir}/usr/lib/grub/arm-uboot"/*.module || true - rm -f "${pkgdir}/usr/lib/grub/arm-uboot"/*.image || true - rm -f "${pkgdir}/usr/lib/grub/arm-uboot"/{kernel.exec,gdb_grub,gmodule.pl} || true + _package_grub 'uboot' 'U-Boot' \ + 'arm-uboot' } package_grub() { @@ -565,15 +519,7 @@ _package_grub-uboot-dev() { patch -Np1 -i "${srcdir}/1000-${pkgname#grub-}--10_linux-20_linux_xen-detect-devicetree-file.patch" echo 'Package grub U-Boot stuff...' - ## _package_grub-uboot - - echo 'Run make install for U-Boot build...' - make DESTDIR="${pkgdir}/" bashcompletiondir="/usr/share/bash-completion/completions" install - - echo 'Remove gdb debugging related files for U-Boot build...' - rm -f "${pkgdir}/usr/lib/grub/arm-uboot"/*.module || true - rm -f "${pkgdir}/usr/lib/grub/arm-uboot"/*.image || true - rm -f "${pkgdir}/usr/lib/grub/arm-uboot"/{kernel.exec,gdb_grub,gmodule.pl} || true + _package_grub "uboot_$devname" "$devdesc" 'arm' 'uboot' echo 'Install /etc/default/grub (used by grub-mkconfig)...' install -D -m0644 "${srcdir}/grub.default" "${pkgdir}/etc/default/grub" From 65aece7497603eee1a7ea43b5ee8524ce8e95406 Mon Sep 17 00:00:00 2001 From: Luke T. Shumaker Date: Jan 08 2024 03:18:27 +0000 Subject: [PATCH 32/73] libre/grub: clean up build() and package() --- diff --git a/libre/grub/PKGBUILD b/libre/grub/PKGBUILD index 5321f78..e8ac2a2 100644 --- a/libre/grub/PKGBUILD +++ b/libre/grub/PKGBUILD @@ -220,6 +220,8 @@ _build_grub() { local bld_plat="${3#*-}" local bld_configure_options=("${@:4}") + echo "Build grub ${bld_desc} stuff..." + echo "Copy the source for building the ${bld_desc} part..." cp -r "${srcdir}/grub/" "${srcdir}/grub-${bld_name}/" cd "${srcdir}/grub-${bld_name}/" @@ -264,6 +266,7 @@ _build_grub-xen() { _build_grub-bios() { echo 'Set ARCH dependent variables for BIOS build...' + local _EFIEMU if [[ "${CARCH}" = 'x86_64' ]]; then _EFIEMU='--enable-efiemu' else @@ -331,50 +334,37 @@ _build_grub-uboot() { build() { cd "${srcdir}/grub/" - if [[ "${CARCH}" = 'x86_64' ]] || [[ "${CARCH}" = 'i686' ]] || [[ "${CARCH}" = 'armv7h' ]]; then - echo "Build grub ${_EFI_ARCH} EFI stuff..." - _build_grub-efi + # All-CPU platforms #################################################### - if [[ "${CARCH}" = 'x86_64' ]] && [[ "${_IA32_EFI_IN_ARCH_X64}" = '1' ]]; then - echo 'Build grub i386 EFI stuff...' - _EFI_ARCH='i386' _build_grub-efi - fi + _build_grub-efi + if [[ "${CARCH}" = 'x86_64' ]] && [[ "${_IA32_EFI_IN_ARCH_X64}" = '1' ]]; then + _EFI_ARCH='i386' _build_grub-efi fi - if [[ "${CARCH}" = 'x86_64' ]] || [[ "${CARCH}" = 'i686' ]]; then - if [[ "${_XEN}" = '1' ]]; then - echo "Build grub ${_XEN_ARCH} XEN stuff..." - _build_grub-xen + if [[ "${_GRUB_EMU_BUILD}" = '1' ]]; then + _build_grub-emu + fi - if [[ "${_IA32_XEN_IN_ARCH_X64}" = '1' ]]; then - echo 'Build grub i386 XEN stuff...' - _XEN_ARCH='i386' _build_grub-xen - fi - fi + # CPU-specific platforms ############################################### - echo 'Build grub BIOS stuff...' + case "$CARCH" in + x86_64|i686) _build_grub-bios - - echo 'Build grub QEMU stuff...' _build_grub-qemu - - echo 'Build grub IEEE1275 (OpenFirmware) stuff...' _build_grub-ieee1275 - - echo 'Build grub Libreboot stuff...' _build_grub-libreboot - - echo 'Build grub Multiboot stuff...' _build_grub-multiboot - elif [[ "${CARCH}" = 'armv7h' ]]; then - echo 'Build grub U-Boot stuff...' + if [[ "${_XEN}" = '1' ]]; then + _build_grub-xen + if [[ "${CARCH}" = 'x86_64' ]] && [[ "${_IA32_XEN_IN_ARCH_X64}" = '1' ]]; then + _XEN_ARCH='i386' _build_grub-xen + fi + fi + ;; + armv7h) _build_grub-uboot - fi - - if [[ "${_GRUB_EMU_BUILD}" = '1' ]]; then - echo 'Build grub emu stuff...' - _build_grub-emu - fi + ;; + esac } # Usage: _package_grub DIRSUFFIX 'Human Description' CPU-PLATFORM @@ -383,6 +373,8 @@ _package_grub() { local bld_desc="$2" local bld_cpuplat="$3" + echo "Package grub ${bld_desc} stuff..." + cd "${srcdir}/grub-${bld_name}/" echo "Run make install for ${bld_desc} build..." @@ -453,50 +445,39 @@ package_grub() { cd "${srcdir}/grub/" - if [[ "${CARCH}" = 'x86_64' ]] || [[ "${CARCH}" = 'i686' ]] || [[ "${CARCH}" = 'armv7h' ]]; then - echo "Package grub ${_EFI_ARCH} EFI stuff..." - _package_grub-efi + # All-CPU platforms #################################################### - if [[ "${CARCH}" = 'x86_64' ]] && [[ "${_IA32_EFI_IN_ARCH_X64}" = '1' ]]; then - echo 'Package grub i386 EFI stuff...' - _EFI_ARCH='i386' _package_grub-efi - fi + _package_grub-efi + if [[ "${CARCH}" = 'x86_64' ]] && [[ "${_IA32_EFI_IN_ARCH_X64}" = '1' ]]; then + _EFI_ARCH='i386' _package_grub-efi fi - if [[ "${CARCH}" = 'x86_64' ]] || [[ "${CARCH}" = 'i686' ]]; then - if [[ "${_XEN}" = '1' ]]; then - echo "Package grub ${_XEN_ARCH} XEN stuff..." - _package_grub-xen + if [[ "${_GRUB_EMU_BUILD}" = '1' ]]; then + _package_grub-emu + fi - if [[ "${_IA32_XEN_IN_ARCH_X64}" = '1' ]]; then - echo 'Package grub i386 XEN stuff...' - _XEN_ARCH='i386' _package_grub-xen - fi - fi + # CPU-specific platforms ############################################### - echo 'Package grub BIOS stuff...' + case "$CARCH" in + x86_64|i686) _package_grub-bios - - echo 'Package grub QEMU stuff...' _package_grub-qemu - - echo 'Package grub IEEE1275 (OpenFirmware) stuff...' _package_grub-ieee1275 - - echo 'Package grub Libreboot stuff...' _package_grub-libreboot - - echo 'Package grub Multiboot stuff...' _package_grub-multiboot - elif [[ "${CARCH}" = 'armv7h' ]]; then - echo 'Package grub U-Boot stuff...' + if [[ "${_XEN}" = '1' ]]; then + _package_grub-xen + if [[ "${CARCH}" = 'x86_64' ]] && [[ "${_IA32_XEN_IN_ARCH_X64}" = '1' ]]; then + _XEN_ARCH='i386' _package_grub-xen + fi + fi + ;; + armv7h) _package_grub-uboot - fi + ;; + esac - if [[ "${_GRUB_EMU_BUILD}" = '1' ]]; then - echo 'Package grub emu stuff...' - _package_grub-emu - fi + # Common ############################################################### echo 'Install /etc/default/grub (used by grub-mkconfig)...' install -D -m0644 "${srcdir}/grub.default" "${pkgdir}/etc/default/grub" @@ -518,7 +499,6 @@ _package_grub-uboot-dev() { echo "Patch to detect $devname device tree blob file (dtb)..." patch -Np1 -i "${srcdir}/1000-${pkgname#grub-}--10_linux-20_linux_xen-detect-devicetree-file.patch" - echo 'Package grub U-Boot stuff...' _package_grub "uboot_$devname" "$devdesc" 'arm' 'uboot' echo 'Install /etc/default/grub (used by grub-mkconfig)...' From 95b197eb948f67a88a0a3bd6d91037d56aa39eec Mon Sep 17 00:00:00 2001 From: Luke T. Shumaker Date: Jan 08 2024 03:18:29 +0000 Subject: [PATCH 33/73] libre/grub: move the _{build,package}_grub-{bios,efi,emu} functions up/down To match the order in the Arch PKGBUILD --- diff --git a/libre/grub/PKGBUILD b/libre/grub/PKGBUILD index e8ac2a2..dbbf00f 100644 --- a/libre/grub/PKGBUILD +++ b/libre/grub/PKGBUILD @@ -248,22 +248,6 @@ _build_grub() { make } -_build_grub-efi() { - _build_grub "efi-${_EFI_ARCH}" "${_EFI_ARCH} EFI" \ - "${_EFI_ARCH}-efi" \ - --disable-efiemu \ - --enable-boot-time \ - "${_configure_options[@]}" -} - -_build_grub-xen() { - _build_grub "xen-${_XEN_ARCH}" "${_XEN_ARCH} XEN" \ - "${_XEN_ARCH}-xen" \ - --disable-efiemu \ - --enable-boot-time \ - "${_configure_options[@]}" -} - _build_grub-bios() { echo 'Set ARCH dependent variables for BIOS build...' local _EFIEMU @@ -280,6 +264,31 @@ _build_grub-bios() { "${_configure_options[@]}" } +_build_grub-efi() { + _build_grub "efi-${_EFI_ARCH}" "${_EFI_ARCH} EFI" \ + "${_EFI_ARCH}-efi" \ + --disable-efiemu \ + --enable-boot-time \ + "${_configure_options[@]}" +} + +_build_grub-emu() { + _build_grub 'emu' 'emu' \ + "${_EMU_ARCH}-emu" \ + --enable-grub-emu-usb=no \ + --enable-grub-emu-sdl=no \ + --disable-grub-emu-pci \ + "${_configure_options[@]}" +} + +_build_grub-xen() { + _build_grub "xen-${_XEN_ARCH}" "${_XEN_ARCH} XEN" \ + "${_XEN_ARCH}-xen" \ + --disable-efiemu \ + --enable-boot-time \ + "${_configure_options[@]}" +} + _build_grub-qemu() { _build_grub 'qemu' 'QEMU' \ 'i386-qemu' \ @@ -314,15 +323,6 @@ _build_grub-multiboot() { "${_configure_options[@]}" } -_build_grub-emu() { - _build_grub 'emu' 'emu' \ - "${_EMU_ARCH}-emu" \ - --enable-grub-emu-usb=no \ - --enable-grub-emu-sdl=no \ - --disable-grub-emu-pci \ - "${_configure_options[@]}" -} - _build_grub-uboot() { _build_grub 'uboot' 'U-Boot' \ 'arm-uboot' \ @@ -386,21 +386,26 @@ _package_grub() { rm -f "${pkgdir}/usr/lib/grub/${bld_cpuplat}"/{kernel.exec,gdb_grub,gmodule.pl} || true } +_package_grub-bios() { + _package_grub 'bios' 'BIOS' \ + 'i386-pc' +} + _package_grub-efi() { _package_grub "efi-${_EFI_ARCH}" "${_EFI_ARCH} EFI" \ "${_EFI_ARCH}-efi" } +_package_grub-emu() { + _package_grub 'emu' 'emu' \ + "${_EMU_ARCH}-emu" +} + _package_grub-xen() { _package_grub "xen-${_XEN_ARCH}" "${_XEN_ARCH} XEN" \ "${_XEN_ARCH}-xen" } -_package_grub-bios() { - _package_grub 'bios' 'BIOS' \ - 'i386-pc' -} - _package_grub-qemu() { _package_grub 'qemu' 'QEMU' \ 'i386-qemu' @@ -421,11 +426,6 @@ _package_grub-multiboot() { 'i386-multiboot' } -_package_grub-emu() { - _package_grub 'emu' 'emu' \ - "${_EMU_ARCH}-emu" -} - _package_grub-uboot() { _package_grub 'uboot' 'U-Boot' \ 'arm-uboot' From ea6e1e629e559c7bbda8821be1bcae5b9c2fb528 Mon Sep 17 00:00:00 2001 From: Luke T. Shumaker Date: Jan 08 2024 03:18:29 +0000 Subject: [PATCH 34/73] libre/grub: run ./bootstrap in prepare() instead of build() --- diff --git a/libre/grub/PKGBUILD b/libre/grub/PKGBUILD index dbbf00f..9e1017f 100644 --- a/libre/grub/PKGBUILD +++ b/libre/grub/PKGBUILD @@ -210,6 +210,11 @@ prepare() { echo "Avoid problem with unifont during compile of grub..." # http://savannah.gnu.org/bugs/?40330 and https://bugs.archlinux.org/task/37847 gzip -cd "${srcdir}/unifont-${_unifont_ver}.bdf.gz" > "unifont.bdf" + + echo "Run bootstrap..." + ./bootstrap \ + --gnulib-srcdir="${srcdir}/gnulib/" \ + --no-git } # Usage: _build_grub DIRSUFFIX 'Human Description' CPU-PLATFORM CONFIG_OPTIONS... @@ -233,11 +238,6 @@ _build_grub() { unset LDFLAGS unset MAKEFLAGS - echo "Run bootstrap for ${bld_desc} build..." - ./bootstrap \ - --gnulib-srcdir="${srcdir}/gnulib/" \ - --no-git - echo "Run ./configure for ${bld_desc} build..." ./configure \ --with-platform="${bld_plat}" \ From cb1d5858e9e653ae933d484daefb30be56312513 Mon Sep 17 00:00:00 2001 From: Luke T. Shumaker Date: Jan 08 2024 03:18:29 +0000 Subject: [PATCH 35/73] libre/grub: s/fuse/fuse2/ --- diff --git a/libre/grub/PKGBUILD b/libre/grub/PKGBUILD index 9e1017f..e3621e5 100644 --- a/libre/grub/PKGBUILD +++ b/libre/grub/PKGBUILD @@ -98,10 +98,10 @@ install="${pkgname}.install" options=('!makeflags') makedepends=('git' 'rsync' 'xz' 'freetype2' 'ttf-dejavu' 'python' 'autogen' - 'texinfo' 'help2man' 'gettext' 'device-mapper' 'fuse') + 'texinfo' 'help2man' 'gettext' 'device-mapper' 'fuse2') depends=('sh' 'xz' 'gettext' 'device-mapper') optdepends=('freetype2: For grub-mkfont usage' - 'fuse: For grub-mount usage') + 'fuse2: For grub-mount usage') if [[ "${CARCH}" = 'x86_64' ]] && [[ "${_XEN}" = '1' ]]; then makedepends+=('xen') From 5b7c4eb3e0abde7a005ec66ee062f2c08cbfb1e9 Mon Sep 17 00:00:00 2001 From: Luke T. Shumaker Date: Jan 08 2024 03:18:29 +0000 Subject: [PATCH 36/73] libre/grub: always pass BUILD_FREETYPE= --- diff --git a/libre/grub/PKGBUILD b/libre/grub/PKGBUILD index e3621e5..ed6833f 100644 --- a/libre/grub/PKGBUILD +++ b/libre/grub/PKGBUILD @@ -158,6 +158,7 @@ _backports=( _configure_options=( FREETYPE="pkg-config freetype2" + BUILD_FREETYPE="pkg-config freetype2" --enable-mm-debug --enable-nls --enable-device-mapper @@ -292,7 +293,6 @@ _build_grub-xen() { _build_grub-qemu() { _build_grub 'qemu' 'QEMU' \ 'i386-qemu' \ - BUILD_FREETYPE="pkg-config freetype2" \ --disable-efiemu \ --enable-boot-time \ "${_configure_options[@]}" @@ -309,7 +309,6 @@ _build_grub-ieee1275() { _build_grub-libreboot() { _build_grub 'libreboot' 'Libreboot' \ 'i386-coreboot' \ - BUILD_FREETYPE="pkg-config freetype2" \ --disable-efiemu \ --enable-boot-time \ "${_configure_options[@]}" From 14a544b18cf971ec8a116caaf4da0de2d8c4b127 Mon Sep 17 00:00:00 2001 From: Luke T. Shumaker Date: Jan 08 2024 03:18:29 +0000 Subject: [PATCH 37/73] libre/grub: clean up optdepends --- diff --git a/libre/grub/PKGBUILD b/libre/grub/PKGBUILD index ed6833f..db7b341 100644 --- a/libre/grub/PKGBUILD +++ b/libre/grub/PKGBUILD @@ -101,7 +101,12 @@ makedepends=('git' 'rsync' 'xz' 'freetype2' 'ttf-dejavu' 'python' 'autogen' 'texinfo' 'help2man' 'gettext' 'device-mapper' 'fuse2') depends=('sh' 'xz' 'gettext' 'device-mapper') optdepends=('freetype2: For grub-mkfont usage' - 'fuse2: For grub-mount usage') + 'fuse2: For grub-mount usage' + #'dosfstools: For grub-mkrescue FAT FS and EFI support' # drop 'and EFI' from the device-specific arm-uboot packages + #'efibootmgr: For grub-install EFI support' # drop from the device-specific arm-uboot packages + #'libisoburn: Provides xorriso for generating grub rescue iso using grub-mkrescue' # drop from the device-specific arm-uboot packages + 'os-prober: To detect other OSes when generating grub.cfg in BIOS systems' + 'mtools: For grub-mkrescue FAT FS support') if [[ "${CARCH}" = 'x86_64' ]] && [[ "${_XEN}" = '1' ]]; then makedepends+=('xen') @@ -109,6 +114,8 @@ fi if [[ "${_GRUB_EMU_BUILD}" = "1" ]]; then makedepends+=('libusbx' 'sdl') + #optdepends+=('libusbx: For grub-emu USB support' # drop from the device-specific arm-uboot packages + # 'sdl: For grub-emu SDL support') # drop from the device-specific arm-uboot packages fi if [[ "${CARCH}" = 'x86_64' ]] || [[ "${CARCH}" = 'i686' ]]; then @@ -433,9 +440,7 @@ _package_grub-uboot() { package_grub() { optdepends+=('dosfstools: For grub-mkrescue FAT FS and EFI support' 'efibootmgr: For grub-install EFI support' - 'libisoburn: Provides xorriso for generating grub rescue iso using grub-mkrescue' - 'os-prober: To detect other OSes when generating grub.cfg in BIOS systems' - 'mtools: For grub-mkrescue FAT FS support') + 'libisoburn: Provides xorriso for generating grub rescue iso using grub-mkrescue') if [[ "${_GRUB_EMU_BUILD}" = '1' ]]; then optdepends+=('libusbx: For grub-emu USB support' @@ -487,9 +492,7 @@ _package_grub-uboot-dev() { local devdesc=$2 pkgdesc="GNU GRand Unified Bootloader (2) for $devdesc ($devname), (Parabola rebranded)" - optdepends+=('dosfstools: For grub-mkrescue FAT FS' - 'os-prober: To detect other OSes when generating grub.cfg in BIOS systems' - 'mtools: For grub-mkrescue FAT FS support') + optdepends+=('dosfstools: For grub-mkrescue FAT FS') echo "Copy the source for packaging the U-Boot ($devname) part..." cp -r "${srcdir}/grub-uboot/" "${srcdir}/grub-uboot_$devname/" From 620ba961e77afd0aab2c11db336334b588e84089 Mon Sep 17 00:00:00 2001 From: Luke T. Shumaker Date: Jan 08 2024 03:18:29 +0000 Subject: [PATCH 38/73] libre/grub: pull reproducible-build bits from Arch --- diff --git a/libre/grub/PKGBUILD b/libre/grub/PKGBUILD index db7b341..7a73b6e 100644 --- a/libre/grub/PKGBUILD +++ b/libre/grub/PKGBUILD @@ -223,6 +223,9 @@ prepare() { ./bootstrap \ --gnulib-srcdir="${srcdir}/gnulib/" \ --no-git + + echo "Make translations reproducible..." + sed -i '1i /^PO-Revision-Date:/ d' po/*.sed } # Usage: _build_grub DIRSUFFIX 'Human Description' CPU-PLATFORM CONFIG_OPTIONS... @@ -252,6 +255,9 @@ _build_grub() { --target="${bld_cpu}" \ "${bld_configure_options[@]}" + echo "Make info pages reproducible..." + touch -d "@${SOURCE_DATE_EPOCH}" $(find -name '*.texi') + echo "Run make for ${bld_desc} build..." make } From a7ed3ea1f0f873ef80b4ef7d3548e3b5f984649d Mon Sep 17 00:00:00 2001 From: Luke T. Shumaker Date: Jan 08 2024 03:18:29 +0000 Subject: [PATCH 39/73] libre/grub: reduce formatting differences with upstream This is formatting/comment/message/... changes only; no functional changes. --- diff --git a/libre/grub/PKGBUILD b/libre/grub/PKGBUILD index 7a73b6e..93bdf0d 100644 --- a/libre/grub/PKGBUILD +++ b/libre/grub/PKGBUILD @@ -52,34 +52,42 @@ # * --with-platform=qemu (a separate -kernel file for Qemu, x86-only) # * --with-platform=multiboot (x86-only) -## '1' to enable Xen support, '0' to disable -_XEN='0' +## "1" to enable Xen support, "0" to disable +_XEN="0" -## '1' to enable IA32-EFI build in Arch x86_64, '0' to disable -_IA32_EFI_IN_ARCH_X64='1' +## "1" to enable IA32-EFI build in Arch x86_64, "0" to disable +_IA32_EFI_IN_ARCH_X64="1" -## '1' to enable IA32-XEN build in Arch x86_64, "0" to disable -_IA32_XEN_IN_ARCH_X64='1' +## "1" to enable IA32-XEN build in Arch x86_64, "0" to disable +_IA32_XEN_IN_ARCH_X64="1" -## '1' to enable EMU build, "0" to disable -_GRUB_EMU_BUILD='0' +## "1" to enable EMU build, "0" to disable +_GRUB_EMU_BUILD="0" -[[ "${CARCH}" = 'armv7h' ]] && _EFI_ARCH='arm' -[[ "${CARCH}" = 'x86_64' ]] && _EFI_ARCH='x86_64' -[[ "${CARCH}" = 'i686' ]] && _EFI_ARCH='i386' +[[ "${CARCH}" == 'armv7h' ]] && _EFI_ARCH='arm' +[[ "${CARCH}" == 'x86_64' ]] && _EFI_ARCH='x86_64' +[[ "${CARCH}" == 'i686' ]] && _EFI_ARCH='i386' -[[ "${CARCH}" = 'x86_64' ]] && _XEN_ARCH='x86_64' -[[ "${CARCH}" = 'i686' ]] && _XEN_ARCH='i386' +[[ "${CARCH}" == 'x86_64' ]] && _XEN_ARCH='x86_64' +[[ "${CARCH}" == 'i686' ]] && _XEN_ARCH='i386' -[[ "${CARCH}" = 'armv7h' ]] && _EMU_ARCH='arm' -[[ "${CARCH}" = 'x86_64' ]] && _EMU_ARCH='x86_64' -[[ "${CARCH}" = 'i686' ]] && _EMU_ARCH='i386' +[[ "${CARCH}" == 'armv7h' ]] && _EMU_ARCH='arm' +[[ "${CARCH}" == 'x86_64' ]] && _EMU_ARCH='x86_64' +[[ "${CARCH}" == 'i686' ]] && _EMU_ARCH='i386' pkgbase='grub' pkgname=('grub') -[[ $CARCH = armv7h ]] && pkgname+=('grub-am335x_bone' 'grub-udoo' 'grub-omap3_beagle' - 'grub-omap3_beagle_xm' 'grub-omap3_beagle_xm_ab') -pkgdesc='GNU GRand Unified Bootloader (2), (Parabola rebranded)' +if [[ $CARCH == armv7h ]]; then + pkgname+=( + 'grub-am335x_bone' + 'grub-udoo' + 'grub-omap3_beagle' + 'grub-omap3_beagle_xm' + 'grub-omap3_beagle_xm_ab' + ) +fi +pkgdesc='GNU GRand Unified Bootloader (2)' +pkgdesc+=', (Parabola rebranded)' epoch=2 _tag='53c5000739db114c229fe69ec3d4b76b92441098' # git rev-parse grub-${_pkgver} _gnulib_commit='be584c56eb1311606e5ea1a36363b97bddb6eed3' @@ -90,13 +98,25 @@ pkgrel=1 pkgrel+=.parabola1 url='https://www.gnu.org/software/grub/' arch=('x86_64') -arch+=('i686' 'armv7h') +arch+=('i686') +arch+=('armv7h') license=('GPL3') backup=('etc/default/grub' 'etc/grub.d/40_custom') install="${pkgname}.install" options=('!makeflags') +conflicts=('grub-common' 'grub-bios' 'grub-emu' "grub-efi-${_EFI_ARCH}" 'grub-legacy') +conflicts+=('grub-parabola') +replaces=('grub-common' 'grub-bios' 'grub-emu' "grub-efi-${_EFI_ARCH}") +replaces+=('grub-parabola') +provides=('grub-common' 'grub-bios' 'grub-emu' "grub-efi-${_EFI_ARCH}") +if [[ "${CARCH}" = 'armv7h' ]]; then + conflicts=('grub-common' 'grub-emu' "grub-efi-${_EFI_ARCH}") + replaces=('grub-common' 'grub-emu' "grub-efi-${_EFI_ARCH}") + provides=('grub-common' 'grub-emu' "grub-efi-${_EFI_ARCH}") +fi + makedepends=('git' 'rsync' 'xz' 'freetype2' 'ttf-dejavu' 'python' 'autogen' 'texinfo' 'help2man' 'gettext' 'device-mapper' 'fuse2') depends=('sh' 'xz' 'gettext' 'device-mapper') @@ -112,25 +132,15 @@ if [[ "${CARCH}" = 'x86_64' ]] && [[ "${_XEN}" = '1' ]]; then makedepends+=('xen') fi -if [[ "${_GRUB_EMU_BUILD}" = "1" ]]; then - makedepends+=('libusbx' 'sdl') - #optdepends+=('libusbx: For grub-emu USB support' # drop from the device-specific arm-uboot packages - # 'sdl: For grub-emu SDL support') # drop from the device-specific arm-uboot packages -fi - -if [[ "${CARCH}" = 'x86_64' ]] || [[ "${CARCH}" = 'i686' ]]; then - provides=('grub-common' 'grub-bios' 'grub-emu' "grub-efi-${_EFI_ARCH}") - conflicts=('grub-common' 'grub-bios' 'grub-emu' "grub-efi-${_EFI_ARCH}" 'grub-legacy' 'grub-parabola') - replaces=('grub-common' 'grub-bios' 'grub-emu' "grub-efi-${_EFI_ARCH}" 'grub-parabola') -elif [[ "${CARCH}" = 'armv7h' ]]; then - provides=('grub-common' 'grub-emu' "grub-efi-${_EFI_ARCH}") - conflicts=('grub-common' 'grub-emu' "grub-efi-${_EFI_ARCH}") - replaces=('grub-common' 'grub-emu' "grub-efi-${_EFI_ARCH}") +if [[ "${_GRUB_EMU_BUILD}" == "1" ]]; then + makedepends+=('libusbx' 'sdl') + #optdepends+=('libusbx: For grub-emu USB support' # drop from the device-specific arm-uboot packages + # 'sdl: For grub-emu SDL support') # drop from the device-specific arm-uboot packages fi validpgpkeys=('E53D497F3FA42AD8C9B4D1E835A93B74E82E4209' # Vladimir 'phcoder' Serbinenko 'BE5C23209ACDDACEB20DB0A28C8189F1988C2166' # Daniel Kiper - '95D2E9AB8740D8046387FD151A09227B1F435A33') #Paul Hardy + '95D2E9AB8740D8046387FD151A09227B1F435A33') # Paul Hardy source=("git+https://git.savannah.gnu.org/git/grub.git#tag=${_tag}?signed" "git+https://git.savannah.gnu.org/git/gnulib.git#commit=${_gnulib_commit}" @@ -198,7 +208,7 @@ prepare() { echo "Patch to enable GRUB_COLOR_* variables in grub-mkconfig..." ## Based on http://lists.gnu.org/archive/html/grub-devel/2012-02/msg00021.html - patch -Np1 -i "${srcdir}/0001-00_header-add-GRUB_COLOR_-variables.patch" + patch -Np1 -i "${srcdir}/0001-00_header-add-GRUB_COLOR_-variables.patch" echo "Patch to detect of Parabola GNU/Linux-libre initramfs images by grub-mkconfig..." patch -Np1 -i "${srcdir}/0002-10_linux-20_linux_xen-detect-parabola-initramfs.patch" @@ -216,7 +226,7 @@ prepare() { ./linguas.sh echo "Avoid problem with unifont during compile of grub..." - # http://savannah.gnu.org/bugs/?40330 and https://bugs.archlinux.org/task/37847 + # http://savannah.gnu.org/bugs/?40330 and https://bugs.archlinux.org/task/37847 gzip -cd "${srcdir}/unifont-${_unifont_ver}.bdf.gz" > "unifont.bdf" echo "Run bootstrap..." @@ -263,15 +273,15 @@ _build_grub() { } _build_grub-bios() { - echo 'Set ARCH dependent variables for BIOS build...' + echo "Set ARCH dependent variables for bios build..." local _EFIEMU - if [[ "${CARCH}" = 'x86_64' ]]; then - _EFIEMU='--enable-efiemu' + if [[ "${CARCH}" == 'x86_64' ]]; then + _EFIEMU="--enable-efiemu" else - _EFIEMU='--disable-efiemu' + _EFIEMU="--disable-efiemu" fi - _build_grub 'bios' 'BIOS' \ + _build_grub 'bios' 'bios' \ 'i386-pc' \ "${_EFIEMU}" \ --enable-boot-time \ @@ -279,7 +289,7 @@ _build_grub-bios() { } _build_grub-efi() { - _build_grub "efi-${_EFI_ARCH}" "${_EFI_ARCH} EFI" \ + _build_grub "efi-${_EFI_ARCH}" "${_EFI_ARCH} efi" \ "${_EFI_ARCH}-efi" \ --disable-efiemu \ --enable-boot-time \ @@ -349,11 +359,11 @@ build() { # All-CPU platforms #################################################### _build_grub-efi - if [[ "${CARCH}" = 'x86_64' ]] && [[ "${_IA32_EFI_IN_ARCH_X64}" = '1' ]]; then - _EFI_ARCH='i386' _build_grub-efi + if [[ "${CARCH}" == "x86_64" ]] && [[ "${_IA32_EFI_IN_ARCH_X64}" == "1" ]]; then + _EFI_ARCH="i386" _build_grub-efi fi - if [[ "${_GRUB_EMU_BUILD}" = '1' ]]; then + if [[ "${_GRUB_EMU_BUILD}" == "1" ]]; then _build_grub-emu fi @@ -399,12 +409,12 @@ _package_grub() { } _package_grub-bios() { - _package_grub 'bios' 'BIOS' \ + _package_grub 'bios' 'bios' \ 'i386-pc' } _package_grub-efi() { - _package_grub "efi-${_EFI_ARCH}" "${_EFI_ARCH} EFI" \ + _package_grub "efi-${_EFI_ARCH}" "${_EFI_ARCH} efi" \ "${_EFI_ARCH}-efi" } @@ -458,11 +468,11 @@ package_grub() { # All-CPU platforms #################################################### _package_grub-efi - if [[ "${CARCH}" = 'x86_64' ]] && [[ "${_IA32_EFI_IN_ARCH_X64}" = '1' ]]; then - _EFI_ARCH='i386' _package_grub-efi + if [[ "${CARCH}" == "x86_64" ]] && [[ "${_IA32_EFI_IN_ARCH_X64}" == "1" ]]; then + _EFI_ARCH="i386" _package_grub-efi fi - if [[ "${_GRUB_EMU_BUILD}" = '1' ]]; then + if [[ "${_GRUB_EMU_BUILD}" == "1" ]]; then _package_grub-emu fi @@ -489,7 +499,7 @@ package_grub() { # Common ############################################################### - echo 'Install /etc/default/grub (used by grub-mkconfig)...' + echo "Install /etc/default/grub (used by grub-mkconfig)..." install -D -m0644 "${srcdir}/grub.default" "${pkgdir}/etc/default/grub" } From 9d06ef07c8b978ba786b1b9d384d541da027db0c Mon Sep 17 00:00:00 2001 From: Luke T. Shumaker Date: Jan 08 2024 03:18:29 +0000 Subject: [PATCH 40/73] libre/grub: adopt the package --- diff --git a/libre/grub/PKGBUILD b/libre/grub/PKGBUILD index 93bdf0d..829cd73 100644 --- a/libre/grub/PKGBUILD +++ b/libre/grub/PKGBUILD @@ -4,7 +4,8 @@ # Contributor: Keshav Amburay <(the ddoott ridikulus ddoott rat) (aatt) (gemmaeiil) (ddoott) (ccoomm)> # Contributor: André Silva # Contributor: Márcio Silva -# Maintainer: Omar Vega Ramos +# Contributor: Omar Vega Ramos +# Maintainer: Luke T. Shumaker # Differences from Arch's `core/grub`: # From e0965ffc0a1decc8f779a0a9f3ddf3edc0bcdd95 Mon Sep 17 00:00:00 2001 From: Luke T. Shumaker Date: Jan 08 2024 03:18:29 +0000 Subject: [PATCH 41/73] libre/grub: don't run linguas.sh --- diff --git a/libre/grub/PKGBUILD b/libre/grub/PKGBUILD index 829cd73..80c157c 100644 --- a/libre/grub/PKGBUILD +++ b/libre/grub/PKGBUILD @@ -223,8 +223,15 @@ prepare() { echo "Fix mkinitcpio 'rw' FS#36275..." sed 's| ro | rw |g' -i "util/grub.d/10_linux.in" - echo "Pull in latest language files..." - ./linguas.sh + # linguas.sh rsync's from translationproject.org; this will + # fail with libremakepkg because networking is turned off. + # And we can't "optimistically" run it, because it doesn't do + # error-handling and will delete files that we need. If + # pulling in updated translations is important, then it needs + # to be done prior to prepare(). + # + #echo "Pull in latest language files..." + #./linguas.sh echo "Avoid problem with unifont during compile of grub..." # http://savannah.gnu.org/bugs/?40330 and https://bugs.archlinux.org/task/37847 From 5c28d38870946497c150c43b51f9ddf89a957928 Mon Sep 17 00:00:00 2001 From: Luke T. Shumaker Date: Jan 08 2024 03:18:29 +0000 Subject: [PATCH 42/73] libre/grub: bump pkgrel --- diff --git a/libre/grub/PKGBUILD b/libre/grub/PKGBUILD index 80c157c..8bf814d 100644 --- a/libre/grub/PKGBUILD +++ b/libre/grub/PKGBUILD @@ -96,7 +96,7 @@ _unifont_ver='13.0.06' _pkgver=2.06 pkgver=${_pkgver/-/} pkgrel=1 -pkgrel+=.parabola1 +pkgrel+=.parabola2 url='https://www.gnu.org/software/grub/' arch=('x86_64') arch+=('i686') From 05b3af66f5ec75521ae3b88e0824fe944f241163 Mon Sep 17 00:00:00 2001 From: bill-auger Date: Jan 08 2024 03:42:52 +0000 Subject: [PATCH 43/73] [qt5-webkit][pyqt5][qutebrowser][qt5-styleplugins]: rebuild against latest 'qt5-base' --- diff --git a/libre/pyqt5/PKGBUILD b/libre/pyqt5/PKGBUILD index f5a99e9..c9c18ee 100644 --- a/libre/pyqt5/PKGBUILD +++ b/libre/pyqt5/PKGBUILD @@ -20,7 +20,7 @@ pkgname=('python-pyqt5') pkgdesc="A set of Python bindings for the Qt5 toolkit" pkgver=5.15.10 pkgrel=1 -pkgrel+=.parabola1 +pkgrel+=.parabola2 arch=('x86_64') arch+=('armv7h' 'i686') url="https://riverbankcomputing.com/software/pyqt/intro" diff --git a/libre/qt5-styleplugins/PKGBUILD b/libre/qt5-styleplugins/PKGBUILD index a3f5d57..8e6203c 100644 --- a/libre/qt5-styleplugins/PKGBUILD +++ b/libre/qt5-styleplugins/PKGBUILD @@ -13,7 +13,7 @@ pkgver=5.0.0.20170311 # $_commit is the unreleased VCS tip from 2017 (the de-facto final release) _commit=335dbece103e2cbf6c7cf819ab6672c2956b17b3 pkgdesc='Additional style plugins for Qt5' -pkgrel=44 +pkgrel=45 arch=('x86_64' 'aarch64') arch+=('armv7h' 'i686') url="https://github.com/qt/qtstyleplugins" diff --git a/libre/qt5-webkit/PKGBUILD b/libre/qt5-webkit/PKGBUILD index 4a7308e..ba5b201 100644 --- a/libre/qt5-webkit/PKGBUILD +++ b/libre/qt5-webkit/PKGBUILD @@ -18,7 +18,7 @@ pkgname=qt5-webkit _pkgver=5.212.0-alpha4 pkgver=${_pkgver/-/} pkgrel=21 -pkgrel+=.parabola1 +pkgrel+=.parabola2 arch=(x86_64) arch+=(armv7h i686) url='https://github.com/qtwebkit/qtwebkit' diff --git a/libre/qutebrowser/PKGBUILD b/libre/qutebrowser/PKGBUILD index 932a08b..e9e002d 100644 --- a/libre/qutebrowser/PKGBUILD +++ b/libre/qutebrowser/PKGBUILD @@ -21,7 +21,7 @@ pkgname=qutebrowser pkgver=2.5.4 pkgrel=2 -pkgrel+=.parabola6 +pkgrel+=.parabola7 pkgdesc="A keyboard-driven, vim-like browser based on PyQt5" pkgdesc+=" and QtWebKit" arch=("any") From b1dd1c7517288b138e8770f5a18dea752abe7039 Mon Sep 17 00:00:00 2001 From: Luke T. Shumaker Date: Jan 08 2024 15:46:45 +0000 Subject: [PATCH 44/73] Merge branch 'lukeshu/grub' --- diff --git a/libre/grub/0002-10_linux-20_linux_xen-detect-parabola-initramfs.patch b/libre/grub/0002-10_linux-20_linux_xen-detect-parabola-initramfs.patch new file mode 100644 index 0000000..3ae7d95 --- /dev/null +++ b/libre/grub/0002-10_linux-20_linux_xen-detect-parabola-initramfs.patch @@ -0,0 +1,138 @@ +--- a/util/grub.d/10_linux.in 2021-06-17 03:06:45.912081000 -0500 ++++ b/util/grub.d/10_linux.in 2021-06-17 13:39:03.509682976 -0500 +@@ -91,10 +91,14 @@ + fi + if [ x$type != xsimple ] ; then + case $type in ++ booster) ++ title="$(gettext_printf "%s, %s kernel (booster initramfs)" "${os}" "${version}")" ;; ++ fallback) ++ title="$(gettext_printf "%s, %s kernel (fallback initramfs)" "${os}" "${version}")" ;; + recovery) +- title="$(gettext_printf "%s, with Linux %s (recovery mode)" "${os}" "${version}")" ;; ++ title="$(gettext_printf "%s, %s kernel (recovery mode)" "${os}" "${version}")" ;; + *) +- title="$(gettext_printf "%s, with Linux %s" "${os}" "${version}")" ;; ++ title="$(gettext_printf "%s, %s kernel" "${os}" "${version}")" ;; + esac + if [ x"$title" = x"$GRUB_ACTUAL_DEFAULT" ] || [ x"Previous Linux versions>$title" = x"$GRUB_ACTUAL_DEFAULT" ]; then + replacement_title="$(echo "Advanced options for ${OS}" | sed 's,>,>>,g')>$(echo "$title" | sed 's,>,>>,g')" +@@ -106,7 +110,7 @@ + else + echo "menuentry '$(echo "$os" | grub_quote)' ${CLASS} \$menuentry_id_option 'gnulinux-simple-$boot_device_id' {" | sed "s/^/$submenu_indentation/" + fi +- if [ x$type != xrecovery ] ; then ++ if [ x$type != xrecovery ] && [ x$type != xfallback ] ; then + save_default_entry | grub_add_tab + fi + +@@ -138,7 +142,7 @@ + fi + printf '%s\n' "${prepare_boot_cache}" | sed "s/^/$submenu_indentation/" + fi +- message="$(gettext_printf "Loading Linux %s ..." ${version})" ++ message="$(gettext_printf "Loading %s kernel ..." ${version})" + sed "s/^/$submenu_indentation/" << EOF + echo '$(echo "$message" | grub_quote)' + linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args} +@@ -198,7 +202,7 @@ + basename=`basename $linux` + dirname=`dirname $linux` + rel_dirname=`make_system_path_relative_to_its_root $dirname` +- version=`echo $basename | sed -e "s,^[^0-9]*-,,g"` ++ version=`echo $basename | sed -e "s,vmlinuz-,,g"` + alt_version=`echo $version | sed -e "s,\.old$,,g"` + linux_root_device_thisversion="${LINUX_ROOT_DEVICE}" + +@@ -285,6 +289,29 @@ + + linux_entry "${OS}" "${version}" advanced \ + "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" ++ ++ if test -e "${dirname}/initramfs-${version}-fallback.img" ; then ++ initrd="${initrd_early} initramfs-${version}-fallback.img" ++ ++ if test -n "${initrd}" ; then ++ gettext_printf "Found fallback initramfs image: %s\n" "${dirname}/${initrd}" >&2 ++ fi ++ ++ linux_entry "${OS}" "${version}" fallback \ ++ "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" ++ fi ++ ++ if test -e "${dirname}/booster-${version}.img" ; then ++ initrd="${initrd_early} booster-${version}.img" ++ ++ if test -n "${initrd}" ; then ++ gettext_printf "Found booster initrd image(s) in %s:%s\n" "${dirname}" "${initrd_extra} ${initrd}" >&2 ++ fi ++ ++ linux_entry "${OS}" "${version}" booster \ ++ "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" ++ fi ++ + if [ "x${GRUB_DISABLE_RECOVERY}" != "xtrue" ]; then + linux_entry "${OS}" "${version}" recovery \ + "single ${GRUB_CMDLINE_LINUX}" +--- a/util/grub.d/20_linux_xen.in 2021-06-17 03:06:56.202081000 -0500 ++++ b/util/grub.d/20_linux_xen.in 2021-06-17 03:22:43.732079272 -0500 +@@ -117,9 +117,11 @@ + fi + if [ x$type != xsimple ] ; then + if [ x$type = xrecovery ] ; then +- title="$(gettext_printf "%s, with Xen %s and Linux %s (recovery mode)" "${os}" "${xen_version}" "${version}")" ++ title="$(gettext_printf "%s, with Xen %s and %s kernel (recovery mode)" "${os}" "${xen_version}" "${version}")" ++ elif [ x$type = xfallback ] ; then ++ title="$(gettext_printf "%s, with Xen %s and %s kernel (fallback initramfs)" "${os}" "${xen_version}" "${version}")" + else +- title="$(gettext_printf "%s, with Xen %s and Linux %s" "${os}" "${xen_version}" "${version}")" ++ title="$(gettext_printf "%s, with Xen %s and %s kernel" "${os}" "${xen_version}" "${version}")" + fi + replacement_title="$(echo "Advanced options for ${OS}" | sed 's,>,>>,g')>$(echo "$title" | sed 's,>,>>,g')" + if [ x"Xen ${xen_version}>$title" = x"$GRUB_ACTUAL_DEFAULT" ]; then +@@ -132,7 +134,7 @@ + title="$(gettext_printf "%s, with Xen hypervisor" "${os}")" + echo "menuentry '$(echo "$title" | grub_quote)' ${CLASS} \$menuentry_id_option 'xen-gnulinux-simple-$boot_device_id' {" | sed "s/^/$submenu_indentation/" + fi +- if [ x$type != xrecovery ] ; then ++ if [ x$type != xrecovery ] && [ x$type != xfallback ] ; then + save_default_entry | grub_add_tab | sed "s/^/$submenu_indentation/" + fi + +@@ -141,7 +143,7 @@ + fi + printf '%s\n' "${prepare_boot_cache}" | sed "s/^/$submenu_indentation/" + xmessage="$(gettext_printf "Loading Xen %s ..." ${xen_version})" +- lmessage="$(gettext_printf "Loading Linux %s ..." ${version})" ++ lmessage="$(gettext_printf "Loading %s kernel ..." ${version})" + sed "s/^/$submenu_indentation/" << EOF + echo '$(echo "$xmessage" | grub_quote)' + if [ "\$grub_platform" = "pc" -o "\$grub_platform" = "" ]; then +@@ -275,7 +277,7 @@ + basename=`basename $linux` + dirname=`dirname $linux` + rel_dirname=`make_system_path_relative_to_its_root $dirname` +- version=`echo $basename | sed -e "s,^[^0-9]*-,,g"` ++ version=`echo $basename | sed -e "s,vmlinuz-,,g"` + alt_version=`echo $version | sed -e "s,\.old$,,g"` + linux_root_device_thisversion="${LINUX_ROOT_DEVICE}" + +@@ -341,6 +343,18 @@ + + linux_entry "${OS}" "${version}" "${xen_version}" advanced \ + "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" "${GRUB_CMDLINE_XEN} ${GRUB_CMDLINE_XEN_DEFAULT}" ++ ++ if test -e "${dirname}/initramfs-${version}-fallback.img" ; then ++ initrd="initramfs-${version}-fallback.img" ++ ++ if test -n "${initrd}" ; then ++ gettext_printf "Found fallback initramfs image: %s\n" "${dirname}/${initrd}" >&2 ++ fi ++ ++ linux_entry "${OS}" "${version}" "${xen_version}" fallback \ ++ "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" "${GRUB_CMDLINE_XEN} ${GRUB_CMDLINE_XEN_DEFAULT}" ++ fi ++ + if [ "x${GRUB_DISABLE_RECOVERY}" != "xtrue" ]; then + linux_entry "${OS}" "${version}" "${xen_version}" recovery \ + "single ${GRUB_CMDLINE_LINUX}" "${GRUB_CMDLINE_XEN}" diff --git a/libre/grub/0003-10_linux-20_linux_xen-detect-am335x_bone+am335x_boneblack-devicetree-file.patch b/libre/grub/0003-10_linux-20_linux_xen-detect-am335x_bone+am335x_boneblack-devicetree-file.patch deleted file mode 100644 index eac637d..0000000 --- a/libre/grub/0003-10_linux-20_linux_xen-detect-am335x_bone+am335x_boneblack-devicetree-file.patch +++ /dev/null @@ -1,90 +0,0 @@ ---- a/util/grub.d/10_linux.in 2021-06-17 03:06:45.912081000 -0500 -+++ b/util/grub.d/10_linux.in 2021-06-18 02:16:38.219592837 -0500 -@@ -155,6 +155,25 @@ - initrd $(echo $initrd_path) - EOF - fi -+ if [ "$(cat /sys/devices/platform/bone_capemgr/baseboard/board-name)" = 'A335BONE' ]; then -+ if test -f "${rel_dirname}/dtbs/${version}/am335x-bone.dtb" ; then -+ # TRANSLATORS: Device tree path isn't identifier. Should be translated. -+ message="$(gettext_printf "Loading devices tree file ...")" -+ sed "s/^/$submenu_indentation/" << EOF -+ echo '$(echo "$message" | grub_quote)' -+ devicetree ${rel_dirname}/dtbs/${version}/am335x-bone.dtb -+EOF -+ fi -+ elif [ "$(cat /sys/devices/platform/bone_capemgr/baseboard/board-name)" = 'A335BNLT' ]; then -+ if test -f "${rel_dirname}/dtbs/${version}/am335x-boneblack.dtb" ; then -+ # TRANSLATORS: Device tree path isn't identifier. Should be translated. -+ message="$(gettext_printf "Loading devices tree file ...")" -+ sed "s/^/$submenu_indentation/" << EOF -+ echo '$(echo "$message" | grub_quote)' -+ devicetree ${rel_dirname}/dtbs/${version}/am335x-boneblack.dtb -+EOF -+ fi -+ fi - sed "s/^/$submenu_indentation/" << EOF - } - EOF -@@ -261,6 +280,16 @@ - fi - fi - -+ if [ "$(cat /sys/devices/platform/bone_capemgr/baseboard/board-name)" = 'A335BONE' ]; then -+ if test -f "${dirname}/dtbs/${version}/am335x-bone.dtb" ; then -+ gettext_printf "Found device tree file: %s\n" "${dirname}/dtbs/${version}/am335x-bone.dtb" >&2 -+ fi -+ elif [ "$(cat /sys/devices/platform/bone_capemgr/baseboard/board-name)" = 'A335BNLT' ]; then -+ if test -f "${dirname}/dtbs/${version}/am335x-boneblack.dtb" ; then -+ gettext_printf "Found device tree file: %s\n" "${dirname}/dtbs/${version}/am335x-boneblack.dtb" >&2 -+ fi -+ fi -+ - # The GRUB_DISABLE_SUBMENU option used to be different than others since it was - # mentioned in the documentation that has to be set to 'y' instead of 'true' to - # enable it. This caused a lot of confusion to users that set the option to 'y', ---- a/util/grub.d/20_linux_xen.in 2021-06-17 03:06:56.202081000 -0500 -+++ b/util/grub.d/20_linux_xen.in 2021-06-18 02:23:54.679591971 -0500 -@@ -172,6 +172,25 @@ - ${module_loader} ${rel_dirname}/${xenpolicy} - EOF - fi -+ if [ "$(cat /sys/devices/platform/bone_capemgr/baseboard/board-name)" = 'A335BONE' ]; then -+ if test -f "${rel_dirname}/dtbs/${version}/am335x-bone.dtb" ; then -+ # TRANSLATORS: Device tree path isn't identifier. Should be translated. -+ message="$(gettext_printf "Loading devices tree file ...")" -+ sed "s/^/$submenu_indentation/" << EOF -+ echo '$(echo "$message" | grub_quote)' -+ devicetree ${rel_dirname}/dtbs/${version}/am335x-bone.dtb -+EOF -+ fi -+ elif [ "$(cat /sys/devices/platform/bone_capemgr/baseboard/board-name)" = 'A335BNLT' ]; then -+ if test -f "${rel_dirname}/dtbs/${version}/am335x-boneblack.dtb" ; then -+ # TRANSLATORS: Device tree path isn't identifier. Should be translated. -+ message="$(gettext_printf "Loading devices tree file ...")" -+ sed "s/^/$submenu_indentation/" << EOF -+ echo '$(echo "$message" | grub_quote)' -+ devicetree ${rel_dirname}/dtbs/${version}/am335x-boneblack.dtb -+EOF -+ fi -+ fi - sed "s/^/$submenu_indentation/" << EOF - } - EOF -@@ -316,6 +335,16 @@ - fi - fi - -+ if [ "$(cat /sys/devices/platform/bone_capemgr/baseboard/board-name)" = 'A335BONE' ]; then -+ if test -f "${dirname}/dtbs/${version}/am335x-bone.dtb" ; then -+ gettext_printf "Found device tree file: %s\n" "${dirname}/dtbs/${version}/am335x-bone.dtb" >&2 -+ fi -+ elif [ "$(cat /sys/devices/platform/bone_capemgr/baseboard/board-name)" = 'A335BNLT' ]; then -+ if test -f "${dirname}/dtbs/${version}/am335x-boneblack.dtb" ; then -+ gettext_printf "Found device tree file: %s\n" "${dirname}/dtbs/${version}/am335x-boneblack.dtb" >&2 -+ fi -+ fi -+ - # The GRUB_DISABLE_SUBMENU option used to be different than others since it was - # mentioned in the documentation that has to be set to 'y' instead of 'true' to - # enable it. This caused a lot of confusion to users that set the option to 'y', diff --git a/libre/grub/0003-10_linux-20_linux_xen-detect-omap3_beagle-devicetree-file.patch b/libre/grub/0003-10_linux-20_linux_xen-detect-omap3_beagle-devicetree-file.patch deleted file mode 100644 index 71d04cb..0000000 --- a/libre/grub/0003-10_linux-20_linux_xen-detect-omap3_beagle-devicetree-file.patch +++ /dev/null @@ -1,56 +0,0 @@ ---- a/util/grub.d/10_linux.in 2021-06-17 03:06:45.912081000 -0500 -+++ b/util/grub.d/10_linux.in 2021-06-18 02:35:47.579590557 -0500 -@@ -155,6 +155,14 @@ - initrd $(echo $initrd_path) - EOF - fi -+ if test -d "${rel_dirname}/dtbs/${version}/omap3-beagle.dtb" ; then -+ # TRANSLATORS: Device tree path isn't identifier. Should be translated. -+ message="$(gettext_printf "Loading devices tree path ...")" -+ sed "s/^/$submenu_indentation/" << EOF -+ echo '$(echo "$message" | grub_quote)' -+ devicetree ${rel_dirname}/dtbs/${version}/omap3-beagle.dtb -+EOF -+ fi - sed "s/^/$submenu_indentation/" << EOF - } - EOF -@@ -261,6 +269,10 @@ - fi - fi - -+ if test -d "${dirname}/dtbs/${version}/omap3-beagle.dtb" ; then -+ gettext_printf "Found device tree directory: %s\n" "${dirname}/dtbs/${version}/omap3-beagle.dtb" >&2 -+ fi -+ - # The GRUB_DISABLE_SUBMENU option used to be different than others since it was - # mentioned in the documentation that has to be set to 'y' instead of 'true' to - # enable it. This caused a lot of confusion to users that set the option to 'y', ---- a/util/grub.d/20_linux_xen.in 2021-06-17 03:06:56.202081000 -0500 -+++ b/util/grub.d/20_linux_xen.in 2021-06-18 02:38:28.569590238 -0500 -@@ -172,6 +172,14 @@ - ${module_loader} ${rel_dirname}/${xenpolicy} - EOF - fi -+ if test -d "${rel_dirname}/dtbs/${version}/omap3-beagle.dtb" ; then -+ # TRANSLATORS: Device tree path isn't identifier. Should be translated. -+ message="$(gettext_printf "Loading devices tree path ...")" -+ sed "s/^/$submenu_indentation/" << EOF -+ echo '$(echo "$message" | grub_quote)' -+ devicetree ${rel_dirname}/dtbs/${version}/omap3-beagle.dtb -+EOF -+ fi - sed "s/^/$submenu_indentation/" << EOF - } - EOF -@@ -316,6 +324,10 @@ - fi - fi - -+ if test -d "${dirname}/dtbs/${version}/omap3-beagle.dtb" ; then -+ gettext_printf "Found device tree directory: %s\n" "${dirname}/dtbs/${version}/omap3-beagle.dtb" >&2 -+ fi -+ - # The GRUB_DISABLE_SUBMENU option used to be different than others since it was - # mentioned in the documentation that has to be set to 'y' instead of 'true' to - # enable it. This caused a lot of confusion to users that set the option to 'y', diff --git a/libre/grub/0003-10_linux-20_linux_xen-detect-omap3_beagle_xm-devicetree-file.patch b/libre/grub/0003-10_linux-20_linux_xen-detect-omap3_beagle_xm-devicetree-file.patch deleted file mode 100644 index 3ba413c..0000000 --- a/libre/grub/0003-10_linux-20_linux_xen-detect-omap3_beagle_xm-devicetree-file.patch +++ /dev/null @@ -1,56 +0,0 @@ ---- a/util/grub.d/10_linux.in 2021-06-17 03:06:45.912081000 -0500 -+++ b/util/grub.d/10_linux.in 2021-06-18 02:45:30.129589402 -0500 -@@ -155,6 +155,14 @@ - initrd $(echo $initrd_path) - EOF - fi -+ if test -d "${rel_dirname}/dtbs/${version}/omap3-beagle-xm.dtb" ; then -+ # TRANSLATORS: Device tree path isn't identifier. Should be translated. -+ message="$(gettext_printf "Loading devices tree path ...")" -+ sed "s/^/$submenu_indentation/" << EOF -+ echo '$(echo "$message" | grub_quote)' -+ devicetree ${rel_dirname}/dtbs/${version}/omap3-beagle-xm.dtb -+EOF -+ fi - sed "s/^/$submenu_indentation/" << EOF - } - EOF -@@ -261,6 +269,10 @@ - fi - fi - -+ if test -d "${dirname}/dtbs/${version}/omap3-beagle-xm.dtb" ; then -+ gettext_printf "Found device tree directory: %s\n" "${dirname}/dtbs/${version}/omap3-beagle-xm.dtb" >&2 -+ fi -+ - # The GRUB_DISABLE_SUBMENU option used to be different than others since it was - # mentioned in the documentation that has to be set to 'y' instead of 'true' to - # enable it. This caused a lot of confusion to users that set the option to 'y', ---- a/util/grub.d/20_linux_xen.in 2021-06-17 03:06:56.202081000 -0500 -+++ b/util/grub.d/20_linux_xen.in 2021-06-18 02:46:39.199589265 -0500 -@@ -172,6 +172,14 @@ - ${module_loader} ${rel_dirname}/${xenpolicy} - EOF - fi -+ if test -d "${rel_dirname}/dtbs/${version}/omap3-beagle-xm.dtb" ; then -+ # TRANSLATORS: Device tree path isn't identifier. Should be translated. -+ message="$(gettext_printf "Loading devices tree path ...")" -+ sed "s/^/$submenu_indentation/" << EOF -+ echo '$(echo "$message" | grub_quote)' -+ devicetree ${rel_dirname}/dtbs/${version}/omap3-beagle-xm.dtb -+EOF -+ fi - sed "s/^/$submenu_indentation/" << EOF - } - EOF -@@ -316,6 +324,10 @@ - fi - fi - -+ if test -d "${dirname}/dtbs/${version}/omap3-beagle-xm.dtb" ; then -+ gettext_printf "Found device tree directory: %s\n" "${dirname}/dtbs/${version}/omap3-beagle-xm.dtb" >&2 -+ fi -+ - # The GRUB_DISABLE_SUBMENU option used to be different than others since it was - # mentioned in the documentation that has to be set to 'y' instead of 'true' to - # enable it. This caused a lot of confusion to users that set the option to 'y', diff --git a/libre/grub/0003-10_linux-20_linux_xen-detect-omap3_beagle_xm_ab-devicetree-file.patch b/libre/grub/0003-10_linux-20_linux_xen-detect-omap3_beagle_xm_ab-devicetree-file.patch deleted file mode 100644 index f24eed1..0000000 --- a/libre/grub/0003-10_linux-20_linux_xen-detect-omap3_beagle_xm_ab-devicetree-file.patch +++ /dev/null @@ -1,56 +0,0 @@ ---- a/util/grub.d/10_linux.in 2021-06-17 03:06:45.912081000 -0500 -+++ b/util/grub.d/10_linux.in 2021-06-18 02:52:13.679588602 -0500 -@@ -155,6 +155,14 @@ - initrd $(echo $initrd_path) - EOF - fi -+ if test -d "${rel_dirname}/dtbs/${version}/omap3-beagle-xm-ab.dtb" ; then -+ # TRANSLATORS: Device tree path isn't identifier. Should be translated. -+ message="$(gettext_printf "Loading devices tree path ...")" -+ sed "s/^/$submenu_indentation/" << EOF -+ echo '$(echo "$message" | grub_quote)' -+ devicetree ${rel_dirname}/dtbs/${version}/omap3-beagle-xm-ab.dtb -+EOF -+ fi - sed "s/^/$submenu_indentation/" << EOF - } - EOF -@@ -261,6 +269,10 @@ - fi - fi - -+ if test -d "${dirname}/dtbs/${version}/omap3-beagle-xm-ab.dtb" ; then -+ gettext_printf "Found device tree directory: %s\n" "${dirname}/dtbs/${version}/omap3-beagle-xm-ab.dtb" >&2 -+ fi -+ - # The GRUB_DISABLE_SUBMENU option used to be different than others since it was - # mentioned in the documentation that has to be set to 'y' instead of 'true' to - # enable it. This caused a lot of confusion to users that set the option to 'y', ---- a/util/grub.d/20_linux_xen.in 2021-06-17 03:06:56.202081000 -0500 -+++ b/util/grub.d/20_linux_xen.in 2021-06-18 02:53:25.419588460 -0500 -@@ -172,6 +172,14 @@ - ${module_loader} ${rel_dirname}/${xenpolicy} - EOF - fi -+ if test -d "${rel_dirname}/dtbs/${version}/omap3-beagle-xm-ab.dtb" ; then -+ # TRANSLATORS: Device tree path isn't identifier. Should be translated. -+ message="$(gettext_printf "Loading devices tree path ...")" -+ sed "s/^/$submenu_indentation/" << EOF -+ echo '$(echo "$message" | grub_quote)' -+ devicetree ${rel_dirname}/dtbs/${version}/omap3-beagle-xm-ab.dtb -+EOF -+ fi - sed "s/^/$submenu_indentation/" << EOF - } - EOF -@@ -316,6 +324,10 @@ - fi - fi - -+ if test -d "${dirname}/dtbs/${version}/omap3-beagle-xm-ab.dtb" ; then -+ gettext_printf "Found device tree directory: %s\n" "${dirname}/dtbs/${version}/omap3-beagle-xm-ab.dtb" >&2 -+ fi -+ - # The GRUB_DISABLE_SUBMENU option used to be different than others since it was - # mentioned in the documentation that has to be set to 'y' instead of 'true' to - # enable it. This caused a lot of confusion to users that set the option to 'y', diff --git a/libre/grub/0003-10_linux-20_linux_xen-detect-parabola-initramfs.patch b/libre/grub/0003-10_linux-20_linux_xen-detect-parabola-initramfs.patch deleted file mode 100644 index 3ae7d95..0000000 --- a/libre/grub/0003-10_linux-20_linux_xen-detect-parabola-initramfs.patch +++ /dev/null @@ -1,138 +0,0 @@ ---- a/util/grub.d/10_linux.in 2021-06-17 03:06:45.912081000 -0500 -+++ b/util/grub.d/10_linux.in 2021-06-17 13:39:03.509682976 -0500 -@@ -91,10 +91,14 @@ - fi - if [ x$type != xsimple ] ; then - case $type in -+ booster) -+ title="$(gettext_printf "%s, %s kernel (booster initramfs)" "${os}" "${version}")" ;; -+ fallback) -+ title="$(gettext_printf "%s, %s kernel (fallback initramfs)" "${os}" "${version}")" ;; - recovery) -- title="$(gettext_printf "%s, with Linux %s (recovery mode)" "${os}" "${version}")" ;; -+ title="$(gettext_printf "%s, %s kernel (recovery mode)" "${os}" "${version}")" ;; - *) -- title="$(gettext_printf "%s, with Linux %s" "${os}" "${version}")" ;; -+ title="$(gettext_printf "%s, %s kernel" "${os}" "${version}")" ;; - esac - if [ x"$title" = x"$GRUB_ACTUAL_DEFAULT" ] || [ x"Previous Linux versions>$title" = x"$GRUB_ACTUAL_DEFAULT" ]; then - replacement_title="$(echo "Advanced options for ${OS}" | sed 's,>,>>,g')>$(echo "$title" | sed 's,>,>>,g')" -@@ -106,7 +110,7 @@ - else - echo "menuentry '$(echo "$os" | grub_quote)' ${CLASS} \$menuentry_id_option 'gnulinux-simple-$boot_device_id' {" | sed "s/^/$submenu_indentation/" - fi -- if [ x$type != xrecovery ] ; then -+ if [ x$type != xrecovery ] && [ x$type != xfallback ] ; then - save_default_entry | grub_add_tab - fi - -@@ -138,7 +142,7 @@ - fi - printf '%s\n' "${prepare_boot_cache}" | sed "s/^/$submenu_indentation/" - fi -- message="$(gettext_printf "Loading Linux %s ..." ${version})" -+ message="$(gettext_printf "Loading %s kernel ..." ${version})" - sed "s/^/$submenu_indentation/" << EOF - echo '$(echo "$message" | grub_quote)' - linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args} -@@ -198,7 +202,7 @@ - basename=`basename $linux` - dirname=`dirname $linux` - rel_dirname=`make_system_path_relative_to_its_root $dirname` -- version=`echo $basename | sed -e "s,^[^0-9]*-,,g"` -+ version=`echo $basename | sed -e "s,vmlinuz-,,g"` - alt_version=`echo $version | sed -e "s,\.old$,,g"` - linux_root_device_thisversion="${LINUX_ROOT_DEVICE}" - -@@ -285,6 +289,29 @@ - - linux_entry "${OS}" "${version}" advanced \ - "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" -+ -+ if test -e "${dirname}/initramfs-${version}-fallback.img" ; then -+ initrd="${initrd_early} initramfs-${version}-fallback.img" -+ -+ if test -n "${initrd}" ; then -+ gettext_printf "Found fallback initramfs image: %s\n" "${dirname}/${initrd}" >&2 -+ fi -+ -+ linux_entry "${OS}" "${version}" fallback \ -+ "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" -+ fi -+ -+ if test -e "${dirname}/booster-${version}.img" ; then -+ initrd="${initrd_early} booster-${version}.img" -+ -+ if test -n "${initrd}" ; then -+ gettext_printf "Found booster initrd image(s) in %s:%s\n" "${dirname}" "${initrd_extra} ${initrd}" >&2 -+ fi -+ -+ linux_entry "${OS}" "${version}" booster \ -+ "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" -+ fi -+ - if [ "x${GRUB_DISABLE_RECOVERY}" != "xtrue" ]; then - linux_entry "${OS}" "${version}" recovery \ - "single ${GRUB_CMDLINE_LINUX}" ---- a/util/grub.d/20_linux_xen.in 2021-06-17 03:06:56.202081000 -0500 -+++ b/util/grub.d/20_linux_xen.in 2021-06-17 03:22:43.732079272 -0500 -@@ -117,9 +117,11 @@ - fi - if [ x$type != xsimple ] ; then - if [ x$type = xrecovery ] ; then -- title="$(gettext_printf "%s, with Xen %s and Linux %s (recovery mode)" "${os}" "${xen_version}" "${version}")" -+ title="$(gettext_printf "%s, with Xen %s and %s kernel (recovery mode)" "${os}" "${xen_version}" "${version}")" -+ elif [ x$type = xfallback ] ; then -+ title="$(gettext_printf "%s, with Xen %s and %s kernel (fallback initramfs)" "${os}" "${xen_version}" "${version}")" - else -- title="$(gettext_printf "%s, with Xen %s and Linux %s" "${os}" "${xen_version}" "${version}")" -+ title="$(gettext_printf "%s, with Xen %s and %s kernel" "${os}" "${xen_version}" "${version}")" - fi - replacement_title="$(echo "Advanced options for ${OS}" | sed 's,>,>>,g')>$(echo "$title" | sed 's,>,>>,g')" - if [ x"Xen ${xen_version}>$title" = x"$GRUB_ACTUAL_DEFAULT" ]; then -@@ -132,7 +134,7 @@ - title="$(gettext_printf "%s, with Xen hypervisor" "${os}")" - echo "menuentry '$(echo "$title" | grub_quote)' ${CLASS} \$menuentry_id_option 'xen-gnulinux-simple-$boot_device_id' {" | sed "s/^/$submenu_indentation/" - fi -- if [ x$type != xrecovery ] ; then -+ if [ x$type != xrecovery ] && [ x$type != xfallback ] ; then - save_default_entry | grub_add_tab | sed "s/^/$submenu_indentation/" - fi - -@@ -141,7 +143,7 @@ - fi - printf '%s\n' "${prepare_boot_cache}" | sed "s/^/$submenu_indentation/" - xmessage="$(gettext_printf "Loading Xen %s ..." ${xen_version})" -- lmessage="$(gettext_printf "Loading Linux %s ..." ${version})" -+ lmessage="$(gettext_printf "Loading %s kernel ..." ${version})" - sed "s/^/$submenu_indentation/" << EOF - echo '$(echo "$xmessage" | grub_quote)' - if [ "\$grub_platform" = "pc" -o "\$grub_platform" = "" ]; then -@@ -275,7 +277,7 @@ - basename=`basename $linux` - dirname=`dirname $linux` - rel_dirname=`make_system_path_relative_to_its_root $dirname` -- version=`echo $basename | sed -e "s,^[^0-9]*-,,g"` -+ version=`echo $basename | sed -e "s,vmlinuz-,,g"` - alt_version=`echo $version | sed -e "s,\.old$,,g"` - linux_root_device_thisversion="${LINUX_ROOT_DEVICE}" - -@@ -341,6 +343,18 @@ - - linux_entry "${OS}" "${version}" "${xen_version}" advanced \ - "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" "${GRUB_CMDLINE_XEN} ${GRUB_CMDLINE_XEN_DEFAULT}" -+ -+ if test -e "${dirname}/initramfs-${version}-fallback.img" ; then -+ initrd="initramfs-${version}-fallback.img" -+ -+ if test -n "${initrd}" ; then -+ gettext_printf "Found fallback initramfs image: %s\n" "${dirname}/${initrd}" >&2 -+ fi -+ -+ linux_entry "${OS}" "${version}" "${xen_version}" fallback \ -+ "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" "${GRUB_CMDLINE_XEN} ${GRUB_CMDLINE_XEN_DEFAULT}" -+ fi -+ - if [ "x${GRUB_DISABLE_RECOVERY}" != "xtrue" ]; then - linux_entry "${OS}" "${version}" "${xen_version}" recovery \ - "single ${GRUB_CMDLINE_LINUX}" "${GRUB_CMDLINE_XEN}" diff --git a/libre/grub/0003-10_linux-20_linux_xen-detect-udoo-devicetree-file.patch b/libre/grub/0003-10_linux-20_linux_xen-detect-udoo-devicetree-file.patch deleted file mode 100644 index 692ac51..0000000 --- a/libre/grub/0003-10_linux-20_linux_xen-detect-udoo-devicetree-file.patch +++ /dev/null @@ -1,56 +0,0 @@ ---- a/util/grub.d/10_linux.in 2021-06-17 03:06:45.912081000 -0500 -+++ b/util/grub.d/10_linux.in 2021-06-18 02:58:17.879587880 -0500 -@@ -155,6 +155,14 @@ - initrd $(echo $initrd_path) - EOF - fi -+ if test -d "${rel_dirname}/dtbs/${version}/imx6q-udoo.dtb" ; then -+ # TRANSLATORS: Device tree path isn't identifier. Should be translated. -+ message="$(gettext_printf "Loading devices tree path ...")" -+ sed "s/^/$submenu_indentation/" << EOF -+ echo '$(echo "$message" | grub_quote)' -+ devicetree ${rel_dirname}/dtbs/${version}/imx6q-udoo.dtb -+EOF -+ fi - sed "s/^/$submenu_indentation/" << EOF - } - EOF -@@ -261,6 +269,10 @@ - fi - fi - -+ if test -d "${dirname}/dtbs/${version}/imx6q-udoo.dtb" ; then -+ gettext_printf "Found device tree directory: %s\n" "${dirname}/dtbs/${version}/imx6q-udoo.dtb" >&2 -+ fi -+ - # The GRUB_DISABLE_SUBMENU option used to be different than others since it was - # mentioned in the documentation that has to be set to 'y' instead of 'true' to - # enable it. This caused a lot of confusion to users that set the option to 'y', ---- a/util/grub.d/20_linux_xen.in 2021-06-17 03:06:56.202081000 -0500 -+++ b/util/grub.d/20_linux_xen.in 2021-06-18 02:59:12.559587771 -0500 -@@ -172,6 +172,14 @@ - ${module_loader} ${rel_dirname}/${xenpolicy} - EOF - fi -+ if test -d "${rel_dirname}/dtbs/${version}/imx6q-udoo.dtb" ; then -+ # TRANSLATORS: Device tree path isn't identifier. Should be translated. -+ message="$(gettext_printf "Loading devices tree path ...")" -+ sed "s/^/$submenu_indentation/" << EOF -+ echo '$(echo "$message" | grub_quote)' -+ devicetree ${rel_dirname}/dtbs/${version}/imx6q-udoo.dtb -+EOF -+ fi - sed "s/^/$submenu_indentation/" << EOF - } - EOF -@@ -316,6 +324,10 @@ - fi - fi - -+ if test -d "${dirname}/dtbs/${version}/imx6q-udoo.dtb" ; then -+ gettext_printf "Found device tree directory: %s\n" "${dirname}/dtbs/${version}/imx6q-udoo.dtb" >&2 -+ fi -+ - # The GRUB_DISABLE_SUBMENU option used to be different than others since it was - # mentioned in the documentation that has to be set to 'y' instead of 'true' to - # enable it. This caused a lot of confusion to users that set the option to 'y', diff --git a/libre/grub/09_parabola b/libre/grub/09_parabola deleted file mode 100644 index 90a9062..0000000 --- a/libre/grub/09_parabola +++ /dev/null @@ -1,195 +0,0 @@ -#!/usr/bin/env bash - -## -## grub-mkconfig helper script specific to Parabola GNU/Linux-libre -## Contributed by "Keshav Amburay" -## Rebranded for Parabola by "André Silva" -## Updated on 08 February 2014 -## -## Script based on do_grub_config() function in Arch Archboot ISO Installer/Setup script -## Some parts taken from /etc/grub.d/10_linux script shipped by GRUB(2) upstream -## -## This script can be freely distributed and/or modified -## under the terms of the GNU General Public License as published by -## the Free Software Foundation, either version 3 of the License, or -## (at your option) any later version. -## -## This script is distributed in the hope that it will be useful, -## but WITHOUT ANY WARRANTY; without even the implied warranty of -## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -## GNU General Public License for more details. -## - -_FUNC_GRUB_FILE_PRESENT() { - - [[ -z "${GRUB_PLATFORM}" ]] && GRUB_PLATFORM="x86" - - if [[ "${GRUB_PLATFORM}" == "x86" ]]; then - check="--is-x86-linux32" - elif [[ "${GRUB_PLATFORM}" == "i386-xen-pae" ]]; then - check="--is-i386-xen-pae-domu" - elif [[ "${GRUB_PLATFORM}" == "x86_64-xen" ]]; then - check="--is-x86_64-xen-domu" - else - check="--is-${GRUB_PLATFORM}-linux" - fi - - case "${GRUB_PLATFORM}" in - x86) - list="$(for i in "${GRUB_ROOT}"/boot/vmlinuz-linux* ; do - if grub_file_is_not_garbage "${i}" && "${grub_file}" ${check} "${i}" ; then echo -n "${i} " ; fi - done)" ;; - *) - list="$(for i in "${GRUB_ROOT}"/boot/vmlinuz-linux* ; do - if grub_file_is_not_garbage "${i}" && "${grub_file}" ${check} "${i}" ; then echo -n "${i} " ; fi - done)" ;; - esac -} - -set -e - -prefix="/usr" -exec_prefix="${prefix}" -datarootdir="/usr/share" -datadir="${datarootdir}" -sysconfdir="/etc" - -. "${datarootdir}/grub/grub-mkconfig_lib" - -. "${sysconfdir}/default/grub" - -export TEXTDOMAIN="grub" -export TEXTDOMAINDIR="${datarootdir}/locale" - -CLASS="--class parabola --class gnu-linux --class gnu --class os" - -[[ "${grub_file}" != "" ]] && _FUNC_GRUB_FILE_PRESENT - -BOOT_PART_FS_UUID="$(${grub_probe} --target="fs_uuid" "/boot" 2>/dev/null)" -BOOT_PART_HINTS_STRING="$(${grub_probe} --target="hints_string" "/boot" 2>/dev/null || true)" -BOOT_PART_FS="$(${grub_probe} --target="fs" "/boot" 2>/dev/null)" - -ROOT_PART_GRUB_DEVICE="$(${grub_probe} --target=device / || true)" -ROOT_PART_FS="$(${grub_probe} --device ${ROOT_PART_GRUB_DEVICE} --target=fs 2> /dev/null || echo "unknown")" - -if [[ "${GRUB_LINUX_ROOT_DEVICE}" == "" ]]; then - - case "${ROOT_PART_FS}" in - btrfs) - rootsubvol="$(make_system_path_relative_to_its_root /)" - rootsubvol="${rootsubvol#/}" - if [[ "${rootsubvol}" != "" ]]; then - GRUB_LINUX_ROOT_DEVICE="subvol=${rootsubvol}" - fi - ;; - zfs) - rpool="$(${grub_probe} --device ${GRUB_DEVICE} --target=fs_label 2>/dev/null || true)" - bootfs="$(make_system_path_relative_to_its_root / | sed -e "s,@$,,")" - GRUB_LINUX_ROOT_DEVICE="ZFS=${rpool}${bootfs}" - ;; - esac - - if [[ "${GRUB_DEVICE_UUID}" == "" ]] || \ - [[ "${GRUB_DISABLE_LINUX_UUID}" == "true" ]] || \ - [[ ! -e "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" ]] || \ - uses_abstraction "${GRUB_DEVICE}" lvm ; then - GRUB_LINUX_ROOT_DEVICE="${GRUB_DEVICE}" - else - GRUB_LINUX_ROOT_DEVICE="UUID=${GRUB_DEVICE_UUID}" - fi -fi - -[[ "${GRUB_LINUX_PARAMS}" == "" ]] && GRUB_LINUX_PARAMS="${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" - -for _KERNEL_ in ${list} ; do - - echo "Found linux image: ${_KERNEL_}" >&2 - - basename="$(basename "${_KERNEL_}")" - dirname="$(dirname "${_KERNEL_}")" - REAL_DIR="$(make_system_path_relative_to_its_root "${dirname}")" - - _KERNEL_FILE_="$(echo ${_KERNEL_} | sed 's,/boot/,,g')" - _KERNEL_PKG_="pkg-$(echo ${_KERNEL_FILE_} | sed 's,vmlinuz-,,g')" - - _INITRAMFS_="${_KERNEL_FILE_/vmlinuz-/initramfs-}.img" - - if [[ -e "/boot/${_INITRAMFS_}" ]]; then - - echo "Found initramfs image: /boot/${_INITRAMFS_}" >&2 - -cat << EOF - -menuentry "Parabola GNU/Linux-libre ${_KERNEL_PKG_} kernel" ${CLASS} { - $(save_default_entry) - if [ x\$feature_all_video_module = xy ]; then - insmod all_video - fi - set gfxpayload=keep - insmod ${BOOT_PART_FS} - if [ x\$feature_platform_search_hint = xy ]; then - search --no-floppy --fs-uuid --set=root ${BOOT_PART_HINTS_STRING} ${BOOT_PART_FS_UUID} - else - search --no-floppy --fs-uuid --set=root ${BOOT_PART_FS_UUID} - fi - echo 'Loading Parabola GNU/Linux-libre ${_KERNEL_PKG_} kernel ...' - linux ${REAL_DIR}/${_KERNEL_FILE_} root=${GRUB_LINUX_ROOT_DEVICE} rw ${GRUB_LINUX_PARAMS} - echo 'Loading Parabola GNU/Linux-libre ${_KERNEL_PKG_} kernel initramfs ...' - initrd ${REAL_DIR}/${_INITRAMFS_} -} - -EOF - fi - - _INITRAMFS_FALLBACK_="${_KERNEL_FILE_/vmlinuz-/initramfs-}-fallback.img" - - if [[ -e "/boot/${_INITRAMFS_FALLBACK_}" ]]; then - - echo "Found fallback initramfs image: /boot/${_INITRAMFS_FALLBACK_}" >&2 - -cat << EOF - -menuentry "Parabola GNU/Linux-libre ${_KERNEL_PKG_} kernel (fallback initramfs)" ${CLASS} { - $(save_default_entry) - if [ x\$feature_all_video_module = xy ]; then - insmod all_video - fi - set gfxpayload=keep - insmod ${BOOT_PART_FS} - if [ x\$feature_platform_search_hint = xy ]; then - search --no-floppy --fs-uuid --set=root ${BOOT_PART_HINTS_STRING} ${BOOT_PART_FS_UUID} - else - search --no-floppy --fs-uuid --set=root ${BOOT_PART_FS_UUID} - fi - echo 'Loading Parabola GNU/Linux-libre ${_KERNEL_PKG_} kernel ...' - linux ${REAL_DIR}/${_KERNEL_FILE_} root=${GRUB_LINUX_ROOT_DEVICE} rw ${GRUB_LINUX_PARAMS} - echo 'Loading Parabola GNU/Linux-libre ${_KERNEL_PKG_} kernel fallback initramfs ...' - initrd ${REAL_DIR}/${_INITRAMFS_FALLBACK_} -} - -EOF - fi - - if [[ ! -e "/boot/${_INITRAMFS_}" ]] && [[ ! -e "/boot/${_INITRAMFS_FALLBACK_}" ]]; then -cat << EOF - -menuentry "Parabola GNU/Linux-libre ${_KERNEL_PKG_} kernel (no initramfs)" ${CLASS} { - $(save_default_entry) - if [ x\$feature_all_video_module = xy ]; then - insmod all_video - fi - set gfxpayload=keep - insmod ${BOOT_PART_FS} - if [ x\$feature_platform_search_hint = xy ]; then - search --no-floppy --fs-uuid --set=root ${BOOT_PART_HINTS_STRING} ${BOOT_PART_FS_UUID} - else - search --no-floppy --fs-uuid --set=root ${BOOT_PART_FS_UUID} - fi - echo 'Loading Parabola GNU/Linux-libre ${_KERNEL_PKG_} kernel ...' - linux ${REAL_DIR}/${_KERNEL_FILE_} root=${GRUB_LINUX_ROOT_DEVICE} rw ${GRUB_LINUX_PARAMS} -} - -EOF - fi - -done diff --git a/libre/grub/1000-am335x_bone--10_linux-20_linux_xen-detect-devicetree-file.patch b/libre/grub/1000-am335x_bone--10_linux-20_linux_xen-detect-devicetree-file.patch new file mode 100644 index 0000000..eac637d --- /dev/null +++ b/libre/grub/1000-am335x_bone--10_linux-20_linux_xen-detect-devicetree-file.patch @@ -0,0 +1,90 @@ +--- a/util/grub.d/10_linux.in 2021-06-17 03:06:45.912081000 -0500 ++++ b/util/grub.d/10_linux.in 2021-06-18 02:16:38.219592837 -0500 +@@ -155,6 +155,25 @@ + initrd $(echo $initrd_path) + EOF + fi ++ if [ "$(cat /sys/devices/platform/bone_capemgr/baseboard/board-name)" = 'A335BONE' ]; then ++ if test -f "${rel_dirname}/dtbs/${version}/am335x-bone.dtb" ; then ++ # TRANSLATORS: Device tree path isn't identifier. Should be translated. ++ message="$(gettext_printf "Loading devices tree file ...")" ++ sed "s/^/$submenu_indentation/" << EOF ++ echo '$(echo "$message" | grub_quote)' ++ devicetree ${rel_dirname}/dtbs/${version}/am335x-bone.dtb ++EOF ++ fi ++ elif [ "$(cat /sys/devices/platform/bone_capemgr/baseboard/board-name)" = 'A335BNLT' ]; then ++ if test -f "${rel_dirname}/dtbs/${version}/am335x-boneblack.dtb" ; then ++ # TRANSLATORS: Device tree path isn't identifier. Should be translated. ++ message="$(gettext_printf "Loading devices tree file ...")" ++ sed "s/^/$submenu_indentation/" << EOF ++ echo '$(echo "$message" | grub_quote)' ++ devicetree ${rel_dirname}/dtbs/${version}/am335x-boneblack.dtb ++EOF ++ fi ++ fi + sed "s/^/$submenu_indentation/" << EOF + } + EOF +@@ -261,6 +280,16 @@ + fi + fi + ++ if [ "$(cat /sys/devices/platform/bone_capemgr/baseboard/board-name)" = 'A335BONE' ]; then ++ if test -f "${dirname}/dtbs/${version}/am335x-bone.dtb" ; then ++ gettext_printf "Found device tree file: %s\n" "${dirname}/dtbs/${version}/am335x-bone.dtb" >&2 ++ fi ++ elif [ "$(cat /sys/devices/platform/bone_capemgr/baseboard/board-name)" = 'A335BNLT' ]; then ++ if test -f "${dirname}/dtbs/${version}/am335x-boneblack.dtb" ; then ++ gettext_printf "Found device tree file: %s\n" "${dirname}/dtbs/${version}/am335x-boneblack.dtb" >&2 ++ fi ++ fi ++ + # The GRUB_DISABLE_SUBMENU option used to be different than others since it was + # mentioned in the documentation that has to be set to 'y' instead of 'true' to + # enable it. This caused a lot of confusion to users that set the option to 'y', +--- a/util/grub.d/20_linux_xen.in 2021-06-17 03:06:56.202081000 -0500 ++++ b/util/grub.d/20_linux_xen.in 2021-06-18 02:23:54.679591971 -0500 +@@ -172,6 +172,25 @@ + ${module_loader} ${rel_dirname}/${xenpolicy} + EOF + fi ++ if [ "$(cat /sys/devices/platform/bone_capemgr/baseboard/board-name)" = 'A335BONE' ]; then ++ if test -f "${rel_dirname}/dtbs/${version}/am335x-bone.dtb" ; then ++ # TRANSLATORS: Device tree path isn't identifier. Should be translated. ++ message="$(gettext_printf "Loading devices tree file ...")" ++ sed "s/^/$submenu_indentation/" << EOF ++ echo '$(echo "$message" | grub_quote)' ++ devicetree ${rel_dirname}/dtbs/${version}/am335x-bone.dtb ++EOF ++ fi ++ elif [ "$(cat /sys/devices/platform/bone_capemgr/baseboard/board-name)" = 'A335BNLT' ]; then ++ if test -f "${rel_dirname}/dtbs/${version}/am335x-boneblack.dtb" ; then ++ # TRANSLATORS: Device tree path isn't identifier. Should be translated. ++ message="$(gettext_printf "Loading devices tree file ...")" ++ sed "s/^/$submenu_indentation/" << EOF ++ echo '$(echo "$message" | grub_quote)' ++ devicetree ${rel_dirname}/dtbs/${version}/am335x-boneblack.dtb ++EOF ++ fi ++ fi + sed "s/^/$submenu_indentation/" << EOF + } + EOF +@@ -316,6 +335,16 @@ + fi + fi + ++ if [ "$(cat /sys/devices/platform/bone_capemgr/baseboard/board-name)" = 'A335BONE' ]; then ++ if test -f "${dirname}/dtbs/${version}/am335x-bone.dtb" ; then ++ gettext_printf "Found device tree file: %s\n" "${dirname}/dtbs/${version}/am335x-bone.dtb" >&2 ++ fi ++ elif [ "$(cat /sys/devices/platform/bone_capemgr/baseboard/board-name)" = 'A335BNLT' ]; then ++ if test -f "${dirname}/dtbs/${version}/am335x-boneblack.dtb" ; then ++ gettext_printf "Found device tree file: %s\n" "${dirname}/dtbs/${version}/am335x-boneblack.dtb" >&2 ++ fi ++ fi ++ + # The GRUB_DISABLE_SUBMENU option used to be different than others since it was + # mentioned in the documentation that has to be set to 'y' instead of 'true' to + # enable it. This caused a lot of confusion to users that set the option to 'y', diff --git a/libre/grub/1000-omap3_beagle--10_linux-20_linux_xen-detect-devicetree-file.patch b/libre/grub/1000-omap3_beagle--10_linux-20_linux_xen-detect-devicetree-file.patch new file mode 100644 index 0000000..71d04cb --- /dev/null +++ b/libre/grub/1000-omap3_beagle--10_linux-20_linux_xen-detect-devicetree-file.patch @@ -0,0 +1,56 @@ +--- a/util/grub.d/10_linux.in 2021-06-17 03:06:45.912081000 -0500 ++++ b/util/grub.d/10_linux.in 2021-06-18 02:35:47.579590557 -0500 +@@ -155,6 +155,14 @@ + initrd $(echo $initrd_path) + EOF + fi ++ if test -d "${rel_dirname}/dtbs/${version}/omap3-beagle.dtb" ; then ++ # TRANSLATORS: Device tree path isn't identifier. Should be translated. ++ message="$(gettext_printf "Loading devices tree path ...")" ++ sed "s/^/$submenu_indentation/" << EOF ++ echo '$(echo "$message" | grub_quote)' ++ devicetree ${rel_dirname}/dtbs/${version}/omap3-beagle.dtb ++EOF ++ fi + sed "s/^/$submenu_indentation/" << EOF + } + EOF +@@ -261,6 +269,10 @@ + fi + fi + ++ if test -d "${dirname}/dtbs/${version}/omap3-beagle.dtb" ; then ++ gettext_printf "Found device tree directory: %s\n" "${dirname}/dtbs/${version}/omap3-beagle.dtb" >&2 ++ fi ++ + # The GRUB_DISABLE_SUBMENU option used to be different than others since it was + # mentioned in the documentation that has to be set to 'y' instead of 'true' to + # enable it. This caused a lot of confusion to users that set the option to 'y', +--- a/util/grub.d/20_linux_xen.in 2021-06-17 03:06:56.202081000 -0500 ++++ b/util/grub.d/20_linux_xen.in 2021-06-18 02:38:28.569590238 -0500 +@@ -172,6 +172,14 @@ + ${module_loader} ${rel_dirname}/${xenpolicy} + EOF + fi ++ if test -d "${rel_dirname}/dtbs/${version}/omap3-beagle.dtb" ; then ++ # TRANSLATORS: Device tree path isn't identifier. Should be translated. ++ message="$(gettext_printf "Loading devices tree path ...")" ++ sed "s/^/$submenu_indentation/" << EOF ++ echo '$(echo "$message" | grub_quote)' ++ devicetree ${rel_dirname}/dtbs/${version}/omap3-beagle.dtb ++EOF ++ fi + sed "s/^/$submenu_indentation/" << EOF + } + EOF +@@ -316,6 +324,10 @@ + fi + fi + ++ if test -d "${dirname}/dtbs/${version}/omap3-beagle.dtb" ; then ++ gettext_printf "Found device tree directory: %s\n" "${dirname}/dtbs/${version}/omap3-beagle.dtb" >&2 ++ fi ++ + # The GRUB_DISABLE_SUBMENU option used to be different than others since it was + # mentioned in the documentation that has to be set to 'y' instead of 'true' to + # enable it. This caused a lot of confusion to users that set the option to 'y', diff --git a/libre/grub/1000-omap3_beagle_xm--10_linux-20_linux_xen-detect-devicetree-file.patch b/libre/grub/1000-omap3_beagle_xm--10_linux-20_linux_xen-detect-devicetree-file.patch new file mode 100644 index 0000000..3ba413c --- /dev/null +++ b/libre/grub/1000-omap3_beagle_xm--10_linux-20_linux_xen-detect-devicetree-file.patch @@ -0,0 +1,56 @@ +--- a/util/grub.d/10_linux.in 2021-06-17 03:06:45.912081000 -0500 ++++ b/util/grub.d/10_linux.in 2021-06-18 02:45:30.129589402 -0500 +@@ -155,6 +155,14 @@ + initrd $(echo $initrd_path) + EOF + fi ++ if test -d "${rel_dirname}/dtbs/${version}/omap3-beagle-xm.dtb" ; then ++ # TRANSLATORS: Device tree path isn't identifier. Should be translated. ++ message="$(gettext_printf "Loading devices tree path ...")" ++ sed "s/^/$submenu_indentation/" << EOF ++ echo '$(echo "$message" | grub_quote)' ++ devicetree ${rel_dirname}/dtbs/${version}/omap3-beagle-xm.dtb ++EOF ++ fi + sed "s/^/$submenu_indentation/" << EOF + } + EOF +@@ -261,6 +269,10 @@ + fi + fi + ++ if test -d "${dirname}/dtbs/${version}/omap3-beagle-xm.dtb" ; then ++ gettext_printf "Found device tree directory: %s\n" "${dirname}/dtbs/${version}/omap3-beagle-xm.dtb" >&2 ++ fi ++ + # The GRUB_DISABLE_SUBMENU option used to be different than others since it was + # mentioned in the documentation that has to be set to 'y' instead of 'true' to + # enable it. This caused a lot of confusion to users that set the option to 'y', +--- a/util/grub.d/20_linux_xen.in 2021-06-17 03:06:56.202081000 -0500 ++++ b/util/grub.d/20_linux_xen.in 2021-06-18 02:46:39.199589265 -0500 +@@ -172,6 +172,14 @@ + ${module_loader} ${rel_dirname}/${xenpolicy} + EOF + fi ++ if test -d "${rel_dirname}/dtbs/${version}/omap3-beagle-xm.dtb" ; then ++ # TRANSLATORS: Device tree path isn't identifier. Should be translated. ++ message="$(gettext_printf "Loading devices tree path ...")" ++ sed "s/^/$submenu_indentation/" << EOF ++ echo '$(echo "$message" | grub_quote)' ++ devicetree ${rel_dirname}/dtbs/${version}/omap3-beagle-xm.dtb ++EOF ++ fi + sed "s/^/$submenu_indentation/" << EOF + } + EOF +@@ -316,6 +324,10 @@ + fi + fi + ++ if test -d "${dirname}/dtbs/${version}/omap3-beagle-xm.dtb" ; then ++ gettext_printf "Found device tree directory: %s\n" "${dirname}/dtbs/${version}/omap3-beagle-xm.dtb" >&2 ++ fi ++ + # The GRUB_DISABLE_SUBMENU option used to be different than others since it was + # mentioned in the documentation that has to be set to 'y' instead of 'true' to + # enable it. This caused a lot of confusion to users that set the option to 'y', diff --git a/libre/grub/1000-omap3_beagle_xm_ab--10_linux-20_linux_xen-detect-devicetree-file.patch b/libre/grub/1000-omap3_beagle_xm_ab--10_linux-20_linux_xen-detect-devicetree-file.patch new file mode 100644 index 0000000..f24eed1 --- /dev/null +++ b/libre/grub/1000-omap3_beagle_xm_ab--10_linux-20_linux_xen-detect-devicetree-file.patch @@ -0,0 +1,56 @@ +--- a/util/grub.d/10_linux.in 2021-06-17 03:06:45.912081000 -0500 ++++ b/util/grub.d/10_linux.in 2021-06-18 02:52:13.679588602 -0500 +@@ -155,6 +155,14 @@ + initrd $(echo $initrd_path) + EOF + fi ++ if test -d "${rel_dirname}/dtbs/${version}/omap3-beagle-xm-ab.dtb" ; then ++ # TRANSLATORS: Device tree path isn't identifier. Should be translated. ++ message="$(gettext_printf "Loading devices tree path ...")" ++ sed "s/^/$submenu_indentation/" << EOF ++ echo '$(echo "$message" | grub_quote)' ++ devicetree ${rel_dirname}/dtbs/${version}/omap3-beagle-xm-ab.dtb ++EOF ++ fi + sed "s/^/$submenu_indentation/" << EOF + } + EOF +@@ -261,6 +269,10 @@ + fi + fi + ++ if test -d "${dirname}/dtbs/${version}/omap3-beagle-xm-ab.dtb" ; then ++ gettext_printf "Found device tree directory: %s\n" "${dirname}/dtbs/${version}/omap3-beagle-xm-ab.dtb" >&2 ++ fi ++ + # The GRUB_DISABLE_SUBMENU option used to be different than others since it was + # mentioned in the documentation that has to be set to 'y' instead of 'true' to + # enable it. This caused a lot of confusion to users that set the option to 'y', +--- a/util/grub.d/20_linux_xen.in 2021-06-17 03:06:56.202081000 -0500 ++++ b/util/grub.d/20_linux_xen.in 2021-06-18 02:53:25.419588460 -0500 +@@ -172,6 +172,14 @@ + ${module_loader} ${rel_dirname}/${xenpolicy} + EOF + fi ++ if test -d "${rel_dirname}/dtbs/${version}/omap3-beagle-xm-ab.dtb" ; then ++ # TRANSLATORS: Device tree path isn't identifier. Should be translated. ++ message="$(gettext_printf "Loading devices tree path ...")" ++ sed "s/^/$submenu_indentation/" << EOF ++ echo '$(echo "$message" | grub_quote)' ++ devicetree ${rel_dirname}/dtbs/${version}/omap3-beagle-xm-ab.dtb ++EOF ++ fi + sed "s/^/$submenu_indentation/" << EOF + } + EOF +@@ -316,6 +324,10 @@ + fi + fi + ++ if test -d "${dirname}/dtbs/${version}/omap3-beagle-xm-ab.dtb" ; then ++ gettext_printf "Found device tree directory: %s\n" "${dirname}/dtbs/${version}/omap3-beagle-xm-ab.dtb" >&2 ++ fi ++ + # The GRUB_DISABLE_SUBMENU option used to be different than others since it was + # mentioned in the documentation that has to be set to 'y' instead of 'true' to + # enable it. This caused a lot of confusion to users that set the option to 'y', diff --git a/libre/grub/1000-udoo--10_linux-20_linux_xen-detect-devicetree-file.patch b/libre/grub/1000-udoo--10_linux-20_linux_xen-detect-devicetree-file.patch new file mode 100644 index 0000000..692ac51 --- /dev/null +++ b/libre/grub/1000-udoo--10_linux-20_linux_xen-detect-devicetree-file.patch @@ -0,0 +1,56 @@ +--- a/util/grub.d/10_linux.in 2021-06-17 03:06:45.912081000 -0500 ++++ b/util/grub.d/10_linux.in 2021-06-18 02:58:17.879587880 -0500 +@@ -155,6 +155,14 @@ + initrd $(echo $initrd_path) + EOF + fi ++ if test -d "${rel_dirname}/dtbs/${version}/imx6q-udoo.dtb" ; then ++ # TRANSLATORS: Device tree path isn't identifier. Should be translated. ++ message="$(gettext_printf "Loading devices tree path ...")" ++ sed "s/^/$submenu_indentation/" << EOF ++ echo '$(echo "$message" | grub_quote)' ++ devicetree ${rel_dirname}/dtbs/${version}/imx6q-udoo.dtb ++EOF ++ fi + sed "s/^/$submenu_indentation/" << EOF + } + EOF +@@ -261,6 +269,10 @@ + fi + fi + ++ if test -d "${dirname}/dtbs/${version}/imx6q-udoo.dtb" ; then ++ gettext_printf "Found device tree directory: %s\n" "${dirname}/dtbs/${version}/imx6q-udoo.dtb" >&2 ++ fi ++ + # The GRUB_DISABLE_SUBMENU option used to be different than others since it was + # mentioned in the documentation that has to be set to 'y' instead of 'true' to + # enable it. This caused a lot of confusion to users that set the option to 'y', +--- a/util/grub.d/20_linux_xen.in 2021-06-17 03:06:56.202081000 -0500 ++++ b/util/grub.d/20_linux_xen.in 2021-06-18 02:59:12.559587771 -0500 +@@ -172,6 +172,14 @@ + ${module_loader} ${rel_dirname}/${xenpolicy} + EOF + fi ++ if test -d "${rel_dirname}/dtbs/${version}/imx6q-udoo.dtb" ; then ++ # TRANSLATORS: Device tree path isn't identifier. Should be translated. ++ message="$(gettext_printf "Loading devices tree path ...")" ++ sed "s/^/$submenu_indentation/" << EOF ++ echo '$(echo "$message" | grub_quote)' ++ devicetree ${rel_dirname}/dtbs/${version}/imx6q-udoo.dtb ++EOF ++ fi + sed "s/^/$submenu_indentation/" << EOF + } + EOF +@@ -316,6 +324,10 @@ + fi + fi + ++ if test -d "${dirname}/dtbs/${version}/imx6q-udoo.dtb" ; then ++ gettext_printf "Found device tree directory: %s\n" "${dirname}/dtbs/${version}/imx6q-udoo.dtb" >&2 ++ fi ++ + # The GRUB_DISABLE_SUBMENU option used to be different than others since it was + # mentioned in the documentation that has to be set to 'y' instead of 'true' to + # enable it. This caused a lot of confusion to users that set the option to 'y', diff --git a/libre/grub/PKGBUILD b/libre/grub/PKGBUILD index 1b031ac..8bf814d 100644 --- a/libre/grub/PKGBUILD +++ b/libre/grub/PKGBUILD @@ -4,36 +4,91 @@ # Contributor: Keshav Amburay <(the ddoott ridikulus ddoott rat) (aatt) (gemmaeiil) (ddoott) (ccoomm)> # Contributor: André Silva # Contributor: Márcio Silva -# Maintainer: Omar Vega Ramos - -## '1' to enable Xen support, '0' to disable -_XEN='0' - -## '1' to enable IA32-EFI build in Arch x86_64, '0' to disable -_IA32_EFI_IN_ARCH_X64='1' - -## '1' to enable IA32-XEN build in Arch x86_64, "0" to disable -_IA32_XEN_IN_ARCH_X64='1' - -## '1' to enable EMU build (x86_64 and i686 only), "0" to disable -_GRUB_EMU_BUILD='0' - -[[ "${CARCH}" = 'armv7h' ]] && _EFI_ARCH='arm' -[[ "${CARCH}" = 'x86_64' ]] && _EFI_ARCH='x86_64' -[[ "${CARCH}" = 'i686' ]] && _EFI_ARCH='i386' - -[[ "${CARCH}" = 'x86_64' ]] && _XEN_ARCH='x86_64' -[[ "${CARCH}" = 'i686' ]] && _XEN_ARCH='i386' - -[[ "${CARCH}" = 'armv7h' ]] && _EMU_ARCH='arm' -[[ "${CARCH}" = 'x86_64' ]] && _EMU_ARCH='x86_64' -[[ "${CARCH}" = 'i686' ]] && _EMU_ARCH='i386' +# Contributor: Omar Vega Ramos +# Maintainer: Luke T. Shumaker + +# Differences from Arch's `core/grub`: +# +# - Branded for Parabola, not Arch +# +# - Add arch+=(i686) +# +# - Add arch+=(armv7h) +# +# - Add more platforms: +# +# + Arch starts with: +# +# * --with-platform=pc (x86 BIOS) +# * --with-platform=efi (UEFI, x86 and ARM; if +# _IA32_EFI_IN_ARCH_X86=1 then the x86_64 +# package contains both 32bit and 64bit +# builds) +# * --with-platform=emu (if _GRUB_EMU_BUILD=1, user-mode, x86 and ARM) +# +# + Parabola additions, since +# +# "grub: add armv7h support (U-Boot and UEFI)" +# (2015-09-26, Márcio Alexandre Silva Delgado ) +# +# * --with-platform=uboot (ARM) +# +# + Parabola additions, since +# +# "grub: rm unused grub-extras in U-Boot, fix msg on U-Boot build; add IEEE1275 (OpenFirmware) and Libreboot support" +# (2015-09-26, Márcio Alexandre Silva Delgado ) +# +# * --with-platform=ieee1275 (OpenFirmware, x86-only) +# * --with-platform=coreboot (Libreboot, x86-only) +# +# + Parabola additions, since +# +# "grub: add QEMU, XEN and Multiboot support" +# (2015-09-27, Márcio Alexandre Silva Delgado ) +# +# * --with-platform=xen (if _XEN=1, x86-only; if +# _IA32_XEN_IN_ARCH_X86=1 then the x86_64 +# package contains both 32bit and 64bit +# builds) +# * --with-platform=qemu (a separate -kernel file for Qemu, x86-only) +# * --with-platform=multiboot (x86-only) + +## "1" to enable Xen support, "0" to disable +_XEN="0" + +## "1" to enable IA32-EFI build in Arch x86_64, "0" to disable +_IA32_EFI_IN_ARCH_X64="1" + +## "1" to enable IA32-XEN build in Arch x86_64, "0" to disable +_IA32_XEN_IN_ARCH_X64="1" + +## "1" to enable EMU build, "0" to disable +_GRUB_EMU_BUILD="0" + +[[ "${CARCH}" == 'armv7h' ]] && _EFI_ARCH='arm' +[[ "${CARCH}" == 'x86_64' ]] && _EFI_ARCH='x86_64' +[[ "${CARCH}" == 'i686' ]] && _EFI_ARCH='i386' + +[[ "${CARCH}" == 'x86_64' ]] && _XEN_ARCH='x86_64' +[[ "${CARCH}" == 'i686' ]] && _XEN_ARCH='i386' + +[[ "${CARCH}" == 'armv7h' ]] && _EMU_ARCH='arm' +[[ "${CARCH}" == 'x86_64' ]] && _EMU_ARCH='x86_64' +[[ "${CARCH}" == 'i686' ]] && _EMU_ARCH='i386' pkgbase='grub' pkgname=('grub') -[[ $CARCH = armv7h ]] && pkgname+=('grub-am335x_bone' 'grub-udoo' 'grub-omap3_beagle' - 'grub-omap3_beagle_xm' 'grub-omap3_beagle_xm_ab') -pkgdesc='GNU GRand Unified Bootloader (2), (Parabola rebranded)' +if [[ $CARCH == armv7h ]]; then + pkgname+=( + 'grub-am335x_bone' + 'grub-udoo' + 'grub-omap3_beagle' + 'grub-omap3_beagle_xm' + 'grub-omap3_beagle_xm_ab' + ) +fi +pkgdesc='GNU GRand Unified Bootloader (2)' +pkgdesc+=', (Parabola rebranded)' epoch=2 _tag='53c5000739db114c229fe69ec3d4b76b92441098' # git rev-parse grub-${_pkgver} _gnulib_commit='be584c56eb1311606e5ea1a36363b97bddb6eed3' @@ -41,76 +96,87 @@ _unifont_ver='13.0.06' _pkgver=2.06 pkgver=${_pkgver/-/} pkgrel=1 -pkgrel+=.parabola1 +pkgrel+=.parabola2 url='https://www.gnu.org/software/grub/' arch=('x86_64') -arch+=('i686' 'armv7h') +arch+=('i686') +arch+=('armv7h') license=('GPL3') backup=('etc/default/grub' 'etc/grub.d/40_custom') install="${pkgname}.install" options=('!makeflags') +conflicts=('grub-common' 'grub-bios' 'grub-emu' "grub-efi-${_EFI_ARCH}" 'grub-legacy') +conflicts+=('grub-parabola') +replaces=('grub-common' 'grub-bios' 'grub-emu' "grub-efi-${_EFI_ARCH}") +replaces+=('grub-parabola') +provides=('grub-common' 'grub-bios' 'grub-emu' "grub-efi-${_EFI_ARCH}") +if [[ "${CARCH}" = 'armv7h' ]]; then + conflicts=('grub-common' 'grub-emu' "grub-efi-${_EFI_ARCH}") + replaces=('grub-common' 'grub-emu' "grub-efi-${_EFI_ARCH}") + provides=('grub-common' 'grub-emu' "grub-efi-${_EFI_ARCH}") +fi + makedepends=('git' 'rsync' 'xz' 'freetype2' 'ttf-dejavu' 'python' 'autogen' - 'texinfo' 'help2man' 'gettext' 'device-mapper' 'fuse') + 'texinfo' 'help2man' 'gettext' 'device-mapper' 'fuse2') depends=('sh' 'xz' 'gettext' 'device-mapper') optdepends=('freetype2: For grub-mkfont usage' - 'fuse: For grub-mount usage') + 'fuse2: For grub-mount usage' + #'dosfstools: For grub-mkrescue FAT FS and EFI support' # drop 'and EFI' from the device-specific arm-uboot packages + #'efibootmgr: For grub-install EFI support' # drop from the device-specific arm-uboot packages + #'libisoburn: Provides xorriso for generating grub rescue iso using grub-mkrescue' # drop from the device-specific arm-uboot packages + 'os-prober: To detect other OSes when generating grub.cfg in BIOS systems' + 'mtools: For grub-mkrescue FAT FS support') if [[ "${CARCH}" = 'x86_64' ]] && [[ "${_XEN}" = '1' ]]; then makedepends+=('xen') fi -if [[ "${_GRUB_EMU_BUILD}" = "1" ]]; then - makedepends+=('libusbx' 'sdl') -fi - -if [[ "${CARCH}" = 'x86_64' ]] || [[ "${CARCH}" = 'i686' ]]; then - provides=('grub-common' 'grub-bios' 'grub-emu' "grub-efi-${_EFI_ARCH}") - conflicts=('grub-common' 'grub-bios' 'grub-emu' "grub-efi-${_EFI_ARCH}" 'grub-legacy' 'grub-parabola') - replaces=('grub-common' 'grub-bios' 'grub-emu' "grub-efi-${_EFI_ARCH}" 'grub-parabola') -elif [[ "${CARCH}" = 'armv7h' ]]; then - provides=('grub-common' 'grub-emu' "grub-efi-${_EFI_ARCH}") - conflicts=('grub-common' 'grub-emu' "grub-efi-${_EFI_ARCH}") - replaces=('grub-common' 'grub-emu' "grub-efi-${_EFI_ARCH}") +if [[ "${_GRUB_EMU_BUILD}" == "1" ]]; then + makedepends+=('libusbx' 'sdl') + #optdepends+=('libusbx: For grub-emu USB support' # drop from the device-specific arm-uboot packages + # 'sdl: For grub-emu SDL support') # drop from the device-specific arm-uboot packages fi validpgpkeys=('E53D497F3FA42AD8C9B4D1E835A93B74E82E4209' # Vladimir 'phcoder' Serbinenko 'BE5C23209ACDDACEB20DB0A28C8189F1988C2166' # Daniel Kiper - '95D2E9AB8740D8046387FD151A09227B1F435A33') #Paul Hardy + '95D2E9AB8740D8046387FD151A09227B1F435A33') # Paul Hardy source=("git+https://git.savannah.gnu.org/git/grub.git#tag=${_tag}?signed" "git+https://git.savannah.gnu.org/git/gnulib.git#commit=${_gnulib_commit}" "https://ftp.gnu.org/gnu/unifont/unifont-${_unifont_ver}/unifont-${_unifont_ver}.bdf.gz"{,.sig} - '0003-10_linux-20_linux_xen-detect-parabola-initramfs.patch' '0001-00_header-add-GRUB_COLOR_-variables.patch' - 'grub.default' - '0003-10_linux-20_linux_xen-detect-am335x_bone+am335x_boneblack-devicetree-file.patch' - '0003-10_linux-20_linux_xen-detect-omap3_beagle-devicetree-file.patch' - '0003-10_linux-20_linux_xen-detect-omap3_beagle_xm-devicetree-file.patch' - '0003-10_linux-20_linux_xen-detect-omap3_beagle_xm_ab-devicetree-file.patch' - '0003-10_linux-20_linux_xen-detect-udoo-devicetree-file.patch' - '0003-10_linux-20_linux_xen-rebrand-free-distros.patch') + '0002-10_linux-20_linux_xen-detect-parabola-initramfs.patch' + '0003-10_linux-20_linux_xen-rebrand-free-distros.patch' + 'grub.default') +source_armv7h=( + '1000-am335x_bone--10_linux-20_linux_xen-detect-devicetree-file.patch' + '1000-omap3_beagle--10_linux-20_linux_xen-detect-devicetree-file.patch' + '1000-omap3_beagle_xm--10_linux-20_linux_xen-detect-devicetree-file.patch' + '1000-omap3_beagle_xm_ab--10_linux-20_linux_xen-detect-devicetree-file.patch' + '1000-udoo--10_linux-20_linux_xen-detect-devicetree-file.patch') sha256sums=('SKIP' 'SKIP' 'b7668a5d498972dc4981250c49f83601babce797be19b4fdd0f2f1c6cfbd0fc5' 'SKIP' - 'b32a28cb5b97b0bb139c0ee2199b81a2aba124c2ead9b01cfd4485fd2551257f' '5dee6628c48eef79812bb9e86ee772068d85e7fcebbd2b2b8d1e19d24eda9dab' - 'ed6cf7d8efc391b9331322e4502f7469473a8ed05599c36e2b18f167b3cb7879' - '0f2e9abaf872e1e18dfe0cd1da42bdc4f49d3956f97a01c39b82c0e3016c1a32' - 'c0d84384db273d9fd6ea2aab2a9d8ba36402daf8daf591dcba329cfa02253c87' - 'ef105dcc067c673e543d4d5384aa7bf6b93e9eca96fec4323ab69a91ec079f56' - 'f5fb1673536d56a88b3d1aaec75501e4d0acca081ac658d1059ec276f9e062c6' - 'd8911a513166d2db337b9449542e0ad0e91b114f92dc4b876d88d77d23829a1d' - '7374137d183957ec8834ce749163c9fa98ff8ee61bbb74b0b38e29daf93857a4') + 'b32a28cb5b97b0bb139c0ee2199b81a2aba124c2ead9b01cfd4485fd2551257f' + '7374137d183957ec8834ce749163c9fa98ff8ee61bbb74b0b38e29daf93857a4' + 'ed6cf7d8efc391b9331322e4502f7469473a8ed05599c36e2b18f167b3cb7879') +sha256sums_armv7h=('0f2e9abaf872e1e18dfe0cd1da42bdc4f49d3956f97a01c39b82c0e3016c1a32' + 'c0d84384db273d9fd6ea2aab2a9d8ba36402daf8daf591dcba329cfa02253c87' + 'ef105dcc067c673e543d4d5384aa7bf6b93e9eca96fec4323ab69a91ec079f56' + 'f5fb1673536d56a88b3d1aaec75501e4d0acca081ac658d1059ec276f9e062c6' + 'd8911a513166d2db337b9449542e0ad0e91b114f92dc4b876d88d77d23829a1d') _backports=( ) _configure_options=( FREETYPE="pkg-config freetype2" + BUILD_FREETYPE="pkg-config freetype2" --enable-mm-debug --enable-nls --enable-device-mapper @@ -143,10 +209,10 @@ prepare() { echo "Patch to enable GRUB_COLOR_* variables in grub-mkconfig..." ## Based on http://lists.gnu.org/archive/html/grub-devel/2012-02/msg00021.html - patch -Np1 -i "${srcdir}/0001-00_header-add-GRUB_COLOR_-variables.patch" + patch -Np1 -i "${srcdir}/0001-00_header-add-GRUB_COLOR_-variables.patch" echo "Patch to detect of Parabola GNU/Linux-libre initramfs images by grub-mkconfig..." - patch -Np1 -i "${srcdir}/0003-10_linux-20_linux_xen-detect-parabola-initramfs.patch" + patch -Np1 -i "${srcdir}/0002-10_linux-20_linux_xen-detect-parabola-initramfs.patch" echo "Fix DejaVuSans.ttf location so that grub-mkfont can create *.pf2 files for starfield theme..." sed 's|/usr/share/fonts/dejavu|/usr/share/fonts/dejavu /usr/share/fonts/TTF|g' -i "configure.ac" @@ -157,451 +223,248 @@ prepare() { echo "Fix mkinitcpio 'rw' FS#36275..." sed 's| ro | rw |g' -i "util/grub.d/10_linux.in" - echo "Pull in latest language files..." - ./linguas.sh + # linguas.sh rsync's from translationproject.org; this will + # fail with libremakepkg because networking is turned off. + # And we can't "optimistically" run it, because it doesn't do + # error-handling and will delete files that we need. If + # pulling in updated translations is important, then it needs + # to be done prior to prepare(). + # + #echo "Pull in latest language files..." + #./linguas.sh echo "Avoid problem with unifont during compile of grub..." - # http://savannah.gnu.org/bugs/?40330 and https://bugs.archlinux.org/task/37847 + # http://savannah.gnu.org/bugs/?40330 and https://bugs.archlinux.org/task/37847 gzip -cd "${srcdir}/unifont-${_unifont_ver}.bdf.gz" > "unifont.bdf" -} - -_build_grub-efi() { - echo "Copy the source for building the ${_EFI_ARCH} EFI part..." - cp -r "${srcdir}/grub/" "${srcdir}/grub-efi-${_EFI_ARCH}/" - cd "${srcdir}/grub-efi-${_EFI_ARCH}/" - - echo "Unset all compiler FLAGS for ${_EFI_ARCH} EFI build..." - unset CFLAGS - unset CPPFLAGS - unset CXXFLAGS - unset LDFLAGS - unset MAKEFLAGS - echo "Run bootstrap for ${_EFI_ARCH} EFI build..." + echo "Run bootstrap..." ./bootstrap \ --gnulib-srcdir="${srcdir}/gnulib/" \ --no-git - echo "Run ./configure for ${_EFI_ARCH} EFI build..." - ./configure \ - --with-platform="efi" \ - --target="${_EFI_ARCH}" \ - --disable-efiemu \ - --enable-boot-time \ - "${_configure_options[@]}" - - echo "Run make for ${_EFI_ARCH} EFI build..." - make + echo "Make translations reproducible..." + sed -i '1i /^PO-Revision-Date:/ d' po/*.sed } -_build_grub-xen() { - echo "Copy the source for building the ${_XEN_ARCH} XEN part..." - cp -r "${srcdir}/grub/" "${srcdir}/grub-xen-${_XEN_ARCH}/" - cd "${srcdir}/grub-xen-${_XEN_ARCH}/" +# Usage: _build_grub DIRSUFFIX 'Human Description' CPU-PLATFORM CONFIG_OPTIONS... +_build_grub() { + local bld_name="$1" + local bld_desc="$2" + local bld_cpu="${3%-*}" + local bld_plat="${3#*-}" + local bld_configure_options=("${@:4}") + + echo "Build grub ${bld_desc} stuff..." - echo "Unset all compiler FLAGS for ${_XEN_ARCH} XEN build..." + echo "Copy the source for building the ${bld_desc} part..." + cp -r "${srcdir}/grub/" "${srcdir}/grub-${bld_name}/" + cd "${srcdir}/grub-${bld_name}/" + + echo "Unset all compiler FLAGS for ${bld_desc} build..." unset CFLAGS unset CPPFLAGS unset CXXFLAGS unset LDFLAGS unset MAKEFLAGS - echo "Run bootstrap for ${_XEN_ARCH} XEN build..." - ./bootstrap \ - --gnulib-srcdir="${srcdir}/gnulib/" \ - --no-git - - echo "Run ./configure for ${_XEN_ARCH} XEN build..." + echo "Run ./configure for ${bld_desc} build..." ./configure \ - --with-platform='xen' \ - --target="${_XEN_ARCH}" \ - --disable-efiemu \ - --enable-boot-time \ - "${_configure_options[@]}" + --with-platform="${bld_plat}" \ + --target="${bld_cpu}" \ + "${bld_configure_options[@]}" + + echo "Make info pages reproducible..." + touch -d "@${SOURCE_DATE_EPOCH}" $(find -name '*.texi') - echo "Run make for ${_XEN_ARCH} XEN build..." + echo "Run make for ${bld_desc} build..." make } _build_grub-bios() { - echo 'Set ARCH dependent variables for BIOS build...' - if [[ "${CARCH}" = 'x86_64' ]]; then - _EFIEMU='--enable-efiemu' + echo "Set ARCH dependent variables for bios build..." + local _EFIEMU + if [[ "${CARCH}" == 'x86_64' ]]; then + _EFIEMU="--enable-efiemu" else - _EFIEMU='--disable-efiemu' + _EFIEMU="--disable-efiemu" fi - echo 'Copy the source for building the BIOS part...' - cp -r "${srcdir}/grub/" "${srcdir}/grub-bios/" - cd "${srcdir}/grub-bios/" - - echo 'Unset all compiler FLAGS for BIOS build...' - unset CFLAGS - unset CPPFLAGS - unset CXXFLAGS - unset LDFLAGS - unset MAKEFLAGS - - echo 'Run bootstrap for BIOS build...' - ./bootstrap \ - --gnulib-srcdir="${srcdir}/gnulib/" \ - --no-git - - echo 'Run ./configure for BIOS build...' - ./configure \ - --with-platform='pc' \ - --target='i386' \ + _build_grub 'bios' 'bios' \ + 'i386-pc' \ "${_EFIEMU}" \ --enable-boot-time \ "${_configure_options[@]}" - - echo 'Run make for BIOS build...' - make } -_build_grub-qemu() { - echo 'Copy the source for building the QEMU part...' - cp -r "${srcdir}/grub/" "${srcdir}/grub-qemu/" - cd "${srcdir}/grub-qemu/" - - echo 'Unset all compiler FLAGS for QEMU build...' - unset CFLAGS - unset CPPFLAGS - unset CXXFLAGS - unset LDFLAGS - unset MAKEFLAGS +_build_grub-efi() { + _build_grub "efi-${_EFI_ARCH}" "${_EFI_ARCH} efi" \ + "${_EFI_ARCH}-efi" \ + --disable-efiemu \ + --enable-boot-time \ + "${_configure_options[@]}" +} - echo 'Run bootstrap for QEMU build...' - ./bootstrap \ - --gnulib-srcdir="${srcdir}/gnulib/" \ - --no-git +_build_grub-emu() { + _build_grub 'emu' 'emu' \ + "${_EMU_ARCH}-emu" \ + --enable-grub-emu-usb=no \ + --enable-grub-emu-sdl=no \ + --disable-grub-emu-pci \ + "${_configure_options[@]}" +} - echo 'Run ./configure for QEMU build...' - ./configure \ - BUILD_FREETYPE="pkg-config freetype2" \ - --with-platform='qemu' \ - --target='i386' \ +_build_grub-xen() { + _build_grub "xen-${_XEN_ARCH}" "${_XEN_ARCH} XEN" \ + "${_XEN_ARCH}-xen" \ --disable-efiemu \ --enable-boot-time \ "${_configure_options[@]}" +} - echo 'Run make for QEMU build...' - make +_build_grub-qemu() { + _build_grub 'qemu' 'QEMU' \ + 'i386-qemu' \ + --disable-efiemu \ + --enable-boot-time \ + "${_configure_options[@]}" } _build_grub-ieee1275() { - echo 'Copy the source for building the IEEE1275 (OpenFirmware) part...' - cp -r "${srcdir}/grub/" "${srcdir}/grub-ieee1275/" - cd "${srcdir}/grub-ieee1275/" - - echo 'Unset all compiler FLAGS for IEEE1275 (OpenFirmware) build...' - unset CFLAGS - unset CPPFLAGS - unset CXXFLAGS - unset LDFLAGS - unset MAKEFLAGS - - echo 'Run bootstrap for IEEE1275 (OpenFirmware) build...' - ./bootstrap \ - --gnulib-srcdir="${srcdir}/gnulib/" \ - --no-git - - echo 'Run ./configure for IEEE1275 (OpenFirmware) build...' - ./configure \ - --with-platform='ieee1275' \ - --target='i386' \ + _build_grub 'ieee1275' 'IEEE1275 (OpenFirmware)' \ + 'i386-ieee1275' \ --disable-efiemu \ --enable-boot-time \ "${_configure_options[@]}" - - echo 'Run make for IEEE1275 (OpenFirmware) build...' - make } _build_grub-libreboot() { - echo 'Copy the source for building the Libreboot part...' - cp -r "${srcdir}/grub/" "${srcdir}/grub-libreboot/" - cd "${srcdir}/grub-libreboot/" - - echo 'Unset all compiler FLAGS for Libreboot build...' - unset CFLAGS - unset CPPFLAGS - unset CXXFLAGS - unset LDFLAGS - unset MAKEFLAGS - - echo 'Run bootstrap for Libreboot build...' - ./bootstrap \ - --gnulib-srcdir="${srcdir}/gnulib/" \ - --no-git - - echo 'Run ./configure for Libreboot build...' - ./configure \ - BUILD_FREETYPE="pkg-config freetype2" \ - --with-platform='coreboot' \ - --target='i386' \ + _build_grub 'libreboot' 'Libreboot' \ + 'i386-coreboot' \ --disable-efiemu \ --enable-boot-time \ "${_configure_options[@]}" - - echo 'Run make for Libreboot build...' - make } _build_grub-multiboot() { - echo 'Copy the source for building the Multiboot part...' - cp -r "${srcdir}/grub/" "${srcdir}/grub-multiboot/" - cd "${srcdir}/grub-multiboot/" - - echo 'Unset all compiler FLAGS for Multiboot build...' - unset CFLAGS - unset CPPFLAGS - unset CXXFLAGS - unset LDFLAGS - unset MAKEFLAGS - - echo 'Run bootstrap for Multiboot build...' - ./bootstrap \ - --gnulib-srcdir="${srcdir}/gnulib/" \ - --no-git - - echo 'Run ./configure for Multiboot build...' - ./configure \ - --with-platform='multiboot' \ - --target='i386' \ + _build_grub 'multiboot' 'Multiboot' \ + 'i386-multiboot' \ --disable-efiemu \ --enable-boot-time \ "${_configure_options[@]}" - - echo 'Run make for Multiboot build...' - make -} - -_build_grub-emu() { - echo 'Copy the source for building the emu part...' - cp -r "${srcdir}/grub/" "${srcdir}/grub-emu/" - cd "${srcdir}/grub-emu/" - - echo 'Unset all compiler FLAGS for emu build...' - unset CFLAGS - unset CPPFLAGS - unset CXXFLAGS - unset LDFLAGS - unset MAKEFLAGS - - echo 'Run bootstrap for emu build...' - ./bootstrap \ - --gnulib-srcdir="${srcdir}/gnulib/" \ - --no-git - - echo 'Run ./configure for emu build...' - ./configure \ - --with-platform='emu' \ - --target="${_EMU_ARCH}" \ - --enable-grub-emu-usb=no \ - --enable-grub-emu-sdl=no \ - --disable-grub-emu-pci \ - "${_configure_options[@]}" - - echo 'Run make for emu build...' - make } _build_grub-uboot() { - echo "Copy the source for building the U-Boot part..." - cp -r "${srcdir}/grub/" "${srcdir}/grub-uboot/" - cd "${srcdir}/grub-uboot/" - - echo 'Unset all compiler FLAGS for U-Boot build...' - unset CFLAGS - unset CPPFLAGS - unset CXXFLAGS - unset LDFLAGS - unset MAKEFLAGS - - #sed -i '\|grub_arm_disable_caches_mmu|,+4 d - # ' grub-core/loader/arm/linux.c - - echo 'Run bootstrap for U-Boot build...' - ./bootstrap \ - --gnulib-srcdir="${srcdir}/gnulib/" \ - --no-git - - echo 'Run ./configure for U-Boot build...' - ./configure \ - --with-platform='uboot' \ - --target='arm' \ + _build_grub 'uboot' 'U-Boot' \ + 'arm-uboot' \ --disable-efiemu \ --enable-boot-time \ "${_configure_options[@]}" - - echo 'Run make for U-Boot build...' - make } build() { cd "${srcdir}/grub/" - if [[ "${CARCH}" = 'x86_64' ]] || [[ "${CARCH}" = 'i686' ]] || [[ "${CARCH}" = 'armv7h' ]]; then - echo "Build grub ${_EFI_ARCH} EFI stuff..." - _build_grub-efi + # All-CPU platforms #################################################### - if [[ "${CARCH}" = 'x86_64' ]] && [[ "${_IA32_EFI_IN_ARCH_X64}" = '1' ]]; then - echo 'Build grub i386 EFI stuff...' - _EFI_ARCH='i386' _build_grub-efi - fi + _build_grub-efi + if [[ "${CARCH}" == "x86_64" ]] && [[ "${_IA32_EFI_IN_ARCH_X64}" == "1" ]]; then + _EFI_ARCH="i386" _build_grub-efi fi - if [[ "${CARCH}" = 'x86_64' ]] || [[ "${CARCH}" = 'i686' ]]; then - if [[ "${_XEN}" = '1' ]]; then - echo "Build grub ${_XEN_ARCH} XEN stuff..." - _build_grub-xen + if [[ "${_GRUB_EMU_BUILD}" == "1" ]]; then + _build_grub-emu + fi - if [[ "${_IA32_XEN_IN_ARCH_X64}" = '1' ]]; then - echo 'Build grub i386 XEN stuff...' - _XEN_ARCH='i386' _build_grub-xen - fi - fi + # CPU-specific platforms ############################################### - echo 'Build grub BIOS stuff...' + case "$CARCH" in + x86_64|i686) _build_grub-bios - - echo 'Build grub QEMU stuff...' _build_grub-qemu - - echo 'Build grub IEEE1275 (OpenFirmware) stuff...' _build_grub-ieee1275 - - echo 'Build grub Libreboot stuff...' _build_grub-libreboot - - echo 'Build grub Multiboot stuff...' _build_grub-multiboot - elif [[ "${CARCH}" = 'armv7h' ]]; then - echo 'Build grub U-Boot stuff...' + if [[ "${_XEN}" = '1' ]]; then + _build_grub-xen + if [[ "${CARCH}" = 'x86_64' ]] && [[ "${_IA32_XEN_IN_ARCH_X64}" = '1' ]]; then + _XEN_ARCH='i386' _build_grub-xen + fi + fi + ;; + armv7h) _build_grub-uboot - fi - - if [[ "${_GRUB_EMU_BUILD}" = '1' ]]; then - echo 'Build grub emu stuff...' - _build_grub-emu - fi + ;; + esac } -_package_grub-efi() { - cd "${srcdir}/grub-efi-${_EFI_ARCH}/" - - echo "Run make install for ${_EFI_ARCH} EFI build..." - make DESTDIR="${pkgdir}/" bashcompletiondir="/usr/share/bash-completion/completions" install +# Usage: _package_grub DIRSUFFIX 'Human Description' CPU-PLATFORM +_package_grub() { + local bld_name="$1" + local bld_desc="$2" + local bld_cpuplat="$3" - echo "Remove gdb debugging related files for ${_EFI_ARCH} EFI build..." - rm -f "${pkgdir}/usr/lib/grub/${_EFI_ARCH}-efi"/*.module || true - rm -f "${pkgdir}/usr/lib/grub/${_EFI_ARCH}-efi"/*.image || true - rm -f "${pkgdir}/usr/lib/grub/${_EFI_ARCH}-efi"/{kernel.exec,gdb_grub,gmodule.pl} || true -} + echo "Package grub ${bld_desc} stuff..." -_package_grub-xen() { - cd "${srcdir}/grub-xen-${_XEN_ARCH}/" + cd "${srcdir}/grub-${bld_name}/" - echo "Run make install for ${_XEN_ARCH} XEN build..." + echo "Run make install for ${bld_desc} build..." make DESTDIR="${pkgdir}/" bashcompletiondir="/usr/share/bash-completion/completions" install - echo "Remove gdb debugging related files for ${_XEN_ARCH} XEN build..." - rm -f "${pkgdir}/usr/lib/grub/${_XEN_ARCH}-xen"/*.module || true - rm -f "${pkgdir}/usr/lib/grub/${_XEN_ARCH}-xen"/*.image || true - rm -f "${pkgdir}/usr/lib/grub/${_XEN_ARCH}-xen"/{kernel.exec,gdb_grub,gmodule.pl} || true + echo "Remove gdb debugging related files for ${bld_desc} build..." + rm -f "${pkgdir}/usr/lib/grub/${bld_cpuplat}"/*.module || true + rm -f "${pkgdir}/usr/lib/grub/${bld_cpuplat}"/*.image || true + rm -f "${pkgdir}/usr/lib/grub/${bld_cpuplat}"/{kernel.exec,gdb_grub,gmodule.pl} || true } _package_grub-bios() { - cd "${srcdir}/grub-bios/" - - echo 'Run make install for BIOS build...' - make DESTDIR="${pkgdir}/" bashcompletiondir="/usr/share/bash-completion/completions" install + _package_grub 'bios' 'bios' \ + 'i386-pc' +} - echo 'Remove gdb debugging related files for BIOS build...' - rm -f "${pkgdir}/usr/lib/grub/i386-pc"/*.module || true - rm -f "${pkgdir}/usr/lib/grub/i386-pc"/*.image || true - rm -f "${pkgdir}/usr/lib/grub/i386-pc"/{kernel.exec,gdb_grub,gmodule.pl} || true +_package_grub-efi() { + _package_grub "efi-${_EFI_ARCH}" "${_EFI_ARCH} efi" \ + "${_EFI_ARCH}-efi" } -_package_grub-qemu() { - cd "${srcdir}/grub-qemu/" +_package_grub-emu() { + _package_grub 'emu' 'emu' \ + "${_EMU_ARCH}-emu" +} - echo 'Run make install for QEMU build...' - make DESTDIR="${pkgdir}/" bashcompletiondir="/usr/share/bash-completion/completions" install +_package_grub-xen() { + _package_grub "xen-${_XEN_ARCH}" "${_XEN_ARCH} XEN" \ + "${_XEN_ARCH}-xen" +} - echo 'Remove gdb debugging related files for QEMU build...' - rm -f "${pkgdir}/usr/lib/grub/i386-qemu"/*.module || true - rm -f "${pkgdir}/usr/lib/grub/i386-qemu"/*.image || true - rm -f "${pkgdir}/usr/lib/grub/i386-qemu"/{kernel.exec,gdb_grub,gmodule.pl} || true +_package_grub-qemu() { + _package_grub 'qemu' 'QEMU' \ + 'i386-qemu' } _package_grub-ieee1275() { - cd "${srcdir}/grub-ieee1275/" - - echo 'Run make install for IEEE1275 (OpenFirmware) build...' - make DESTDIR="${pkgdir}/" bashcompletiondir="/usr/share/bash-completion/completions" install - - echo 'Remove gdb debugging related files for IEEE1275 (OpenFirmware) build...' - rm -f "${pkgdir}/usr/lib/grub/i386-ieee1275"/*.module || true - rm -f "${pkgdir}/usr/lib/grub/i386-ieee1275"/*.image || true - rm -f "${pkgdir}/usr/lib/grub/i386-ieee1275"/{kernel.exec,gdb_grub,gmodule.pl} || true + _package_grub 'ieee1275' 'IEEE1275 (OpenFirmware)' \ + 'i386-ieee1275' } _package_grub-libreboot() { - cd "${srcdir}/grub-libreboot/" - - echo 'Run make install for Libreboot build...' - make DESTDIR="${pkgdir}/" bashcompletiondir="/usr/share/bash-completion/completions" install - - echo 'Remove gdb debugging related files for Libreboot build...' - rm -f "${pkgdir}/usr/lib/grub/i386-coreboot"/*.module || true - rm -f "${pkgdir}/usr/lib/grub/i386-coreboot"/*.image || true - rm -f "${pkgdir}/usr/lib/grub/i386-coreboot"/{kernel.exec,gdb_grub,gmodule.pl} || true + _package_grub 'libreboot' 'Libreboot' \ + 'i386-coreboot' } _package_grub-multiboot() { - cd "${srcdir}/grub-multiboot/" - - echo 'Run make install for Multiboot build...' - make DESTDIR="${pkgdir}/" bashcompletiondir="/usr/share/bash-completion/completions" install - - echo 'Remove gdb debugging related files for Multiboot build...' - rm -f "${pkgdir}/usr/lib/grub/i386-multiboot"/*.module || true - rm -f "${pkgdir}/usr/lib/grub/i386-multiboot"/*.image || true - rm -f "${pkgdir}/usr/lib/grub/i386-multiboot"/{kernel.exec,gdb_grub,gmodule.pl} || true -} - -_package_grub-emu() { - cd "${srcdir}/grub-emu/" - - echo 'Run make install for emu build...' - make DESTDIR="${pkgdir}/" bashcompletiondir="/usr/share/bash-completion/completions" install - - echo 'Remove gdb debugging related files for emu build...' - rm -f "${pkgdir}/usr/lib/grub/${_EMU_ARCH}-emu"/*.module || true - rm -f "${pkgdir}/usr/lib/grub/${_EMU_ARCH}-emu"/*.image || true - rm -f "${pkgdir}/usr/lib/grub/${_EMU_ARCH}-emu"/{kernel.exec,gdb_grub,gmodule.pl} || true + _package_grub 'multiboot' 'Multiboot' \ + 'i386-multiboot' } _package_grub-uboot() { - cd "${srcdir}/grub-uboot/" - - echo 'Run make install for U-Boot build...' - make DESTDIR="${pkgdir}/" bashcompletiondir="/usr/share/bash-completion/completions" install - - echo 'Remove gdb debugging related files for U-Boot build...' - rm -f "${pkgdir}/usr/lib/grub/arm-uboot"/*.module || true - rm -f "${pkgdir}/usr/lib/grub/arm-uboot"/*.image || true - rm -f "${pkgdir}/usr/lib/grub/arm-uboot"/{kernel.exec,gdb_grub,gmodule.pl} || true + _package_grub 'uboot' 'U-Boot' \ + 'arm-uboot' } package_grub() { optdepends+=('dosfstools: For grub-mkrescue FAT FS and EFI support' 'efibootmgr: For grub-install EFI support' - 'libisoburn: Provides xorriso for generating grub rescue iso using grub-mkrescue' - 'os-prober: To detect other OSes when generating grub.cfg in BIOS systems' - 'mtools: For grub-mkrescue FAT FS support') + 'libisoburn: Provides xorriso for generating grub rescue iso using grub-mkrescue') if [[ "${_GRUB_EMU_BUILD}" = '1' ]]; then optdepends+=('libusbx: For grub-emu USB support' @@ -610,214 +473,83 @@ package_grub() { cd "${srcdir}/grub/" - if [[ "${CARCH}" = 'x86_64' ]] || [[ "${CARCH}" = 'i686' ]] || [[ "${CARCH}" = 'armv7h' ]]; then - echo "Package grub ${_EFI_ARCH} EFI stuff..." - _package_grub-efi + # All-CPU platforms #################################################### - if [[ "${CARCH}" = 'x86_64' ]] && [[ "${_IA32_EFI_IN_ARCH_X64}" = '1' ]]; then - echo 'Package grub i386 EFI stuff...' - _EFI_ARCH='i386' _package_grub-efi - fi + _package_grub-efi + if [[ "${CARCH}" == "x86_64" ]] && [[ "${_IA32_EFI_IN_ARCH_X64}" == "1" ]]; then + _EFI_ARCH="i386" _package_grub-efi fi - if [[ "${CARCH}" = 'x86_64' ]] || [[ "${CARCH}" = 'i686' ]]; then - if [[ "${_XEN}" = '1' ]]; then - echo "Package grub ${_XEN_ARCH} XEN stuff..." - _package_grub-xen + if [[ "${_GRUB_EMU_BUILD}" == "1" ]]; then + _package_grub-emu + fi - if [[ "${_IA32_XEN_IN_ARCH_X64}" = '1' ]]; then - echo 'Package grub i386 XEN stuff...' - _XEN_ARCH='i386' _package_grub-xen - fi - fi + # CPU-specific platforms ############################################### - echo 'Package grub BIOS stuff...' + case "$CARCH" in + x86_64|i686) _package_grub-bios - - echo 'Package grub QEMU stuff...' _package_grub-qemu - - echo 'Package grub IEEE1275 (OpenFirmware) stuff...' _package_grub-ieee1275 - - echo 'Package grub Libreboot stuff...' _package_grub-libreboot - - echo 'Package grub Multiboot stuff...' _package_grub-multiboot - elif [[ "${CARCH}" = 'armv7h' ]]; then - echo 'Package grub U-Boot stuff...' + if [[ "${_XEN}" = '1' ]]; then + _package_grub-xen + if [[ "${CARCH}" = 'x86_64' ]] && [[ "${_IA32_XEN_IN_ARCH_X64}" = '1' ]]; then + _XEN_ARCH='i386' _package_grub-xen + fi + fi + ;; + armv7h) _package_grub-uboot - fi + ;; + esac - if [[ "${_GRUB_EMU_BUILD}" = '1' ]]; then - echo 'Package grub emu stuff...' - _package_grub-emu - fi + # Common ############################################################### - echo 'Install /etc/default/grub (used by grub-mkconfig)...' + echo "Install /etc/default/grub (used by grub-mkconfig)..." install -D -m0644 "${srcdir}/grub.default" "${pkgdir}/etc/default/grub" } -package_grub-am335x_bone() { - pkgdesc='GNU GRand Unified Bootloader (2) for BeagleBone and BeagleBone Black (am335x-bone), (Parabola rebranded)' - optdepends+=('dosfstools: For grub-mkrescue FAT FS' - 'os-prober: To detect other OSes when generating grub.cfg in BIOS systems' - 'mtools: For grub-mkrescue FAT FS support') - - echo "Copy the source for packaging the U-Boot (am335x-bone) part..." - cp -r "${srcdir}/grub-uboot/" "${srcdir}/grub-uboot_am335x-bone/" - cd "${srcdir}/grub-uboot_am335x-bone/" +_package_grub-uboot-dev() { + local devname=$1 + local devdesc=$2 - echo 'Patch to detect am335x-bone device tree blob file (dtb)...' - patch -Np1 -i "${srcdir}/0003-10_linux-20_linux_xen-detect-am335x_bone+am335x_boneblack-devicetree-file.patch" + pkgdesc="GNU GRand Unified Bootloader (2) for $devdesc ($devname), (Parabola rebranded)" + optdepends+=('dosfstools: For grub-mkrescue FAT FS') - echo 'Package grub U-Boot stuff...' - ## _package_grub-uboot + echo "Copy the source for packaging the U-Boot ($devname) part..." + cp -r "${srcdir}/grub-uboot/" "${srcdir}/grub-uboot_$devname/" + cd "${srcdir}/grub-uboot_$devname/" - echo 'Run make install for U-Boot build...' - make DESTDIR="${pkgdir}/" bashcompletiondir="/usr/share/bash-completion/completions" install + echo "Patch to detect $devname device tree blob file (dtb)..." + patch -Np1 -i "${srcdir}/1000-${pkgname#grub-}--10_linux-20_linux_xen-detect-devicetree-file.patch" - echo 'Remove gdb debugging related files for U-Boot build...' - rm -f "${pkgdir}/usr/lib/grub/arm-uboot"/*.module || true - rm -f "${pkgdir}/usr/lib/grub/arm-uboot"/*.image || true - rm -f "${pkgdir}/usr/lib/grub/arm-uboot"/{kernel.exec,gdb_grub,gmodule.pl} || true + _package_grub "uboot_$devname" "$devdesc" 'arm' 'uboot' echo 'Install /etc/default/grub (used by grub-mkconfig)...' install -D -m0644 "${srcdir}/grub.default" "${pkgdir}/etc/default/grub" +} - ## echo 'Patch to detect am335x-bone device tree blob file (dtb)...' - ## cd "${pkgdir}/etc/grub.d/" - ## patch -Np1 -i "${srcdir}/0003-10_linux-20_linux_xen-detect-am335x_bone+am335x_boneblack-devicetree-file.patch" +package_grub-am335x_bone() { + _package_grub-uboot-dev 'am335x-bone' 'BeagleBone and BeagleBone Black' } package_grub-omap3_beagle() { - pkgdesc='GNU GRand Unified Bootloader (2) for BeagleBoard (omap3_beagle), (Parabola rebranded)' provides+=('grub-beagleboard') - optdepends+=('dosfstools: For grub-mkrescue FAT FS' - 'os-prober: To detect other OSes when generating grub.cfg in BIOS systems' - 'mtools: For grub-mkrescue FAT FS support') - - echo "Copy the source for packaging the U-Boot (omap3_beagle) part..." - cp -r "${srcdir}/grub-uboot/" "${srcdir}/grub-uboot_omap3_beagle/" - cd "${srcdir}/grub-uboot_omap3_beagle/" - - echo 'Patch to detect omap3_beagle device tree blob file (dtb)...' - patch -Np1 -i "${srcdir}/0003-10_linux-20_linux_xen-detect-omap3_beagle-devicetree-file.patch" - - echo 'Package grub U-Boot stuff...' - ## _package_grub-uboot - - echo 'Run make install for U-Boot build...' - make DESTDIR="${pkgdir}/" bashcompletiondir="/usr/share/bash-completion/completions" install - - echo 'Remove gdb debugging related files for U-Boot build...' - rm -f "${pkgdir}/usr/lib/grub/arm-uboot"/*.module || true - rm -f "${pkgdir}/usr/lib/grub/arm-uboot"/*.image || true - rm -f "${pkgdir}/usr/lib/grub/arm-uboot"/{kernel.exec,gdb_grub,gmodule.pl} || true - - echo 'Install /etc/default/grub (used by grub-mkconfig)...' - install -D -m0644 "${srcdir}/grub.default" "${pkgdir}/etc/default/grub" - - ## echo 'Patch to detect omap3_beagle device tree blob file (dtb)...' - ## cd "${pkgdir}/etc/grub.d/" - ## patch -Np1 -i "${srcdir}/0003-10_linux-20_linux_xen-detect-omap3_beagle-devicetree-file.patch" + _package_grub-uboot-dev "${pkgname#grub-}" 'BeagleBoard' } package_grub-omap3_beagle_xm() { - pkgdesc='GNU GRand Unified Bootloader (2) for BeagleBoard-xM (omap3_beagle_xm), (Parabola rebranded)' provides+=('grub-beagleboard') - optdepends+=('dosfstools: For grub-mkrescue FAT FS' - 'os-prober: To detect other OSes when generating grub.cfg in BIOS systems' - 'mtools: For grub-mkrescue FAT FS support') - - echo "Copy the source for packaging the U-Boot (omap3_beagle_xm) part..." - cp -r "${srcdir}/grub-uboot/" "${srcdir}/grub-uboot_omap3_beagle_xm/" - cd "${srcdir}/grub-uboot_omap3_beagle_xm/" - - echo 'Patch to detect omap3_beagle_xm device tree blob file (dtb)...' - patch -Np1 -i "${srcdir}/0003-10_linux-20_linux_xen-detect-omap3_beagle_xm-devicetree-file.patch" - - echo 'Package grub U-Boot stuff...' - ## _package_grub-uboot - - echo 'Run make install for U-Boot build...' - make DESTDIR="${pkgdir}/" bashcompletiondir="/usr/share/bash-completion/completions" install - - echo 'Remove gdb debugging related files for U-Boot build...' - rm -f "${pkgdir}/usr/lib/grub/arm-uboot"/*.module || true - rm -f "${pkgdir}/usr/lib/grub/arm-uboot"/*.image || true - rm -f "${pkgdir}/usr/lib/grub/arm-uboot"/{kernel.exec,gdb_grub,gmodule.pl} || true - - echo 'Install /etc/default/grub (used by grub-mkconfig)...' - install -D -m0644 "${srcdir}/grub.default" "${pkgdir}/etc/default/grub" - - ## echo 'Patch to detect omap3_beagle_xm device tree blob file (dtb)...' - ## cd "${pkgdir}/etc/grub.d/" - ## patch -Np1 -i "${srcdir}/0003-10_linux-20_linux_xen-detect-omap3_beagle_xm-devicetree-file.patch" + _package_grub-uboot-dev "${pkgname#grub-}" 'BeagleBoard-xM' } package_grub-omap3_beagle_xm_ab() { - pkgdesc='GNU GRand Unified Bootloader (2) for BeagleBoard-xM rev A/B (omap3_beagle_xm_ab), (Parabola rebranded)' provides+=('grub-beagleboard') - optdepends+=('dosfstools: For grub-mkrescue FAT FS' - 'os-prober: To detect other OSes when generating grub.cfg in BIOS systems' - 'mtools: For grub-mkrescue FAT FS support') - - echo "Copy the source for packaging the U-Boot (omap3_beagle_xm_ab) part..." - cp -r "${srcdir}/grub-uboot/" "${srcdir}/grub-uboot_omap3_beagle_xm_ab/" - cd "${srcdir}/grub-uboot_omap3_beagle_xm_ab/" - - echo 'Patch to detect omap3_beagle_xm_ab device tree blob file (dtb)...' - patch -Np1 -i "${srcdir}/0003-10_linux-20_linux_xen-detect-omap3_beagle_xm_ab-devicetree-file.patch" - - echo 'Package grub U-Boot stuff...' - ## _package_grub-uboot - - echo 'Run make install for U-Boot build...' - make DESTDIR="${pkgdir}/" bashcompletiondir="/usr/share/bash-completion/completions" install - - echo 'Remove gdb debugging related files for U-Boot build...' - rm -f "${pkgdir}/usr/lib/grub/arm-uboot"/*.module || true - rm -f "${pkgdir}/usr/lib/grub/arm-uboot"/*.image || true - rm -f "${pkgdir}/usr/lib/grub/arm-uboot"/{kernel.exec,gdb_grub,gmodule.pl} || true - - echo 'Install /etc/default/grub (used by grub-mkconfig)...' - install -D -m0644 "${srcdir}/grub.default" "${pkgdir}/etc/default/grub" - - ## echo 'Patch to detect omap3_beagle_xm_ab device tree blob file (dtb)...' - ## cd "${pkgdir}/etc/grub.d/" - ## patch -Np1 -i "${srcdir}/0003-10_linux-20_linux_xen-detect-omap3_beagle_xm_ab-devicetree-file.patch" + _package_grub-uboot-dev "${pkgname#grub-}" 'BeagleBoard-xM rev A/B' } package_grub-udoo() { - pkgdesc='GNU GRand Unified Bootloader (2) for UDOO (udoo), (Parabola rebranded)' - optdepends+=('dosfstools: For grub-mkrescue FAT FS' - 'os-prober: To detect other OSes when generating grub.cfg in BIOS systems' - 'mtools: For grub-mkrescue FAT FS support') - - echo "Copy the source for packaging the U-Boot (udoo) part..." - cp -r "${srcdir}/grub-uboot/" "${srcdir}/grub-uboot_udoo/" - cd "${srcdir}/grub-uboot_udoo/" - - echo 'Patch to detect udoo device tree blob file (dtb)...' - patch -Np1 -i "${srcdir}/0003-10_linux-20_linux_xen-detect-udoo-devicetree-file.patch" - - echo 'Package grub U-Boot stuff...' - ## _package_grub-uboot - - echo 'Run make install for U-Boot build...' - make DESTDIR="${pkgdir}/" bashcompletiondir="/usr/share/bash-completion/completions" install - - echo 'Remove gdb debugging related files for U-Boot build...' - rm -f "${pkgdir}/usr/lib/grub/arm-uboot"/*.module || true - rm -f "${pkgdir}/usr/lib/grub/arm-uboot"/*.image || true - rm -f "${pkgdir}/usr/lib/grub/arm-uboot"/{kernel.exec,gdb_grub,gmodule.pl} || true - - echo 'Install /etc/default/grub (used by grub-mkconfig)...' - install -D -m0644 "${srcdir}/grub.default" "${pkgdir}/etc/default/grub" - - ## echo 'Patch to detect udoo device tree blob file (dtb)...' - ## cd "${pkgdir}/etc/grub.d/" - ## patch -Np1 -i "${srcdir}/0003-10_linux-20_linux_xen-detect-udoo-devicetree-file.patch" + _package_grub-uboot-dev "${pkgname#grub-}" 'UDOO' } diff --git a/libre/grub/arm-extra b/libre/grub/arm-extra deleted file mode 100644 index 87d4aa8..0000000 --- a/libre/grub/arm-extra +++ /dev/null @@ -1,333 +0,0 @@ -### ARM_UBOOT - loadaddr ### -# 0x00007fc0 - versatile[versatile_ab/versatile_pb] -# 0x00100000 - snowball/u8500_href -# 0x00800000 - dns325/highbank/wireless_space -# 0x02000000 - zynq[zynq_microzed/zynq_picozed/zynq_zc702/zynq_zc706/zynq_zc70x/zynq_zc770[zynq_zc770_xm010/zynq_zc770_xm012/zynq_zc770_xm013]/zynq_zed/zynq_zybo] -# 0x08000000 - grub -# 0x10800000 - cm_fx6 -# 0x12000000 - aristainetos[aristainetos/aristainetos2]/mx6[mx6slevk/mx6sxsabresd] -# 0x40007000 - origen -# 0x43e00000 - origen -# 0x60008000 - vexpress_ca9x4 -# 0x70800000 - ima3-mx53/mx53evk/mx53smd -# 0x72000000 - mx53ard/mx53loco -# 0x80000000 - am335x_bur[kwb/tseries]/am3517[am3517_crane/am3517_evm]/mcx -# 0x80007fc0 - am335x_ti[pcm051] -# 0x80008000 - vexpress_ca9x4/vexpress[vexpress_ca15_tc2/vexpress_ca5x2](extended-mem) -# 0x80100000 - am335x_bur[kwb]/ls2085a[ls2085a_emu/ls2085a_simu/ls2085aqds/ls2085ardb] -# 0x80200000 - am335x_bur[tseries]/am335x_ti[am335x_evm/omap3_beagle/pengwyn]/ti814x_evm -# 0x80800000 - * flea3/mx31ads/mx35pdk/qong/woodburn/woodburn_sd -# 0x81000000 - ti814x_evm * mx25pdk/omap3_logic/ti816x_evm/tx25 -# 0x82000000 - am335x_ti[am335x_evm/omap3_beagle/pcm051/pengwyn]/am3517[am3517_crane/am3517_evm]/mcx -# /mx6[gw_ventana[gwventana]/mx6cuboxi/mx6qarm2[mx6dlarm2]/mx6qsabreauto[mx6dlsabreauto]/mx6sabresd[mx6dlsabresd/mx6qsabresd]] -# /omap3_ti[devkit8000] -# * bav335x/cm_t335/cm_t3517/dig297/omap3_evm/omap3_igep00x0/omap3_mvblx/omap3_sdp3430/omap3_zoom1/tao3530 -# 0x84000000 - am335x_baltos -# 0x90000000 - vexpress64_base[vexpress_aemv8a_semi]/vexpress64_juno[vexpress_aemv8a_juno] -# 0x90000000UL - ls2085a[ls2085a_emu/ls2085a_simu/ls2085aqds/ls2085ardb] -# 0x90800000 - vision2 -# 0x92000000 - mx51evk -# 0xa0008000 - vexpress[vexpress_ca15_tc2/vexpress_ca5x2](extended-mem) -# 0xa0800000 - imx27lite -# 0xc0000014 - davinci[ea20] -# 0xc0700000 - davinci[ea20] -# 0x12000000 - udoo_dl udoo_quad - -# alt -# am335x_igep0033 -# am43xx_evm -# apalis_t30 -# apf27 -# apx4devkit -# armadillo-800eva -# arndale -# aspenite -# at91rm9200ek -# at91sam9260ek at91sam9g20ek/at91sam9xeek -# at91sam9261ek at91sam9g10ek -# at91sam9263ek -# at91sam9m10g45ek -# at91sam9n12ek -# at91sam9rlek -# at91sam9x5ek -# balloon3 -# bav335x birdland_bav335a/birdland_bav335b -# bcm28155_ap bcm11130/bcm28155_w1d -# bcmcygnus bcm911360/bcm911360k/bcm958300k/bcm958305k -# bcmnsp bcm958622hr -# beagle_x15 -# beaver -# bg0900 -# calimain -# cam_enc_4xx -# cardhu -# cgtqmx6eval cgtqmx6qeval -# cm_t335 -# cm_t3517 -# cm_t35 -# cm_t54 -# colibri_pxa270 -# colibri_t20 -# colibri_t30 -# colibri_vf -# corvus -# cpu9260 cpu9G20 -# cpuat91 -# da830evm -# da850evm da850_am18xxevm -# dalmore -# davinci_dm355evm -# davinci_dm355leopard -# davinci_dm365evm -# davinci_dm6467evm davinci_dm6467Tevm -# davinci_dvevm -# davinci_schmoogie -# davinci_sffsdr -# davinci_sonata -# db-88f6820-gp -# db-mv784mp-gp -# devkit3250 -# devkit8000 -# dig297 -# dockstar -# dra7xx_evm -# draco -# dreamplug -# duovero -# eb_cpux9k2 -# eco5pk -# edb93xx edb9315a -# edminiv2 -# embestmx6boards marsboard/riotboard -# enbw_cmc -# ethernut5 -# flea3 -# goflexhome -# gose -# gplugd -# guruplug -# h2200 -# harmony -# ib62x0 -# iconnect -# imx27lite -# imx31_litekit -# imx31_phycore -# integrator_ap integratorap_cm720t/integratorap_cm920t/integratorap_cm926ej_s/integratorap_cm946es -# integrator_cp integratorcp_cm1136/integratorcp_cm920t/integratorcp_cm926ej_s/integratorcp_cm946es -# ipam390 -# jetson-tk1 -# jornada -# k2e_evm -# k2hk_evm -# k2l_evm -# km_kirkwood kmcoge5un/kmnusa/kmsugp1/kmsuv31/mgcoge3un/portl2 -# koelsch -# kosagi_novena novena -# kzm9g -# lager -# lp8x4x -# ls1021aqds -# ls1021atwr -# lsxl lschlv2/lsxhl -# magnesium -# maxbcm -# mcx -# medcom-wide -# meesc -# m28evk -# m53evk -# mt_ventoux -# mv88f6281gtw_ge -# mx23_olinuxino -# mx23evk -# mx25pdk -# mx28evk -# mx31ads -# mx31pdk -# mx35pdk -# mx51_efikamx mx51_efikasb -# mx51evk -# nas220 -# net2big_v2 d2net_v2 -# netspace_v2 inetspace_v2/netspace_lite_v2/netspace_max_v2/netspace_mini_v2 -# nitrogen6x mx6qsabrelite/nitrogen6dl2g/nitrogen6dl/nitrogen6q2g/nitrogen6q/nitrogen6s1g/nitrogen6s -# nokia_rx51 -# nomadik_nhk8815 -# nyan-big -# odroid -# odroid-xu3 -# omap3_cairo cairo -# omap3_evm -# omap3_evm_quick -# omap3_igep00x0 igep0020/igep0030/igep0032 -# omap3_logic -# omap3_mvblx -# omap3_overo -# omap3_pandora -# omap3_sdp3430 -# omap3_zoom1 -# omap4_panda -# omap4_sdp4430 -# omap5_uevm -# omapl138_lcdk -# openrd -# origen -# ot1200 -# otc570 -# palmld -# palmtreo680 -# paz00 -# peach-pi -# peach-pit -# pengwyn -# pepper -# platinum_picon -# platinum_titanium -# plutux -# pm9261 -# pm9263 -# pm9g45 -# pogo_e02 -# porter -# pxa255_idp -# pxm2 -# qong -# rastaban -# rd6281a -# rpi_2 -# rpi -# rut -# s5p_goni -# s5pc210_universal -# sama5d3_xplained -# sama5d3xek -# sama5d4_xplained -# sama5d4ek -# sansa_fuze_plus -# sc_sps_1 -# scb9328 -# seaboard -# secomx6 secomx6quq7 -# sheevaplug -# silk -# smdk2410 -# smdk5250 -# smdk5420 -# smdkc100 -# smdkv310 -# snapper9260 snapper9g20 -# snow -# socfpga_arria5 -# socfpga_cyclone5 socfpga_socrates -# spear300 -# spear310 -# spear320 -# spear600 -# stamp9g20 portuxg20 -# stm32f429-discovery -# stv0991 -# sun4i-a10-a1000(mele) -# sun4i-a10-ba10-tvbox -# sun4i-a10-chuwi-v7-cw0825 -# sun4i-a10-cubieboard -# sun4i-a10-gemei-g9 -# sun4i-a10-hyundai-a7hd -# sun4i-a10-inet-3f -# sun4i-a10-inet-3w -# sun4i-a10-jesurun-q5 -# sun4i-a10-marsboard -# sun4i-a10-mini-xplus -# sun4i-a10-mk802 -# sun4i-a10-mk802ii -# sun4i-a10-olinuxino-lime -# sun4i-a10-pcduino -# sun5i-a10s-auxtek-t004 -# sun5i-a10s-mk802 -# sun5i-a10s-olinuxino-micro -# sun5i-a10s-r7-tv-dongle -# sun5i-a13-ampe-a76 -# sun5i-a13-forfun-q88db -# sun5i-a13-inet-86vs -# sun5i-a13-olinuxino -# sun5i-a13-olinuxino-micro -# sun5i-a13-tzx-q8-713b7 -# sun5i-a13-utoo-p66 -# sun6i-a31-colombus -# sun6i-a31-hummingbird -# sun6i-a31-i7(mele) -# sun6i-a31-m9(mele) -# sun6i-a31-mele-a1000g-quad -# sun6i-a31-mixtile-loftq -# sun6i-a31s-cs908 -# sun6i-a31s-primo81(msi) -# sun7i-a20-ainol-aw1 -# sun7i-a20-bananapi -# sun7i-a20-bananapro -# sun7i-a20-cubieboard2 -# sun7i-a20-cubietruck -# sun7i-a20-i12-tvbox -# sun7i-a20-m3(mele) -# sun7i-a20-m5(mele) -# sun7i-a20-mk808c -# sun7i-a20-olinuxino-lime -# sun7i-a20-olinuxino-lime2 -# sun7i-a20-olinuxino-micro -# sun7i-a20-orangepi -# sun7i-a20-orangepi-mini -# sun7i-a20-pcduino3 -# sun7i-a20-pcduino3-nano -# sun7i-a20-primo73(msi) -# sun7i-a20-wexler-tab7200 -# sun7i-a20-wits-pro-a20-dkt -# sun7i-a20-yones-toptech-bd1078 -# sun8i-a23-ippo-q8h-v1.2 -# sun8i-a23-ippo-q8h-v5 -# sun8i-a33-et-q8-v1.6 -# sun8i-a33-ga10h-v1.1 -# sun8i-a33-ippo-q8h-v1.2 -# sun8i-a33-sinlinx-sina33 -# sun9i-a80-optimus(merri) -# tao3530 omap3_ha -# taurus axm -# tbs2910 -# tec -# tec-ng -# thuban -# ti814x_evm -# ti816x_evm -# titanium -# tk71 -# tqma6 tqma6q_mba6/tqma6s_mba6 -# trats -# trats2 -# tricorder -# trimslice -# trizepsiv polaris -# tseries -# tt01 -# twister -# tx25 -# uniphier-ph1-ld4-ref -# uniphier-ph1-pro4-ref -# uniphier-ph1-sld8-ref -# usb_a9263 -# usbarmory -# VCMA9 -# venice2 -# ventana -# vf610twr -# vl_ma2sc -# vpac270 -# wandboard -# warp -# whistler -# woodburn -# woodburn_sd -# work_92105 -# x600 -# xaeniax -# xfi3 -# xilinx_zynqmp -# zipitz2 -# zmx25 From 49ff6428650cd63580e6499533c3f5d08f8893ed Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Jan 08 2024 16:50:55 +0000 Subject: [PATCH 45/73] pcr/python-py3dns: Build for newer Python, clean up --- diff --git a/pcr/python-py3dns/PKGBUILD b/pcr/python-py3dns/PKGBUILD index b6a5dae..e046259 100644 --- a/pcr/python-py3dns/PKGBUILD +++ b/pcr/python-py3dns/PKGBUILD @@ -3,15 +3,14 @@ # Contributor: Samed Beyribey pkgname=python-py3dns -_pkgname=py3dns +_pkgname=${pkgname#python-} pkgver=3.2.1 -pkgrel=2 +pkgrel=3 pkgdesc="A module for looking up DNS entries in Python applications" arch=('any') -url="https://launchpad.net/py3dns" -license=('custom:PSF') +url="https://launchpad.net/${_pkgname}" +license=('custom:PSF-like') -depends=('python') makedepends=('python-setuptools') source=("https://launchpad.net/${_pkgname}/trunk/${pkgver}/+download/${_pkgname}-${pkgver}.tar.gz"{,.asc}) @@ -19,63 +18,16 @@ md5sums=('35a441081a1acfa0cf78e7ccc2ff9449' 'SKIP') validpgpkeys=('E7729BFFBE85400FEEEE23B178D7DEFB9AD59AF1') # Donald Scott Kitterman - -_version_constraint() # (dep_pkgname [precision]) -{ - Log() { [[ "${FUNCNAME[2]}" == package ]] && echo "$@" >&2 || : ; } - - - local dep_pkgname=$1 - declare -i req_precision=$2 - local full_version=$(pacman -S --print-format='%v' ${dep_pkgname} 2> /dev/null | tail -n 1) - local n_dots=$(tmp=${full_version%-*} ; tmp=${tmp//[^\.]} ; echo "${#tmp}" ;) - local def_precision=$(( n_dots + 1 )) - local is_prec_valid=$(( req_precision > 0 && req_precision <= def_precision )) - local precision=$((( is_prec_valid )) && echo ${req_precision} || echo ${def_precision}) - local pkgver_rx='[0-9A-Za-z_]+' - pkgver_rx=$(sed 's|\]|\+]|' <<<${pkgver_rx}) # according to the wiki, '+' is not allowed, - # but some pkgver have it (eg: 5.15.10+kde+r130) - local subver_rx='\.'${pkgver_rx} - local pkgrel_rx='[0-9]+' - local garbage_rx='[^0-9].*' - local capture_rx=${pkgver_rx} - for (( n_dots=1 ; n_dots < precision ; ++n_dots )) ; do capture_rx+=${subver_rx} ; done ; - local version pkgrel has_dot_char version_min version_max constraint_string - declare -i subver subver_inc pkgrel_inc - - if [[ "${full_version}" =~ ^(${capture_rx})(${subver_rx})*-(${pkgrel_rx}).*$ ]] - then version=${BASH_REMATCH[1]} # pkgver cut to the requested precision - #unused=${BASH_REMATCH[2]} # discarded pkgver segments - pkgrel=${BASH_REMATCH[3]} # pkgrel with non-numerics right-trimmed - has_dot_char=$([[ "${version}" =~ \. ]] ; echo $(( ! $? )) ; ) - subver=$(sed "s|${garbage_rx}||" <<<${version##*.}) # right-trim from any non-numeric - version=$( (( has_dot_char )) && echo ${version%.*}.${subver} || echo ${subver} ) - subver_inc=$(( subver + 1 )) - pkgrel_inc=$(( pkgrel + 1 )) - version_min=$( (( ! is_prec_valid )) && echo ${full_version%-*}-${pkgrel} || \ - echo ${version} ) - version_max=$( ( (( ! is_prec_valid )) && echo ${full_version%-*}-${pkgrel_inc} ) || \ - ( [[ "${version}" =~ \. ]] && echo ${version%.*}.${subver_inc} ) || \ - echo ${subver_inc} ) - constraint_string="${dep_pkgname}>=${version_min} ${dep_pkgname}<${version_max}" - - Log "Applied version constraint: '${constraint_string}'" - else Log "ERROR: in _version_constraint() parsing: dep_pkgname='${dep_pkgname}' full_version='${full_version}'" - exit 1 - fi - - unset -f Log - - echo -n "${constraint_string}" +build() { + cd "$_pkgname-$pkgver" + python setup.py build } - package() { - # pin to strongly-coupled dependency versions - depends=( ${depends[*]/python/} $(_version_constraint python 2) ) - - cd "$srcdir"/$_pkgname-$pkgver + _python_version=$(pacman -S --print-format='%v' python|cut -d- -f1|cut -d. -f1,2) + depends=("python>=${_python_version}" "python<${_python_version%.*}.$(( ${_python_version##*.} + 1 ))") + cd "$_pkgname-$pkgver" python setup.py install --root="$pkgdir/" --optimize=1 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } From 2d87219c0bdb473e079862fac98f7563088b8e55 Mon Sep 17 00:00:00 2001 From: Luke T. Shumaker Date: Jan 08 2024 17:31:43 +0000 Subject: [PATCH 46/73] pcr/python-py3dns: udgpkg 3.2.1→4.0.0 This is a "major-version-bump" breaking change in that it dropped the `DnsAsyncRequest` class, which is broken in Python 3.12, which dropped `asynccore`. Anything that needed `DnsAsyncRequest` also needed `asynccore` and so needs adjusted for new Python anyway. --- diff --git a/pcr/python-py3dns/PKGBUILD b/pcr/python-py3dns/PKGBUILD index e046259..e688b88 100644 --- a/pcr/python-py3dns/PKGBUILD +++ b/pcr/python-py3dns/PKGBUILD @@ -4,23 +4,41 @@ pkgname=python-py3dns _pkgname=${pkgname#python-} -pkgver=3.2.1 -pkgrel=3 +pkgver=4.0.0 +pkgrel=1 pkgdesc="A module for looking up DNS entries in Python applications" arch=('any') url="https://launchpad.net/${_pkgname}" license=('custom:PSF-like') -makedepends=('python-setuptools') +makedepends=('python-build' 'python-installer' 'python-wheel' 'python-flit') source=("https://launchpad.net/${_pkgname}/trunk/${pkgver}/+download/${_pkgname}-${pkgver}.tar.gz"{,.asc}) -md5sums=('35a441081a1acfa0cf78e7ccc2ff9449' +md5sums=('1dddc2621ced329a84a814eae1f92a39' 'SKIP') validpgpkeys=('E7729BFFBE85400FEEEE23B178D7DEFB9AD59AF1') # Donald Scott Kitterman build() { cd "$_pkgname-$pkgver" - python setup.py build + python -m build --wheel --no-isolation +} + +check() { + if ! getent hosts parabola.nu >/dev/null; then + # The tests require networking, which is disabled in libremakepkg + # (for good reason). But it's a bummer for these tests. + # https://labs.parabola.nu/issues/3565 + return + fi + + cd "$_pkgname-$pkgver" + for tstfile in ./test.py tests/*; do + echo "Running $tstfile..." + case "$tstfile" in + tests/test5.py) PYTHONPATH=. "$tstfile" parabola.nu;; + *) PYTHONPATH=. "$tstfile";; + esac + done } package() { @@ -28,6 +46,11 @@ package() { depends=("python>=${_python_version}" "python<${_python_version%.*}.$(( ${_python_version##*.} + 1 ))") cd "$_pkgname-$pkgver" - python setup.py install --root="$pkgdir/" --optimize=1 - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + python -m installer --destdir="$pkgdir" dist/*.whl + + # Symlink license file + local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") + install -d "$pkgdir/usr/share/licenses/$pkgname" + ln -s "$site_packages/${pkgname#python-}-$pkgver.dist-info/licenses/LICENSE" \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } From 927f1eb2952f77b69cb14e6240bb01d59794924e Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Jan 08 2024 17:31:43 +0000 Subject: [PATCH 47/73] pcr/python-pyspf: Build for newer Python, clean up --- diff --git a/pcr/python-pyspf/PKGBUILD b/pcr/python-pyspf/PKGBUILD index 76a864f..13376cc 100644 --- a/pcr/python-pyspf/PKGBUILD +++ b/pcr/python-pyspf/PKGBUILD @@ -4,82 +4,36 @@ # Contributor: Samed Beyribey pkgname=python-pyspf +_pkgname=${pkgname#python-} pkgver=2.0.14 -pkgrel=2 +pkgrel=3 pkgdesc="Python implementation of the Sender Policy Framework (SPF) protocol" arch=('any') -url="https://pypi.python.org/pypi/pyspf" +url="https://pypi.python.org/pypi/${_pkgname}" license=('PSF') -makedepends=('python-setuptools') -depends=('python-py3dns' 'python') +makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools') +depends=('python-py3dns') +checkdepends=('python-yaml' 'python-authres') optdepends=('python-authres: Return RFC 5451 Authentication Results headers') -source=("https://files.pythonhosted.org/packages/d4/dc/5b3838ff90474e21fe0914920c53430f73402e07d6598ea228e61b74963e/pyspf-$pkgver.tar.gz") +source=("https://files.pythonhosted.org/packages/d4/dc/5b3838ff90474e21fe0914920c53430f73402e07d6598ea228e61b74963e/${_pkgname}-$pkgver.tar.gz") sha256sums=('57a7ef01bda090173aafb6af0106251686ed73f03db4e911fcd34c57fc347186') - -_version_constraint() # (dep_pkgname [precision]) -{ - Log() { [[ "${FUNCNAME[2]}" == package ]] && echo "$@" >&2 || : ; } - - - local dep_pkgname=$1 - declare -i req_precision=$2 - local full_version=$(pacman -S --print-format='%v' ${dep_pkgname} 2> /dev/null | tail -n 1) - local n_dots=$(tmp=${full_version%-*} ; tmp=${tmp//[^\.]} ; echo "${#tmp}" ;) - local def_precision=$(( n_dots + 1 )) - local is_prec_valid=$(( req_precision > 0 && req_precision <= def_precision )) - local precision=$((( is_prec_valid )) && echo ${req_precision} || echo ${def_precision}) - local pkgver_rx='[0-9A-Za-z_]+' - pkgver_rx=$(sed 's|\]|\+]|' <<<${pkgver_rx}) # according to the wiki, '+' is not allowed, - # but some pkgver have it (eg: 5.15.10+kde+r130) - local subver_rx='\.'${pkgver_rx} - local pkgrel_rx='[0-9]+' - local garbage_rx='[^0-9].*' - local capture_rx=${pkgver_rx} - for (( n_dots=1 ; n_dots < precision ; ++n_dots )) ; do capture_rx+=${subver_rx} ; done ; - local version pkgrel has_dot_char version_min version_max constraint_string - declare -i subver subver_inc pkgrel_inc - - if [[ "${full_version}" =~ ^(${capture_rx})(${subver_rx})*-(${pkgrel_rx}).*$ ]] - then version=${BASH_REMATCH[1]} # pkgver cut to the requested precision - #unused=${BASH_REMATCH[2]} # discarded pkgver segments - pkgrel=${BASH_REMATCH[3]} # pkgrel with non-numerics right-trimmed - has_dot_char=$([[ "${version}" =~ \. ]] ; echo $(( ! $? )) ; ) - subver=$(sed "s|${garbage_rx}||" <<<${version##*.}) # right-trim from any non-numeric - version=$( (( has_dot_char )) && echo ${version%.*}.${subver} || echo ${subver} ) - subver_inc=$(( subver + 1 )) - pkgrel_inc=$(( pkgrel + 1 )) - version_min=$( (( ! is_prec_valid )) && echo ${full_version%-*}-${pkgrel} || \ - echo ${version} ) - version_max=$( ( (( ! is_prec_valid )) && echo ${full_version%-*}-${pkgrel_inc} ) || \ - ( [[ "${version}" =~ \. ]] && echo ${version%.*}.${subver_inc} ) || \ - echo ${subver_inc} ) - constraint_string="${dep_pkgname}>=${version_min} ${dep_pkgname}<${version_max}" - - Log "Applied version constraint: '${constraint_string}'" - else Log "ERROR: in _version_constraint() parsing: dep_pkgname='${dep_pkgname}' full_version='${full_version}'" - exit 1 - fi - - unset -f Log - - echo -n "${constraint_string}" -} - - build() { - cd "$srcdir/pyspf-$pkgver" + cd "$_pkgname-$pkgver" + python -m build --wheel --no-isolation +} - python setup.py build +check() { + cd "$_pkgname-$pkgver/test" + PYTHONPATH=../build/lib python testspf.py } package() { - # pin to strongly-coupled dependency versions - depends=( ${depends[*]/python/} $(_version_constraint python 2) ) - - cd "$srcdir/pyspf-$pkgver" + _python_version=$(pacman -S --print-format='%v' python|cut -d- -f1|cut -d. -f1,2) + depends+=("python>=${_python_version}" "python<${_python_version%.*}.$(( ${_python_version##*.} + 1 ))") - python setup.py install --root="$pkgdir" --optimize=1 + cd "$_pkgname-$pkgver" + python -m installer --destdir="$pkgdir" dist/*.whl } From 3fa456b4deb64dfa392a6a3ec9adaa86da64ed98 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Jan 08 2024 17:39:49 +0000 Subject: [PATCH 48/73] pcr/pypolicyd-spf: Build for newer Python, clean up --- diff --git a/pcr/pypolicyd-spf/PKGBUILD b/pcr/pypolicyd-spf/PKGBUILD index 6e37f71..72d333a 100644 --- a/pcr/pypolicyd-spf/PKGBUILD +++ b/pcr/pypolicyd-spf/PKGBUILD @@ -6,87 +6,38 @@ pkgname=pypolicyd-spf pkgver=2.0.2 _pkgver=${pkgver%.*} -pkgrel=4 +pkgrel=5 pkgdesc="Python Postfix Sender Policy Framework (SPF) filter daemon" arch=('any') url="https://launchpad.net/${pkgname}/" license=('GPL') makedepends=('python-setuptools') -depends=('postfix' 'python-pyspf' 'python') +depends=('postfix' 'python-pyspf') optdepends=('python-authres: RFC 7001 Authentication-Results header support') options=(!emptydirs) backup=(etc/python-policyd-spf/policyd-spf.conf) -source=(https://launchpad.net/$pkgname/${_pkgver}/$pkgver/+download/$pkgname-$pkgver.tar.gz{,.asc}) +source=("https://launchpad.net/$pkgname/${_pkgver}/$pkgver/+download/$pkgname-$pkgver.tar.gz"{,.asc}) md5sums=('cc50281cc13a8984de058ddc5ae8dcaf' 'SKIP') validpgpkeys=('E7729BFFBE85400FEEEE23B178D7DEFB9AD59AF1') # Donald Scott Kitterman - -_version_constraint() # (dep_pkgname [precision]) -{ - Log() { [[ "${FUNCNAME[2]}" == package ]] && echo "$@" >&2 || : ; } - - - local dep_pkgname=$1 - declare -i req_precision=$2 - local full_version=$(pacman -S --print-format='%v' ${dep_pkgname} 2> /dev/null | tail -n 1) - local n_dots=$(tmp=${full_version%-*} ; tmp=${tmp//[^\.]} ; echo "${#tmp}" ;) - local def_precision=$(( n_dots + 1 )) - local is_prec_valid=$(( req_precision > 0 && req_precision <= def_precision )) - local precision=$((( is_prec_valid )) && echo ${req_precision} || echo ${def_precision}) - local pkgver_rx='[0-9A-Za-z_]+' - pkgver_rx=$(sed 's|\]|\+]|' <<<${pkgver_rx}) # according to the wiki, '+' is not allowed, - # but some pkgver have it (eg: 5.15.10+kde+r130) - local subver_rx='\.'${pkgver_rx} - local pkgrel_rx='[0-9]+' - local garbage_rx='[^0-9].*' - local capture_rx=${pkgver_rx} - for (( n_dots=1 ; n_dots < precision ; ++n_dots )) ; do capture_rx+=${subver_rx} ; done ; - local version pkgrel has_dot_char version_min version_max constraint_string - declare -i subver subver_inc pkgrel_inc - - if [[ "${full_version}" =~ ^(${capture_rx})(${subver_rx})*-(${pkgrel_rx}).*$ ]] - then version=${BASH_REMATCH[1]} # pkgver cut to the requested precision - #unused=${BASH_REMATCH[2]} # discarded pkgver segments - pkgrel=${BASH_REMATCH[3]} # pkgrel with non-numerics right-trimmed - has_dot_char=$([[ "${version}" =~ \. ]] ; echo $(( ! $? )) ; ) - subver=$(sed "s|${garbage_rx}||" <<<${version##*.}) # right-trim from any non-numeric - version=$( (( has_dot_char )) && echo ${version%.*}.${subver} || echo ${subver} ) - subver_inc=$(( subver + 1 )) - pkgrel_inc=$(( pkgrel + 1 )) - version_min=$( (( ! is_prec_valid )) && echo ${full_version%-*}-${pkgrel} || \ - echo ${version} ) - version_max=$( ( (( ! is_prec_valid )) && echo ${full_version%-*}-${pkgrel_inc} ) || \ - ( [[ "${version}" =~ \. ]] && echo ${version%.*}.${subver_inc} ) || \ - echo ${subver_inc} ) - constraint_string="${dep_pkgname}>=${version_min} ${dep_pkgname}<${version_max}" - - Log "Applied version constraint: '${constraint_string}'" - else Log "ERROR: in _version_constraint() parsing: dep_pkgname='${dep_pkgname}' full_version='${full_version}'" - exit 1 - fi - - unset -f Log - - echo -n "${constraint_string}" -} - - build() { - cd "$srcdir"/$pkgname-$pkgver - - python setup.py build || return 1 + cd "$pkgname-$pkgver" + # Don't use build a modern 'wheel' instead of 'egg' (and so don't + # use modern 'python-builder' and 'python-installer'). The way + # setup.py is written, the 'wheel' will be broken and won't + # correctly install files in '/etc'. + python setup.py build } package() { - # pin to strongly-coupled dependency versions - depends=( ${depends[*]/python/} $(_version_constraint python 2) ) - - cd "$srcdir"/$pkgname-$pkgver + _python_version=$(pacman -S --print-format='%v' python|cut -d- -f1|cut -d. -f1,2) + depends+=("python>=${_python_version}" "python<${_python_version%.*}.$(( ${_python_version##*.} + 1 ))") - python setup.py install --root="$pkgdir/" --optimize=1 || return 1 - install -m644 policyd-spf.conf.commented "$pkgdir"/etc/python-policyd-spf || return 1 + cd "$pkgname-$pkgver" + python setup.py install --root="$pkgdir/" --optimize=1 + install -m644 policyd-spf.conf.commented "$pkgdir"/etc/python-policyd-spf } From 0d82c00a676bccfa6db2c38a9958622d5e28c20d Mon Sep 17 00:00:00 2001 From: bill-auger Date: Jan 10 2024 00:05:34 +0000 Subject: [PATCH 49/73] [your-freedom][your-gaming-freedom][your-privacy][your-init-freedom]: normalize related recipes (bugfix) --- diff --git a/libre/your-gaming-freedom/PKGBUILD b/libre/your-gaming-freedom/PKGBUILD index 549c938..7ff42cb 100644 --- a/libre/your-gaming-freedom/PKGBUILD +++ b/libre/your-gaming-freedom/PKGBUILD @@ -24,7 +24,7 @@ license=(custom:CCPL:zero) makedepends=(librelib) install=${pkgname}.install _srcname=${pkgname}-blacklist-${_srcver}.txt -source=(${_srcname}::https://git.parabola.nu/blacklist.git/plain/blacklist.txt?id=${_srcver}) +source=(${_srcname}::https://git.parabola.nu/blacklist.git/plain/${pkgname}-blacklist.txt?id=${_srcver}) sha256sums=('62def808e6f25d9e63cf0e13420e40631aee11cfd68391224b2658e29ad03970') diff --git a/nonprism/your-privacy/PKGBUILD b/nonprism/your-privacy/PKGBUILD index d234981..5517b68 100644 --- a/nonprism/your-privacy/PKGBUILD +++ b/nonprism/your-privacy/PKGBUILD @@ -24,7 +24,7 @@ makedepends=(librelib) backup=(etc/NetworkManager/conf.d/20-connectivity.conf) install=${pkgname}.install _srcname=${pkgname}-blacklist-${_srcver}.txt -source=(${_srcname}::https://git.parabola.nu/blacklist.git/plain/blacklist.txt?id=${_srcver}) +source=(${_srcname}::https://git.parabola.nu/blacklist.git/plain/${pkgname}-blacklist.txt?id=${_srcver}) source+=(archlinux-keyring.hook) sha512sums=('9ab837a9ca351bb844ecdfc147d69ec1f0d1971fbe12ceeed3b837fc59c54b10d2476901e60f677b0f53166a805b493b0a8bcd638e9e6638012dd454c7930cf8' diff --git a/nonsystemd/your-init-freedom/PKGBUILD b/nonsystemd/your-init-freedom/PKGBUILD index 249e174..84e85ea 100644 --- a/nonsystemd/your-init-freedom/PKGBUILD +++ b/nonsystemd/your-init-freedom/PKGBUILD @@ -25,7 +25,7 @@ replaces=(your-initfreedom) makedepends=(librelib) install=${pkgname}.install _srcname=${pkgname}-blacklist-${_srcver}.txt -source=(${_srcname}::https://git.parabola.nu/blacklist.git/plain/blacklist.txt?id=${_srcver}) +source=(${_srcname}::https://git.parabola.nu/blacklist.git/plain/${pkgname}-blacklist.txt?id=${_srcver}) sha256sums=('6dbe07d8f0fe38d90a1b6811ecfd2543f4638a94a36954256d3b6d1432768891') From 4384252c24b8c67b8e5c68a7ebbe0009176b41ea Mon Sep 17 00:00:00 2001 From: bill-auger Date: Jan 10 2024 00:05:46 +0000 Subject: [PATCH 50/73] your-freedom:your-privacy: move 'netsurf' to [nonprism] --- diff --git a/libre/your-freedom/PKGBUILD b/libre/your-freedom/PKGBUILD index 4002b04..cfd8643 100644 --- a/libre/your-freedom/PKGBUILD +++ b/libre/your-freedom/PKGBUILD @@ -11,8 +11,8 @@ pkgname=your-freedom -pkgver=20240103 -_srcver=4a4e77e8b0157e1d993d331140caff5a5bed3bbb +pkgver=20240109 +_srcver=c0ef727454805ce736bb8133b0546d060c0f774d pkgrel=1 pkgdesc="This meta-package conflicts with every known non-free Arch package" arch=(any) @@ -25,7 +25,7 @@ install=${pkgname}.install _srcname=${pkgname}-blacklist-${_srcver}.txt source=(${_srcname}::https://git.parabola.nu/blacklist.git/plain/blacklist.txt?id=${_srcver}) -sha256sums=('07c9400deef1d96cc6c470a8a88ccd0cde222d085cb7eb557b9b95a00e8d8073') +sha256sums=('53c29b21a06e6643e45fcb1506cd393dbf056824597d8e1b9dbf5fa8e58dddc9') package() diff --git a/nonprism/your-privacy/PKGBUILD b/nonprism/your-privacy/PKGBUILD index 5517b68..decef76 100644 --- a/nonprism/your-privacy/PKGBUILD +++ b/nonprism/your-privacy/PKGBUILD @@ -11,9 +11,9 @@ pkgname=your-privacy -pkgver=20221006 -pkgrel=2 -_srcver=ab32447a5a47a2a5ec5a3fa6043dc6b9024e3674 +pkgver=20240109 +_srcver=c0ef727454805ce736bb8133b0546d060c0f774d +pkgrel=1 pkgdesc="This package will remove support for protocols and services known to endanger privacy." arch=(any) url=https://wiki.parabola.nu/Blacklist @@ -27,8 +27,8 @@ _srcname=${pkgname}-blacklist-${_srcver}.txt source=(${_srcname}::https://git.parabola.nu/blacklist.git/plain/${pkgname}-blacklist.txt?id=${_srcver}) source+=(archlinux-keyring.hook) -sha512sums=('9ab837a9ca351bb844ecdfc147d69ec1f0d1971fbe12ceeed3b837fc59c54b10d2476901e60f677b0f53166a805b493b0a8bcd638e9e6638012dd454c7930cf8' - '864b419e3aec86adc3ee2cc49ccba69e209f53cf174e889f25c21b0f0813760432e98e7eb024d30376163efec2a6e6d2693a871d895d7de5133bcd2f4df9626b') +sha256sums=('19c5161d9560c9acacf5931934b24141df6b90c91d8f3fd4d202a6a3f6be595e' + '908ee242989fbf932ff013238ad9c56f9b318c21988199a7dcf404df058d4879') package() From 926310f0a1de6425018410e41d485a78d217a31a Mon Sep 17 00:00:00 2001 From: bill-auger Date: Jan 10 2024 00:05:59 +0000 Subject: [PATCH 51/73] pacman-mirrorlist: upgrade to v20240109 --- diff --git a/libre/pacman-mirrorlist/PKGBUILD b/libre/pacman-mirrorlist/PKGBUILD index d0eafdb..74b16af 100644 --- a/libre/pacman-mirrorlist/PKGBUILD +++ b/libre/pacman-mirrorlist/PKGBUILD @@ -3,16 +3,21 @@ # Contributor: Isaac David # Contributor: André Silva # Contributor: Esteban Carnevale +# Maintainer: Parabola Hackers +# Contributor: bill-auger -# Note: building and publishing this package is a bit peculiar -# 1: modify 'mirrorlist.txt' on the tier-0 repo server root -# 4: set 'pkgver' to YYYYMMDD -# 2: update 'sha256sums' (`makepkg -g`, `sha256sums`, `upgpkg`, etc) +# NOTE: building and publishing this package is a bit peculiar +# modify '/mirrorlist.txt' on the tier-0 repo server: +# 1: update list of mirrors +# 2: update "Last Updated:" to YYYY-MM-DD +# modify this PKGBUILD: +# 3: set 'pkgver' to YYYYMMDD +# 4: update 'sha256sums' (`makepkg -g`, `sha256sums`, `upgpkg`, etc) pkgname=pacman-mirrorlist -pkgver=20230828 +pkgver=20240109 pkgrel=1.parabola1 pkgdesc="Parabola GNU/Linux-libre mirror list for use by pacman" arch=(any) @@ -22,7 +27,7 @@ license=(GPL) backup=(etc/pacman.d/mirrorlist) source=(mirrorlist-${pkgver}.txt::https://repo.parabola.nu/mirrorlist.txt) -sha256sums=('ad810abb9b99b8b94e158964958f425a7ea65601355a280536c48c833d643d65') +sha256sums=('2677d42da3bebb12b2b26cb1ea7f42efdc80db6bc3e3d483dd202acb2c1e443a') prepare() From a46179d7d6002979109613a494ce06bc12deb04b Mon Sep 17 00:00:00 2001 From: Luke T. Shumaker Date: Jan 10 2024 02:34:08 +0000 Subject: [PATCH 52/73] libre/systemd: Implement Arch's RFC 25 This is essentially cherry-picking: https://gitlab.archlinux.org/archlinux/packaging/packages/systemd/-/commit/7ac69a1c24a04f84fafd04ed57a7f5a0d65abc07 Without this, systemd users who -Syu will reboot to find a broken system. So I'm prioritizing this over updating our systemd, which is a couple versions out-of-date. --- diff --git a/libre/systemd/PKGBUILD b/libre/systemd/PKGBUILD index ffaa16d..dddff10 100644 --- a/libre/systemd/PKGBUILD +++ b/libre/systemd/PKGBUILD @@ -13,7 +13,7 @@ _tag='eb0f8fc41511dda1f9e0d19e830cc8c6668a2628' # git rev-parse v${_tag_name} _tag_name=253 pkgver="${_tag_name/-/}" pkgrel=1 -pkgrel+=.parabola1 +pkgrel+=.parabola2 arch=('x86_64') arch+=('i686' 'armv7h' 'ppc64le') url='https://www.github.com/systemd/systemd' @@ -257,7 +257,7 @@ check() { package_systemd() { pkgdesc='system and service manager' license=('LGPL2.1') - depends=('bash' 'dbus' 'kbd' 'kmod' 'libkmod.so' + depends=('bash' 'dbus' 'dbus-units' 'kbd' 'kmod' 'libkmod.so' 'systemd-libs' 'pam' 'libelf' 'util-linux' 'pcre2') depends+=("systemd-common=$pkgver-$pkgrel" 'udev') From 043c37d6678c766b4e2050b1c9cb6641985bb0bf Mon Sep 17 00:00:00 2001 From: bill-auger Date: Jan 10 2024 02:57:37 +0000 Subject: [PATCH 53/73] netsurf: dos2unix privacy patch --- diff --git a/libre/netsurf/PKGBUILD b/libre/netsurf/PKGBUILD index a010df7..9c535f2 100644 --- a/libre/netsurf/PKGBUILD +++ b/libre/netsurf/PKGBUILD @@ -30,7 +30,7 @@ source=("https://download.netsurf-browser.org/netsurf/releases/source-full/netsu source+=(remove_nonprivacy_options.patch) sha256sums=('495adf6b6614ce36fca6c605f7c321f9cb4a3df838043158122678ce2b3325b7' '34c1f41c02ff3791a1b734197d99ec7f58c403dee05f0f9b7b9b3509d32b51ac') -sha256sums+=('0e5bf14693b932a718a2018689602376b08ff4e41f4530aa1e345180db9c8b43') +sha256sums+=('ad28e66321da74cdf93584a68e89a33eed5077702d4bbcc6f5fd9c174607626a') prepare() { diff --git a/libre/netsurf/remove_nonprivacy_options.patch b/libre/netsurf/remove_nonprivacy_options.patch index 9c18068..cf6b40f 100644 --- a/libre/netsurf/remove_nonprivacy_options.patch +++ b/libre/netsurf/remove_nonprivacy_options.patch @@ -510,72 +510,72 @@ index 0000000..62dc1bb --- /dev/null +++ b/netsurf/frontends/riscos/appdir/Resources/nl/welcome.html,faf @@ -0,0 +1,66 @@ -+ -+ -+Welkom bij NetSurf -+ -+ -+ -+ -+

NetSurf

-+ -+ -+ -+
-+

Welkom bij NetSurf

-+ -+

NetSurf is een kleine, snelle webbrowser met open broncode. Wij willen altijd onze browser nog beter maken. Neem dus contact op met de ontwikkelaars (in het Engels!) of met de vertalers (gewoon in het Nederlands) mocht je verbeteringsvoorstellen hebben en/of problemen ervaren. Bedankt dat je voor NetSurf hebt gekozen.

-+ -+
-+
-+ -+ -+
-+
-+ -+ -+ -+ -+
-+ -+ -+ ++ ++ ++Welkom bij NetSurf ++ ++ ++ ++ ++

NetSurf

++ ++ ++ ++
++

Welkom bij NetSurf

++ ++

NetSurf is een kleine, snelle webbrowser met open broncode. Wij willen altijd onze browser nog beter maken. Neem dus contact op met de ontwikkelaars (in het Engels!) of met de vertalers (gewoon in het Nederlands) mocht je verbeteringsvoorstellen hebben en/of problemen ervaren. Bedankt dat je voor NetSurf hebt gekozen.

++ ++
++
++ ++ ++
++
++ ++ ++ ++ ++
++ ++ ++ diff --git a/netsurf/resources/SearchEngines b/netsurf/resources/SearchEngines index 38e7795..c4dd5e2 100644 --- a/netsurf/resources/SearchEngines From 155ff504734052055c355651e734627a366380c1 Mon Sep 17 00:00:00 2001 From: bill-auger Date: Jan 10 2024 02:58:00 +0000 Subject: [PATCH 54/73] [netsurf]: upgrade to v3.11 - move to [nonprism] --- diff --git a/libre/netsurf/PKGBUILD b/libre/netsurf/PKGBUILD deleted file mode 100644 index 9c535f2..0000000 --- a/libre/netsurf/PKGBUILD +++ /dev/null @@ -1,82 +0,0 @@ -# Maintainer (arch): Alexander F. Rødseth -# Contributor: Paulo Matias -# Contributor: Georgij Kondratjev -# Contributor: Daniel J Griffiths -# Contributor: André Silva -# Maintainer: Omar Vega Ramos - - -# parabola changes and rationale: -# - remove/replace non-privacy remote services - - -pkgname=netsurf -pkgver=3.10 -pkgrel=3 -pkgrel+=.parabola1 -pkgdesc='Lightweight and fast web browser' -pkgdesc+=', without non-privacy remote services' -arch=(x86_64) -arch+=(armv7h i686) -url='https://www.netsurf-browser.org/' -license=(MIT GPL2) -depends=(bash curl gtk3 'libhubbub=0.3.7' libjpeg-turbo 'libnsutils=0.1.0' - 'libutf8proc>=2.6.0' 'libwapcaplet>=0.4.3' 'libdom>=0.4.1' libwebp) -# vim is needed only for xxd when building -makedepends=(check inetutils 'libcss>=0.9.1' 'libnsbmp>=0.1.6' - 'libnsgif>=0.2.1' 'nsgenbind>=0.8' perl-html-parser setconf vim) -source=("https://download.netsurf-browser.org/netsurf/releases/source-full/netsurf-all-$pkgver.tar.gz" - netsurf.sh) -source+=(remove_nonprivacy_options.patch) -sha256sums=('495adf6b6614ce36fca6c605f7c321f9cb4a3df838043158122678ce2b3325b7' - '34c1f41c02ff3791a1b734197d99ec7f58c403dee05f0f9b7b9b3509d32b51ac') -sha256sums+=('ad28e66321da74cdf93584a68e89a33eed5077702d4bbcc6f5fd9c174607626a') - - -prepare() { - cd "$pkgname-all-$pkgver/$pkgname" - - # Fix compilation issues - sed -i 's:libutf8proc/::;s:UTF8PROC_CCC_VIRAMA:UTF8PROC_BIDI_CLASS_EN:' utils/idna.c - # Use "netsurf" as the name of the executable in /usr/bin - setconf frontends/gtk/res/netsurf-gtk.desktop 'Exec=netsurf %u' - - # remove/replace non-privacy remote services - cd "${srcdir}"/$pkgname-all-$pkgver/ - echo "applying remove_nonprivacy_options.patch" - patch -p1 -i ../remove_nonprivacy_options.patch -} - -build() { - CFLAGS="$CFLAGS -w -Os -funroll-loops" \ - make -C "$pkgname-all-$pkgver/$pkgname" \ - NETSURF_UA_FORMAT_STRING='"NetSurf/%d.%d (%s; Arch Linux)"' \ - TARGET=gtk3 \ - LIBDIR=lib \ - INCLUDEDIR=include \ - PREFIX=/usr -} - -package() { - make -C "$pkgname-all-$pkgver/$pkgname" \ - TARGET=gtk3 \ - LIBDIR=lib \ - INCLUDEDIR=include \ - DESTDIR="$pkgdir" \ - PREFIX=/usr \ - install - - # Launch script - install -Dm755 $pkgname.sh "$pkgdir/usr/bin/$pkgname" - - cd "$pkgname-all-$pkgver/$pkgname" - - # Desktop icon and shortcut - install -Dm644 frontends/gtk/res/$pkgname.xpm \ - "$pkgdir/usr/share/pixmaps/$pkgname.xpm" - install -Dm644 frontends/gtk/res/$pkgname-gtk.desktop \ - "$pkgdir/usr/share/applications/$pkgname.desktop" - - # License - install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" -} diff --git a/libre/netsurf/netsurf.sh b/libre/netsurf/netsurf.sh deleted file mode 100644 index 1a153a5..0000000 --- a/libre/netsurf/netsurf.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -# Use English if a directory for the current language does not exist -test -d "/usr/share/netsurf/${LANG:0:2}" || export LANG=en_US.UTF-8 -/usr/bin/netsurf-gtk3 "$@" diff --git a/libre/netsurf/remove_nonprivacy_options.patch b/libre/netsurf/remove_nonprivacy_options.patch deleted file mode 100644 index cf6b40f..0000000 --- a/libre/netsurf/remove_nonprivacy_options.patch +++ /dev/null @@ -1,605 +0,0 @@ -diff --git a/netsurf/desktop/searchweb.c b/netsurf/desktop/searchweb.c -index 2c0873d..6efdf62 100644 ---- a/netsurf/desktop/searchweb.c -+++ b/netsurf/desktop/searchweb.c -@@ -34,9 +34,9 @@ - #include "desktop/gui_internal.h" - - struct search_provider { -- char *name; /**< readable name such as 'google', 'yahoo', etc */ -- char *hostname; /**< host address such as www.google.com */ -- char *searchstring; /** < such as "www.google.com?search=%s" */ -+ char *name; /**< readable name such as 'duckduckgo', 'seeks', etc */ -+ char *hostname; /**< host address such as www.duckduckgo.com/html */ -+ char *searchstring; /** < such as "www.duckduckgo.com/html/?q=%s" */ - char *ico; /** < location of domain's favicon */ - hlcache_handle *ico_handle; - }; -@@ -52,7 +52,7 @@ static struct search_web_ctx_s { - } search_web_ctx; - - --static const char *default_providers = "Google|www.google.com|http://www.google.com/search?q=%s|http://www.google.com/favicon.ico|\n"; -+static const char *default_providers = "Google|www.google.com|http://duckduckgo.com/html/?q=%s|http://www.google.com/favicon.ico|\n"; - - static const char *default_search_icon_url = "resource:icons/search.png"; - -diff --git a/netsurf/frontends/amiga/dist/NetSurf.guide b/netsurf/frontends/amiga/dist/NetSurf.guide -index 0bdd900..e2be43c 100755 ---- a/netsurf/frontends/amiga/dist/NetSurf.guide -+++ b/netsurf/frontends/amiga/dist/NetSurf.guide -@@ -308,13 +308,13 @@ eg. - | - +- -- - | -- +- Google -+ +- DuckDuckGo HTML - - Will look something like the following within the menu: - - |NetSurf �| - |NetSurf Homepage | - |---------| |More NetSurf links| --|Google | -+|DuckDuckGo HTML | - - @endnode - -diff --git a/netsurf/frontends/gtk/res/options.gtk2.ui b/netsurf/frontends/gtk/res/options.gtk2.ui -index 907d0b5..a2de65c 100644 ---- a/netsurf/frontends/gtk/res/options.gtk2.ui -+++ b/netsurf/frontends/gtk/res/options.gtk2.ui -@@ -188,68 +188,17 @@ - - - -- -- Google -- -- -- Yahoo! -- -- -- Microsoft Live -- -- -- Buisiness.com -- -- -- Omgili -- -- -- BBC News -- -- -- Ubuntu Packages -- - - Creative Commons - -- -- Ask -- -- -- Answers -- - - Dictionary.com - -- -- YouTube -- -- -- AeroMP3 -- -- -- AOL -- -- -- Baidu -- -- -- Amazon -- -- -- Ebay -- -- -- IMBD -- -- -- ESPN -- - - Wikipedia - - -- DuckDuckGo -+ DuckDuckGo HTML - - - -diff --git a/netsurf/frontends/gtk/res/options.gtk3.ui b/netsurf/frontends/gtk/res/options.gtk3.ui -index 82a3e17..029af01 100644 ---- a/netsurf/frontends/gtk/res/options.gtk3.ui -+++ b/netsurf/frontends/gtk/res/options.gtk3.ui -@@ -2907,68 +2907,17 @@ - - - -- -- Google -- -- -- Yahoo! -- -- -- Microsoft Live -- -- -- Buisiness.com -- -- -- Omgili -- -- -- BBC News -- -- -- Ubuntu Packages -- - - Creative Commons - -- -- Ask -- -- -- Answers -- - - Dictionary.com - -- -- YouTube -- -- -- AeroMP3 -- -- -- AOL -- -- -- Baidu -- -- -- Amazon -- -- -- Ebay -- -- -- IMBD -- -- -- ESPN -- - - Wikipedia - - -- DuckDuckGo -+ DuckDuckGo HTML - - - -diff --git a/netsurf/frontends/riscos/appdir/Resources/SearchEngines b/netsurf/frontends/riscos/appdir/Resources/SearchEngines -index e7fd7cb..f06b66a 100644 ---- a/netsurf/frontends/riscos/appdir/Resources/SearchEngines -+++ b/netsurf/frontends/riscos/appdir/Resources/SearchEngines -@@ -1,22 +1,5 @@ --Google|www.google.com|http://www.google.com/search?q=%s|http://www.google.com/favicon.ico| --Yahoo|search.yahoo.com|http://search.yahoo.com/search?p=%s|http://www.yahoo.com/favicon.ico| --Bing|www.bing.com|http://www.bing.com/search?q=%s|http://www.bing.com/favicon.ico| --Business.com|www.business.com|http://www.business.com/search/rslt_default.asp?query=%s|http://www.business.com/favicon.ico| --Omgili|www.omgili.com|http://www.omgili.com/AAAAA/%s.html|http://www.omgili.com/favicon.ico| --BBC News|search.bbc.co.uk|http://search.bbc.co.uk/search?q=%s&tab=ns|http://news.bbc.co.uk/favicon.ico| --Ubuntu Packages|packages.ubuntu.com|http://packages.ubuntu.com/search?keywords=%s|http://packages.ubuntu.com/favicon.ico| - Creative Commons|creativecommons.org|http://creativecommons.org/?s=%s|http://creativecommons.org/favicon.ico| --Ask.com|www.ask.com|http://www.ask.com/web?q=%s|http://www.ask.com/favicon.ico| --Answers.com|www.answers.com|http://www.answers.com/%s|http://www.answers.com/favicon.ico| - Dictionary.com|dictionary.reference.com|http://dictionary.reference.com/browse/%s?jss=0|http://dictionary.reference.com/favicon.ico| --Youtube|www.youtube.com|http://www.youtube.com/results?search_query=%s|http://www.youtube.com/favicon.ico| --AeroMp3|www.aeromp3.com|http://www.aeromp3.com/search?q=%s|http://www.aeromp3.com/favicon.ico| --AOL|search.aol.com|http://search.aol.com/aol/search?query=%s|http://www.aol.com/favicon.ico| --Baidu|www.baidu.com|http://www.baidu.com/s?wd=%s|http://www.baidu.com/favicon.ico| --Amazon|www.amazon.com|http://www.amazon.com/s/ref=nb_ss_gw?field-keywords=%s|http://www.amazon.com/favicon.ico| --Ebay|shop.ebay.com|http://shop.ebay.com/items/%s|http://www.ebay.com/favicon.ico| --IMDB|www.imdb.com|http://www.imdb.com/find?q=%s|http://www.imdb.com/favicon.ico| --ESPN|search.espn.go.com|http://search.espn.go.com/%s/|http://www.espn.go.com/favicon.ico| - Wikipedia|en.wikipedia.org|http://en.wikipedia.org/w/index.php?title=Special%%3ASearch&search=%s|http://en.wikipedia.org/favicon.ico| --DuckDuckGo|www.duckduckgo.com|http://www.duckduckgo.com/?q=%s|http://www.duckduckgo.com/favicon.ico| --Seeks|www.seeks-project.info|https://www.seeks-project.info/search.php/search?q=%s|http://www.seeks-project.info/search.php/public/images/seek_icon_32x32_transparent.png| -+DuckDuckGo HTML|www.duckduckgo.com/html|http://www.duckduckgo.com/?q=%s|http://www.duckduckgo.com/favicon.ico| -+Seeks|www.seeks.fr|https://www.seeks.fr/search.php/search?q=%s|http://www.seeks.fr/search.php/public/images/seek_icon_32x32_transparent.png| -diff --git a/netsurf/frontends/riscos/appdir/Resources/de/welcome.html,faf b/netsurf/frontends/riscos/appdir/Resources/de/welcome.html,faf -deleted file mode 120000 -index d3cfb11..0000000 ---- a/netsurf/frontends/riscos/appdir/Resources/de/welcome.html,faf -+++ /dev/null -@@ -1 +0,0 @@ --../../../../../resources/de/welcome.html -\ No newline at end of file -diff --git a/netsurf/frontends/riscos/appdir/Resources/de/welcome.html,faf b/netsurf/frontends/riscos/appdir/Resources/de/welcome.html,faf -new file mode 100644 -index 0000000..cdd204a ---- /dev/null -+++ b/netsurf/frontends/riscos/appdir/Resources/de/welcome.html,faf -@@ -0,0 +1,55 @@ -+ -+ -+Welcome to NetSurf -+ -+ -+ -+ -+

NetSurf

-+ -+ -+ -+
-+

Willkommen zu NetSurf

-+ -+

NetSurf ist ein kleiner, schneller Opensource Webbrowser. Wir sind ständig daran interessiert, unseren Browser zu verbessern. Bitte kontaktieren Sie uns, wenn Sie irgend welche Probleme bemerken.
-+Danke, dass Sie sich für NetSurf entschieden haben!

-+ -+
-+
-+ -+ -+
-+
-+ -+ -+ -+ -+
-+ -+ -+ -diff --git a/netsurf/frontends/riscos/appdir/Resources/en/welcome.html,faf b/netsurf/frontends/riscos/appdir/Resources/en/welcome.html,faf -deleted file mode 120000 -index 71020bf..0000000 ---- a/netsurf/frontends/riscos/appdir/Resources/en/welcome.html,faf -+++ /dev/null -@@ -1 +0,0 @@ --../../../../../resources/en/welcome.html -\ No newline at end of file -diff --git a/netsurf/frontends/riscos/appdir/Resources/en/welcome.html,faf b/netsurf/frontends/riscos/appdir/Resources/en/welcome.html,faf -new file mode 100644 -index 0000000..6c146dd ---- /dev/null -+++ b/netsurf/frontends/riscos/appdir/Resources/en/welcome.html,faf -@@ -0,0 +1,54 @@ -+ -+ -+Welcome to NetSurf -+ -+ -+ -+ -+

NetSurf

-+ -+ -+ -+
-+

Welcome to NetSurf

-+ -+

NetSurf is a small, fast open source web browser. We are always keen to improve our browser, so get in touch if you run into any problems. Thanks for choosing NetSurf!

-+ -+
-+
-+ -+ -+
-+
-+ -+ -+ -+ -+
-+ -+ -+ -\ No newline at end of file -diff --git a/netsurf/frontends/riscos/appdir/Resources/it/welcome.html,faf b/netsurf/frontends/riscos/appdir/Resources/it/welcome.html,faf -deleted file mode 120000 -index 6e24135..0000000 ---- a/netsurf/frontends/riscos/appdir/Resources/it/welcome.html,faf -+++ /dev/null -@@ -1 +0,0 @@ --../../../../../resources/it/welcome.html -\ No newline at end of file -diff --git a/netsurf/frontends/riscos/appdir/Resources/it/welcome.html,faf b/netsurf/frontends/riscos/appdir/Resources/it/welcome.html,faf -new file mode 100644 -index 0000000..1dc24f7 ---- /dev/null -+++ b/netsurf/frontends/riscos/appdir/Resources/it/welcome.html,faf -@@ -0,0 +1,54 @@ -+ -+ -+Benvenuti su NetSurf -+ -+ -+ -+ -+

NetSurf

-+ -+ -+ -+
-+

Benvenuti su NetSurf

-+ -+

NetSurf � la nostra idea di browser, per questo abbiamo scelto di renderlo veloce e sicuro ed ogni giorno lavoriamo per renderlo migliore, se hai qualche suggerimento o semplicemente hai bisogno di aiuto contattaci!

Grazie per aver scelto NetSurf!

-+ -+
-+
-+ -+ -+
-+
-+ -+ -+ -+ -+
-+ -+ -+ -diff --git a/netsurf/frontends/riscos/appdir/Resources/ja/welcome.html,faf b/netsurf/frontends/riscos/appdir/Resources/ja/welcome.html,faf -deleted file mode 120000 -index 1dfdbd7..0000000 ---- a/netsurf/frontends/riscos/appdir/Resources/ja/welcome.html,faf -+++ /dev/null -@@ -1 +0,0 @@ --../../../../../resources/ja/welcome.html -\ No newline at end of file -diff --git a/netsurf/frontends/riscos/appdir/Resources/ja/welcome.html,faf b/netsurf/frontends/riscos/appdir/Resources/ja/welcome.html,faf -new file mode 100644 -index 0000000..925ac38 ---- /dev/null -+++ b/netsurf/frontends/riscos/appdir/Resources/ja/welcome.html,faf -@@ -0,0 +1,55 @@ -+ -+ -+ -+NetSurfへようこそ -+ -+ -+ -+ -+

NetSurf

-+ -+ -+ -+
-+

NetSurfへようこそ

-+ -+

NetSurfは小さくて速いオープンソースのウェブブラウザです。私たちはいつもこのブラウザを改良する気満々ですから、どんな問題でも声をかけてください。NetSurfを選んでくれてありがとう!

-+ -+
-+
-+ -+ -+
-+
-+ -+ -+ -+ -+
-+ -+ -+ -diff --git a/netsurf/frontends/riscos/appdir/Resources/nl/welcome.html,faf b/netsurf/frontends/riscos/appdir/Resources/nl/welcome.html,faf -deleted file mode 120000 -index 6de5c4a..0000000 ---- a/netsurf/frontends/riscos/appdir/Resources/nl/welcome.html,faf -+++ /dev/null -@@ -1 +0,0 @@ --../../../../../resources/nl/welcome.html -\ No newline at end of file -diff --git a/netsurf/frontends/riscos/appdir/Resources/nl/welcome.html,faf b/netsurf/frontends/riscos/appdir/Resources/nl/welcome.html,faf -new file mode 100644 -index 0000000..62dc1bb ---- /dev/null -+++ b/netsurf/frontends/riscos/appdir/Resources/nl/welcome.html,faf -@@ -0,0 +1,66 @@ -+ -+ -+Welkom bij NetSurf -+ -+ -+ -+ -+

NetSurf

-+ -+ -+ -+
-+

Welkom bij NetSurf

-+ -+

NetSurf is een kleine, snelle webbrowser met open broncode. Wij willen altijd onze browser nog beter maken. Neem dus contact op met de ontwikkelaars (in het Engels!) of met de vertalers (gewoon in het Nederlands) mocht je verbeteringsvoorstellen hebben en/of problemen ervaren. Bedankt dat je voor NetSurf hebt gekozen.

-+ -+
-+
-+ -+ -+
-+
-+ -+ -+ -+ -+
-+ -+ -+ -diff --git a/netsurf/resources/SearchEngines b/netsurf/resources/SearchEngines -index 38e7795..c4dd5e2 100644 ---- a/netsurf/resources/SearchEngines -+++ b/netsurf/resources/SearchEngines -@@ -1,20 +1,5 @@ --Google|www.google.com|http://www.google.com/search?q=%s|http://www.google.com/favicon.ico| --Yahoo|search.yahoo.com|http://search.yahoo.com/search?p=%s|http://www.yahoo.com/favicon.ico| --Bing|www.bing.com|http://www.bing.com/search?q=%s|http://www.bing.com/favicon.ico| --Business.com|www.business.com|http://www.business.com/search/rslt_default.asp?query=%s|http://www.business.com/favicon.ico| --Omgili|www.omgili.com|http://www.omgili.com/AAAAA/%s.html|http://omgili.com/public/images/favicon.ico| --BBC News|search.bbc.co.uk|http://search.bbc.co.uk/search?q=%s&tab=ns|http://www.bbc.co.uk/favicon.ico| --Ubuntu Packages|packages.ubuntu.com|http://packages.ubuntu.com/search?keywords=%s|http://packages.ubuntu.com/favicon.ico| - Creative Commons|creativecommons.org|http://creativecommons.org/?s=%s|http://creativecommons.org/favicon.ico|fixme:favicon does not work as it is served as x-icon and is a png --Ask.com|www.ask.com|http://www.ask.com/web?q=%s|http://sp.uk.ask.com/sh/i/a14/favicon/favicon.ico|fixme:favicon is served as text/plain - Dictionary.com|dictionary.reference.com|http://dictionary.reference.com/browse/%s?jss=0|http://dictionary.reference.com/favicon.ico| --Youtube|www.youtube.com|http://www.youtube.com/results?search_query=%s|http://www.youtube.com/favicon.ico| --AOL|search.aol.com|http://search.aol.com/aol/search?query=%s|http://www.aol.com/favicon.ico| --Baidu|www.baidu.com|http://www.baidu.com/s?wd=%s|http://www.baidu.com/favicon.ico| --Amazon|www.amazon.com|http://www.amazon.com/s/ref=nb_ss_gw?field-keywords=%s|http://www.amazon.com/favicon.ico| --Ebay|shop.ebay.com|http://shop.ebay.com/items/%s|http://www.ebay.com/favicon.ico| --IMDB|www.imdb.com|http://www.imdb.com/find?q=%s|http://www.imdb.com/favicon.ico| --ESPN|search.espn.go.com|http://search.espn.go.com/%s/|http://www.espn.go.com/favicon.ico| - Wikipedia|en.wikipedia.org|http://en.wikipedia.org/w/index.php?title=Special%%3ASearch&search=%s|http://en.wikipedia.org/favicon.ico| --DuckDuckGo|www.duckduckgo.com|http://www.duckduckgo.com/html/?q=%s|http://www.duckduckgo.com/favicon.ico|fixme:Their ico upsets the current implementation --Seeks|www.seeks-project.info|https://www.seeks-project.info/search.php/search?q=%s|http://www.seeks-project.info/search.php/public/images/seek_icon_32x32_transparent.png|fixme:they have no icon -+DuckDuckGo HTML|www.duckduckgo.com/html|http://www.duckduckgo.com/html/?q=%s|http://www.duckduckgo.com/favicon.ico|fixme:Their ico upsets the current implementation -+Seeks|www.seeks.fr|https://www.seeks.fr/search.php/search?q=%s|http://www.seeks.fr/search.php/public/images/seek_icon_32x32_transparent.png|fixme:they have no icon diff --git a/nonprism/netsurf/PKGBUILD b/nonprism/netsurf/PKGBUILD new file mode 100644 index 0000000..83cae20 --- /dev/null +++ b/nonprism/netsurf/PKGBUILD @@ -0,0 +1,117 @@ +# Maintainer (arch): Alexander F. Rødseth +# Contributor: Paulo Matias +# Contributor: Georgij Kondratjev +# Contributor: Daniel J Griffiths +# Contributor: André Silva +# Maintainer: Omar Vega Ramos +# Contributor: bill-auger + + +# parabola changes and rationale: +# - remove/replace non-privacy remote services + + +pkgname=netsurf +pkgver=3.11 +pkgrel=1 +pkgrel+=.parabola1 +pkgdesc='Lightweight and fast web browser' +pkgdesc+=', without non-privacy remote services' +arch=(x86_64) +arch+=(armv7h i686) +url='https://www.netsurf-browser.org/' +license=(GPL2 MIT) +depends=(curl gtk3 'libcss>=0.9.2' 'libdom>=0.4.2' 'libhubbub=0.3.8' + libjpeg-turbo 'libnsbmp>=0.1.7' 'libnsgif>=1.0.0' 'libnsutils=0.1.1' + 'libutf8proc>=2.9.0' 'libwapcaplet>=0.4.3' libwebp) +# vim is needed only for xxd when building +makedepends=(check inetutils 'nsgenbind>=0.9' perl-html-parser setconf vim) +source=("https://git.netsurf-browser.org/netsurf.git/snapshot/netsurf-release/$pkgver.tar.bz2" + netsurf.sh) +source+=(remove_nonprivacy_options.patch) +b2sums=('9714735389aa752b5e11a13c3e6e4fc456589517e98fe55025725e05e38a52afea377d53703553ec9d94e492c58f7e1b5ed04c7a0c4fb5158c3053eeedfddcdc' + 'f0220a0c2c03d567434deeed20f821dc110947e16889aa78e12e3f468a431d2f721b9cff23bd6ed3545323f3ed975ea0941f0ee61c4b09938b8bfb99764f8bc8') +b2sums+=('5e0dfb2e3f7fae9a9f346d825480c0cda397444e7ec7e1ae0f41ae0cf31aabff8825ec893cd0e2b940dc21e1599b52454f46e9d53a2b0990f53a7b6ceb382af0') + + +prepare() { + cd $pkgname-release/$pkgver + # Fix compilation issues + sed -i 's:libutf8proc/::;s:UTF8PROC_CCC_VIRAMA:UTF8PROC_BIDI_CLASS_EN:' utils/idna.c + # Use "netsurf" as the name of the executable in /usr/bin + setconf frontends/gtk/res/netsurf-gtk.desktop 'Exec=netsurf %u' + + + ## parabola patching ## + + # remove/replace non-privacy remote services + cd "${srcdir}"/$pkgname-release/$pkgver + echo "applying remove_nonprivacy_options.patch" + patch -p1 -i "${srcdir}"/remove_nonprivacy_options.patch + + # replace search form URL and "quick links" on the welcome page + local welcome_pages=( $(find -name welcome.html) ) + local search_repl=' +' + local links_repl=' +

Quick links:

+' + local search_awk_prog='BEGIN { RS=SUBSEP } { gsub(/
/ , repl) ; } 1' + local links_awk_prog=' BEGIN { RS=SUBSEP } { gsub(/