Packaging Flashcards

1
Q

What do distributors have to decide regarding open source software?

A

What pieces of open source software to include in their distribution

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Who is the intended audience for open source software distributions?

A

Completely free philosophy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What architecture must be supported by distributors?

A

Computer architecture to support

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Where can distributors find sources for open source software?

A

Where to find sources

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What must distributors determine about official repositories?

A

What to place in official repos

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What tools should distributors consider for packaging?

A

What tools should be used for packaging and downloading packages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What must distributors resolve concerning software components?

A

All dependencies

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What creates dependencies in open source software?

A

Extensive use of shared object libraries

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the purpose of the main.c file in the dynamic shared object library demonstration?

A

To call the function foo and print a message.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the output of the function foo in foo.c?

A

Hello World

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What command is used to compile foo.c into an object file?

A

gcc -c -fpic foo.c

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What command is used to create a shared library from the object file foo.o?

A

gcc -shared -o libfoo.so foo.o

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How do you link the main.c file with the shared library libfoo.so?

A

gcc -L/home/frank/foo -o test main.c -lfoo

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What environment variable needs to be set to run the test program successfully?

A

LD_LIBRARY_PATH

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Fill in the blank: To run the compiled program, you execute _______.

A

./test

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

True or False: You need to recompile main.c every time you modify foo.c.

17
Q

What command is used to create a new object file after modifying foo.c?

A

gcc -c -fpic foo.c

18
Q

What command do you use to create a new shared library after modifying foo.c?

A

gcc -shared -o libfoo.so foo.o

19
Q

What is the final step to see the changes made in foo.c after recompiling the shared library?

A

Run ./test

20
Q

What directory is specified for the shared library during the linking process?

A

/home/frank/foo