Commit graph

50 commits

Author SHA1 Message Date
af90213c2a Added new checks and removed unnecessary code in bldpkg 2022-09-25 22:25:51 +05:30
081ecb4d39 Updated TODO in bldpkg script 2022-09-24 14:31:46 +05:30
983adfe29f Added more version-specific URL to download variable in base/shellcheck build file
Undertook code cleanup in bldpkg based on suggestions from shellcheck binary
Shellcheck suggestions aside, changes to bldpkg include:
-> Updated TODO list
-> Added set -e again
-> Replaced single-letter variables in runtime function with more sensible variable names
-> Restored man page compression and linking code from earlier bldpkg commits
-> Fixed code to move pkgconfig files from $pkg/share to $pkg/lib
2022-09-23 14:05:42 +05:30
5d96370bf5 Build file cleanups
Changes to bldpkg:
-> Added additional variables to be more verbose when showing either errors, warnings or info messages
-> Optimized find command options in various places
-> Discarded makepkg function and moved its code inside mkfinalpkg function
-> Discarded removestaticlibs function.
-> Static libraries are now compulsorily discarded unless preservestaticlibs variable is set near the top of the build file
-> Several smaller fixes
2022-09-13 08:31:03 +05:30
4a48417c00 Numerous fixes, enhancements and updation to TODO list in bldpkg 2022-09-08 11:04:25 +05:30
549283c0b8 Cleaned up base/initfs build file
Made following changes to bldpkg:
* Introduced makepkg function to remove dependency on external base/pkgtools/makepkg script
* Simplified code inside applypatch function
* Added pigz and plzip parallel compressors inside pkgext case/esac
* Miscellaneous fixes
2022-09-07 11:08:42 +05:30
bf538d3cfd Replaced single quotes with double quotes in base/libgit2
Changes to bldpkg:
* Fixed indentation in help usage function
* Fixed if/else code
* Added a check to cause bldpkg to fail if build validation function fails
* Simplified code for validating custom cpu flags
* Miscellaneous fixes
2022-09-05 20:18:27 +05:30
8c90307be6 Changes to bldpkg:
* Replaced echo with cat for generating summary and fixed related code
* Added -o option for copying alternate build file
* Fixed identation for help usage
* Moved all code related to validating build files into a function 'validatebldfile'
* Use printf for colours
* Added miscellaneous supporting code and comments
2022-09-04 23:01:12 +05:30
80441dbcaf Changes to bldpkg:
* Added code to check if autobuildtemp is set before removing $tempfile
* Added wait argument to nc for probing distccd port
* Removed double quotes from various places
* Updated TODO
2022-09-02 10:37:00 +05:30
3fe6609c23 Changes to bldpkg:
* Updated TODO
* Added double quotes in some commands
* Fixed command explanation in help function
2022-09-01 17:09:41 +05:30
6b4699ccfb Replaced upper-case COMPRESSOPTS variable to lower case in pkgtools/makepkg script in base
Changes to bldpkg:
  -> Added code to validate hosts using netcat when distcc is enabled and also update DISTCC_HOSTS variable accordingly
  -> Using subshell unnecessary; removed it from top and bottom of the file
  -> Fixed wordings in help function
  -> Simplified code for populating buildfile variable by discarding srcdirpath variable
  -> Added required files to be checked when the build starts as an array
  -> genchecksum function is now a variable
  -> Added missing -j in customcputhreads variable; previously the value was ignored by MAKEFLAGS
  -> Added missing '[ERROR]' word when validating build file
  -> Added missing exit when auditd binary was not found
  -> Added sleep when auditd log file exceeds certain lines
  -> Added checks to exit build when sha512 checksums fail to match
  -> Added checks and fixed code when working with patches
  -> Discarded unnecessary double quotes in values inside validpkgextensions array
  -> Fixed identation
2022-08-31 23:40:55 +05:30
a488b78a7f Added new features to bldpkg 2022-08-28 13:13:52 +05:30
fff405029c Updated TODO list in bldpkg 2022-08-25 14:54:54 +05:30
0516150d3d Changes to bldpkg:
* Added auditd-related code
  * Added code to move documentation in the staging directory into right subdirectory
2022-08-25 14:25:45 +05:30
679dc27727 Changes to bldpkg:
* Removed redundant functions
* Added further code to validate build variables
2022-08-18 12:13:41 +05:30
adf409e52b Added genpacklist, a script that extracts package info for use in slapt-get program
Removed redundant code in bldpkg
2022-08-12 16:07:14 +05:30
15e8567f19 Added man-pages to base
Added xfce4-sensors-plugin to xfce
Updated base and xfce4 build lists
Cleaned up code in bldpkg
2022-08-12 16:01:41 +05:30
c6e8906429 Improved code in bldpkg 2022-08-10 17:23:17 +05:30
5d9b19c210 Changes to bldpkg:
* Removed sourcebuildfile function call in various functions to cause sourcing to happen only once
* Added code that invokes /etc/rc.d/rc.gtk whenever /share/applications directory is detected
  to update a system's GTK cache
2022-08-10 14:33:57 +05:30
73cff466bf Changes to bldpkg:
* Added code that detects stripped binaries before we actually strip them of debug symbols
Fixed various typos and code
2022-08-09 15:49:36 +05:30
00b7252c7d Changes to bldpkg:
* Added more stuff in TODO
* Rearranged code that sources bldpkg.conf a few lines up
* Renamed function debugmode to tracemode
* Defined setbuildfile, autoextractmode, displaysummary and setcputhreads functions and added corresponding option letters to getopts
* Added explanation in the help function
* Added temporary commented code for detecting stripped binaries and libraries before they are actually stripped
* Discarded -exec rm -v since the find command already contains -delete
* Discarded --strip-unneeded option from strip command
* Miscellaneous fixes
2022-08-08 22:52:50 +05:30
5ae4ac2d86 Some more code additions and cleanups in bldpkg 2022-07-26 10:01:17 +05:30
434610595c Added and improved code in bldpkg 2022-07-25 12:05:35 +05:30
a597075434 Made code improvements in bldpkg script 2022-07-16 17:45:16 +05:30
d4ffa5e1ac Removed unnecessary code in bldpkg
Added sha512 checksums in extra/wxwidgets build file
2022-07-05 14:20:08 +05:30
c006f22e5c Changes to bldpkg:
* Fixed code that prevented writing to BUILDMONITOR.html when $showsummary was set to 0 by moving it into its own separate function
* Also moved out code for cleaning up build files into a separate function
* Made miscellaneous fixes and removed unnecessary code
2022-07-04 16:41:13 +05:30
3835706f03 Added code to display usage options in bldpkg 2022-07-04 14:46:29 +05:30
695d7fa5ec Changes to bldpkg:
* Removed redundant code that checked  for usr/var directory inside the staging directory since the existence of usr is already checked in previous lines
* Added and fixed double quotes in various places
2022-03-06 09:32:57 +05:30
9dea5427ca Improved write check on tmpfsdir in bldpkg script 2022-02-28 16:14:17 +05:30
6acad40352 Changes to bldpkg:
* Added missing "$" in srcdirpath.SMBuild line
* Removed code that outputs an error in case the extension check fails.
* Added code to warn user when old package build and staging directories not belonging to current packge
  exist inside the tmpfs directory
* Fixed sccachepath typos in code that validates sccache binary and hardlinks
* Added code to export RUSTC_WRAPPER variable when sccache is enabled
2022-02-28 10:47:13 +05:30
d0cd8472c9 Introduced applypatch in line with part of the TODO list 2022-02-23 23:12:42 +05:30
7af1f8857d Updated TODO, repositioned packlocation variable and pointed makepkg to it 2022-02-23 15:17:04 +05:30
59309bc460 Removed redundant code from build summary and updated TODO list in bldpkg 2022-02-23 14:03:19 +05:30
b461a9fc8f Allow dash symbol as application name, updated ERROR line when checking for set build variables 2022-02-22 14:42:06 +05:30
a67257b7d7 Changes in bldpkg:
* Added code to validate app, version, homepage, download and desc variables
* Updated TODO
* Readjusted location of code that outputs current package being built
Readjusted description length in several packages in base section
2022-02-22 12:03:21 +05:30
b341d63e6a Added [ERROR]s and [INFO]s, removed unnecessary parenttmp directory check in bldpkg
Updated download URL in base/expat build filewhich was upgraded in previous commit
Converted all upper case variables to lower case in mksm
2022-02-20 22:42:28 +05:30
e9facc22a4 Updated bldpkg TODO list 2022-02-18 09:05:58 +05:30
a418675a82 Changes to bldpkg:
* "subshelled" the entire script and discarded code to unset variables
* Moved up code that displays application name and version at the start
  of the build a few lines up
* Fixed typos
2022-02-15 15:22:59 +05:30
16246f3ef9 -> Updated CREDITS
-> Added licenses and copyrights in main and section build files
-> Fixed identation and added miscellaneous code and commentsin bldpkg
2022-02-15 10:31:48 +05:30
1dd82276d1 Discarded obsolete stuff in main and section build files 2022-02-14 13:18:24 +05:30
bf6282a1f7 Changes to bldpkg:
* Converted all upper case variable names to lower case
* Added a TODO section at the top of the script
* Improved code that checks which build variables and functions are not set inside an SMBuild at the beginning of the build
* Moved code that searches for build dependencies near the top of the script and fixed search path to /share/doc
* Added a simple check to determine whether the parent temporary directory is writable
* Commented out code that places $app.{app,version,build} files inside parent temp directory
* Moved code that verifies checksums of source files near the top of the script
* Improved code that exports CONFIG_SITE for autoconf-based packages
* Fixed variable name "tmpfssavingsize"
* Discarded code that introduced passfailcleanup and interruptcleanup functions and reverted back to
  prepbuildsummary and interruptsummary functions
2022-02-14 09:03:51 +05:30
ec8d4408fb Changes to bldpkg script:
Fixed identation in parts of the script
Moved SM_COMMENCEDATE variable at the top of the script
Merged SM_HTMLOUTPUT code above inarray function code into one below that function
Created two new functions - passfailcleanup and interruptcleanup. passfailcleanup deals and moved SM_HTMLOUTPUT code from existing prepbuildsummary and interruptsummary
into those two functions
2022-02-06 19:41:10 +05:30
ed95528e8f -> Set various defaults in bldpkg.conf
->Added SM_CHECKDEPENDENCIES variable in bldpkg.conf and related code in bldpkg to toggle whether to
  check for build/runtime dependencies
2022-02-05 09:14:52 +05:30
1ac50d765d Merged files inside bldpkg.d directory into main bldpkg script 2022-02-04 18:07:56 +05:30
d1ed3cb7ca Added and variable checks in bldpkg 2022-02-03 20:14:29 +05:30
183616d75a Added new SM_SKIPCHECKSUM variable in bldpkg and sample buildfile
Removed more redundant code from base/pkgtools build file
2022-01-31 18:50:13 +05:30
a04f324663 Moved genchecksum function in bldpkg to its own new file and made miscellaneous changes to bldpkg 2022-01-29 22:40:15 +05:30
dc73b547c6 Discarded redundant verifychecksums code from bldpkg 2022-01-29 01:20:03 +05:30
9e36264f28 Moved verify function as a separate file and renamed it to verifychecksums 2022-01-28 23:58:53 +05:30
98e71a6096 Initial commit 2022-01-28 23:06:05 +05:30