Skip to contentSkip to conversation

README: list some of the dependencies

PATCH In review Jani Nikula 3 participants 6 messages Oct 8, 2013 – Oct 17, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 README: list some of the dependencies

---
 README |   12 ++++++++++++
 1 file changed, 12 insertions(+)
README +12 -0
index 653bfcd..a04c987 100644
@@ -96,3 +96,15 @@ debugger/
 	initiating connections with debug clients..
 
 	The debugger must be run as root: "sudo debugger/eudb"
+
+DEPENDENCIES
+	This is a non-exchaustive list of package dependencies required for
+	building everything:
+
+	libpciaccess-dev
+	libdrm-dev
+	xutils-dev
+	libcairo2-dev
+	swig2.0
+	libpython3.3-dev
+	x11proto-dri2-dev
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 15 lines · Jani Nikula
---
 README |   12 ++++++++++++
 1 file changed, 12 insertions(+)
README +2 -0
index 653bfcd..a04c987 100644
@@ -96,3 +96,15 @@ debugger/
 	initiating connections with debug clients..
 
 	The debugger must be run as root: "sudo debugger/eudb"
+
+DEPENDENCIES

README debugger/ · line 110

Quoted 10 lines
README +10 -0
+	This is a non-exchaustive list of package dependencies required for
+	building everything:
+
+	libpciaccess-dev
+	libdrm-dev
+	xutils-dev
+	libcairo2-dev
+	swig2.0
+	libpython3.3-dev
+	x11proto-dri2-dev

I guess my gripe with this kind of thing is people always tend you use distro specific package names. Can we somehow prevent it though?

$ sudo pacman -S libpciaccess-dev
error: target not found: libpciaccess-dev
Signature · 1 line
Ben Widawsky, Intel Open Source Technology Center
#2 lore raw

I'm using Ubuntu 13.10

sudo apt-get install libpciaccess-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
libpciaccess-dev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 23,6 kB of archives.
After this operation, 121 kB of additional disk space will be used. Get:1 http://ro.archive.ubuntu.com/ubuntu/ saucy/main libpciaccess-dev amd64 0.13.2-1 [23,6 kB]
Fetched 23,6 kB in 0s (160 kB/s)
Selecting previously unselected package libpciaccess-dev:amd64. (Reading database ... 232755 files and directories currently installed.) Unpacking libpciaccess-dev:amd64 (from .../libpciaccess-dev_0.13.2-1_amd64.deb) ...
Setting up libpciaccess-dev:amd64 (0.13.2-1) ...

Hmm. You need to discuss this with your dristro maintainers.

Quoted 39 lines · Ben Widawsky
Quoted 15 lines · Jani Nikula
---
 README |   12 ++++++++++++
 1 file changed, 12 insertions(+)
README +2 -0
index 653bfcd..a04c987 100644
@@ -96,3 +96,15 @@ debugger/
      initiating connections with debug clients..
 
      The debugger must be run as root: "sudo debugger/eudb"
+
+DEPENDENCIES

README debugger/ · line 110

Quoted 10 lines
README +10 -0
+     This is a non-exchaustive list of package dependencies required for
+     building everything:
+
+     libpciaccess-dev
+     libdrm-dev
+     xutils-dev
+     libcairo2-dev
+     swig2.0
+     libpython3.3-dev
+     x11proto-dri2-dev

I guess my gripe with this kind of thing is people always tend you use distro specific package names. Can we somehow prevent it though?

$ sudo pacman -S libpciaccess-dev
error: target not found: libpciaccess-dev

--
Ben Widawsky, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

#3 lore raw
In reply to Ben Widawsky
Quoted 13 lines · Ben Widawsky
Quoted 12 lines · Jani Nikula
---
 README |   12 ++++++++++++
 1 file changed, 12 insertions(+)
README +0 -0
index 653bfcd..a04c987 100644
@@ -96,3 +96,15 @@ debugger/
 	initiating connections with debug clients..
 
Quoted 16 lines

README debugger/ · line 110

Quoted 13 lines
README +12 -0
 	The debugger must be run as root: "sudo debugger/eudb"
+
+DEPENDENCIES
+	This is a non-exchaustive list of package dependencies required for
+	building everything:
+
+	libpciaccess-dev
+	libdrm-dev
+	xutils-dev
+	libcairo2-dev
+	swig2.0
+	libpython3.3-dev
+	x11proto-dri2-dev

I guess my gripe with this kind of thing is people always tend you use distro specific package names. Can we somehow prevent it though?

Another problem is that it's bound to get stale. I just listed all the stuff I needed to install when I tried to build igt on a semi-fresh debian based installation. My gripe is having to run ./autogen.sh N times, trying to figure out which package would fix the errors each time. If only there was an option to list the dependencies!

I'm fine with not merging this. If anyone has better ideas, patches welcome. ;)

BR,
Jani.

Signature · 1 line
Jani Nikula, Intel Open Source Technology Center
#4 lore raw
Quoted 37 lines · Jani Nikula
Quoted 13 lines · Ben Widawsky
Quoted 12 lines · Jani Nikula
---
 README |   12 ++++++++++++
 1 file changed, 12 insertions(+)
README +0 -0
index 653bfcd..a04c987 100644
@@ -96,3 +96,15 @@ debugger/
 	initiating connections with debug clients..
 
Quoted 16 lines

README debugger/ · line 110

Quoted 13 lines
README +12 -0
 	The debugger must be run as root: "sudo debugger/eudb"
+
+DEPENDENCIES
+	This is a non-exchaustive list of package dependencies required for
+	building everything:
+
+	libpciaccess-dev
+	libdrm-dev
+	xutils-dev
+	libcairo2-dev
+	swig2.0
+	libpython3.3-dev
+	x11proto-dri2-dev

I guess my gripe with this kind of thing is people always tend you use distro specific package names. Can we somehow prevent it though?

Another problem is that it's bound to get stale. I just listed all the stuff I needed to install when I tried to build igt on a semi-fresh debian based installation. My gripe is having to run ./autogen.sh N times, trying to figure out which package would fix the errors each time. If only there was an option to list the dependencies!

Quoted 7 lines

I'm fine with not merging this. If anyone has better ideas, patches welcome. ;)

BR,
Jani.

I think it's better than nothing... just wanted to see if anyone had better ideas. I just use the wrong package manager, I suppose. It is definitely irritating that autofoo can't just create the list for us.

Also, a few of the deps you list are optional (though I think it makes sense to do what you did, which is a default build).

Signature · 1 line
Ben Widawsky, Intel Open Source Technology Center
#5 lore raw
In reply to Jani Nikula
Quoted 15 lines · Jani Nikula
---
 README |   12 ++++++++++++
 1 file changed, 12 insertions(+)
README +2 -0
index 653bfcd..a04c987 100644
@@ -96,3 +96,15 @@ debugger/
 	initiating connections with debug clients..
 
 	The debugger must be run as root: "sudo debugger/eudb"
+
+DEPENDENCIES

README debugger/ · line 110

Quoted 10 lines
README +10 -0
+	This is a non-exchaustive list of package dependencies required for
+	building everything:
+
+	libpciaccess-dev
+	libdrm-dev
+	xutils-dev
+	libcairo2-dev
+	swig2.0
+	libpython3.3-dev
+	x11proto-dri2-dev

I've pushed this. Some documentation is better than no documentation.

Signature · 1 line
Ben Widawsky, Intel Open Source Technology Center