Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | makefiles: define root dir and include relative to it | 2022-06-12 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A non-absolute path on an include command is always treated as being relative to the directory in which "make" was started in, rather than being relative to the makefile that contains the command. For example, given the following project structure and file contents: * Makefile: include src/foo.mk * src/foo.mk: include bar.mk * src/bar.mk: Running "make" on the root project directory (that is, where "Makefile" is) yields the following: src/foo.mk:1: bar.mk: No such file or directory As "bar.mk" in "include bar.mk" is relative to the current (process) directory (that is, "./bar.mk") and not to where foo.mk is located in ("./src/bar.mk"). So on every makefile that contains an include command, define the root project directory in the ROOT variable and always include relative to it, to later enable any included mkfiles to include other mkfiles without having to worry about the correct path. Commands used to search and replace: $ git grep -Flz 'include ../common.mk' -- src | xargs -0 -I '{}' sh -c \ "printf '%s\n' \"\`sed 's|include ../common.mk|ROOT = ../..\ninclude \$(ROOT)/src/common.mk|' '{}'\`\" >'{}'" Environment: GNU make 4.3-3.1 on Artix Linux | ||
* | fixes | 2022-06-02 | |
| | |||
* | hostnames.c: fix mismatched dealloc (fclose -> pclose) | 2022-04-28 | |
| | | | | | | | | | | | | | | | | | | | Partial error log when building firejail-git (afee8603f) with --enable-fatal-warnings: hostnames.c: In function ‘retrieve_hostname’: hostnames.c:53:17: error: ‘fclose’ called on pointer returned from a mismatched allocation function [-Werror=mismatched-dealloc] 53 | fclose(fp); | ^~~~~~~~~~ hostnames.c:38:20: note: returned from ‘popen’ 38 | FILE *fp = popen(cmd, "r"); | ^~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[1]: *** [Makefile:7: hostnames.o] Error 1 Environment: gcc 11.2.0-4 on Artix Linux. Added on commit 500a56efd ("more on nettrace", 2022-01-07). | ||
* | small fixes | 2022-04-10 | |
| | |||
* | nettrace fixes | 2022-04-05 | |
| | |||
* | netlocker fixes | 2022-02-02 | |
| | |||
* | hostnames -> static-ip-map | 2022-01-20 | |
| | |||
* | compile fix | 2022-01-18 | |
| | |||
* | nettrace fixes | 2022-01-18 | |
| | |||
* | compile warnings | 2022-01-16 | |
| | |||
* | more on nettrace | 2022-01-16 | |
| | |||
* | fix warzone2100 (Debian 11) | 2022-01-13 | |
| | |||
* | fix scan-build | 2022-01-11 | |
| | |||
* | fix scan-build/cppcheck warnings | 2022-01-11 | |
| | |||
* | remove compile warning | 2022-01-10 | |
| | |||
* | nettrace | 2022-01-09 | |
| | |||
* | 2022 copyright update | 2022-01-07 | |
| | |||
* | more on nettrace | 2022-01-07 | |
| | |||
* | nettrace/netlock | 2022-01-04 | |
| | |||
* | remove compile warnings | 2021-12-28 | |
| | |||
* | updates | 2021-12-28 | |
| | |||
* | nettrace/netlock | 2021-12-28 | |