3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/games
aszlig 948d828955
uqm: Fix purity checking error during config phase
Since commit fb777be7d2, linking programs
in /tmp will no longer work, since with this commit (hardcoded) /tmp
will no longer be treated a valid temporary directory by the purity
checking logic.

Essentially what that logic does is checking whether the link target is
either relative, in some temporary directory or in the Nix store and if
that's not the case, an error is thrown like in this case:

  gcc -c /tmp/build.24.tmp.c -o /tmp/build.24.tmp.c.o
  gcc /tmp/build.24.tmp.c.o -o /tmp/build.24.tmp.out
  impure path `/tmp/build.24.tmp.out' used in link
  collect2: error: ld returned 1 exit status

Note here, that $TMP and $TMPDIR point to /build while the output here
still refers to /tmp. This is because the custom build system of uqm
simply hardcodes /tmp and doesn't honor any of these variables.

To fix this, all we need to do is the latter and we're now using $TMPDIR
instead of /tmp for these compile-tests during configure.

While the pull request[1] introducing said commit has a few comments
regarding other issues and it could still be either reverted or changed,
using $TMPDIR in the uqm build script is entirely backwards-compatible
and shouldn't hurt in any case.

[1]: https://github.com/NixOS/nixpkgs/pull/93560

Signed-off-by: aszlig <aszlig@nix.build>
2020-09-18 12:33:03 +02:00
..
0ad
20kly
90secondportraits
2048-in-terminal
abbaye-des-morts
adom
airstrike
alephone
alienarena
amoeba
andyetitmoves
angband angband: 4.2.0 -> 4.2.1 2020-06-08 11:43:11 -07:00
anki anki: expression cleanup 2020-07-01 04:29:09 +02:00
arena arena: update to version 3.10 (beta release) 2020-08-14 15:44:24 +02:00
armagetronad
arx-libertatis inkscape_0: drop 2020-09-10 20:46:55 +02:00
asc
assaultcube treewide: remove deprecated value Application from makeDesktopItem 2020-06-25 12:18:37 +10:00
astromenace
atanks
augustus augustus: init at 1.4.1a 2020-06-14 23:22:40 +01:00
azimuth
ball-and-paddle
banner
bastet
beret
bitsnbots
blackshades
blobby
boohu
braincurses
brogue
bsdgames
btanks
bzflag
cataclysm-dda doc: add section for cataclysm-dda 2020-07-18 14:23:25 +09:00
chessdb
chessx
chiaki chiaki: 1.1.3 -> 1.2.1 2020-07-12 20:52:11 +02:00
chocolate-doom chocolateDoom: 3.0.0 -> 3.0.1 2020-07-03 04:23:16 +00:00
ckan
cockatrice cockatrice: 2020-03-20-Release-2.7.4 -> 2020-08-23-Release-2.7.5 2020-09-04 08:59:50 +00:00
commandergenius
construo
crack-attack
crafty
crawl crawl: 0.25.0 -> 0.25.1 2020-09-04 09:41:46 +00:00
crispy-doom crispyDoom: fixed CVE-2020-14983 2020-07-05 20:09:32 +02:00
crrcsim treewide: remove the-kenny from maintainers 2020-05-09 10:28:57 +01:00
curseofwar curseofwar,curseofwar-sdl: fix darwin build 2020-07-30 10:49:50 +02:00
cutemaze
cuyo
devilutionx
dhewm3
duckmarines
dwarf-fortress dwarf-fortress: TWBT: use fork for dfhack 0.47.04 support 2020-08-21 14:45:53 -07:00
dxx-rebirth
easyrpg-player easyrpg-player: 0.6.2 -> 0.6.2.1 2020-06-14 14:05:54 +00:00
eboard
eduke32 treewide: remove deprecated value Application from makeDesktopItem 2020-06-25 12:18:37 +10:00
egoboo
eidolon maintainers: 0x4A6F -> _0x4A6F 2020-08-18 07:59:44 +10:00
empty-epsilon EmptyEpsilon: 2020-04-09 -> 2020-08-07 2020-08-08 23:43:42 +02:00
endgame-singularity endgame-singularity: add option to disable the default music pack 2020-07-05 17:37:08 +02:00
endless-sky
enyo-doom
eternity-engine
extremetuxracer
exult Update to 1.6 2020-08-27 17:30:23 -04:00
ezquake
factorio factorio: update all x86_64 versions to 1.0.0 2020-08-17 18:48:57 -07:00
fairymax
fish-fillets-ng
flare
flightgear Rename flightgear-{base -> data} 2020-07-01 14:58:09 +02:00
fltrator
freecell-solver formatting: fix missing leading whitespace 2020-06-07 17:29:08 -04:00
freeciv Merge pull request #84209 from prusnak/freeciv 2020-05-10 23:11:07 +02:00
freedink
freedroidrpg
freeorion
freesweep
frogatto treewide: remove deprecated value Application from makeDesktopItem 2020-06-25 12:18:37 +10:00
frotz frotz: 2.44 -> 2.52 2020-08-06 15:23:15 -04:00
frozen-bubble
fsg
galaxis formatting: fix missing leading whitespace 2020-06-07 17:29:08 -04:00
gambatte gambatte: add alsa dependency, 2016-05-03 -> 2020-03-14 2020-09-09 15:28:24 +09:00
garden-of-coloured-lights
gargoyle gargoyle: 2018.10.06 -> 2019.01.01 2020-06-21 09:04:16 -06:00
gav
gcompris
gcs
gemrb gemrb: 0.8.6 -> 0.8.7 2020-08-30 11:45:31 +08:00
gl-117
globulation
gltron
gmad
gnome-hexgl gnome-hexgl: 0.2.0 → unstable-2020-07-24 2020-08-11 23:20:28 +02:00
gnubg
gnuchess gnuchess: 6.2.6 -> 6.2.7 2020-05-31 18:23:58 +01:00
gnugo
gnujump
gnushogi
gogui
gscrabble
gshogi
gtetrinet
gtypist
gweled
gzdoom GZDoom 4.3.3 -> 4.4.2 2020-07-16 23:45:10 +02:00
harmonist
hawkthorne
hedgewars hedgewars: enable build on hydra 2020-09-04 10:53:46 +02:00
holdingnuts
hyperrogue hyperrogue: 11.3l -> 11.3o 2020-06-06 09:25:34 +00:00
icbm3d
instead instead: 3.3.1 -> 3.3.2; fix compilation 2020-09-09 10:36:06 -07:00
instead-launcher
ivan
ja2-stracciatella
julius julius: init at 1.4.1 2020-06-14 23:11:52 +01:00
katago katago: 1.6.0 -> 1.6.1 2020-08-28 13:48:49 -04:00
keen4
keeperrl
klavaro Merge staging-next into staging 2020-08-27 08:37:03 +02:00
kobodeluxe
lbreakout2
leela-zero
left4gore left4gore: Init at 2.3 2020-09-02 22:15:08 +02:00
legendary-gl legendary-gl: init at 0.0.14 2020-05-30 18:02:05 -04:00
lgogdownloader
liberal-crime-squad
lincity
liquidwar
ltris
lugaru
macopix
mar1d
mari0 mari0: init at 1.6.2 2020-05-07 12:50:18 -07:00
mars
megaglest
meritous
mindustry
minecraft minecraft: 2.1.15852 -> 2.1.16102 2020-07-26 22:35:02 +02:00
minecraft-server minecraft-server: 1.16.2 -> 1.16.3 2020-09-10 17:39:34 +02:00
minetest minetest: 5.2.0 -> 5.3.0 2020-07-11 15:33:23 +02:00
mnemosyne mnemosyne: 2.7.1 -> 2.7.2 2020-08-07 00:37:55 -07:00
moon-buggy
mrrescue
mudlet mudlet: 4.3 -> 4.9.1 2020-06-18 19:15:31 +02:00
multimc
n2048
naev
nethack
netris netris: init at 0.52 2020-05-06 00:16:08 +05:30
neverball
newtonwars
nexuiz
ninvaders maintainers: 1000101 -> _1000101 2020-08-18 07:59:48 +10:00
njam
nottetris2 nottetris2: init at 2.0 (#87028) 2020-05-22 20:40:13 +02:00
nudoku
nxengine-evo
odamex
oilrush
onscripter-en
openarena
openclonk
opendune
opendungeons
openjk openjk: 2019-11-29 -> 2020-07-03 2020-08-06 09:46:00 +03:00
openlierox
openmw openmw-tes3mp: fix build after #80624 (#91045) 2020-06-18 12:49:27 -04:00
openra
openrct2 openrct2: 0.2.6 -> 0.3.0 2020-08-15 19:41:21 -07:00
openrw treewide: use ffmpeg_3 explicitly if not wanted otherwise 2020-06-12 11:55:31 -07:00
openspades
openttd openttd: 1.10.2 -> 1.10.3 2020-08-11 18:24:05 +02:00
opentyrian
openxcom
openxray openxray: 558 -> 730 2020-08-06 08:58:45 +03:00
orthorobot
osu-lazer osu-lazer: 2020.820.0 -> 2020.903.0 2020-09-05 13:08:02 +00:00
pacvim
papermc papermc: cleanup 2020-08-25 14:46:24 +02:00
pentobi pentobi: 18.0 -> 18.1 2020-07-05 21:49:43 +00:00
performous
pingus treewide: replace SRI hashes 2020-06-01 15:24:19 +02:00
pioneer
pioneers
planetaryannihilation
pokerth
pong3d
prboom
privateer treewide: use ffmpeg_3 explicitly if not wanted otherwise 2020-06-12 11:55:31 -07:00
pro-office-calculator
pysolfc
qgo
qqwing
qtads
quake2/yquake2 yquake2: 7.30 -> 7.43 2020-06-02 13:41:53 +02:00
quake3
quakespasm
quantumminigolf
racer
redeclipse
residualvm
rftg
rigsofrods
riko4
rili
rimshot
robotfindskitten
rocksndiamonds
rogue
rrootage
runelite treewide: remove deprecated value Application from makeDesktopItem 2020-06-25 12:18:37 +10:00
sauerbraten
scid
scid-vs-pc
scorched3d
scrolls
scummvm
sfrotz sfrotz: init at 2.52 2020-08-06 15:13:07 -04:00
sgt-puzzles
shattered-pixel-dungeon shattered-pixel-dungeon: 0.8.2b -> 0.8.2d 2020-09-05 18:03:57 +00:00
sienna
sil
simutrans
sm64ex sm64ex: init at unstable-2020-06-19 2020-07-17 01:46:55 +02:00
snake4
snipes
soi
solarus
space-orbit
speed-dreams
spring springLobby: 0.269 -> 0.270 2020-07-07 14:18:31 +00:00
stardust
steam steam: fix typo in LD_LIBRARY_PATH (#97818) 2020-09-11 23:19:31 -04:00
stepmania
stockfish
stuntrally
super-tux-kart SuperTuxKart: Replaced some bundled libraries with system ones 2020-06-27 18:45:18 +02:00
supertux superTux: 0.6.1.1 -> 0.6.2 2020-05-24 12:34:37 +00:00
system-syzygy
t4kcommon
taisei taisei: 1.3 -> 1.3.1 2020-06-09 02:52:05 +00:00
tcl2048
tdm tdm: 2.07 -> 2.08 2020-09-06 20:31:59 +02:00
teetertorture
teeworlds nixos/{modules,tests}/teeworlds: init 2020-06-06 17:06:23 +02:00
tennix
terraria-server terraria-server: 1.4.0.4 -> 1.4.0.5 2020-06-09 00:30:09 -04:00
the-butterfly-effect tbe: fix build 2020-05-09 11:59:13 +02:00
the-powder-toy the-powder-toy: 94.1 -> 95.0 2020-08-08 07:57:13 +07:00
tibia
tintin tintin: 2.02.02 -> 2.02.03 2020-05-27 18:02:18 +00:00
tinyfugue
tome2 tome2: fix typo in .desktop file 2020-05-06 14:37:06 -03:00
tome4 tome4: fix error in .desktop file 2020-06-04 20:31:42 -04:00
toppler
torcs
trackballs
tremulous
trigger
tuxpaint tuxpaint: 0.9.22 -> 0.9.24 2020-06-06 18:27:02 +02:00
tuxtype
typespeed
ue4
ue4demos
ufoai
ultimatestunts
ultrastardx fpc: 3.0.4 -> 3.2.0 2020-09-03 14:52:18 +02:00
unnethack unnethack: 5.2.0 -> 5.3.2 (#97595) 2020-09-14 20:48:49 -07:00
uqm uqm: Fix purity checking error during config phase 2020-09-18 12:33:03 +02:00
urbanterror
ut2004 treewide: remove deprecated value Application from makeDesktopItem 2020-06-25 12:18:37 +10:00
vapor
vassal vassal: 3.2.17 -> 3.3.2 2020-08-31 16:53:23 +02:00
vdrift scons.py2: Replace with sconsPackages.scons_3_1_2 2020-07-18 10:48:20 +02:00
vectoroids
vessel
vitetris
vms-empire formatting: fix missing leading whitespace 2020-06-07 17:29:08 -04:00
voxelands
warmux
warsow
warzone2100
wesnoth wesnoth: 1.14.12 -> 1.14.13 2020-06-22 23:33:34 +02:00
widelands
worldofgoo
wyvern wyvern: init at 1.4.1 2020-09-10 19:27:00 +00:00
xbill
xboard
xbomb
xconq
xcowsay xcowsay: Init at 1.4 2020-08-25 22:08:39 +02:00
xjump
xmage
xmoto
xonotic
xpilot
xskat
xsnow
xsok
xsokoban
xtris
zandronum zandronum: use new hg url 2020-09-08 16:26:41 +02:00
zangband
zaz
zdoom
zod
zoom