Skip to content

Commit

Permalink
Merge pull request #7 from dwoz/pkgdata
Browse files Browse the repository at this point in the history
Fix package data location
  • Loading branch information
dwoz authored Sep 13, 2024
2 parents 33cc0c3 + 103d398 commit fa2a187
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/gdbdbg/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@ def build_gdb(prefix):
os.environ["CFLAGS"] = (
f"{os.environ['CFLAGS']} -I{os.environ['RELENV_PATH']}/include/ncursesw "
f"-I{os.environ['RELENV_PATH']}/include/readline "
f"-I{os.environ['RELENV_PATH']}/lib/python3.10/site-packages/relenv_gdb/gdb/include"
f"-I{os.environ['RELENV_PATH']}/lib/python3.10/site-packages/gdbdbg/gdb/include"
)
os.environ["CPPFLAGS"] = (
f"{os.environ['CPPFLAGS']} -I{os.environ['RELENV_PATH']}/include/ncursesw "
f"-I{os.environ['RELENV_PATH']}/include/readline "
f"-I{os.environ['RELENV_PATH']}/lib/python3.10/site-packages/relenv_gdb/gdb/include"
f"-I{os.environ['RELENV_PATH']}/lib/python3.10/site-packages/gdbdbg/gdb/include"
)
os.environ["LDFLAGS"] = (
f"{os.environ['LDFLAGS']} "
f"-L{os.environ['RELENV_PATH']}/lib/python3.10/site-packages/relenv_gdb/gdb/lib "
f"-L{os.environ['RELENV_PATH']}/lib/python3.10/site-packages/gdbdbg/gdb/lib "
)

print(f"Build environment: {pprint.pformat(dict(os.environ))}")
Expand All @@ -74,7 +74,7 @@ def build_gdb(prefix):
subprocess.run(
[
"./configure",
f"--prefix={os.environ['RELENV_PATH']}/lib/python3.10/site-packages/relenv_gdb/gdb",
f"--prefix={os.environ['RELENV_PATH']}/lib/python3.10/site-packages/gdbdbg/gdb",
],
check=True,
)
Expand All @@ -94,7 +94,7 @@ def build_gdb(prefix):
subprocess.run(
[
"./configure",
f"--prefix={os.environ['RELENV_PATH']}/lib/python3.10/site-packages/relenv_gdb/gdb",
f"--prefix={os.environ['RELENV_PATH']}/lib/python3.10/site-packages/gdbdbg/gdb",
],
check=True,
)
Expand Down Expand Up @@ -126,7 +126,7 @@ def build_gdb(prefix):
subprocess.run(
[
"./configure",
f"--prefix={os.environ['RELENV_PATH']}/lib/python3.10/site-packages/relenv_gdb/gdb",
f"--prefix={os.environ['RELENV_PATH']}/lib/python3.10/site-packages/gdbdbg/gdb",
f"--with-python={os.environ['RELENV_PATH']}/bin/python3",
"--with-lzma",
"--with-separate-debug-dir=/usr/lib/debug",
Expand All @@ -150,13 +150,13 @@ def build_gdb(prefix):
subprocess.run(["make", "install"])

relenv.relocate.main(
f"{os.environ['RELENV_PATH']}/lib/python3.10/site-packages/relenv_gdb/gdb",
f"{os.environ['RELENV_PATH']}/lib/python3.10/site-packages/relenv_gdb/gdb/lib",
f"{os.environ['RELENV_PATH']}/lib/python3.10/site-packages/gdbdbg/gdb",
f"{os.environ['RELENV_PATH']}/lib/python3.10/site-packages/gdbdbg/gdb/lib",
False,
)
shutil.copytree(
f"{os.environ['RELENV_PATH']}/lib/python3.10/site-packages/relenv_gdb/gdb",
"src/relenv_gdb/gdb",
f"{os.environ['RELENV_PATH']}/lib/python3.10/site-packages/gdbdbg/gdb",
"src/gdbdbg/gdb",
)


Expand Down

0 comments on commit fa2a187

Please sign in to comment.