Ahh, I see, debian would set DESTDIR=/usr, but of course you want the config file to go in /etc, not /usr/etc. Â Sure. Â Ok, got it. Â Yes, if CONF_DIR is set (is that the standard variable name?), we can install the config file there.
I'm working on the Makefiles, etc, to rename some things, so if I come across that I'll make the change.
cheers,
--dustin
On Fri, 18 Oct 2013, Jasem Mutlaq wrote:
Yes, I agree for someone compiling from source, he could choose where ever he wants it to be installed. However, as a
systems package under Debian/Ubuntu for example, there are standard directories for libs/binaries/headers and
configuration files. So, can we make an extra option? If CONF_DIR is defined while running 'make install' for example, it
shall installs it into that particular directory? Otherwise, it would just install it as it is now.
Regards,
Jasem
On Fri, Oct 18, 2013 at 4:24 PM, Dustin Lang <ds...@cmu.edu> wrote:
   Yes on the rename; no on always putting it in /etc.  Sorry, but an install prefix means "put everything under
   HERE".  Always putting it in /etc, say, breaks normal-user installs (when you don't have permission to write
   to /etc), and the Homebrew installer.
   On Fri, 18 Oct 2013, Jasem Mutlaq wrote:
      In addition to my previous email, can you consider renaming the configuration file to something
      like astrometry.conf and
      have it installed always under /etc/astrometry.conf or /etc/astrometry.net/astrometry.conf
      This will also make it easier for programs such as KStars to parse the conf file to look for the
      data directory and find
      if the index files are sufficient for the FOV of the telescope/camera setup of a particular user.
      Regards,
      Jasem
      On Fri, Oct 18, 2013 at 3:39 PM, Jasem Mutlaq <mutl...@ikarustech.com> wrote:
         Absolutely, I am building from trunk already. The backend lib was another issue as well
      since the name is
         quite generic. Also, I might split the package to astrometry.net and astrometry.net-dev
      (for the headers and
         static libs). I would assume the headers and static libs are only necessary if someone
      wants to build against
         astrometry.net, but not required for solve-field and other binaries?
         Regards,
         Jasem
--
You received this message because you are subscribed to a topic in the Google Groups "astrometry" group.
Visit this group at http://groups.google.com/group/astrometry.
--
You received this message because you are subscribed to a topic in the Google Groups "astrometry" group.
Visit this group at http://groups.google.com/group/astrometry.
--
You received this message because you are subscribed to a topic in the Google Groups "astrometry" group.
Visit this group at http://groups.google.com/group/astrometry.
--
You received this message because you are subscribed to a topic in the Google Groups "astrometry" group.
Visit this group at http://groups.google.com/group/astrometry.
--
You received this message because you are subscribed to a topic in the Google Groups "astrometry" group.
Visit this group at http://groups.google.com/group/astrometry.
--
You received this message because you are subscribed to a topic in the Google Groups "astrometry" group.
Visit this group at http://groups.google.com/group/astrometry.
I don't understand the problem you are trying to solve.
You are creating the debian distro, so you *KNOW* where the config file is. Â You wrote it. Â The config file, in turn, says where the data files can be found.
Reading more about "/usr/share", it might actually be the right place for the index files:
 "Note, however, that '/usr/share' is generally not intended to be shared by different operating systems or by different releases of the same operating system. Any program or package which contains or requires data that doesn't need to be modified should store that data in '/usr/share' (or '/usr/local/share', if installed locally). It is recommended that a subdirectory be used in /usr/share for this purpose.""
--http://www.tldp.org/LDP/Linux-Filesystem-Hierarchy/html/usr.html
Again, though, I see no need to change the Astrometry.net Makefiles -- the debian index file package and the /etc/astrometry.conf file just have to agree where they go.
cheers,
--dustin
On Sun, 27 Oct 2013, Jasem Mutlaq wrote:
It wouldn't be a problem for astrometry.net, but it would be a problem for others using it like KStars & Ekos. There should be a way to reliably find the
data directory, it could be anywhere. The same for the config file, it could be under any prefix. The only thing we can use are the binaries, perhaps we
can query one binary about the prefix
like
$ solve-field --prefix
/usr
$ solve-field --conf
/etc/astrometry.conf
This way I can know the location and parse the file for the location of the data dir , or even
$ solve-field --data-dir
/usr/data
The reason I need the data dir is that I parse the file in it, and then tell the user if he is missing any index files for his/her FOV and ask him/her to
download them. At any rate, I hope I explained why I need those :-)
Regards,
Jasem
On Sun, Oct 27, 2013 at 9:28 PM, Dustin Lang <ds...@cmu.edu> wrote:
   Hi,
   As long as astrometry.conf points to the right place, it doesn't really matter where the files are, right?
   --dstn
   On Sat, 26 Oct 2013, Jasem Mutlaq wrote:
      I just remembered one thing, in the debian installation, the data are installed to /usr/share/data. Could it you make this also be
      the default behavior of
      the Makefile? i.e. it creates the data dir in INSTALL_DIR/share/data and not just INSTALL_DIR/data
      The reason I'm asking for this is that I'm going to make astrometry.net an optional dependency in KStars that shall be released as
      part of KDE 4.12 pretty
      soon. And usually when I add a dependency, you'll find packages for all distros making a package for that dependency, and I wanted
      all of the packages in
      all distros to have the same paths for consistency sake.
      Regards,
      Jasem
      Â
      On Sat, Oct 26, 2013 at 4:45 PM, Dustin Lang <ds...@cmu.edu> wrote:
         It's not trivial, because the code doesn't *read* the files, it uses *mmap* to memory-map them, and then treats them as raw
      data, in the right
         endian-ness.
         I'm fine if we only create little-endian index files.  If anyone asks I can make big-endian ones.  Nobody has asked this for
      years, so I think
         it's safe.
         --dstn
         On Sat, 26 Oct 2013, Dustin Lang wrote:
            we don't want to ship both big-endian and little-endian -- they're already huge :)
            On Sat, 26 Oct 2013, Jasem Mutlaq wrote:
                Well, can this be handled at the application level? i.e. solve-field would
                know if the machine it was compiled on is little or big endian and reads
                the
                files accordingly?
                On Sat, Oct 26, 2013 at 4:27 PM, Dustin Lang <ds...@cmu.edu> wrote:
                   the index files are actually endian-specific, so is there a way to
                   say that the same file is good for all little-endian archs?
                   On Sat, 26 Oct 2013, Jasem Mutlaq wrote:
                      I think so, though even ARM supports little-endian these days.
                      Regards,
                      Jasem
                      On Sat, Oct 26, 2013 at 3:36 PM, Dustin Lang <ds...@cmu.edu>
                      wrote:
                         Thanks for this!
                         Does debian still support any big-endian CPUs?
                         cheers,
                         --dustin
                         On Sat, 26 Oct 2013, Jasem Mutlaq wrote:
                            Hi Dustin,
                            After looking into my data directory for
                      astrometry, I realized I shouldn't be uploading 32 GB of data
                      just for the
                      sake of .deb
                            files. So I prepared the
                            recipe for you! Attached you'll find two
                      directories, data & debian. I put dummy files in data just to
                      test, but you
                      need to put
                            ALL the 32GB index files
                            in there. You can see under debian/control how I
                      divided the packages, please review that and change if
                      necessary. You
                      need to
                            install devscripts
                            $ sudo apt-get install devscripts
                            then in the extracted astrometry-data directory:
                            $ debuild -i -us -uc -b
                            If all goes well, you should have your .deb files!
                      Those are all architecture independent. Please make them
                      available
                      for download
                            once they are built
                            successfully :-)
                            Please let me know if you face any issues.
                            Regards,
                            Jasem
                            On Tue, Oct 22, 2013 at 2:08 AM, Jasem Mutlaq
                      <mutl...@ikarustech.com> wrote:
                               Great, see attached!
                            On Mon, Oct 21, 2013 at 10:30 PM, Dustin Lang
                      <ds...@cmu.edu> wrote:
                               Thanks!
                               I will create an account for you on one of
                      the astrometry.net machines and you can scp files there.
                       Please send
                      a
                            passphrase-protected
                               ssh public key.
                               cheers,
                               --dustin
                               On Mon, 21 Oct 2013, Jasem Mutlaq wrote:
                                  Great. I created a team
                      (astrometry-team) so that multiple people can commit to the
                      Bazaar repo. I also
                      set you as the
                                  project's driver.
                                  https://launchpad.net/astrometry.net
                                  To checkout code:
                                  bzr checkout lp:astrometry.net
                                  then like svn, bzr commit
                                  I just uploaded the latest changes,
                      but from now on you can push the changes yourself!! I'll work
                      on the
                      data files
                            next. I
                                  will need an
                                  FTP account or something so I can
                      upload the massive catalogs in .deb format later on. We can
                      make a link
                      to them in
                            the
                                  launchpad page as
                                  well.
                                  Thanks for your work!
                                  Regards,
                                  Jasem
                                  On Mon, Oct 21, 2013 at 8:24 PM,
                      Dustin Lang <ds...@cmu.edu> wrote:
                                     PS, I am "dstndstn" on
                      launchpad.net, if you want to add me.
                                     https://launchpad.net/~dstndstn
                                     On Mon, 21 Oct 2013, Jasem
                                     --
                                     You received this message
                      because you are subscribed to a topic in the Google Groups
                      "astrometry"
                      group.
                                     Visit this group at
                      http://groups.google.com/group/astrometry.
                                     --
                                     --
                                     Best Regards,
                                     Jasem Mutlaq
                                     --
                                     --
                                     Best Regards,
                                     Jasem Mutlaq
                                     --
                                  You received this message because you
                      are subscribed to the Google Groups "astrometry" group.
Why? Â Why not just use astrometry.conf?
--dstn
--
You received this message because you are subscribed to a topic in the Google Groups "astrometry" group.
Visit this group at http://groups.google.com/group/astrometry.