Debian Package Management "Inside" Question


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Debian Package Management "Inside" Question
# 1  
Old 12-23-2014
Debian Package Management "Inside" Question

Greetings.

After rifling through the policy manual to some significant extent, I've come to a question which doesn't seem to have any forthcoming answer out "in the wild", so here it is Smilie

During dpkg installation processing, some libs wind up with an ":i386" or ":amd64" architecture string naming convention in conjunction with their package management ( /var/lib/dpkg/info/ ) filesets, while some do not. The package-side selection processing which occurs seems quite elusive.

Indeed, after examining a couple of common deb specimens (libgdbm-dev and libgdbm3) for directly-furnished and tell-tale signs of naming convention/selection with respect to this architecture string criteria, there appeared to be no delineating, unique string or other mechanism included which would tip dpkg off as to which package management fileset would be assigned an architecture string in the final install.

Thinking that the mere presence of an shlibs file could be the marker, I was again confounded; as there are many instances of fully installed and functional packages which include this file but do not include an architecture string in their package management fileset naming schemes.

So, if anyone can turn on a flashlight to illuminate the package-side mechanism which invokes this naming behavior, I'd be quite greatful for the savvy Smilie

Thanks again --
# 2  
Old 01-11-2015
It depends on the naming scheme used by the package maintainer.
# 3  
Old 01-11-2015
I dont know dkpg, but with the aim to bring some light onto the question, here's was i would conclude in a simple way.
So, what i say now, might be technical incorrect but is thought to get a raw draft of the greater image.

There are 3 package types.
1) compiled (i386/x86_64, ..., any ARCH specific)
2) copy files (noarch, scripts)
3) devel/debug and source packages (they are NOT the same, and usualy are not 'usable' for regular users)

Obviously, everything that needs to be compiles, needs to be labeled which ARCH is was compiled for.
A packaging system, such as dkpg/apt-get/rpm/aur... offer various tasks to simplify the process of getting sourcecode into a working package for the system.
This includes the use of macros inside of the (on redhat systems its calledSmilie specfiles (for rpm packages, dont know the proper term for apt-get-configuration-deb-files.

For RPM specfiles, if one doesnt pass a certing option within that file, the packaging system automaticly assumes that the packages supports the same arch as the host system is.
This said, it also adds the according string to the package, usualy at the right place, unless manualy modified.
In specfiles, the required option to add would be: BuildArch: noarch if you want to make a package of scripts, images, html docs or manpages or just anything that doesnt need to be compiled to be usefull.

I dont know much about dkpg based systems, but i would assume, when you end up having both, 32 and (as in: or) 64 bit packages, there is somewhere an error in your settings or scripts.

Usualy, but not always, an applications requires only 1 kind of an arch dependency.
This said, here are some questions:

When did it last work?
What did you change since?
Were there any other improvements? ("damages")
Did you copy paste code?
Changed code or project configuration?

Hope this helps
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

2. Shell Programming and Scripting

Failure: if grep "$Var" "$line" inside while read line loop

Hi everybody, I am new at Unix/Bourne shell scripting and with my youngest experiences, I will not become very old with it :o My code: #!/bin/sh set -e set -u export IFS= optl="Optl" LOCSTORCLI="/opt/lsi/storcli/storcli" ($LOCSTORCLI /c0 /vall show | grep RAID | cut -d " "... (5 Replies)
Discussion started by: Subsonic66
5 Replies

3. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

4. AIX

mkinstallp package creation failing "no such file: ./usr/lpp/<package name>/inst_root"

Hello, I'm trying to build a (bff) package from an already installed program (clam antivirus) using mkinstallp. However, mkinstallp fails with "no such file: ./usr/lpp/<package name>/inst_root" I'm not sure why all files get created ok except for these particular ones. Any help would be... (2 Replies)
Discussion started by: omonte
2 Replies

5. UNIX for Advanced & Expert Users

A question/problem about oracle "tns listener" and "enterprise manager"

hi, I have a problem about the Oracle related components. I'm not able to find any answer yet, and waiting for your responses... Here is the configuration of my system: * an IBM P550 machine, * an AIX 5.3 running on it and * an oracle database, already installed on it. The problem (or... (1 Reply)
Discussion started by: talipk
1 Replies

6. UNIX and Linux Applications

A question/problem about oracle "tns listener" and "enterprise manager"

hi, I have * an IBM P550 machine, * an AIX 5.3 running on it and * an oracle database, already installed on it. The problem (or question of my own) is: Oracle tns listener, "CT_LISTENER", and the enterprise manager (EM) of the instance, which is uniq instance and called... (0 Replies)
Discussion started by: talipk
0 Replies

7. Debian

Debian: doubt in "top" %CPU and "sar" output

Hi All, I am running my application on a dual cpu debian linux 3.0 (2.4.19 kernel). For my application: <sar -U ALL> CPU %user %nice %system %idle ... 10:58:04 0 153.10 0.00 38.76 0.00 10:58:04 1 3.88 0.00 4.26 ... (0 Replies)
Discussion started by: jaduks
0 Replies

8. UNIX for Dummies Questions & Answers

"Process management" question

This one will show how "wet behind the ears" I am but here it goes... Suppose my boss wants me to run an app every day from the command line. The command line statement looks like this: $> my_executable_program -my_parameter file > my_outfile Let's say that one day, I do this: $>... (1 Reply)
Discussion started by: alan
1 Replies
Login or Register to Ask a Question