<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cpt/src/cpt-lib, branch full-pkg-path</title>
<subtitle>[MIRROR] Carbs Packaging Tools
</subtitle>
<id>https://git.carbslinux.org/cpt/atom?h=full-pkg-path</id>
<link rel='self' href='https://git.carbslinux.org/cpt/atom?h=full-pkg-path'/>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/cpt/'/>
<updated>2020-11-09T13:25:46+00:00</updated>
<entry>
<title>Merge branch 'master' into full-pkg-path</title>
<updated>2020-11-09T13:25:46+00:00</updated>
<author>
<name>merakor</name>
<email>cem@ckyln.com</email>
</author>
<published>2020-11-09T13:25:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/cpt/commit/?id=981961fbfa71af661ac611a13a0707b407d07643'/>
<id>urn:sha1:981961fbfa71af661ac611a13a0707b407d07643</id>
<content type='text'>
FossilOrigin-Name: 116d2928ca61b3db6ae9c2c7719838b488db938f6f1ca76b483d4ef9da7cf3d0</content>
</entry>
<entry>
<title>cpt-lib: don't make main() a function unto itself</title>
<updated>2020-11-09T13:21:18+00:00</updated>
<author>
<name>merakor</name>
<email>cem@ckyln.com</email>
</author>
<published>2020-11-09T13:21:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/cpt/commit/?id=c10e49d9caf08d0729024f5cf770634a739ebbe3'/>
<id>urn:sha1:c10e49d9caf08d0729024f5cf770634a739ebbe3</id>
<content type='text'>
FossilOrigin-Name: 3f01d4659d9f4e7488387436153fc9a20723b40f28515c5020172a83eb88128b</content>
</entry>
<entry>
<title>getoptions(): parse the options during main() call on cpt-lib</title>
<updated>2020-11-09T13:03:20+00:00</updated>
<author>
<name>merakor</name>
<email>cem@ckyln.com</email>
</author>
<published>2020-11-09T13:03:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/cpt/commit/?id=13e58869dc0bf24acacc98650ef95d0d27598a4f'/>
<id>urn:sha1:13e58869dc0bf24acacc98650ef95d0d27598a4f</id>
<content type='text'>
Calling parse() after cpt-lib has been called causes sys_db to be initiated
using the wrong CPT_ROOT, among other issues. By calling the option parser
during the main(), we make sure that the options parsed are used as soon as
possible.

FossilOrigin-Name: 2933b99bec8ec9c3f20143e2a19c270a6d208f723d2b394c625cbc13d2625326</content>
</entry>
<entry>
<title>cpt-lib: fix shellcheck error</title>
<updated>2020-11-03T15:08:19+00:00</updated>
<author>
<name>merakor</name>
<email>cem@ckyln.com</email>
</author>
<published>2020-11-03T15:08:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/cpt/commit/?id=85a95118d4427f9d49a227f91f379be5bec385e3'/>
<id>urn:sha1:85a95118d4427f9d49a227f91f379be5bec385e3</id>
<content type='text'>
FossilOrigin-Name: 9b88780f4576b44b7578dd7758f8c2a967d11ff6a86566c08dd5b4ccf04f2309</content>
</entry>
<entry>
<title>cpt-lib: fix shellcheck error</title>
<updated>2020-11-03T15:02:10+00:00</updated>
<author>
<name>merakor</name>
<email>cem@ckyln.com</email>
</author>
<published>2020-11-03T15:02:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/cpt/commit/?id=a28f051f36c99ea919097d1dcc2daf7da23ed980'/>
<id>urn:sha1:a28f051f36c99ea919097d1dcc2daf7da23ed980</id>
<content type='text'>
FossilOrigin-Name: ac2b03e9727ca199b8a3d27871cc5e7570137e732fb3c756aa95821ff5304555</content>
</entry>
<entry>
<title>Make cpt accept package paths (*/package)</title>
<updated>2020-11-01T18:32:21+00:00</updated>
<author>
<name>merakor</name>
<email>cem@ckyln.com</email>
</author>
<published>2020-11-01T18:32:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/cpt/commit/?id=e6c3a8bb955ad76aaf2f40472f3d675e494106a8'/>
<id>urn:sha1:e6c3a8bb955ad76aaf2f40472f3d675e494106a8</id>
<content type='text'>
This new implementation idea makes it possible for a user to specify a full-path
(or a relative path) to a package directory in order to use it as the main
package directory. This will hopefully make it to the next version, while at
this point I don't have any issues with packages, I am sure this will require
some fixes until it will be merged to the master branch.

Overall, this shouldn't add some extra complexities to the package manager, the
only "big" change was on 'pkg_find()', and returning a full path is much faster
than going through all of the repositories to find a match.

Core functionality change:

pkg_find():
  If pkg_find receives a path to some package, instead of searching for the
  $CPT_PATH, it will echo it back.

  NOTE:
  Even if there is a package on the current directory, 'pkg_find package' will
  search the $CPT_PATH. If you want to use the package on the current directory,
  you will need to run 'pkg_find ./package' instead.

  IDEA:
  The 'cd -P' approach can be replaced with cpt-readlink, but even though
  cpt-readlink is faster than 'cd -P', we don't want to call a new process for
  such a simple thing.

FossilOrigin-Name: 90298fa52d7bef136aaf50fa900ba79b94abe32903955b043d959d9dcb6706ec</content>
</entry>
<entry>
<title>src: update parser definitions</title>
<updated>2020-10-31T12:17:53+00:00</updated>
<author>
<name>merakor</name>
<email>cem@ckyln.com</email>
</author>
<published>2020-10-31T12:17:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/cpt/commit/?id=3591d3541eb9d79dd23de43995be0e8c05d83213'/>
<id>urn:sha1:3591d3541eb9d79dd23de43995be0e8c05d83213</id>
<content type='text'>
FossilOrigin-Name: 8f46944f81271ff851a5d21bfbaa21ad86f8cf120ef22bf8f9a64ecd3f339eb3</content>
</entry>
<entry>
<title>getoptions: update to 2.0.1</title>
<updated>2020-10-31T10:44:54+00:00</updated>
<author>
<name>merakor</name>
<email>cem@ckyln.com</email>
</author>
<published>2020-10-31T10:44:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/cpt/commit/?id=b68bc7228a97daf54ac8a6bfa1f7961d7e7dc212'/>
<id>urn:sha1:b68bc7228a97daf54ac8a6bfa1f7961d7e7dc212</id>
<content type='text'>
FossilOrigin-Name: cdbd1a2ac3828872b8de526e0030d71efbe2ff2a43f62ad05a2bbbe9eab229f6</content>
</entry>
<entry>
<title>cpt-lib (pkg_fixdeps): rename to pkg_fix_deps and major changes:</title>
<updated>2020-10-25T21:49:36+00:00</updated>
<author>
<name>merakor</name>
<email>cem@ckyln.com</email>
</author>
<published>2020-10-25T21:49:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/cpt/commit/?id=e57f3cf96b1c21afc0b6bd37b77a5b2491b0e775'/>
<id>urn:sha1:e57f3cf96b1c21afc0b6bd37b77a5b2491b0e775</id>
<content type='text'>
Following the changes on kiss, pkg_fixdeps has been renamed to pkg_fix_deps and
added readelf support. Readelf is a much better solution for checking
dependencies as it can differentiate between actual dependencies and
"dependencies of dependencies".

cpt will check for the tool to use in the following order:
- readelf
- eu-readelf
- llvm-readelf
- ldd

CPT_ELF:
    This new variable can be used to force a specific tool, such as ldd, or a
    specific readelf program.

Other changes include:
- The function no longer prints found dependencies
- It checks for the dependencies on the current manifest first, and skips if
  they have been found on the package.
- The function now uses the pkg_owns() for finding packages

FossilOrigin-Name: 42927fcc2cd7f588be2658c506773b9be22f2b268e0999903ce1a84c65f7b5ec</content>
</entry>
<entry>
<title>pkg_owner(): add function to retrieve the owning package of a file</title>
<updated>2020-10-25T21:43:52+00:00</updated>
<author>
<name>merakor</name>
<email>cem@ckyln.com</email>
</author>
<published>2020-10-25T21:43:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/cpt/commit/?id=e3145335fb336b83e32ba22a0ec259e0c1cbe61a'/>
<id>urn:sha1:e3145335fb336b83e32ba22a0ec259e0c1cbe61a</id>
<content type='text'>
This function is almost identical to the function with the same name on
kiss. However, instead of saving the owner on a global variable, the function
prints the owning package to the standard output.

The function can be called similar to grep. The usage is:

    pkg_owner GREP_FLAGS FILE_TO_CHECK MANIFEST_LOCATIONS...

If no manifest is specified, the function will use every installed package
on the system database.

FossilOrigin-Name: 53cbeff7a92850efd172960f12848885961655c9c53e24a5f8cb8da7642ce541</content>
</entry>
</feed>
